Files
keras-js/dist/keras.min.js
T
2016-09-30 22:45:58 -04:00

17 lines
354 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KerasJS=e():t.KerasJS=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,e,r){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=585)}([function(t,e,r){var n=r(5),o=r(29),i=r(15),a=r(16),u=r(30),s="prototype",c=function(t,e,r){var f,l,p,h,d=t&c.F,v=t&c.G,y=t&c.S,g=t&c.P,b=t&c.B,m=v?n:y?n[e]||(n[e]={}):(n[e]||{})[s],_=v?o:o[e]||(o[e]={}),w=_[s]||(_[s]={});v&&(r=e);for(f in r)l=!d&&m&&void 0!==m[f],p=(l?m:r)[f],h=b&&l?u(p,n):g&&"function"==typeof p?u(Function.call,p):p,m&&a(m,f,p,t&c.U),_[f]!=p&&i(_,f,h),g&&w[f]!=p&&(w[f]=p)};n.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(51),u=n(a),s=r(125),c=n(s),f=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t),this.layerClass="Layer",this.name=e.name,this.params=[],this.weights={}}return i(t,[{key:"setWeights",value:function(t){var e=this;this.params.forEach(function(r,n){e.weights[r]=t[n]})}},{key:"call",value:function(t){return t}},{key:"createWeblasWeights",value:function(){var t=this;this.weblasWeights={},this.params.forEach(function(e,r){if(1===t.weights[e].tensor.shape.length){var n=[1,t.weights[e].tensor.shape[0]];t.weblasWeights[e]=new weblas.pipeline.Tensor(n,t.weights[e].tensor.data)}if(2===t.weights[e].tensor.shape.length){var o=t.weights[e].tensor.shape;t.weblasWeights[e]=new weblas.pipeline.Tensor(o,t.weights[e].tensor.data)}})}},{key:"transferWeblasWeights",value:function(){var t=this;this.params.forEach(function(e,r){if(t.weblasWeights[e]){var n=t.weblasWeights[e].shape,o=t.weblasWeights[e].transfer(!0);t.weights[e].tensor=(0,c.default)((0,u.default)(o,n))}})}},{key:"deleteWeblasWeights",value:function(){var t=this;this.params.forEach(function(e,r){t.weblasWeights[e]&&(t.weblasWeights[e].delete(),delete t.weblasWeights[e])}),delete this.weblasWeights}}]),t}();e.default=f},function(t,e,r){var n=r(7);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){"use strict";function n(t){if(!t)return u;for(var e=0;e<t.args.length;++e){var r=t.args[e];0===e?t.args[e]={name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:t.args[e]={name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function o(t){return a({args:t.args,pre:n(t.pre),body:n(t.body),post:n(t.proc),funcName:t.funcName})}function i(t){for(var e=[],r=0;r<t.args.length;++r)e.push("a"+r);var n=new Function("P",["return function ",t.funcName,"_ndarrayops(",e.join(","),") {P(",e.join(","),");return a0}"].join(""));return n(o(t))}var a=r(162),u={body:"",args:[],thisVars:[],localVars:[]},s={add:"+",sub:"-",mul:"*",div:"/",mod:"%",band:"&",bor:"|",bxor:"^",lshift:"<<",rshift:">>",rrshift:">>>"};!function(){for(var t in s){var r=s[t];e[t]=i({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+r+"c"},funcName:t}),e[t+"eq"]=i({args:["array","array"],body:{args:["a","b"],body:"a"+r+"=b"},rvalue:!0,funcName:t+"eq"}),e[t+"s"]=i({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+r+"s"},funcName:t+"s"}),e[t+"seq"]=i({args:["array","scalar"],body:{args:["a","s"],body:"a"+r+"=s"},rvalue:!0,funcName:t+"seq"})}}();var c={not:"!",bnot:"~",neg:"-",recip:"1.0/"};!function(){for(var t in c){var r=c[t];e[t]=i({args:["array","array"],body:{args:["a","b"],body:"a="+r+"b"},funcName:t}),e[t+"eq"]=i({args:["array"],body:{args:["a"],body:"a="+r+"a"},rvalue:!0,count:2,funcName:t+"eq"})}}();var f={and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">="};!function(){for(var t in f){var r=f[t];e[t]=i({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+r+"c"},funcName:t}),e[t+"s"]=i({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+r+"s"},funcName:t+"s"}),e[t+"eq"]=i({args:["array","array"],body:{args:["a","b"],body:"a=a"+r+"b"},rvalue:!0,count:2,funcName:t+"eq"}),e[t+"seq"]=i({args:["array","scalar"],body:{args:["a","s"],body:"a=a"+r+"s"},rvalue:!0,count:2,funcName:t+"seq"})}}();var l=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan"];!function(){for(var t=0;t<l.length;++t){var r=l[t];e[r]=i({args:["array","array"],pre:{args:[],body:"this_f=Math."+r,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b)",thisVars:["this_f"]},funcName:r}),e[r+"eq"]=i({args:["array"],pre:{args:[],body:"this_f=Math."+r,thisVars:["this_f"]},body:{args:["a"],body:"a=this_f(a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:r+"eq"})}}();var p=["max","min","atan2","pow"];!function(){for(var t=0;t<p.length;++t){var r=p[t];e[r]=i({args:["array","array","array"],pre:{args:[],body:"this_f=Math."+r,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(b,c)",thisVars:["this_f"]},funcName:r}),e[r+"s"]=i({args:["array","array","scalar"],pre:{args:[],body:"this_f=Math."+r,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(b,c)",thisVars:["this_f"]},funcName:r+"s"}),e[r+"eq"]=i({args:["array","array"],pre:{args:[],body:"this_f=Math."+r,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(a,b)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:r+"eq"}),e[r+"seq"]=i({args:["array","scalar"],pre:{args:[],body:"this_f=Math."+r,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(a,b)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:r+"seq"})}}();var h=["atan2","pow"];!function(){for(var t=0;t<h.length;++t){var r=h[t];e[r+"op"]=i({args:["array","array","array"],pre:{args:[],body:"this_f=Math."+r,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(c,b)",thisVars:["this_f"]},funcName:r+"op"}),e[r+"ops"]=i({args:["array","array","scalar"],pre:{args:[],body:"this_f=Math."+r,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(c,b)",thisVars:["this_f"]},funcName:r+"ops"}),e[r+"opeq"]=i({args:["array","array"],pre:{args:[],body:"this_f=Math."+r,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b,a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:r+"opeq"}),e[r+"opseq"]=i({args:["array","scalar"],pre:{args:[],body:"this_f=Math."+r,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b,a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:r+"opseq"})}}(),e.any=a({args:["array"],pre:u,body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"if(a){return true}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return false"},funcName:"any"}),e.all=a({args:["array"],pre:u,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1}],body:"if(!x){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"all"}),e.sum=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"this_s+=a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"sum"}),e.prod=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=1"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"this_s*=a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"prod"}),e.norm2squared=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:2}],body:"this_s+=a*a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm2squared"}),e.norm2=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:2}],body:"this_s+=a*a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return Math.sqrt(this_s)"},funcName:"norm2"}),e.norminf=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:4}],body:"if(-a>this_s){this_s=-a}else if(a>this_s){this_s=a}",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norminf"}),e.norm1=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:3}],body:"this_s+=a<0?-a:a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm1"}),e.sup=a({args:["array"],pre:{body:"this_h=-Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),e.inf=a({args:["array"],pre:{body:"this_h=Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_<this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),e.argmin=a({args:["index","array","shape"],pre:{body:"{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_i","this_v"],localVars:[]},body:{body:"{if(_inline_1_arg1_<this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),e.argmax=a({args:["index","array","shape"],pre:{body:"{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_i","this_v"],localVars:[]},body:{body:"{if(_inline_1_arg1_>this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),e.random=i({args:["array"],pre:{args:[],body:"this_f=Math.random",thisVars:["this_f"]},body:{args:["a"],body:"a=this_f()",thisVars:["this_f"]},funcName:"random"}),e.assign=i({args:["array","array"],body:{args:["a","b"],body:"a=b"},funcName:"assign"}),e.assigns=i({args:["array","scalar"],body:{args:["a","b"],body:"a=b"},funcName:"assigns"}),e.equals=a({args:["array","array"],pre:u,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1},{name:"y",lvalue:!1,rvalue:!0,count:1}],body:"if(x!==y){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"equals"})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(51),u=n(a),s=r(125),c=n(s),f=function(t,e){if(t.length&&e.length&&t.length!==e.reduce(function(t,e){return t*e},1))throw new Error("Specified shape incompatible with data.")},l=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(this,t),this._type=n.type||Float32Array,e&&e.length&&(e instanceof this._type||e instanceof Array)?(f(e,r),this.tensor=(0,u.default)(e,r),this.tensor=(0,u.default)(new this._type(e),r)):!e.length&&r.length?this.tensor=(0,u.default)(new this._type(r.reduce(function(t,e){return t*e},1)),r):this.tensor=(0,u.default)(new this._type([]),[]),n.gpu&&weblas?(this._useWeblas=!0,this.createWeblasTensor()):this._useWeblas=!1}return i(t,[{key:"createWeblasTensor",value:function(){if(1===this.tensor.shape.length){var t=[1,this.tensor.shape[0]];this.weblasTensor=new weblas.pipeline.Tensor(t,this.tensor.data)}else if(2===this.tensor.shape.length){var e=this.tensor.shape;this.weblasTensor=new weblas.pipeline.Tensor(e,this.tensor.data)}}},{key:"transferWeblasTensor",value:function(){if(this.weblasTensor){var t=this.weblasTensor.shape,e=this.weblasTensor.transfer(!0);this.tensor=(0,c.default)((0,u.default)(e,t))}}},{key:"deleteWeblasTensor",value:function(){this.weblasTensor&&(this.weblasTensor.delete(),delete this.weblasTensor)}},{key:"replaceTensorData",value:function(t){t&&t.length&&t instanceof this._type?this.tensor.data=t:t&&t.length&&t instanceof Array?this.tensor.data=new this._type(t):this.tensor=new this._type([])}}]),t}();e.default=l},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(76)("wks"),o=r(46),i=r(5).Symbol,a="function"==typeof i,u=t.exports=function(t){return n[t]||(n[t]=a&&i[t]||(a?i:o)("Symbol."+t))};u.store=n},function(t,e,r){t.exports=!r(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(2),o=r(142),i=r(28),a=Object.defineProperty;e.f=r(9)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(35),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(23);t.exports=function(t){return Object(n(t))}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){var n=r(10),o=r(34);t.exports=r(9)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(5),o=r(15),i=r(13),a=r(46)("src"),u="toString",s=Function[u],c=(""+s).split(u);r(29).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,r,u){var s="function"==typeof r;s&&(i(r,"name")||o(r,"name",e)),t[e]!==r&&(s&&(i(r,a)||o(r,a,t[e]?""+t[e]:c.join(String(e)))),t===n?t[e]=r:u?t[e]?t[e]=r:o(t,e,r):(delete t[e],o(t,e,r)))})(Function.prototype,u,function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,r){var n=r(0),o=r(6),i=r(23),a=/"/g,u=function(t,e,r,n){var o=String(i(t)),u="<"+e;return""!==r&&(u+=" "+r+'="'+String(n).replace(a,"&quot;")+'"'),u+">"+o+"</"+e+">"};t.exports=function(t,e){var r={};r[t]=e(u),n(n.P+n.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",r)}},function(t,e,r){var n=r(61),o=r(23);t.exports=function(t){return n(o(t))}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(1===t.tensor.shape.length){h.default.expeq(t.tensor);var e=h.default.sum(t.tensor);h.default.divseq(t.tensor,e)}else{if(2!==t.tensor.shape.length)throw new Error("[activations.softmax] tensor shape "+t.tensor.shape+" not supported.");for(var r=0;r<t.tensor.shape[0];r++){h.default.expeq(t.tensor.pick(r,null));var n=h.default.sum(t.tensor.pick(r,null));h.default.divseq(t.tensor.pick(r,null),n)}}return this}function i(t){return b(t.tensor),this}function a(t){return m(t.tensor),this}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.alpha,n=void 0===r?0:r,o=e.maxValue,i=void 0===o?null:o,a=void 0;return 0!==n&&(a=new g.default([],t.tensor.shape),h.default.mins(a.tensor,t.tensor,0),h.default.mulseq(a.tensor,n)),h.default.maxseq(t.tensor,0),i&&h.default.minseq(t.tensor,i),a&&h.default.addeq(t.tensor,a.tensor),this}function s(t){return _(t.tensor),this}function c(t){return w(t.tensor),this}function f(t){return x(t.tensor),this}function l(t){return this}Object.defineProperty(e,"__esModule",{value:!0}),e.softmax=o,e.softplus=i,e.softsign=a,e.relu=u,e.tanh=s,e.sigmoid=c,e.hardSigmoid=f,e.linear=l;var p=r(3),h=n(p),d=r(25),v=n(d),y=r(4),g=n(y),b=(0,v.default)({args:["array"],body:function(t){t=Math.log(Math.exp(t)+1)}}),m=(0,v.default)({args:["array"],body:function(t){t/=1+Math.abs(t)}}),_=(0,v.default)({args:["array"],body:function(t){t=Math.tanh(t)}}),w=(0,v.default)({args:["array"],body:function(t){t=1/(1+Math.exp(-t))}}),x=(0,v.default)({args:["array"],body:function(t){t=.2*t+.5,t<=0?t=0:t>=1&&(t=1)}})},function(t,e,r){var n=r(62),o=r(34),i=r(18),a=r(28),u=r(13),s=r(142),c=Object.getOwnPropertyDescriptor;e.f=r(9)?c:function(t,e){if(t=i(t),e=a(e,!0),s)try{return c(t,e)}catch(t){}if(u(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,r){var n=r(13),o=r(12),i=r(103)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(6);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,r){"use strict";function n(t){for(var e in t)a.indexOf(e)<0&&u.indexOf(e)<0&&console.warn("cwise: Unknown argument '"+e+"' passed to expression compiler");for(var r=0;r<a.length;++r)if(!t[a[r]])throw new Error("cwise: Missing argument: "+a[r]);return i({args:t.args,pre:o(t.pre||function(){}),body:o(t.body),post:o(t.post||function(){}),debug:!!t.printCode,funcName:t.funcName||t.body.name||"cwise",blockSize:t.blockSize||64})}var o=r(425),i=r(162),a=["args","body"],u=["pre","post","printCode","funcName","blockSize"];t.exports=n},function(t,e,r){var n=r(30),o=r(61),i=r(12),a=r(11),u=r(244);t.exports=function(t,e){var r=1==t,s=2==t,c=3==t,f=4==t,l=6==t,p=5==t||l,h=e||u;return function(e,u,d){for(var v,y,g=i(e),b=o(g),m=n(u,d,3),_=a(b.length),w=0,x=r?h(e,_):s?h(e,0):void 0;_>w;w++)if((p||w in b)&&(v=b[w],y=m(v,w,g),t))if(r)x[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:x.push(v)}else if(f)return!1;return l?-1:c||f?f:x}}},function(t,e,r){var n=r(0),o=r(29),i=r(6);t.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*i(function(){r(1)}),"Object",a)}},function(t,e,r){var n=r(7);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){var r=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(14);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(158),o=r(0),i=r(76)("metadata"),a=i.store||(i.store=new(r(161))),u=function(t,e,r){var o=a.get(t);if(!o){if(!r)return;a.set(t,o=new n)}var i=o.get(e);if(!i){if(!r)return;o.set(e,i=new n)}return i},s=function(t,e,r){var n=u(e,r,!1);return void 0!==n&&n.has(t)},c=function(t,e,r){var n=u(e,r,!1);return void 0===n?void 0:n.get(t)},f=function(t,e,r,n){u(r,n,!0).set(t,e)},l=function(t,e){var r=u(t,e,!1),n=[];return r&&r.forEach(function(t,e){n.push(e)}),n},p=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},h=function(t){o(o.S,"Reflect",t)};t.exports={store:a,map:u,has:s,get:c,set:f,keys:l,key:p,exp:h}},function(t,e,r){"use strict";if(r(9)){var n=r(39),o=r(5),i=r(6),a=r(0),u=r(77),s=r(110),c=r(30),f=r(38),l=r(34),p=r(15),h=r(43),d=r(35),v=r(11),y=r(45),g=r(28),b=r(13),m=r(155),_=r(60),w=r(7),x=r(12),O=r(95),j=r(40),S=r(21),E=r(41).f,P=r(112),k=r(46),A=r(8),M=r(26),T=r(67),C=r(104),I=r(113),R=r(54),D=r(73),L=r(44),F=r(88),N=r(135),U=r(10),B=r(20),V=U.f,W=B.f,z=o.RangeError,q=o.TypeError,G=o.Uint8Array,Y="ArrayBuffer",H="Shared"+Y,K="BYTES_PER_ELEMENT",$="prototype",Z=Array[$],J=s.ArrayBuffer,X=s.DataView,Q=M(0),tt=M(2),et=M(3),rt=M(4),nt=M(5),ot=M(6),it=T(!0),at=T(!1),ut=I.values,st=I.keys,ct=I.entries,ft=Z.lastIndexOf,lt=Z.reduce,pt=Z.reduceRight,ht=Z.join,dt=Z.sort,vt=Z.slice,yt=Z.toString,gt=Z.toLocaleString,bt=A("iterator"),mt=A("toStringTag"),_t=k("typed_constructor"),wt=k("def_constructor"),xt=u.CONSTR,Ot=u.TYPED,jt=u.VIEW,St="Wrong length!",Et=M(1,function(t,e){return Ct(C(t,t[wt]),e)}),Pt=i(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),kt=!!G&&!!G[$].set&&i(function(){new G(1).set({})}),At=function(t,e){if(void 0===t)throw q(St);var r=+t,n=v(t);if(e&&!m(r,n))throw z(St);return n},Mt=function(t,e){var r=d(t);if(r<0||r%e)throw z("Wrong offset!");return r},Tt=function(t){if(w(t)&&Ot in t)return t;throw q(t+" is not a typed array!")},Ct=function(t,e){if(!(w(t)&&_t in t))throw q("It is not a typed array constructor!");return new t(e)},It=function(t,e){return Rt(C(t,t[wt]),e)},Rt=function(t,e){for(var r=0,n=e.length,o=Ct(t,n);n>r;)o[r]=e[r++];return o},Dt=function(t,e,r){V(t,e,{get:function(){return this._d[r]}})},Lt=function(t){var e,r,n,o,i,a,u=x(t),s=arguments.length,f=s>1?arguments[1]:void 0,l=void 0!==f,p=P(u);if(void 0!=p&&!O(p)){for(a=p.call(u),n=[],e=0;!(i=a.next()).done;e++)n.push(i.value);u=n}for(l&&s>2&&(f=c(f,arguments[2],2)),e=0,r=v(u.length),o=Ct(this,r);r>e;e++)o[e]=l?f(u[e],e):u[e];return o},Ft=function(){for(var t=0,e=arguments.length,r=Ct(this,e);e>t;)r[t]=arguments[t++];return r},Nt=!!G&&i(function(){gt.call(new G(1))}),Ut=function(){return gt.apply(Nt?vt.call(Tt(this)):Tt(this),arguments)},Bt={copyWithin:function(t,e){return N.call(Tt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return rt(Tt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(Tt(this),arguments)},filter:function(t){return It(this,tt(Tt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return nt(Tt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ot(Tt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(Tt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return at(Tt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return it(Tt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ht.apply(Tt(this),arguments)},lastIndexOf:function(t){return ft.apply(Tt(this),arguments)},map:function(t){return Et(Tt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return lt.apply(Tt(this),arguments)},reduceRight:function(t){return pt.apply(Tt(this),arguments)},reverse:function(){for(var t,e=this,r=Tt(e).length,n=Math.floor(r/2),o=0;o<n;)t=e[o],e[o++]=e[--r],e[r]=t;return e},some:function(t){return et(Tt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return dt.call(Tt(this),t)},subarray:function(t,e){var r=Tt(this),n=r.length,o=y(t,n);return new(C(r,r[wt]))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,v((void 0===e?n:y(e,n))-o))}},Vt=function(t,e){return It(this,vt.call(Tt(this),t,e))},Wt=function(t){Tt(this);var e=Mt(arguments[1],1),r=this.length,n=x(t),o=v(n.length),i=0;if(o+e>r)throw z(St);for(;i<o;)this[e+i]=n[i++]},zt={entries:function(){return ct.call(Tt(this))},keys:function(){return st.call(Tt(this))},values:function(){return ut.call(Tt(this))}},qt=function(t,e){return w(t)&&t[Ot]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Gt=function(t,e){return qt(t,e=g(e,!0))?l(2,t[e]):W(t,e)},Yt=function(t,e,r){return!(qt(t,e=g(e,!0))&&w(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?V(t,e,r):(t[e]=r.value,t)};xt||(B.f=Gt,U.f=Yt),a(a.S+a.F*!xt,"Object",{getOwnPropertyDescriptor:Gt,defineProperty:Yt}),i(function(){yt.call({})})&&(yt=gt=function(){return ht.call(this)});var Ht=h({},Bt);h(Ht,zt),p(Ht,bt,zt.values),h(Ht,{slice:Vt,set:Wt,constructor:function(){},toString:yt,toLocaleString:Ut}),Dt(Ht,"buffer","b"),Dt(Ht,"byteOffset","o"),Dt(Ht,"byteLength","l"),Dt(Ht,"length","e"),V(Ht,mt,{get:function(){return this[Ot]}}),t.exports=function(t,e,r,s){s=!!s;var c=t+(s?"Clamped":"")+"Array",l="Uint8Array"!=c,h="get"+t,d="set"+t,y=o[c],g=y||{},b=y&&S(y),m=!y||!u.ABV,x={},O=y&&y[$],P=function(t,r){var n=t._d;return n.v[h](r*e+n.o,Pt)},k=function(t,r,n){var o=t._d;s&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),o.v[d](r*e+o.o,n,Pt)},A=function(t,e){V(t,e,{get:function(){return P(this,e)},set:function(t){return k(this,e,t)},enumerable:!0})};m?(y=r(function(t,r,n,o){f(t,y,c,"_d");var i,a,u,s,l=0,h=0;if(w(r)){if(!(r instanceof J||(s=_(r))==Y||s==H))return Ot in r?Rt(y,r):Lt.call(y,r);i=r,h=Mt(n,e);var d=r.byteLength;if(void 0===o){if(d%e)throw z(St);if(a=d-h,a<0)throw z(St)}else if(a=v(o)*e,a+h>d)throw z(St);u=a/e}else u=At(r,!0),a=u*e,i=new J(a);for(p(t,"_d",{b:i,o:h,l:a,e:u,v:new X(i)});l<u;)A(t,l++)}),O=y[$]=j(Ht),p(O,"constructor",y)):D(function(t){new y(null),new y(t)},!0)||(y=r(function(t,r,n,o){f(t,y,c);var i;return w(r)?r instanceof J||(i=_(r))==Y||i==H?void 0!==o?new g(r,Mt(n,e),o):void 0!==n?new g(r,Mt(n,e)):new g(r):Ot in r?Rt(y,r):Lt.call(y,r):new g(At(r,l))}),Q(b!==Function.prototype?E(g).concat(E(b)):E(g),function(t){t in y||p(y,t,g[t])}),y[$]=O,n||(O.constructor=y));var M=O[bt],T=!!M&&("values"==M.name||void 0==M.name),C=zt.values;p(y,_t,!0),p(O,Ot,c),p(O,jt,!0),p(O,wt,y),(s?new y(1)[mt]==c:mt in O)||V(O,mt,{get:function(){return c}}),x[c]=y,a(a.G+a.W+a.F*(y!=g),x),a(a.S,c,{BYTES_PER_ELEMENT:e,from:Lt,of:Ft}),K in O||p(O,K,e),a(a.P,c,Bt),L(c),a(a.P+a.F*kt,c,{set:Wt}),a(a.P+a.F*!T,c,zt),a(a.P+a.F*(O.toString!=yt),c,{toString:yt}),a(a.P+a.F*i(function(){new y(1).slice()}),c,{slice:Vt}),a(a.P+a.F*(i(function(){return[1,2].toLocaleString()!=new y([1,2]).toLocaleString()})||!i(function(){O.toLocaleString.call([1,2])})),c,{toLocaleString:Ut}),R[c]=T?M:C,n||T||p(O,bt,C)}}else t.exports=function(){}},function(t,e,r){var n=r(46)("meta"),o=r(7),i=r(13),a=r(10).f,u=0,s=Object.isExtensible||function(){return!0},c=!r(6)(function(){return s(Object.preventExtensions({}))}),f=function(t){a(t,n,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[n].i},p=function(t,e){if(!i(t,n)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[n].w},h=function(t){return c&&d.NEED&&s(t)&&!i(t,n)&&f(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(171),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e){t.exports=!1},function(t,e,r){var n=r(2),o=r(148),i=r(91),a=r(103)("IE_PROTO"),u=function(){},s="prototype",c=function(){var t,e=r(90)("iframe"),n=i.length,o="<",a=">";for(e.style.display="none",r(93).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),c=t.F;n--;)delete c[s][i[n]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(u[s]=n(t),r=new u,u[s]=null,r[a]=t):r=c(),void 0===e?r:o(r,e)}},function(t,e,r){var n=r(150),o=r(91).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(150),o=r(91);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,r){var n=r(16);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},function(t,e,r){"use strict";var n=r(5),o=r(10),i=r(9),a=r(8)("species");t.exports=function(t){var e=n[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(35),o=Math.max,i=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):i(t,e)}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){function n(t,e){var r=i(t,e);return o(r)?r:void 0}var o=r(453),i=r(485);t.exports=n},function(t,e,r){function n(t){var e=t?t.length:0;return e?o(t,i):[]}var o=r(166),i=1/0;t.exports=n},function(t,e,r){function n(t){return a(t)?o(t):i(t)}var o=r(439),i=r(455),a=r(64);t.exports=n},function(t,e,r){"use strict";var n=r(163),o=r(25),i=o({args:["array","scalar","index"],body:function(t,e,r){var n,o=e;for(n=0;n<r.length-1;++n)o=o[r[n]];o[r[r.length-1]]=t}});t.exports=function(t){var e=n(t.shape);return i(t,e),e}},function(t,e,r){function n(t,e){return t[0]-e[0]}function o(){var t,e=this.stride,r=new Array(e.length);for(t=0;t<r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(n);var o=new Array(r.length);for(t=0;t<o.length;++t)o[t]=r[t][1];return o}function i(t,e){var r=["View",e,"d",t].join("");e<0&&(r="View_Nil"+t);var n="generic"===t;if(e===-1){var i="function "+r+"(a){this.data=a;};var proto="+r+".prototype;proto.dtype='"+t+"';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new "+r+"(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_"+r+"(a){return new "+r+"(a);}",a=new Function(i);return a()}if(0===e){var i="function "+r+"(a,d) {this.data = a;this.offset = d};var proto="+r+".prototype;proto.dtype='"+t+"';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function "+r+"_copy() {return new "+r+"(this.data,this.offset)};proto.pick=function "+r+"_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function "+r+"_get(){return "+(n?"this.data.get(this.offset)":"this.data[this.offset]")+"};proto.set=function "+r+"_set(v){return "+(n?"this.data.set(this.offset,v)":"this.data[this.offset]=v")+"};return function construct_"+r+"(a,b,c,d){return new "+r+"(a,d)}",a=new Function("TrivialArray",i);
return a(l[t][0])}var i=["'use strict'"],u=s(e),c=u.map(function(t){return"i"+t}),f="this.offset+"+u.map(function(t){return"this.stride["+t+"]*i"+t}).join("+"),p=u.map(function(t){return"b"+t}).join(","),h=u.map(function(t){return"c"+t}).join(",");i.push("function "+r+"(a,"+p+","+h+",d){this.data=a","this.shape=["+p+"]","this.stride=["+h+"]","this.offset=d|0}","var proto="+r+".prototype","proto.dtype='"+t+"'","proto.dimension="+e),i.push("Object.defineProperty(proto,'size',{get:function "+r+"_size(){return "+u.map(function(t){return"this.shape["+t+"]"}).join("*"),"}})"),1===e?i.push("proto.order=[0]"):(i.push("Object.defineProperty(proto,'order',{get:"),e<4?(i.push("function "+r+"_order(){"),2===e?i.push("return (Math.abs(this.stride[0])>Math.abs(this.stride[1]))?[1,0]:[0,1]}})"):3===e&&i.push("var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0>s1){if(s1>s2){return [2,1,0];}else if(s0>s2){return [1,2,0];}else{return [1,0,2];}}else if(s0>s2){return [2,0,1];}else if(s2>s1){return [0,1,2];}else{return [0,2,1];}}})")):i.push("ORDER})")),i.push("proto.set=function "+r+"_set("+c.join(",")+",v){"),n?i.push("return this.data.set("+f+",v)}"):i.push("return this.data["+f+"]=v}"),i.push("proto.get=function "+r+"_get("+c.join(",")+"){"),n?i.push("return this.data.get("+f+")}"):i.push("return this.data["+f+"]}"),i.push("proto.index=function "+r+"_index(",c.join(),"){return "+f+"}"),i.push("proto.hi=function "+r+"_hi("+c.join(",")+"){return new "+r+"(this.data,"+u.map(function(t){return["(typeof i",t,"!=='number'||i",t,"<0)?this.shape[",t,"]:i",t,"|0"].join("")}).join(",")+","+u.map(function(t){return"this.stride["+t+"]"}).join(",")+",this.offset)}");var d=u.map(function(t){return"a"+t+"=this.shape["+t+"]"}),v=u.map(function(t){return"c"+t+"=this.stride["+t+"]"});i.push("proto.lo=function "+r+"_lo("+c.join(",")+"){var b=this.offset,d=0,"+d.join(",")+","+v.join(","));for(var y=0;y<e;++y)i.push("if(typeof i"+y+"==='number'&&i"+y+">=0){d=i"+y+"|0;b+=c"+y+"*d;a"+y+"-=d}");i.push("return new "+r+"(this.data,"+u.map(function(t){return"a"+t}).join(",")+","+u.map(function(t){return"c"+t}).join(",")+",b)}"),i.push("proto.step=function "+r+"_step("+c.join(",")+"){var "+u.map(function(t){return"a"+t+"=this.shape["+t+"]"}).join(",")+","+u.map(function(t){return"b"+t+"=this.stride["+t+"]"}).join(",")+",c=this.offset,d=0,ceil=Math.ceil");for(var y=0;y<e;++y)i.push("if(typeof i"+y+"==='number'){d=i"+y+"|0;if(d<0){c+=b"+y+"*(a"+y+"-1);a"+y+"=ceil(-a"+y+"/d)}else{a"+y+"=ceil(a"+y+"/d)}b"+y+"*=d}");i.push("return new "+r+"(this.data,"+u.map(function(t){return"a"+t}).join(",")+","+u.map(function(t){return"b"+t}).join(",")+",c)}");for(var g=new Array(e),b=new Array(e),y=0;y<e;++y)g[y]="a[i"+y+"]",b[y]="b[i"+y+"]";i.push("proto.transpose=function "+r+"_transpose("+c+"){"+c.map(function(t,e){return t+"=("+t+"===undefined?"+e+":"+t+"|0)"}).join(";"),"var a=this.shape,b=this.stride;return new "+r+"(this.data,"+g.join(",")+","+b.join(",")+",this.offset)}"),i.push("proto.pick=function "+r+"_pick("+c+"){var a=[],b=[],c=this.offset");for(var y=0;y<e;++y)i.push("if(typeof i"+y+"==='number'&&i"+y+">=0){c=(c+this.stride["+y+"]*i"+y+")|0}else{a.push(this.shape["+y+"]);b.push(this.stride["+y+"])}");i.push("var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}"),i.push("return function construct_"+r+"(data,shape,stride,offset){return new "+r+"(data,"+u.map(function(t){return"shape["+t+"]"}).join(",")+","+u.map(function(t){return"stride["+t+"]"}).join(",")+",offset)}");var a=new Function("CTOR_LIST","ORDER",i.join("\n"));return a(l[t],o)}function a(t){if(c(t))return"buffer";if(f)switch(Object.prototype.toString.call(t)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object Uint8ClampedArray]":return"uint8_clamped"}return Array.isArray(t)?"array":"generic"}function u(t,e,r,n){if(void 0===t){var o=l.array[0];return o([])}"number"==typeof t&&(t=[t]),void 0===e&&(e=[t.length]);var u=e.length;if(void 0===r){r=new Array(u);for(var s=u-1,c=1;s>=0;--s)r[s]=c,c*=e[s]}if(void 0===n){n=0;for(var s=0;s<u;++s)r[s]<0&&(n-=(e[s]-1)*r[s])}for(var f=a(t),p=l[f];p.length<=u+1;)p.push(i(f,p.length-1));var o=p[u+1];return o(t,e,r,n)}var s=r(428),c=r(429),f="undefined"!=typeof Float64Array,l={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],buffer:[],generic:[]};t.exports=u},function(t,e,r){var n=r(8)("unscopables"),o=Array.prototype;void 0==o[n]&&r(15)(o,n,{}),t.exports=function(t){o[n][t]=!0}},function(t,e,r){var n=r(30),o=r(144),i=r(95),a=r(2),u=r(11),s=r(112),c={},f={},e=t.exports=function(t,e,r,l,p){var h,d,v,y,g=p?function(){return t}:s(t),b=n(r,l,e?2:1),m=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=u(t.length);h>m;m++)if(y=e?b(a(d=t[m])[0],d[1]):b(t[m]),y===c||y===f)return y}else for(v=g.call(t);!(d=v.next()).done;)if(y=o(v,b,d.value,e),y===c||y===f)return y};e.BREAK=c,e.RETURN=f},function(t,e){t.exports={}},function(t,e,r){var n=r(10).f,o=r(13),i=r(8)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(0),o=r(23),i=r(6),a=r(108),u="["+a+"]",s="​…",c=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),l=function(t,e,r){var o={},u=i(function(){return!!a[t]()||s[t]()!=s}),c=o[t]=u?e(p):a[t];r&&(o[r]=c),n(n.P+n.F*u,"String",o)},p=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},function(t,e){function r(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=r},function(t,e,r){"use strict";t.exports.gemv=r(564),t.exports.gbmv=r(563),t.exports.symv=r(570),t.exports.sbmv=r(566),t.exports.spmv=r(567),t.exports.trmv=r(576),t.exports.tbmv=r(573),t.exports.trsv=r(577),t.exports.tbsv=r(574),t.exports.tpsv=r(575),t.exports.ger=r(565),t.exports.syr=r(571),t.exports.spr=r(568),t.exports.syr2=r(572),t.exports.spr2=r(569),t.exports.trmv_lower=function(e,r){return console.warn("trmv_lower is deprecated. Please use the 'isLower' flag with trmv."),t.exports.trmv(e,r,!0)},t.exports.trsv_lower=function(e,r){return console.warn("trsv_lower is deprecated. Please use the 'isLower' flag with trsv."),t.exports.trsv(e,r,!0)}},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(22),o=r(8)("toStringTag"),i="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),o))?r:i?n(e):"Object"==(u=n(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,r){var n=r(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){function n(t){if("string"==typeof t||o(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}var o=r(85),i=1/0;t.exports=n},function(t,e,r){function n(t){return null!=t&&i(t.length)&&!o(t)}var o=r(178),i=r(124);t.exports=n},function(t,e,r){function n(t){return null==t?"":o(t)}var o=r(468);t.exports=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),f=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(n)},l=r(19),p=o(l),h=r(4),d=n(h),v=r(1),y=n(v),g=r(3),b=n(g),m=r(87),_=n(m),w=r(50),x=n(w),O=r(48),j=n(O),S=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Convolution2D";var n=t.nbFilter,o=void 0===n?1:n,u=t.nbRow,s=void 0===u?3:u,c=t.nbCol,f=void 0===c?3:c,l=t.activation,h=void 0===l?"linear":l,d=t.borderMode,v=void 0===d?"valid":d,y=t.subsample,g=void 0===y?[1,1]:y,b=t.dimOrdering,m=void 0===b?"tf":b,_=t.bias,w=void 0===_||_;if(r.kernelShape=[o,s,f],r.activation=p[h],"valid"!==v&&"same"!==v)throw new Error(r.name+" [Convolution2D layer] Invalid borderMode.");if(r.borderMode=v,r.subsample=g,"tf"!==m&&"th"!==m)throw new Error(r.name+" [Convolution2D layer] Only tf and th dim ordering are allowed.");return r.dimOrdering=m,r.bias=w,r.params=r.bias?["W","b"]:["W"],r}return u(e,t),c(e,[{key:"setWeights",value:function(t){"th"===this.dimOrdering&&(t[0].tensor=t[0].tensor.transpose(2,3,1,0)),f(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setWeights",this).call(this,t)}},{key:"_calcOutputShape",value:function(t){var e=t.tensor.shape[0],r=t.tensor.shape[1],n=s(this.kernelShape,3),o=n[0],i=n[1],a=n[2],u="same"===this.borderMode?Math.floor((e+this.subsample[0]-1)/this.subsample[0]):Math.floor((e-i+this.subsample[0])/this.subsample[0]),c="same"===this.borderMode?Math.floor((r+this.subsample[1]-1)/this.subsample[1]):Math.floor((r-a+this.subsample[1])/this.subsample[1]),f=o,l="same"===this.borderMode?Math.max(0,Math.floor((u-1)*this.subsample[0]+i-e)):0,p="same"===this.borderMode?Math.max(0,Math.floor((c-1)*this.subsample[1]+a-r)):0,h=Math.floor(l/2),d=l-h,v=Math.floor(p/2),y=p-v;this.outputShape=[u,c,f],this.inputPadding=[h,d,v,y]}},{key:"_padInput",value:function(t){if("same"===this.borderMode){var e=s(t.tensor.shape,3),r=e[0],n=e[1],o=e[2],i=s(this.inputPadding,4),a=i[0],u=i[1],c=i[2],f=i[3],l=r+a+u,p=n+c+f,h=new d.default([],[l,p,o]);b.default.assign(h.tensor.hi(r+a,n+c,o).lo(a,c,0),t.tensor),t.tensor=h.tensor}return t}},{key:"_im2col",value:function(t){for(var e=s(t.tensor.shape,3),r=e[0],n=e[1],o=e[2],i=this.kernelShape[1],a=this.kernelShape[2],u=this.outputShape[0],c=this.outputShape[1],f=u*c,l=i*a*o,p=new d.default([],[f,l]),h=new d.default([],[l]),v=0,y=0,g=r-i;y<=g;y+=this.subsample[0])for(var m=0,_=n-a;m<=_;m+=this.subsample[1]){var w=(0,j.default)((0,x.default)(t.tensor.hi(y+i,m+a,o).lo(y,m,0)));h.replaceTensorData(w),b.default.assign(p.tensor.pick(v,null),h.tensor),v+=1}return p}},{key:"_w2row",value:function(t){for(var e=t.tensor.shape[2],r=s(this.kernelShape,3),n=r[0],o=r[1],i=r[2],a=o*i*e,u=new d.default([],[a,n]),c=new d.default([],[a]),f=0;f<n;f++){var l=(0,j.default)((0,x.default)(this.weights.W.tensor.pick(null,null,null,f)));c.replaceTensorData(l),b.default.assign(u.tensor.pick(null,f),c.tensor)}return u}},{key:"call",value:function(t){"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(1,2,0)),this._calcOutputShape(t),this._padInput(t);var e=this._im2col(t),r=this._w2row(t),n=this.kernelShape[0],o=this.outputShape[0],i=this.outputShape[1],a=o*i,u=new d.default([],[a,n]);if(this.bias)for(var s=0;s<n;s++)b.default.assigns(u.tensor.pick(null,s),this.weights.b.tensor.get(s));if(t._useWeblas){var c=this.bias?this.weights.b.tensor.data:new Float32Array(r.tensor.shape[1]);u.tensor.data=weblas.sgemm(e.tensor.shape[0],r.tensor.shape[1],e.tensor.shape[1],1,e.tensor.data,r.tensor.data,1,c)}else(0,_.default)(u.tensor,e.tensor,r.tensor,1,1);for(var f=new d.default([],this.outputShape),l=new d.default([],[o,i]),p=0;p<n;p++){var h=(0,j.default)((0,x.default)(u.tensor.pick(null,p)));l.replaceTensorData(h),b.default.assign(f.tensor.pick(null,null,p),l.tensor)}return t.tensor=f.tensor,this.activation(t),"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(2,0,1)),t}}]),e}(y.default);e.default=S},function(t,e,r){var n=r(18),o=r(11),i=r(45);t.exports=function(t){return function(e,r,a){var u,s=n(e),c=o(s.length),f=i(a,c);if(t&&r!=r){for(;c>f;)if(u=s[f++],u!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===r)return t||f||0;return!t&&-1}}},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(16),a=r(43),u=r(33),s=r(53),c=r(38),f=r(7),l=r(6),p=r(73),h=r(55),d=r(94);t.exports=function(t,e,r,v,y,g){var b=n[t],m=b,_=y?"set":"add",w=m&&m.prototype,x={},O=function(t){var e=w[t];i(w,t,"delete"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,r){return e.call(this,0===t?0:t,r),this})};if("function"==typeof m&&(g||w.forEach&&!l(function(){(new m).entries().next()}))){var j=new m,S=j[_](g?{}:-0,1)!=j,E=l(function(){j.has(1)}),P=p(function(t){new m(t)}),k=!g&&l(function(){for(var t=new m,e=5;e--;)t[_](e,e);return!t.has(-0)});P||(m=e(function(e,r){c(e,m,t);var n=d(new b,e,m);return void 0!=r&&s(r,y,n[_],n),n}),m.prototype=w,w.constructor=m),(E||k)&&(O("delete"),O("has"),y&&O("get")),(k||S)&&O(_),g&&w.clear&&delete w.clear}else m=v.getConstructor(e,t,y,_),a(m.prototype,r),u.NEED=!0;return h(m,t),x[t]=m,o(o.G+o.W+o.F*(m!=b),x),g||v.setStrong(m,t,y),m}},function(t,e,r){"use strict";var n=r(15),o=r(16),i=r(6),a=r(23),u=r(8);t.exports=function(t,e,r){var s=u(t),c=r(a,s,""[t]),f=c[0],l=c[1];i(function(){var e={};return e[s]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,f),n(RegExp.prototype,s,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},function(t,e,r){"use strict";var n=r(2);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(7),o=r(22),i=r(8)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,r){var n=r(8)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:r=!0}},i[n]=function(){return a},t(i)}catch(t){}return r}},function(t,e,r){t.exports=r(39)||!r(6)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete r(5)[t]})},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(5),o="__core-js_shared__",i=n[o]||(n[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,r){for(var n,o=r(5),i=r(15),a=r(46),u=a("typed_array"),s=a("view"),c=!(!o.ArrayBuffer||!o.DataView),f=c,l=0,p=9,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<p;)(n=o[h[l++]])?(i(n.prototype,u,!0),i(n.prototype,s,!0)):f=!1;t.exports={ABV:c,CONSTR:f,TYPED:u,VIEW:s}},function(t,e,r){function n(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(498),i=r(499),a=r(500),u=r(501),s=r(502);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=a,n.prototype.has=u,n.prototype.set=s,t.exports=n},function(t,e,r){function n(t,e){for(var r=t.length;r--;)if(o(t[r][0],e))return r;return-1}var o=r(120);t.exports=n},function(t,e,r){function n(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?u(t)?i(t[0],t[1]):o(t):s(t)}var o=r(456),i=r(457),a=r(121),u=r(37),s=r(545);t.exports=n},function(t,e,r){function n(t,e){var r=t.__data__;return o(e)?r["string"==typeof e?"string":"hash"]:r.map}var o=r(495);t.exports=n},function(t,e,r){function n(t,e){if(o(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||(u.test(t)||!a.test(t)||null!=e&&t in Object(e))}var o=r(37),i=r(85),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=n},function(t,e,r){var n=r(47),o=n(Object,"create");t.exports=o},function(t,e){function r(t){return null!=t&&"object"==typeof t}t.exports=r},function(t,e,r){function n(t){return"symbol"==typeof t||o(t)&&u.call(t)==i}var o=r(84),i="[object Symbol]",a=Object.prototype,u=a.toString;t.exports=n},function(t,e,r){"use strict";t.exports.swap=r(562),t.exports.scal=r(561),t.exports.copy=r(555),t.exports.axpy=r(554),t.exports.dot=r(557),t.exports.cpsc=r(556),t.exports.nrm2=r(559),t.exports.asum=r(553),t.exports.iamax=r(558),t.exports.rotg=r(560)},function(t,e,r){"use strict";function n(t){return Array.isArray(t)?[t.length,t[0].length]:t.shape}function o(t,e,r){var o=n(t),i=n(e),a=n(r);if(o[0]!==i[0]||o[1]!==a[1]||i[1]!==a[0])throw new Error("Mismatched array shapes for matrix product")}function i(t){if(Array.isArray(t)){if(Array.isArray(t))return["r","native"]}else if(t.shape&&2===t.shape.length)return t.order[0]?["r",t.dtype]:["c",t.dtype];throw new Error("Unrecognized data type")}function a(t,e,r,n,a){void 0===n&&(n=1),void 0===a&&(a=0);var c=1!==n,f=0!==a,l=i(t),p=i(e),h=i(r);o(t,e,r);var d=[l,p,h,c,f].join(":"),v=s[d];return v||(v=s[d]=u(l,p,h,c,f)),v(t,e,r,n,a)}t.exports=a;var u=r(579),s={}},function(t,e,r){"use strict";var n=r(12),o=r(45),i=r(11);t.exports=function(t){for(var e=n(this),r=i(e.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,r),s=a>2?arguments[2]:void 0,c=void 0===s?r:o(s,r);c>u;)e[u++]=t;return e}},function(t,e,r){"use strict";var n=r(10),o=r(34);t.exports=function(t,e,r){e in t?n.f(t,e,o(0,r)):t[e]=r}},function(t,e,r){var n=r(7),o=r(5).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(8)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,r){t.exports=r(5).document&&document.documentElement},function(t,e,r){var n=r(7),o=r(102).set;t.exports=function(t,e,r){var i,a=e.constructor;return a!==r&&"function"==typeof a&&(i=a.prototype)!==r.prototype&&n(i)&&o&&o(t,i),t}},function(t,e,r){var n=r(54),o=r(8)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},function(t,e,r){var n=r(22);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){"use strict";var n=r(40),o=r(34),i=r(55),a={};r(15)(a,r(8)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(a,{next:o(1,r)}),i(t,e+" Iterator")}},function(t,e,r){"use strict";var n=r(39),o=r(0),i=r(16),a=r(15),u=r(13),s=r(54),c=r(97),f=r(55),l=r(21),p=r(8)("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",y="values",g=function(){return this};t.exports=function(t,e,r,b,m,_,w){c(r,e,b);var x,O,j,S=function(t){if(!h&&t in A)return A[t];switch(t){case v:return function(){return new r(this,t)};case y:return function(){return new r(this,t)}}return function(){return new r(this,t)}},E=e+" Iterator",P=m==y,k=!1,A=t.prototype,M=A[p]||A[d]||m&&A[m],T=M||S(m),C=m?P?S("entries"):T:void 0,I="Array"==e?A.entries||M:M;if(I&&(j=l(I.call(new t)),j!==Object.prototype&&(f(j,E,!0),n||u(j,p)||a(j,p,g))),P&&M&&M.name!==y&&(k=!0,T=function(){return M.call(this)}),n&&!w||!h&&!k&&A[p]||a(A,p,T),s[e]=T,s[E]=g,m)if(x={values:P?T:S(y),keys:_?T:S(v),entries:C},w)for(O in x)O in A||i(A,O,x[O]);else o(o.P+o.F*(h||k),e,x);return x}},function(t,e){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,r){var n=r(5),o=r(109).set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,s="process"==r(22)(a);t.exports=function(){var t,e,r,c=function(){var n,o;for(s&&(n=a.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(s)r=function(){a.nextTick(c)};else if(i){var f=!0,l=document.createTextNode("");new i(c).observe(l,{characterData:!0}),r=function(){l.data=f=!f}}else if(u&&u.resolve){var p=u.resolve();r=function(){p.then(c)}}else r=function(){o.call(n,c)};return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},function(t,e,r){var n=r(7),o=r(2),i=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=r(30)(Function.call,r(20).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return i(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:i}},function(t,e,r){var n=r(76)("keys"),o=r(46);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e,r){var n=r(2),o=r(14),i=r(8)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[i])?e:o(r)}},function(t,e,r){var n=r(35),o=r(23);t.exports=function(t){return function(e,r){var i,a,u=String(o(e)),s=n(r),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e,r){var n=r(72),o=r(23);t.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(t))}},function(t,e,r){"use strict";var n=r(35),o=r(23);t.exports=function(t){var e=String(o(this)),r="",i=n(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(r+=e);return r}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,r){var n,o,i,a=r(30),u=r(71),s=r(93),c=r(90),f=r(5),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=0,y={},g="onreadystatechange",b=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},m=function(t){b.call(t.data)};p&&h||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return y[++v]=function(){u("function"==typeof t?t:Function(t),e)},n(v),v},h=function(t){delete y[t]},"process"==r(22)(l)?n=function(t){l.nextTick(a(b,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=m,n=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(n=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):n=g in c("script")?function(t){s.appendChild(c("script"))[g]=function(){s.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,r){"use strict";var n=r(5),o=r(9),i=r(39),a=r(77),u=r(15),s=r(43),c=r(6),f=r(38),l=r(35),p=r(11),h=r(41).f,d=r(10).f,v=r(88),y=r(55),g="ArrayBuffer",b="DataView",m="prototype",_="Wrong length!",w="Wrong index!",x=n[g],O=n[b],j=n.Math,S=n.RangeError,E=n.Infinity,P=x,k=j.abs,A=j.pow,M=j.floor,T=j.log,C=j.LN2,I="buffer",R="byteLength",D="byteOffset",L=o?"_b":I,F=o?"_l":R,N=o?"_o":D,U=function(t,e,r){var n,o,i,a=Array(r),u=8*r-e-1,s=(1<<u)-1,c=s>>1,f=23===e?A(2,-24)-A(2,-77):0,l=0,p=t<0||0===t&&1/t<0?1:0;for(t=k(t),t!=t||t===E?(o=t!=t?1:0,n=s):(n=M(T(t)/C),t*(i=A(2,-n))<1&&(n--,i*=2),t+=n+c>=1?f/i:f*A(2,1-c),t*i>=2&&(n++,i/=2),n+c>=s?(o=0,n=s):n+c>=1?(o=(t*i-1)*A(2,e),n+=c):(o=t*A(2,c-1)*A(2,e),n=0));e>=8;a[l++]=255&o,o/=256,e-=8);for(n=n<<e|o,u+=e;u>0;a[l++]=255&n,n/=256,u-=8);return a[--l]|=128*p,a},B=function(t,e,r){var n,o=8*r-e-1,i=(1<<o)-1,a=i>>1,u=o-7,s=r-1,c=t[s--],f=127&c;for(c>>=7;u>0;f=256*f+t[s],s--,u-=8);for(n=f&(1<<-u)-1,f>>=-u,u+=e;u>0;n=256*n+t[s],s--,u-=8);if(0===f)f=1-a;else{if(f===i)return n?NaN:c?-E:E;n+=A(2,e),f-=a}return(c?-1:1)*n*A(2,f-e)},V=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},W=function(t){return[255&t]},z=function(t){return[255&t,t>>8&255]},q=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},G=function(t){return U(t,52,8)},Y=function(t){return U(t,23,4)},H=function(t,e,r){d(t[m],e,{get:function(){return this[r]}})},K=function(t,e,r,n){var o=+r,i=l(o);if(o!=i||i<0||i+e>t[F])throw S(w);var a=t[L]._b,u=i+t[N],s=a.slice(u,u+e);return n?s:s.reverse()},$=function(t,e,r,n,o,i){var a=+r,u=l(a);if(a!=u||u<0||u+e>t[F])throw S(w);for(var s=t[L]._b,c=u+t[N],f=n(+o),p=0;p<e;p++)s[c+p]=f[i?p:e-p-1]},Z=function(t,e){f(t,x,g);var r=+e,n=p(r);if(r!=n)throw S(_);return n};if(a.ABV){if(!c(function(){new x})||!c(function(){new x(.5)})){x=function(t){return new P(Z(this,t))};for(var J,X=x[m]=P[m],Q=h(P),tt=0;Q.length>tt;)(J=Q[tt++])in x||u(x,J,P[J]);i||(X.constructor=x)}var et=new O(new x(2)),rt=O[m].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||s(O[m],{setInt8:function(t,e){rt.call(this,t,e<<24>>24)},setUint8:function(t,e){rt.call(this,t,e<<24>>24)}},!0)}else x=function(t){var e=Z(this,t);this._b=v.call(Array(e),0),this[F]=e},O=function(t,e,r){f(this,O,b),f(t,x,b);var n=t[F],o=l(e);if(o<0||o>n)throw S("Wrong offset!");if(r=void 0===r?n-o:p(r),o+r>n)throw S(_);this[L]=t,this[N]=o,this[F]=r},o&&(H(x,R,"_l"),H(O,I,"_b"),H(O,R,"_l"),H(O,D,"_o")),s(O[m],{getInt8:function(t){return K(this,1,t)[0]<<24>>24},getUint8:function(t){return K(this,1,t)[0]},getInt16:function(t){var e=K(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=K(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return V(K(this,4,t,arguments[1]))},getUint32:function(t){return V(K(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return B(K(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return B(K(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){$(this,1,t,W,e)},setUint8:function(t,e){$(this,1,t,W,e)},setInt16:function(t,e){$(this,2,t,z,e,arguments[2])},setUint16:function(t,e){$(this,2,t,z,e,arguments[2])},setInt32:function(t,e){$(this,4,t,q,e,arguments[2])},setUint32:function(t,e){$(this,4,t,q,e,arguments[2])},setFloat32:function(t,e){$(this,4,t,Y,e,arguments[2])},setFloat64:function(t,e){$(this,8,t,G,e,arguments[2])}});y(x,g),y(O,b),u(O[m],a.VIEW,!0),e[g]=x,e[b]=O},function(t,e,r){var n=r(5),o=r(29),i=r(39),a=r(157),u=r(10).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,r){var n=r(60),o=r(8)("iterator"),i=r(54);t.exports=r(29).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},function(t,e,r){"use strict";var n=r(52),o=r(145),i=r(54),a=r(18);t.exports=r(98)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e,r){var n=r(47),o=r(36),i=n(o,"Map");t.exports=i},function(t,e,r){function n(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(503),i=r(504),a=r(505),u=r(506),s=r(507);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=a,n.prototype.has=u,n.prototype.set=s,t.exports=n},function(t,e,r){var n=r(36),o=n.Symbol;t.exports=o},function(t,e){function r(t,e){for(var r=-1,n=t?t.length:0,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}t.exports=r},function(t,e,r){function n(t,e,r,u,s){return t===e||(null==t||null==e||!i(t)&&!a(e)?t!==t&&e!==e:o(t,e,n,r,u,s))}var o=r(451),i=r(57),a=r(84);t.exports=n},function(t,e){function r(t,e){return e=null==e?n:e,!!e&&("number"==typeof t||o.test(t))&&t>-1&&t%1==0&&t<e}var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=r},function(t,e){function r(t,e){return t===e||t!==t&&e!==e}t.exports=r},function(t,e){function r(t){return t}t.exports=r},function(t,e,r){function n(t){return o(t)&&u.call(t,"callee")&&(!c.call(t,"callee")||s.call(t)==i)}var o=r(539),i="[object Arguments]",a=Object.prototype,u=a.hasOwnProperty,s=a.toString,c=a.propertyIsEnumerable;t.exports=n},function(t,e,r){function n(t,e){return o(t,e)}var o=r(118);t.exports=n},function(t,e){function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}var n=9007199254740991;t.exports=r},function(t,e,r){"use strict";function n(t,e){var r,n=[],i=[];if(void 0!==e&&!Array.isArray(e))throw new Error("axes must be an Array list of dimensions to squeeze");for(r=0;r<t.shape.length;r++)(1!==t.shape[r]||void 0!==e&&e.indexOf(r)===-1)&&(n.push(t.shape[r]),i.push(t.stride[r]));return o(t.data,n,i,t.offset)}var o=r(51);t.exports=n},function(t,e,r){"use strict";function n(t,e){var r,n;if(void 0!==e&&(!Number.isFinite(e)||e%1!==e))throw new Error("axis of dimension to unsqueeze must be an integer");return e=void 0===e?t.shape.length:e,r=t.shape.slice(0),n=t.stride.slice(0),r.splice(e||0,0,1),n.splice(e||0,0,(n[e]||1)*(r[e+1]||1)),o(t.data,r,n,t.offset)}var o=r(51);t.exports=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,configurable:!1,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,configurable:!1,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(192);Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var o=r(217);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var i=r(204);Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})});var a=r(232);Object.keys(a).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})});var u=r(221);Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})});var s=r(219);Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})});var c=r(132);Object.keys(c).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})});var f=r(238);Object.keys(f).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}})})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");
}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(4),l=n(f),p=r(3),h=n(p),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="_Pooling1D";var n=t.poolLength,a=void 0===n?2:n,u=t.stride,s=void 0===u?null:u,c=t.borderMode,f=void 0===c?"valid":c;return r.poolLength=a,r.stride=null===s?a:s,r.borderMode=f,r.poolingFunc="max",r}return a(e,t),u(e,[{key:"call",value:function(t){if("max"!==this.poolingFunc&&"average"!==this.poolingFunc)throw new Error("[pooling._Pooling1D] pooling function must be max or average.");for(var e="valid"===this.borderMode?Math.floor((t.tensor.shape[0]-this.poolLength+this.stride)/this.stride):Math.floor((t.tensor.shape[0]+this.stride-1)/this.stride),r=new l.default([],[e,t.tensor.shape[1]]),n=new l.default([],[t.tensor.shape[1]]),o="valid"===this.borderMode?0:Math.min(0,Math.ceil((t.tensor.shape[0]-(e-1)*this.stride-this.poolLength)/2)),i=0;i<e;i++){var a=Math.max(0,o),u=this.poolLength+Math.min(0,o);h.default.assign(n.tensor,t.tensor.pick(a,null));for(var s=1,c=1;c<u&&!(a+c>t.tensor.shape[0]-1);c++)"max"===this.poolingFunc?h.default.maxeq(n.tensor,t.tensor.pick(a+c,null)):"average"===this.poolingFunc&&h.default.addeq(n.tensor,t.tensor.pick(a+c,null)),s+=1;"average"===this.poolingFunc&&h.default.divseq(n.tensor,s),h.default.assign(r.tensor.pick(i,null),n.tensor),o+=this.stride}return t.tensor=r.tensor,t}}]),e}(c.default);e.default=d},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(1),f=n(c),l=r(4),p=n(l),h=r(3),d=n(h),v=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="_Pooling2D";var n=t.poolSize,a=void 0===n?[2,2]:n,u=t.strides,s=void 0===u?null:u,c=t.borderMode,f=void 0===c?"valid":c,l=t.dimOrdering,p=void 0===l?"tf":l;return r.poolSize=a,r.strides=null===s?a:s,r.borderMode=f,r.dimOrdering=p,r.poolingFunc="max",r}return a(e,t),s(e,[{key:"_calcOutputShape",value:function(t){var e=u(t.tensor.shape,3),r=e[0],n=e[1],o=e[2],i=u(this.poolSize,2),a=i[0],s=i[1],c="same"===this.borderMode?Math.floor((r+this.strides[0]-1)/this.strides[0]):Math.floor((r-a+this.strides[0])/this.strides[0]),f="same"===this.borderMode?Math.floor((n+this.strides[1]-1)/this.strides[1]):Math.floor((n-s+this.strides[1])/this.strides[1]),l="same"===this.borderMode?Math.max(0,Math.floor((c-1)*this.strides[0]+a-r)):0,p="same"===this.borderMode?Math.max(0,Math.floor((f-1)*this.strides[1]+s-n)):0,h=Math.floor(l/2),d=l-h,v=Math.floor(p/2),y=p-v;this.outputShape=[c,f,o],this.inputPadding=[h,d,v,y]}},{key:"_padInput",value:function(t){if("same"===this.borderMode){var e=u(t.tensor.shape,3),r=e[0],n=e[1],o=e[2],i=u(this.inputPadding,4),a=i[0],s=i[1],c=i[2],f=i[3],l=r+a+s,h=n+c+f,v=new p.default([],[l,h,o]);"max"===this.poolingFunc&&d.default.assigns(v.tensor,Number.NEGATIVE_INFINITY),d.default.assign(v.tensor.hi(r+a,n+c,o).lo(a,c,0),t.tensor),t.tensor=v.tensor}return t}},{key:"call",value:function(t){if("max"!==this.poolingFunc&&"average"!==this.poolingFunc)throw new Error("[pooling._Pooling2D] pooling function must be max or average.");"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(1,2,0)),this._calcOutputShape(t),this._padInput(t);for(var e=u(t.tensor.shape,3),r=e[0],n=e[1],o=e[2],i=u(this.poolSize,2),a=i[0],s=i[1],c=new p.default([],this.outputShape),f=new p.default([],[a,s,o]),l=u(this.inputPadding,4),h=l[0],v=l[1],y=l[2],g=l[3],b=0,m=0;b<=r-a;b+=this.strides[0],m++){var _=0;b<h?_=h-b:b+a>r-v&&(_=b+a-(r-v));for(var w=0,x=0;w<=n-s;w+=this.strides[1],x++){var O=0;w<y?O=y-w:w+s>n-g&&(O=w+s-(n-g)),d.default.assign(f.tensor,t.tensor.hi(b+a,w+s,o).lo(b,w,0));for(var j=0;j<o;j++)if("max"===this.poolingFunc)c.tensor.set(m,x,j,d.default.sup(f.tensor.pick(null,null,j)));else if("average"===this.poolingFunc){var S=(a-_)*(s-O);c.tensor.set(m,x,j,d.default.sum(f.tensor.pick(null,null,j))/S)}}}return t.tensor=c.tensor,"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(2,0,1)),t}}]),e}(f.default);e.default=v},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(1),f=n(c),l=r(4),p=n(l),h=r(3),d=n(h),v=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="_Pooling3D";var n=t.poolSize,a=void 0===n?[2,2,2]:n,u=t.strides,s=void 0===u?null:u,c=t.borderMode,f=void 0===c?"valid":c,l=t.dimOrdering,p=void 0===l?"tf":l;return r.poolSize=a,r.strides=null===s?a:s,r.borderMode=f,r.dimOrdering=p,r.poolingFunc="max",r}return a(e,t),s(e,[{key:"_calcOutputShape",value:function(t){var e=u(t.tensor.shape,4),r=e[0],n=e[1],o=e[2],i=e[3],a=u(this.poolSize,3),s=a[0],c=a[1],f=a[2],l="same"===this.borderMode?Math.floor((r+this.strides[0]-1)/this.strides[0]):Math.floor((r-s+this.strides[0])/this.strides[0]),p="same"===this.borderMode?Math.floor((n+this.strides[1]-1)/this.strides[1]):Math.floor((n-c+this.strides[1])/this.strides[1]),h="same"===this.borderMode?Math.floor((o+this.strides[2]-1)/this.strides[2]):Math.floor((o-f+this.strides[2])/this.strides[2]),d="same"===this.borderMode?Math.max(0,Math.floor((l-1)*this.strides[0]+s-r)):0,v="same"===this.borderMode?Math.max(0,Math.floor((p-1)*this.strides[1]+c-n)):0,y="same"===this.borderMode?Math.max(0,Math.floor((h-1)*this.strides[2]+f-o)):0,g=Math.floor(d/2),b=d-g,m=Math.floor(v/2),_=v-m,w=Math.floor(y/2),x=y-w;this.outputShape=[l,p,h,i],this.inputPadding=[g,b,m,_,w,x]}},{key:"_padInput",value:function(t){if("same"===this.borderMode){var e=u(t.tensor.shape,4),r=e[0],n=e[1],o=e[2],i=e[3],a=u(this.inputPadding,6),s=a[0],c=a[1],f=a[2],l=a[3],h=a[4],v=a[5],y=r+s+c,g=n+f+l,b=o+h+v,m=new p.default([],[y,g,b,i]);"max"===this.poolingFunc&&d.default.assigns(m.tensor,Number.NEGATIVE_INFINITY),d.default.assign(m.tensor.hi(r+s,n+f,o+h,i).lo(s,f,h,0),t.tensor),t.tensor=m.tensor}return t}},{key:"call",value:function(t){if("max"!==this.poolingFunc&&"average"!==this.poolingFunc)throw new Error("[pooling._Pooling3D] pooling function must be max or average.");"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(1,2,3,0)),this._calcOutputShape(t),this._padInput(t);for(var e=u(t.tensor.shape,4),r=e[0],n=e[1],o=e[2],i=e[3],a=u(this.poolSize,3),s=a[0],c=a[1],f=a[2],l=new p.default([],this.outputShape),h=new p.default([],[s,c,f,i]),v=u(this.inputPadding,6),y=v[0],g=v[1],b=v[2],m=v[3],_=v[4],w=v[5],x=0,O=0;x<=r-s;x+=this.strides[0],O++){var j=0;x<y?j=y-x:x+s>r-g&&(j=x+s-(r-g));for(var S=0,E=0;S<=n-c;S+=this.strides[1],E++){var P=0;S<b?P=b-S:S+c>n-m&&(P=S+c-(n-m));for(var k=0,A=0;k<=o-f;k+=this.strides[2],A++){var M=0;k<_?M=_-k:k+f>o-w&&(M=k+f-(o-w)),d.default.assign(h.tensor,t.tensor.hi(x+s,S+c,k+f,i).lo(x,S,k,0));for(var T=0;T<i;T++)if("max"===this.poolingFunc)l.tensor.set(O,E,A,T,d.default.sup(h.tensor.pick(null,null,null,T)));else if("average"===this.poolingFunc){var C=(s-j)*(c-P)*(f-M);l.tensor.set(O,E,A,T,d.default.sum(h.tensor.pick(null,null,null,T))/C)}}}}return t.tensor=l.tensor,"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(3,0,1,2)),t}}]),e}(f.default);e.default=v},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GRU=e.LSTM=e.SimpleRNN=void 0;var o=r(235),i=n(o),a=r(234),u=n(a),s=r(233),c=n(s);e.SimpleRNN=i.default,e.LSTM=u.default,e.GRU=c.default},function(t,e,r){"use strict";(function(t,n){function o(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function i(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,r){if(i()<r)throw new RangeError("Invalid typed array length");return t.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(r),e.__proto__=t.prototype):(null===e&&(e=new t(r)),e.length=r),e}function t(e,r,n){if(!(t.TYPED_ARRAY_SUPPORT||this instanceof t))return new t(e,r,n);if("number"==typeof e){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,r,n)}function u(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,r,n):"string"==typeof e?l(t,e,r):d(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e,r,n){return s(e),e<=0?a(t,e):void 0!==r?"string"==typeof n?a(t,e).fill(r,n):a(t,e).fill(r):a(t,e)}function f(e,r){if(s(r),e=a(e,r<0?0:0|v(r)),!t.TYPED_ARRAY_SUPPORT)for(var n=0;n<r;++n)e[n]=0;return e}function l(e,r,n){if("string"==typeof n&&""!==n||(n="utf8"),!t.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|g(r,n);e=a(e,o);var i=e.write(r,n);return i!==o&&(e=e.slice(0,i)),e}function p(t,e){var r=e.length<0?0:0|v(e.length);t=a(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function h(e,r,n,o){if(r.byteLength,n<0||r.byteLength<n)throw new RangeError("'offset' is out of bounds");if(r.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");return r=void 0===n&&void 0===o?new Uint8Array(r):void 0===o?new Uint8Array(r,n):new Uint8Array(r,n,o),t.TYPED_ARRAY_SUPPORT?(e=r,e.__proto__=t.prototype):e=p(e,r),e}function d(e,r){if(t.isBuffer(r)){var n=0|v(r.length);return e=a(e,n),0===e.length?e:(r.copy(e,0,0,n),e)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||Z(r.length)?a(e,0):p(e,r);if("Buffer"===r.type&&Q(r.data))return p(e,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function y(e){return+e!=e&&(e=0),t.alloc(+e)}function g(e,r){if(t.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(e).length;default:if(o)return G(e).length;r=(""+r).toLowerCase(),o=!0}}function b(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return T(this,e,r);case"latin1":case"binary":return C(this,e,r);case"base64":return k(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function _(e,r,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof r&&(r=t.from(r,o)),t.isBuffer(r))return 0===r.length?-1:w(e,r,n,o,i);if("number"==typeof r)return r=255&r,t.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,r,n):Uint8Array.prototype.lastIndexOf.call(e,r,n):w(e,[r],n,o,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,o){function i(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,u=t.length,s=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,u/=2,s/=2,r/=2}var c;if(o){var f=-1;for(c=r;c<u;c++)if(i(t,c)===i(e,f===-1?0:c-f)){if(f===-1&&(f=c),c-f+1===s)return f*a}else f!==-1&&(c-=c-f),f=-1}else for(r+s>u&&(r=u-s),c=r;c>=0;c--){for(var l=!0,p=0;p<s;p++)if(i(t,c+p)!==i(e,p)){l=!1;break}if(l)return c}return-1}function x(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var u=parseInt(e.substr(2*a,2),16);if(isNaN(u))return a;t[r+a]=u}return a}function O(t,e,r,n){return $(G(e,t.length-r),t,r,n)}function j(t,e,r,n){return $(Y(e),t,r,n)}function S(t,e,r,n){return j(t,e,r,n)}function E(t,e,r,n){return $(K(e),t,r,n)}function P(t,e,r,n){return $(H(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],a=null,u=i>239?4:i>223?3:i>191?2:1;if(o+u<=r){var s,c,f,l;switch(u){case 1:i<128&&(a=i);break;case 2:s=t[o+1],128===(192&s)&&(l=(31&i)<<6|63&s,l>127&&(a=l));break;case 3:s=t[o+1],c=t[o+2],128===(192&s)&&128===(192&c)&&(l=(15&i)<<12|(63&s)<<6|63&c,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:s=t[o+1],c=t[o+2],f=t[o+3],128===(192&s)&&128===(192&c)&&128===(192&f)&&(l=(15&i)<<18|(63&s)<<12|(63&c)<<6|63&f,l>65535&&l<1114112&&(a=l))}}null===a?(a=65533,u=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=u}return M(n)}function M(t){var e=t.length;if(e<=tt)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=tt));return r}function T(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function C(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function I(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=q(t[i]);return o}function R(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function D(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function L(e,r,n,o,i,a){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function F(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function N(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function U(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function B(t,e,r,n,o){return o||U(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(t,e,r,n,23,4),r+4}function V(t,e,r,n,o){return o||U(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(t,e,r,n,52,8),r+8}function W(t){if(t=z(t).replace(et,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function q(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Y(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function H(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function K(t){return J.toByteArray(W(t))}function $(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function Z(t){return t!==t}var J=r(239),X=r(427),Q=r(241);e.Buffer=t,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=i(),t.poolSize=8192,t._augment=function(e){return e.__proto__=t.prototype,e},t.from=function(t,e,r){return u(null,t,e,r)},t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0})),t.alloc=function(t,e,r){return c(null,t,e,r)},t.allocUnsafe=function(t){return f(null,t)},t.allocUnsafeSlow=function(t){return f(null,t)},t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,r){if(!t.isBuffer(e)||!t.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,o=r.length,i=0,a=Math.min(n,o);i<a;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,r){if(!Q(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return t.alloc(0);var n;if(void 0===r)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var o=t.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!t.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,i),i+=a.length}return o},t.byteLength=g,t.prototype._isBuffer=!0,t.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},t.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},t.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},t.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):b.apply(this,arguments)},t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===t.compare(this,e)},t.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},t.prototype.compare=function(e,r,n,o,i){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var a=i-o,u=n-r,s=Math.min(a,u),c=this.slice(o,i),f=e.slice(r,n),l=0;l<s;++l)if(c[l]!==f[l]){a=c[l],u=f[l];break}return a<u?-1:u<a?1:0},t.prototype.includes=function(t,e,r){return this.indexOf(t,e,r)!==-1},t.prototype.indexOf=function(t,e,r){return _(this,t,e,r,!0)},t.prototype.lastIndexOf=function(t,e,r){return _(this,t,e,r,!1)},t.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e=0|e,isFinite(r)?(r=0|r,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return x(this,t,e,r);case"utf8":case"utf-8":return O(this,t,e,r);case"ascii":return j(this,t,e,r);case"latin1":case"binary":return S(this,t,e,r);case"base64":return E(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;t.prototype.slice=function(e,r){var n=this.length;e=~~e,r=void 0===r?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);var o;if(t.TYPED_ARRAY_SUPPORT)o=this.subarray(e,r),o.__proto__=t.prototype;else{var i=r-e;o=new t(i,void 0);for(var a=0;a<i;++a)o[a]=this[a+e]}return o},t.prototype.readUIntLE=function(t,e,r){t=0|t,e=0|e,r||D(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},t.prototype.readUIntBE=function(t,e,r){t=0|t,e=0|e,r||D(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},t.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,r){t=0|t,e=0|e,r||D(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},t.prototype.readIntBE=function(t,e,r){t=0|t,e=0|e,r||D(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},t.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},t.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),X.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),X.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),X.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),X.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e=0|e,r=0|r,!n){var o=Math.pow(2,8*r)-1;L(this,t,e,r,o,0)}var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},t.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e=0|e,r=0|r,!n){var o=Math.pow(2,8*r)-1;L(this,t,e,r,o,0)}var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},t.prototype.writeUInt8=function(e,r,n){return e=+e,r=0|r,n||L(this,e,r,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=255&e,r+1},t.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=0|r,n||L(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):F(this,e,r,!0),r+2},t.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=0|r,n||L(this,e,r,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):F(this,e,r,!1),r+2},t.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=0|r,n||L(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=255&e):N(this,e,r,!0),r+4},t.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=0|r,n||L(this,e,r,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):N(this,e,r,!1),r+4},t.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e=0|e,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=0,a=1,u=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===u&&0!==this[e+i-1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},t.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e=0|e,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===u&&0!==this[e+i+1]&&(u=1),this[e+i]=(t/a>>0)-u&255;return e+r},t.prototype.writeInt8=function(e,r,n){return e=+e,r=0|r,n||L(this,e,r,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=255&e,r+1},t.prototype.writeInt16LE=function(e,r,n){return e=+e,r=0|r,n||L(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):F(this,e,r,!0),r+2},t.prototype.writeInt16BE=function(e,r,n){return e=+e,r=0|r,n||L(this,e,r,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):F(this,e,r,!1),r+2},t.prototype.writeInt32LE=function(e,r,n){return e=+e,r=0|r,n||L(this,e,r,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):N(this,e,r,!0),r+4},t.prototype.writeInt32BE=function(e,r,n){return e=+e,r=0|r,n||L(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):N(this,e,r,!1),r+4},t.prototype.writeFloatLE=function(t,e,r){return B(this,t,e,!0,r)},t.prototype.writeFloatBE=function(t,e,r){return B(this,t,e,!1,r)},t.prototype.writeDoubleLE=function(t,e,r){return V(this,t,e,!0,r)},t.prototype.writeDoubleBE=function(t,e,r){return V(this,t,e,!1,r)},t.prototype.copy=function(e,r,n,o){if(n||(n=0),o||0===o||(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);var i,a=o-n;if(this===e&&n<r&&r<o)for(i=a-1;i>=0;--i)e[i+r]=this[i+n];else if(a<1e3||!t.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+r]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),r);return a},t.prototype.fill=function(e,r,n,o){if("string"==typeof e){if("string"==typeof r?(o=r,r=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!t.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e=255&e);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var a;if("number"==typeof e)for(a=r;a<n;++a)this[a]=e;else{var u=t.isBuffer(e)?e:G(new t(e,o).toString()),s=u.length;for(a=0;a<n-r;++a)this[a+r]=u[a%s]}return this};var et=/[^+\/0-9A-Za-z-_]/g}).call(e,r(133).Buffer,r(59))},function(t,e,r){var n=r(22);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=n(t))throw TypeError(e);return+t}},function(t,e,r){"use strict";var n=r(12),o=r(45),i=r(11);t.exports=[].copyWithin||function(t,e){var r=n(this),a=i(r.length),u=o(t,a),s=o(e,a),c=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===c?a:o(c,a))-s,a-u),l=1;for(s<u&&u<s+f&&(l=-1,s+=f-1,u+=f-1);f-- >0;)s in r?r[u]=r[s]:delete r[u],u+=l,s+=l;return r}},function(t,e,r){var n=r(53);t.exports=function(t,e){var r=[];return n(t,!1,r.push,r,e),r}},function(t,e,r){var n=r(14),o=r(12),i=r(61),a=r(11);t.exports=function(t,e,r,u,s){n(e);var c=o(t),f=i(c),l=a(c.length),p=s?l-1:0,h=s?-1:1;if(r<2)for(;;){if(p in f){u=f[p],p+=h;break}if(p+=h,s?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;s?p>=0:l>p;p+=h)p in f&&(u=e(u,f[p],p,c));return u}},function(t,e,r){"use strict";var n=r(14),o=r(7),i=r(71),a=[].slice,u={},s=function(t,e,r){if(!(e in u)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";u[e]=Function("F,a","return new F("+n.join(",")+")")}return u[e](t,r)};t.exports=Function.bind||function(t){var e=n(this),r=a.call(arguments,1),u=function(){var n=r.concat(a.call(arguments));return this instanceof u?s(e,n.length,n):i(e,n,t);
};return o(e.prototype)&&(u.prototype=e.prototype),u}},function(t,e,r){"use strict";var n=r(10).f,o=r(40),i=r(43),a=r(30),u=r(38),s=r(23),c=r(53),f=r(98),l=r(145),p=r(44),h=r(9),d=r(33).fastKey,v=h?"_s":"size",y=function(t,e){var r,n=d(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};t.exports={getConstructor:function(t,e,r,f){var l=t(function(t,n){u(t,l,e,"_i"),t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=n&&c(n,r,t[f],t)});return i(l.prototype,{clear:function(){for(var t=this,e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete e[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var e=this,r=y(e,t);if(r){var n=r.n,o=r.p;delete e._i[r.i],r.r=!0,o&&(o.n=n),n&&(n.p=o),e._f==r&&(e._f=n),e._l==r&&(e._l=o),e[v]--}return!!r},forEach:function(t){u(this,l,"forEach");for(var e,r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!y(this,t)}}),h&&n(l.prototype,"size",{get:function(){return s(this[v])}}),l},def:function(t,e,r){var n,o,i=y(t,e);return i?i.v=r:(t._l=i={i:o=d(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=i),n&&(n.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,e,r){f(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==e?l(0,r.k):"values"==e?l(0,r.v):l(0,[r.k,r.v]):(t._t=void 0,l(1))},r?"entries":"values",!r,!0),p(e)}}},function(t,e,r){var n=r(60),o=r(136);t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},function(t,e,r){"use strict";var n=r(43),o=r(33).getWeak,i=r(2),a=r(7),u=r(38),s=r(53),c=r(26),f=r(13),l=c(5),p=c(6),h=0,d=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},y=function(t,e){return l(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=y(this,t);if(e)return e[1]},has:function(t){return!!y(this,t)},set:function(t,e){var r=y(this,t);r?r[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,r,i){var c=t(function(t,n){u(t,c,e,"_i"),t._i=h++,t._l=void 0,void 0!=n&&s(n,r,t[i],t)});return n(c.prototype,{delete:function(t){if(!a(t))return!1;var e=o(t);return e===!0?d(this).delete(t):e&&f(e,this._i)&&delete e[this._i]},has:function(t){if(!a(t))return!1;var e=o(t);return e===!0?d(this).has(t):e&&f(e,this._i)}}),c},def:function(t,e,r){var n=o(i(e),!0);return n===!0?d(t).set(e,r):n[t._i]=r,t},ufstore:d}},function(t,e,r){t.exports=!r(9)&&!r(6)(function(){return 7!=Object.defineProperty(r(90)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(7),o=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&o(t)===t}},function(t,e,r){var n=r(2);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,r){"use strict";var n=r(42),o=r(75),i=r(62),a=r(12),u=r(61),s=Object.assign;t.exports=!s||r(6)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=s({},t)[r]||Object.keys(s({},e)).join("")!=n})?function(t,e){for(var r=a(t),s=arguments.length,c=1,f=o.f,l=i.f;s>c;)for(var p,h=u(arguments[c++]),d=f?n(h).concat(f(h)):n(h),v=d.length,y=0;v>y;)l.call(h,p=d[y++])&&(r[p]=h[p]);return r}:s},function(t,e,r){var n=r(10),o=r(2),i=r(42);t.exports=r(9)?Object.defineProperties:function(t,e){o(t);for(var r,a=i(e),u=a.length,s=0;u>s;)n.f(t,r=a[s++],e[r]);return t}},function(t,e,r){var n=r(18),o=r(41).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(n(t))}},function(t,e,r){var n=r(13),o=r(18),i=r(67)(!1),a=r(103)("IE_PROTO");t.exports=function(t,e){var r,u=o(t),s=0,c=[];for(r in u)r!=a&&n(u,r)&&c.push(r);for(;e.length>s;)n(u,r=e[s++])&&(~i(c,r)||c.push(r));return c}},function(t,e,r){var n=r(42),o=r(18),i=r(62).f;t.exports=function(t){return function(e){for(var r,a=o(e),u=n(a),s=u.length,c=0,f=[];s>c;)i.call(a,r=u[c++])&&f.push(t?[r,a[r]]:a[r]);return f}}},function(t,e,r){var n=r(41),o=r(75),i=r(2),a=r(5).Reflect;t.exports=a&&a.ownKeys||function(t){var e=n.f(i(t)),r=o.f;return r?e.concat(r(t)):e}},function(t,e,r){var n=r(5).parseFloat,o=r(56).trim;t.exports=1/n(r(108)+"-0")!==-(1/0)?function(t){var e=o(String(t),3),r=n(e);return 0===r&&"-"==e.charAt(0)?-0:r}:n},function(t,e,r){var n=r(5).parseInt,o=r(56).trim,i=r(108),a=/^[\-+]?0[xX]/;t.exports=8!==n(i+"08")||22!==n(i+"0x16")?function(t,e){var r=o(String(t),3);return n(r,e>>>0||(a.test(r)?16:10))}:n},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,r){var n=r(11),o=r(107),i=r(23);t.exports=function(t,e,r,a){var u=String(i(t)),s=u.length,c=void 0===r?" ":String(r),f=n(e);if(f<=s||""==c)return u;var l=f-s,p=o.call(c,Math.ceil(l/c.length));return p.length>l&&(p=p.slice(0,l)),a?p+u:u+p}},function(t,e,r){e.f=r(8)},function(t,e,r){"use strict";var n=r(139);t.exports=r(68)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(this,t);return e&&e.v},set:function(t,e){return n.def(this,0===t?0:t,e)}},n,!0)},function(t,e,r){r(9)&&"g"!=/./g.flags&&r(10).f(RegExp.prototype,"flags",{configurable:!0,get:r(70)})},function(t,e,r){"use strict";var n=r(139);t.exports=r(68)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(this,t=0===t?0:t,t)}},n)},function(t,e,r){"use strict";var n,o=r(26)(0),i=r(16),a=r(33),u=r(147),s=r(141),c=r(7),f=a.getWeak,l=Object.isExtensible,p=s.ufstore,h={},d=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(t){if(c(t)){var e=f(t);return e===!0?p(this).get(t):e?e[this._i]:void 0}},set:function(t,e){return s.def(this,t,e)}},y=t.exports=r(68)("WeakMap",d,v,s,!0,!0);7!=(new y).set((Object.freeze||Object)(h),7).get(h)&&(n=s.getConstructor(d),u(n.prototype,v),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=y.prototype,r=e[t];i(e,t,function(e,o){if(c(e)&&!l(e)){this._f||(this._f=new n);var i=this._f[t](e,o);return"set"==t?this:i}return r.call(this,e,o)})}))},function(t,e,r){"use strict";function n(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName="",this.pre=null,this.body=null,this.post=null,this.debug=!1}function o(t){var e=new n;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var o=0;o<r.length;++o){var a=r[o];if("array"===a||"object"==typeof a&&a.blockIndices){if(e.argTypes[o]="array",e.arrayArgs.push(o),e.arrayBlockIndices.push(a.blockIndices?a.blockIndices:0),e.shimArgs.push("array"+o),o<e.pre.args.length&&e.pre.args[o].count>0)throw new Error("cwise: pre() block may not reference array args");if(o<e.post.args.length&&e.post.args[o].count>0)throw new Error("cwise: post() block may not reference array args")}else if("scalar"===a)e.scalarArgs.push(o),e.shimArgs.push("scalar"+o);else if("index"===a){if(e.indexArgs.push(o),o<e.pre.args.length&&e.pre.args[o].count>0)throw new Error("cwise: pre() block may not reference array index");if(o<e.body.args.length&&e.body.args[o].lvalue)throw new Error("cwise: body() block may not write to array index");if(o<e.post.args.length&&e.post.args[o].count>0)throw new Error("cwise: post() block may not reference array index")}else if("shape"===a){if(e.shapeArgs.push(o),o<e.pre.args.length&&e.pre.args[o].lvalue)throw new Error("cwise: pre() block may not write to array shape");if(o<e.body.args.length&&e.body.args[o].lvalue)throw new Error("cwise: body() block may not write to array shape");if(o<e.post.args.length&&e.post.args[o].lvalue)throw new Error("cwise: post() block may not write to array shape")}else{if("object"!=typeof a||!a.offset)throw new Error("cwise: Unknown argument type "+r[o]);e.argTypes[o]="offset",e.offsetArgs.push({array:a.array,offset:a.offset}),e.offsetArgIndex.push(o)}}if(e.arrayArgs.length<=0)throw new Error("cwise: No array arguments specified");if(e.pre.args.length>r.length)throw new Error("cwise: Too many arguments in pre() block");if(e.body.args.length>r.length)throw new Error("cwise: Too many arguments in body() block");if(e.post.args.length>r.length)throw new Error("cwise: Too many arguments in post() block");return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||"cwise",e.blockSize=t.blockSize||64,i(e)}var i=r(424);t.exports=o},function(t,e){"use strict";function r(t,e,n){var o=0|t[n];if(o<=0)return[];var i,a=new Array(o);if(n===t.length-1)for(i=0;i<o;++i)a[i]=e;else for(i=0;i<o;++i)a[i]=r(t,e,n+1);return a}function n(t,e){var r,n;for(r=new Array(t),n=0;n<t;++n)r[n]=e;return r}function o(t,e){switch("undefined"==typeof e&&(e=0),typeof t){case"number":if(t>0)return n(0|t,e);break;case"object":if("number"==typeof t.length)return r(t,e,0)}return[]}t.exports=o},function(t,e,r){function n(t){var e=this.__data__=new o(t);this.size=e.size}var o=r(78),i=r(520),a=r(521),u=r(522),s=r(523),c=r(524);n.prototype.clear=i,n.prototype.delete=a,n.prototype.get=u,n.prototype.has=s,n.prototype.set=c,t.exports=n},function(t,e){function r(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var n=Object.defineProperty;t.exports=r},function(t,e,r){function n(t,e,r,a,u){var s=-1,c=t.length;for(r||(r=i),u||(u=[]);++s<c;){var f=t[s];e>0&&r(f)?e>1?n(f,e-1,r,a,u):o(u,f):a||(u[u.length]=f)}return u}var o=r(440),i=r(493);t.exports=n},function(t,e,r){function n(t,e){return t&&o(t,e,i)}var o=r(448),i=r(49);t.exports=n},function(t,e,r){function n(t,e){e=i(e,t)?[e]:o(e);for(var r=0,n=e.length;null!=t&&r<n;)t=t[a(e[r++])];return r&&r==n?t:void 0}var o=r(169),i=r(82),a=r(63);t.exports=n},function(t,e,r){function n(t){return o(t)?t:i(t)}var o=r(37),i=r(526);t.exports=n},function(t,e,r){function n(t,e,r,n,c,f){var l=c&s,p=t.length,h=e.length;if(p!=h&&!(l&&h>p))return!1;var d=f.get(t);if(d&&f.get(e))return d==e;var v=-1,y=!0,g=c&u?new o:void 0;for(f.set(t,e),f.set(e,t);++v<p;){var b=t[v],m=e[v];if(n)var _=l?n(m,b,v,e,t,f):n(b,m,v,t,e,f);if(void 0!==_){if(_)continue;y=!1;break}if(g){if(!i(e,function(t,e){if(!a(g,e)&&(b===t||r(b,t,n,c,f)))return g.push(e)})){y=!1;break}}else if(b!==m&&!r(b,m,n,c,f)){y=!1;break}}return f.delete(t),f.delete(e),y}var o=r(434),i=r(442),a=r(471),u=1,s=2;t.exports=n},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(e,r(59))},function(t,e,r){var n=r(430),o=r(114),i=r(432),a=r(433),u=r(436),s=r(449),c=r(177),f="[object Map]",l="[object Object]",p="[object Promise]",h="[object Set]",d="[object WeakMap]",v="[object DataView]",y=Object.prototype,g=y.toString,b=c(n),m=c(o),_=c(i),w=c(a),x=c(u),O=s;(n&&O(new n(new ArrayBuffer(1)))!=v||o&&O(new o)!=f||i&&O(i.resolve())!=p||a&&O(new a)!=h||u&&O(new u)!=d)&&(O=function(t){var e=g.call(t),r=e==l?t.constructor:void 0,n=r?c(r):void 0;if(n)switch(n){case b:return v;case m:return f;case _:return p;case w:return h;case x:return d}return e}),t.exports=O},function(t,e){function r(t){return s.test(t)}var n="\\ud800-\\udfff",o="\\u0300-\\u036f\\ufe20-\\ufe23",i="\\u20d0-\\u20f0",a="\\ufe0e\\ufe0f",u="\\u200d",s=RegExp("["+u+n+o+i+a+"]");t.exports=r},function(t,e,r){function n(t){return t===t&&!o(t)}var o=r(57);t.exports=n},function(t,e){function r(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}t.exports=r},function(t,e){function r(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}t.exports=r},function(t,e){function r(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var n=Function.prototype,o=n.toString;t.exports=r},function(t,e,r){function n(t){var e=o(t)?s.call(t):"";return e==i||e==a}var o=r(57),i="[object Function]",a="[object GeneratorFunction]",u=Object.prototype,s=u.toString;t.exports=n},function(t,e,r){function n(t){var e=o(t),r=e%1;return e===e?r?e-r:e:0}var o=r(547);t.exports=n},function(t,e,r){"use strict";function n(t){var e=t.dtype;"generic"!==e&&"array"!==e||(e="double");var r=l.malloc(t.size,e),n=c(r,t.shape);return f.assign(n,t),n}function o(t,e){e||(e="double");for(var r=1,n=new Array(t.length),o=t.length-1;o>=0;--o)n[o]=r,r*=t[o];return c(l.malloc(r,e),t,n,0)}function i(t){"generic"!==t.dtype&&"array"!==t.dtype&&l.free(t.data)}function a(t,e){e||(e="double");for(var r=1,n=new Array(t.length),o=t.length-1;o>=0;--o)n[o]=r,r*=t[o];for(var i=l.malloc(r,e),o=0;o<r;++o)i[o]=0;return c(i,t,n,0)}function u(t,e){e||(e="double");for(var r=1,n=new Array(t.length),o=t.length-1;o>=0;--o)n[o]=r,r*=t[o];for(var i=l.malloc(r,e),o=0;o<r;++o)i[o]=1;return c(i,t,n,0)}function s(t,e){var r,n;e||(e="double");var o=1,i=new Array(t.length);for(r=t.length-1;r>=0;--r)i[r]=o,o*=t[r];var a=l.malloc(o,e);for(r=0;r<o;++r)a[r]=0;var u=1/0,s=0;for(r=t.length-1;r>=0;r--)s+=i[r],u=Math.min(u,t[r]);for(r=0,n=0;r<u;r++,n+=s)a[n]=1;return c(a,t,i,0)}var c=r(51),f=r(3),l=r(583);e.clone=n,e.malloc=o,e.free=i,e.zeros=a,e.ones=u,e.eye=s},function(t,e){"use strict";function r(t,e){for(var r=1,n=t.length,o=t[0],i=t[0],a=1;a<n;++a)if(i=o,o=t[a],e(o,i)){if(a===r){r++;continue}t[r++]=o}return t.length=r,t}function n(t){for(var e=1,r=t.length,n=t[0],o=t[0],i=1;i<r;++i,o=n)if(o=n,n=t[i],n!==o){if(i===e){e++;continue}t[e++]=n}return t.length=e,t}function o(t,e,o){return 0===t.length?t:e?(o||t.sort(e),r(t,e)):(o||t.sort(),n(t))}t.exports=o},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.testUtils=e.layers=e.activations=e.Tensor=e.Model=void 0;var i=r(185),a=o(i),u=r(4),s=o(u),c=r(19),f=n(c),l=r(128),p=n(l),h=void 0;e.Model=a.default,e.Tensor=s.default,e.activations=f,e.layers=p,e.testUtils=h},function(t,e,r){"use strict";(function(t){function e(t,e,r){t[e]||Object[n](t,e,{writable:!0,configurable:!0,value:r})}if(r(422),r(582),r(242),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var n="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(e,r(59))},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(123),l=n(f),p=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Input";var n=t.shape,a=void 0===n?[]:n;return r.shape=a,r}return a(e,t),u(e,[{key:"call",value:function(t){if(!(0,l.default)(t.tensor.shape,this.shape))throw new Error("[Input] input tensor shape "+t.tensor.shape+" does not match specified shape "+this.shape+".");return t}}]),e}(c.default);e.default=p},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(549),c=o(s),f=r(542),l=o(f),p=r(529),h=o(p),d=r(534),v=o(d),y=r(49),g=o(y),b=r(551),m=o(b),_=r(546),w=o(_),x=r(123),O=o(x),j=r(533),S=o(j),E=r(128),P=n(E),k=r(184),A=o(k),M=r(4),T=o(M),C=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,t);var r=e.filepaths,n=void 0===r?{}:r,o=e.headers,a=void 0===o?{}:o,u=e.gpu,s=void 0!==u&&u;if(!n.model||!n.weights||!n.metadata)throw new Error("File paths must be declared for model, weights, and metadata.");this.filepaths=n,this.filetypes={model:"json",weights:"arraybuffer",metadata:"json"},this.headers=a,this.gpu=s,this.data={model:{},weights:null,metadata:[]},this.xhrs={model:null,weights:null,metadata:null},this.xhrProgress={model:0,weights:0,metadata:0},this.modelLayersMap=new Map,this.modelDAG={},this.inputTensors={},this._ready=this.initialize()}return u(t,[{key:"ready",value:function(){return this._ready}},{key:"interrupt",value:function(){var t=this,e=["model","weights","metdata"];e.forEach(function(e){t.xhrs[e]&&(t.xhrs[e].abort(),t.xhrs[e]=null)})}},{key:"initialize",value:function(){var t=this,e=["model","weights","metadata"];return Promise.all(e.map(function(e){return t.dataRequest(e,t.headers)})).then(function(){return t.createLayers(),Promise.resolve()}).catch(function(e){console.log(e),t.interrupt()})}},{key:"dataRequest",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n,o){var i=new XMLHttpRequest;i.open("GET",e.filepaths[t],!0),i.responseType=e.filetypes[t];var u=!0,s=!1,f=void 0;try{for(var l,p=(0,c.default)(r)[Symbol.iterator]();!(u=(l=p.next()).done);u=!0){var h=a(l.value,2),d=h[0],v=h[1];i.setRequestHeader(d,v)}}catch(t){s=!0,f=t}finally{try{!u&&p.return&&p.return()}finally{if(s)throw f}}i.onload=function(r){e.data[t]=i.response,e.xhrs[t]=null,e.xhrProgress[t]=100,n()},i.onprogress=function(r){if(r.lengthComputable){var n=Math.round(100*r.loaded/r.total);e.xhrProgress[t]=n}},i.onerror=function(t){return o(t)},i.send(null),e.xhrs[t]=i})}},{key:"getLoadingProgress",value:function(){var t=(0,m.default)(this.xhrProgress);return Math.round((0,w.default)(t)/t.length)}},{key:"createLayers",value:function(){var t=this,e=this.data.model.class_name;"Sequential"===e&&!function(){var e=t.data.model.config,r="input";e.forEach(function(n,o){var i=n.class_name,a=n.config;if(0===o){var u=a.batch_input_shape.slice(1),s=new A.default({name:r,shape:u});t.modelLayersMap.set(r,s),t.modelDAG[r]={layerClass:"Input",name:r,inbound:[],outbound:[]},t.inputTensors[r]=new T.default([],u,{gpu:t.gpu})}if(!(i in P))throw new Error("Layer "+i+" specified in model configuration is not implemented!");var c=(0,l.default)(a,function(t,e){return(0,h.default)(e)});"activation"in c&&(c.activation=(0,h.default)(c.activation));var f=new P[i](c);if(f.params&&f.params.length){var p=f.params.map(function(e){var r=(0,v.default)(t.data.metadata,function(t){var r=new RegExp("^"+a.name+"_"+e);return t.layer_name===a.name&&r.test(t.weight_name)});if(!r)throw new Error("[Model] error loading weights.");var n=r.offset,o=r.length,i=r.shape;return new T.default(new Float32Array(t.data.weights,n,o),i)});f.setWeights(p)}if(t.modelLayersMap.set(a.name,f),t.modelDAG[a.name]={layerClass:i,name:a.name,inbound:[],outbound:[]},0===o)t.modelDAG[r].outbound.push(a.name),t.modelDAG[a.name].inbound.push(r);else{var d=e[o-1].config;t.modelDAG[a.name].inbound.push(d.name),t.modelDAG[d.name].outbound.push(a.name)}})}()}},{key:"traverseDAG",value:regeneratorRuntime.mark(function t(e){var r,n,o,i,a,u,s,c,f=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.length){t.next=4;break}return t.abrupt("return",!0);case 4:if(1!==e.length){t.next=30;break}if(r=e[0],n=this.modelDAG[r],o=n.layerClass,i=n.inbound,a=n.outbound,"Input"===o){t.next=27;break}u=this.modelLayersMap.get(r),s=i.map(function(t){return f.modelLayersMap.get(t)});case 13:if((0,S.default)(s.map(function(t){return t.hasResult}))){t.next=18;break}return void(t.next=16);case 16:t.next=13;break;case 18:if("Merge"!==o){t.next=22;break}u.result=u.call(s.map(function(t){return new T.default(t.result.tensor.data,t.result.tensor.shape,{gpu:f.gpu})})),t.next=26;break;case 22:if(1===s.length){t.next=24;break}throw new Error("Layer name "+u.name+" has "+s.length+" inbound nodes, but is not a Merge layer.");case 24:c=s[0].result,u.result=u.call(new T.default(c.tensor.data,c.tensor.shape,{gpu:this.gpu}));case 26:u.hasResult=!0;case 27:return t.delegateYield(this.traverseDAG(a),"t0",28);case 28:t.next=31;break;case 30:return t.delegateYield(e.map(function(t){return f.traverseDAG([t])}),"t1",31);case 31:case"end":return t.stop()}},t,this)})},{key:"predict",value:function(t){var e=this,r=(0,g.default)(this.inputTensors);if(!(0,O.default)((0,g.default)(t),r))throw new Error("predict() must take an object where the keys are the named inputs of the model.");if(!(0,S.default)(r,function(e){return t[e]instanceof Float32Array}))throw new Error("predict() must take an object where the values are the flattened data as Float32Array.");var n=!0,o=!1,i=void 0;try{for(var a,u=this.modelLayersMap.values()[Symbol.iterator]();!(n=(a=u.next()).done);n=!0){var s=a.value;s.hasResult=!1}}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}r.forEach(function(r){var n=e.modelLayersMap.get(r);e.inputTensors[r]=new T.default(t[r],n.shape,{gpu:e.gpu}),n.result=n.call(e.inputTensors[r]),n.hasResult=!0});for(var c=this.traverseDAG(r);!c.next().done;);var f=this.data.model.class_name;if("Sequential"===f){var l=(0,v.default)((0,m.default)(this.modelDAG),function(t){return!t.outbound.length}),p=this.modelLayersMap.get(l.name),h=p.result;return{output:h.tensor.data}}}}]),t}();e.default=C},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(25),l=n(f),p=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));h.call(r),r.layerClass="ELU";var n=t.alpha,a=void 0===n?1:n;return r.alpha=a,r}return a(e,t),u(e,[{key:"call",value:function(t){return this._compute(t.tensor,this.alpha),t}}]),e}(c.default),h=function(){this._compute=(0,l.default)({args:["array","scalar"],body:function(t,e){t=Math.max(t,0)+e*(Math.exp(Math.min(t,0))-1)}})};e.default=p},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(19),l=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="LeakyReLU";var n=t.alpha,a=void 0===n?.3:n;return r.alpha=a,r}return a(e,t),u(e,[{key:"call",value:function(t){return(0,f.relu)(t,{alpha:this.alpha}),t}}]),e}(c.default);e.default=l},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(25),l=n(f),p=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r._compute=(0,l.default)({args:["array","array"],body:function(t,e){t=Math.max(t,0)+e*Math.min(t,0)}}),r.layerClass="PReLU",r.params=["alphas"],r}return a(e,t),u(e,[{key:"call",value:function(t){return this._compute(t.tensor,this.weights.alphas.tensor),t}}]),e}(c.default);e.default=p},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(25),l=n(f),p=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r._compute=(0,l.default)({args:["array","array","array"],body:function(t,e,r){t=e*Math.log(1+Math.exp(r*t))}}),r.layerClass="ParametricSoftplus",r.params=["alphas","betas"],r}return a(e,t),u(e,[{key:"call",value:function(t){return this._compute(t.tensor,this.weights.alphas.tensor,this.weights.betas.tensor),t}}]),e}(c.default);e.default=p},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(25),l=n(f),p=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r._compute=(0,l.default)({args:["array","array","array","array","array"],body:function(t,e,r,n,o){t=e+Math.min(Math.max(t-e,0),Math.abs(n))+r*Math.min(t-e,0)+Math.max(t-(e+Math.abs(n)),0)*o}}),r.layerClass="SReLU",r.params=["t_left","a_left","t_right","a_right"],r}return a(e,t),u(e,[{key:"call",value:function(t){return this._compute(t.tensor,this.weights.t_left.tensor,this.weights.a_left.tensor,this.weights.t_right.tensor,this.weights.a_right.tensor),t}}]),e}(c.default);e.default=p},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(25),l=n(f),p=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));h.call(r),r.layerClass="ThresholdedReLU";var n=t.theta,a=void 0===n?1:n;return r.theta=a,r}
return a(e,t),u(e,[{key:"call",value:function(t){return this._compute(t.tensor,this.theta),t}}]),e}(c.default),h=function(){this._compute=(0,l.default)({args:["array","scalar"],body:function(t,e){t*=Number(t>e)}})};e.default=p},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.SReLU=e.ThresholdedReLU=e.ParametricSoftplus=e.ELU=e.PReLU=e.LeakyReLU=void 0;var o=r(187),i=n(o),a=r(188),u=n(a),s=r(186),c=n(s),f=r(189),l=n(f),p=r(191),h=n(p),d=r(190),v=n(d);e.LeakyReLU=i.default,e.PReLU=u.default,e.ELU=c.default,e.ParametricSoftplus=l.default,e.ThresholdedReLU=h.default,e.SReLU=v.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(4),f=n(c),l=r(66),p=n(l),h=r(3),d=n(h),v=r(50),y=n(v),g=r(48),b=n(g),m=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="AtrousConvolution2D";var n=t.atrousRate,a=void 0===n?[1,1]:n;return r.atrousRate=a,r}return a(e,t),s(e,[{key:"_calcOutputShape",value:function(t){var e=t.tensor.shape[0],r=t.tensor.shape[1],n=u(this.kernelShape,3),o=n[0],i=n[1],a=n[2],s=i+(i-1)*(this.atrousRate[0]-1),c=a+(a-1)*(this.atrousRate[1]-1),f="same"===this.borderMode?Math.floor((e+this.subsample[0]-1)/this.subsample[0]):Math.floor((e-s+this.subsample[0])/this.subsample[0]),l="same"===this.borderMode?Math.floor((r+this.subsample[1]-1)/this.subsample[1]):Math.floor((r-c+this.subsample[1])/this.subsample[1]),p=o,h="same"===this.borderMode?Math.max(0,Math.floor((f-1)*this.subsample[0]+s-e)):0,d="same"===this.borderMode?Math.max(0,Math.floor((l-1)*this.subsample[1]+c-r)):0,v=Math.floor(h/2),y=h-v,g=Math.floor(d/2),b=d-g;this.outputShape=[f,l,p],this.inputPadding=[v,y,g,b]}},{key:"_im2col",value:function(t){for(var e=u(t.tensor.shape,3),r=e[0],n=e[1],o=e[2],i=this.kernelShape[1],a=this.kernelShape[2],s=this.outputShape[0],c=this.outputShape[1],l=s*c,p=i*a*o,h=i+(i-1)*(this.atrousRate[0]-1),v=a+(a-1)*(this.atrousRate[1]-1),g=new f.default([],[l,p]),m=new f.default([],[p]),_=0,w=0,x=r-h;w<=x;w+=this.subsample[0])for(var O=0,j=n-v;O<=j;O+=this.subsample[1]){var S=(0,b.default)((0,y.default)(t.tensor.hi(w+h,O+v,o).lo(w,O,0).step(this.atrousRate[0],this.atrousRate[1],1)));m.replaceTensorData(S),d.default.assign(g.tensor.pick(_,null),m.tensor),_+=1}return g}}]),e}(p.default);e.default=m},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(66),l=n(f),p=r(125),h=n(p),d=r(126),v=n(d),y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Convolution1D";var n=t.nbFilter,a=void 0===n?1:n,u=t.filterLength,s=void 0===u?1:u,c=t.activation,f=void 0===c?"linear":c,p=t.borderMode,h=void 0===p?"valid":p,d=t.subsampleLength,v=void 0===d?1:d,y=t.bias,g=void 0===y||y;if("valid"!==h&&"same"!==h)throw new Error(r.name+" [Convolution1D layer] Invalid borderMode.");return r.params=r.bias?["W","b"]:["W"],r._conv2d=new l.default({nbFilter:a,nbRow:s,nbCol:1,activation:f,borderMode:h,subsample:[v,1],dimOrdering:"th",bias:g}),r}return a(e,t),u(e,[{key:"setWeights",value:function(t){this._conv2d.setWeights(t)}},{key:"call",value:function(t){t.tensor=(0,v.default)(t.tensor).transpose(1,0,2);var e=this._conv2d.call(t);return t.tensor=(0,h.default)(e.tensor).transpose(1,0,2),t}}]),e}(c.default);e.default=y},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),f=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(n)},l=r(19),p=o(l),h=r(4),d=n(h),v=r(1),y=n(v),g=r(3),b=n(g),m=r(87),_=n(m),w=r(50),x=n(w),O=r(48),j=n(O),S=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Convolution3D";var n=t.nbFilter,o=void 0===n?1:n,u=t.kernelDim1,s=void 0===u?1:u,c=t.kernelDim2,f=void 0===c?1:c,l=t.kernelDim3,h=void 0===l?1:l,d=t.activation,v=void 0===d?"linear":d,y=t.borderMode,g=void 0===y?"valid":y,b=t.subsample,m=void 0===b?[1,1,1]:b,_=t.dimOrdering,w=void 0===_?"tf":_,x=t.bias,O=void 0===x||x;if(r.kernelShape=[o,s,f,h],r.activation=p[v],"valid"!==g&&"same"!==g)throw new Error(r.name+" [Convolution3D layer] Invalid borderMode.");if(r.borderMode=g,r.subsample=m,"tf"!==w&&"th"!==w)throw new Error(r.name+" [Convolution3D layer] Only tf and th dim ordering are allowed.");return r.dimOrdering=w,r.bias=O,r.params=r.bias?["W","b"]:["W"],r}return u(e,t),c(e,[{key:"setWeights",value:function(t){"th"===this.dimOrdering&&(t[0].tensor=t[0].tensor.transpose(2,3,4,1,0)),f(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setWeights",this).call(this,t)}},{key:"_calcOutputShape",value:function(t){var e=t.tensor.shape[0],r=t.tensor.shape[1],n=t.tensor.shape[2],o=s(this.kernelShape,4),i=o[0],a=o[1],u=o[2],c=o[3],f="same"===this.borderMode?Math.floor((e+this.subsample[0]-1)/this.subsample[0]):Math.floor((e-a+this.subsample[0])/this.subsample[0]),l="same"===this.borderMode?Math.floor((r+this.subsample[1]-1)/this.subsample[1]):Math.floor((r-u+this.subsample[1])/this.subsample[1]),p="same"===this.borderMode?Math.floor((n+this.subsample[2]-1)/this.subsample[2]):Math.floor((n-c+this.subsample[2])/this.subsample[2]),h=i,d="same"===this.borderMode?Math.max(0,Math.floor((f-1)*this.subsample[0]+a-e)):0,v="same"===this.borderMode?Math.max(0,Math.floor((l-1)*this.subsample[1]+u-r)):0,y="same"===this.borderMode?Math.max(0,Math.floor((p-1)*this.subsample[2]+c-n)):0,g=Math.floor(d/2),b=d-g,m=Math.floor(v/2),_=v-m,w=Math.floor(y/2),x=y-w;this.outputShape=[f,l,p,h],this.inputPadding=[g,b,m,_,w,x]}},{key:"_padInput",value:function(t){if("same"===this.borderMode){var e=s(t.tensor.shape,4),r=e[0],n=e[1],o=e[2],i=e[3],a=s(this.inputPadding,6),u=a[0],c=a[1],f=a[2],l=a[3],p=a[4],h=a[5],v=r+u+c,y=n+f+l,g=o+p+h,m=new d.default([],[v,y,g,i]);b.default.assign(m.tensor.hi(r+u,n+f,o+p,i).lo(u,f,p,0),t.tensor),t.tensor=m.tensor}return t}},{key:"_vol2col",value:function(t){for(var e=s(t.tensor.shape,4),r=e[0],n=e[1],o=e[2],i=e[3],a=this.kernelShape[1],u=this.kernelShape[2],c=this.kernelShape[3],f=this.outputShape[0],l=this.outputShape[1],p=this.outputShape[2],h=f*l*p,v=a*u*c*i,y=new d.default([],[h,v]),g=new d.default([],[v]),m=0,_=0,w=r-a;_<=w;_+=this.subsample[0])for(var O=0,S=n-u;O<=S;O+=this.subsample[1])for(var E=0,P=o-c;E<=P;E+=this.subsample[2]){var k=(0,j.default)((0,x.default)(t.tensor.hi(_+a,O+u,E+c,i).lo(_,O,E,0)));g.replaceTensorData(k),b.default.assign(y.tensor.pick(m,null),g.tensor),m+=1}return y}},{key:"_w2row",value:function(t){for(var e=t.tensor.shape[3],r=s(this.kernelShape,4),n=r[0],o=r[1],i=r[2],a=r[3],u=o*i*a*e,c=new d.default([],[u,n]),f=new d.default([],[u]),l=0;l<n;l++){var p=(0,j.default)((0,x.default)(this.weights.W.tensor.pick(null,null,null,null,l)));f.replaceTensorData(p),b.default.assign(c.tensor.pick(null,l),f.tensor)}return c}},{key:"call",value:function(t){"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(1,2,3,0)),this._calcOutputShape(t),this._padInput(t);var e=this._vol2col(t),r=this._w2row(t),n=this.kernelShape[0],o=this.outputShape[0],i=this.outputShape[1],a=this.outputShape[2],u=o*i*a,s=new d.default([],[u,n]);if(this.bias)for(var c=0;c<n;c++)b.default.assigns(s.tensor.pick(null,c),this.weights.b.tensor.get(c));if(t._useWeblas){var f=this.bias?this.weights.b.tensor.data:new Float32Array(r.tensor.shape[1]);s.tensor.data=weblas.sgemm(e.tensor.shape[0],r.tensor.shape[1],e.tensor.shape[1],1,e.tensor.data,r.tensor.data,1,f)}else(0,_.default)(s.tensor,e.tensor,r.tensor,1,1);for(var l=new d.default([],this.outputShape),p=new d.default([],[o,i,a]),h=0;h<n;h++){var v=(0,j.default)((0,x.default)(s.tensor.pick(null,h)));p.replaceTensorData(v),b.default.assign(l.tensor.pick(null,null,null,h),p.tensor)}return t.tensor=l.tensor,this.activation(t),"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(3,0,1,2)),t}}]),e}(y.default);e.default=S},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),f=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(n)},l=r(19),p=o(l),h=r(4),d=n(h),v=r(1),y=n(v),g=r(3),b=n(g),m=r(87),_=n(m),w=r(50),x=n(w),O=r(48),j=n(O),S=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Deconvolution2D";var n=t.nbFilter,o=void 0===n?1:n,u=t.nbRow,s=void 0===u?1:u,c=t.nbCol,f=void 0===c?1:c,l=t.outputShape,h=void 0===l?[]:l,d=t.activation,v=void 0===d?"linear":d,y=t.borderMode,g=void 0===y?"valid":y,b=t.subsample,m=void 0===b?[1,1]:b,_=t.dimOrdering,w=void 0===_?"tf":_,x=t.bias,O=void 0===x||x;if(r.kernelShape=[o,s,f],r.outputShape=h,r.activation=p[v],"valid"!==g&&"same"!==g)throw new Error(r.name+" [Deconvolution2D layer] Invalid borderMode.");if(r.borderMode=g,r.subsample=m,"tf"!==w&&"th"!==w)throw new Error(r.name+" [Deconvolution2D layer] Only tf and th dim ordering are allowed.");return r.dimOrdering=w,r.bias=O,r.params=r.bias?["W","b"]:["W"],r}return u(e,t),c(e,[{key:"setWeights",value:function(t){"th"===this.dimOrdering&&(t[0].tensor=t[0].tensor.transpose(2,3,1,0)),f(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setWeights",this).call(this,t)}},{key:"_calcOutputPadding",value:function(t){var e=t.tensor.shape[0],r=t.tensor.shape[1],n=this.kernelShape[1],o=this.kernelShape[2],i=this.outputShape[0],a=this.outputShape[1],u="same"===this.borderMode?Math.max(0,Math.floor((e-1)*this.subsample[0]+n-i)):0,s="same"===this.borderMode?Math.max(0,Math.floor((r-1)*this.subsample[1]+o-a)):0,c=Math.floor(u/2),f=u-c,l=Math.floor(s/2),p=s-l;this.outputPadding=[c,f,l,p]}},{key:"_im2col",value:function(t){for(var e=s(t.tensor.shape,3),r=e[0],n=e[1],o=e[2],i=new d.default([],[r*n,o]),a=new d.default([],[r*n]),u=0;u<o;u++){var c=(0,j.default)((0,x.default)(t.tensor.pick(null,null,u)));a.replaceTensorData(c),b.default.assign(i.tensor.pick(null,u),a.tensor)}return i}},{key:"_w2row",value:function(t){for(var e=s(this.weights.W.tensor.shape,4),r=e[0],n=e[1],o=e[2],i=e[3],a=new d.default([],[o,r*n*i]),u=new d.default([],[r*n*i]),c=0;c<o;c++){var f=(0,j.default)((0,x.default)(this.weights.W.tensor.pick(null,null,c,null)));u.replaceTensorData(f),b.default.assign(a.tensor.pick(c,null),u.tensor)}return a}},{key:"call",value:function(t){"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(1,2,0));var e=this._im2col(t),r=this._w2row(t),n=t.tensor.shape[0],o=t.tensor.shape[1],i=s(this.kernelShape,3),a=i[0],u=i[1],c=i[2],f=new d.default([],[n*o,u*c*a]);if(t._useWeblas){var l=new Float32Array(r.tensor.shape[1]);f.tensor.data=weblas.sgemm(e.tensor.shape[0],r.tensor.shape[1],e.tensor.shape[1],1,e.tensor.data,r.tensor.data,0,l)}else(0,_.default)(f.tensor,e.tensor,r.tensor,1,1);this._calcOutputPadding(t);var p=s(this.outputPadding,4),h=p[0],v=p[1],y=p[2],g=p[3],m=new d.default([],this.outputShape),w=new d.default([],[this.outputShape[0]+h+v,this.outputShape[1]+y+g,this.outputShape[2]]);if(this.bias)for(var O=0;O<a;O++)b.default.assigns(w.tensor.pick(null,null,O),this.weights.b.tensor.get(O));for(var j=[u,c,a],S=new d.default([],j),E=0,P=0;P<n;P++)for(var k=0;k<o;k++){var A=(0,x.default)(f.tensor.pick(E,null));S.replaceTensorData(A);var M=P*this.subsample[0],T=k*this.subsample[1];b.default.addeq(w.tensor.hi(M+u,T+c,this.outputShape[2]).lo(M,T,0),S.tensor),E+=1}return b.default.assign(m.tensor,w.tensor.hi(this.outputShape[0]+h,this.outputShape[1]+y,this.outputShape[2]).lo(h,y,0)),t.tensor=m.tensor,this.activation(t),"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(2,0,1)),t}}]),e}(y.default);e.default=S},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),f=r(19),l=o(f),p=r(4),h=n(p),d=r(1),v=n(d),y=r(66),g=n(y),b=r(3),m=n(b),_=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="SeparableConvolution2D";var n=t.nbFilter,o=void 0===n?1:n,u=t.nbRow,s=void 0===u?1:u,c=t.nbCol,f=void 0===c?1:c,p=t.activation,h=void 0===p?"linear":p,d=t.borderMode,v=void 0===d?"valid":d,y=t.subsample,b=void 0===y?[1,1]:y,m=t.depthMultiplier,_=void 0===m?1:m,w=t.dimOrdering,x=void 0===w?"tf":w,O=t.bias,j=void 0===O||O;if(r.activation=l[h],"valid"!==v&&"same"!==v)throw new Error(r.name+" [SeparableConvolution2D layer] Invalid borderMode.");if(r.borderMode=v,r.subsample=b,r.depthMultiplier=_,"tf"!==x&&"th"!==x)throw new Error(r.name+" [SeparableConvolution2D layer] Only tf and th dim ordering are allowed.");r.dimOrdering=x,r.bias=j,r.params=r.bias?["depthwise_kernel","pointwise_kernel","b"]:["depthwise_kernel","pointwise_kernel"];var S={nbFilter:r.depthMultiplier,nbRow:s,nbCol:f,activation:"linear",borderMode:v,subsample:b,dimOrdering:x,bias:!1},E={nbFilter:o,nbRow:1,nbCol:1,activation:"linear",borderMode:v,subsample:[1,1],dimOrdering:x,bias:!1};return r._depthwiseConv=new g.default(S),r._pointwiseConv=new g.default(E),r}return u(e,t),c(e,[{key:"call",value:function(t){this._depthwiseConv._calcOutputShape(t);var e=this._depthwiseConv.outputShape[0],r=this._depthwiseConv.outputShape[1],n=new h.default([],[e,r,this.depthMultiplier]),o=s(t.tensor.shape,3),i=o[0],a=o[1],u=o[2],c=new h.default([],[i,a,1]),f=this.weights.depthwise_kernel.tensor.shape.slice();f[2]=1;for(var l=new h.default([],f),p=new h.default([],[this._depthwiseConv.outputShape[0],this._depthwiseConv.outputShape[1],u*this.depthMultiplier]),d=0;d<u;d++)l.tensor=this.weights.depthwise_kernel.tensor.hi(f[0],f[1],d+1,f[3]).lo(0,0,d,0),this._depthwiseConv.setWeights([l]),c.tensor=t.tensor.hi(i,a,d+1).lo(0,0,d),n=this._depthwiseConv.call(c),m.default.assign(p.tensor.hi(e,r,(d+1)*this.depthMultiplier).lo(0,0,d*this.depthMultiplier),n.tensor);this._pointwiseConv.setWeights([this.weights.pointwise_kernel]);var v=this._pointwiseConv.call(p);if(this.bias)for(var y=0;y<this.weights.b.tensor.shape[0];y++)m.default.addseq(v.tensor.pick(null,null,y),this.weights.b.tensor.get(y));return t.tensor=v.tensor,this.activation(t),t}}]),e}(v.default);e.default=_},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(4),l=n(f),p=r(3),h=n(p),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="UpSampling1D";var n=t.length,a=void 0===n?2:n;return r.length=a,r}return a(e,t),u(e,[{key:"call",value:function(t){for(var e=t.tensor.shape,r=[e[0]*this.length,e[1]],n=new l.default([],r),o=0;o<this.length;o++)h.default.assign(n.tensor.lo(o,0).step(this.length,1),t.tensor);return t.tensor=n.tensor,t}}]),e}(c.default);e.default=d},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(4),l=n(f),p=r(3),h=n(p),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="UpSampling2D";var n=t.size,a=void 0===n?[2,2]:n,u=t.dimOrdering,s=void 0===u?"tf":u;return r.size=a,r.dimOrdering=s,r}return a(e,t),u(e,[{key:"call",value:function(t){"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(1,2,0));for(var e=t.tensor.shape,r=[e[0]*this.size[0],e[1]*this.size[1],e[2]],n=new l.default([],r),o=0;o<this.size[0];o++)for(var i=0;i<this.size[1];i++)h.default.assign(n.tensor.lo(o,i,0).step(this.size[0],this.size[1],1),t.tensor);return t.tensor=n.tensor,"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(2,0,1)),t}}]),e}(c.default);e.default=d},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(4),l=n(f),p=r(3),h=n(p),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="UpSampling3D";var n=t.size,a=void 0===n?[2,2,2]:n,u=t.dimOrdering,s=void 0===u?"tf":u;return r.size=a,r.dimOrdering=s,r}return a(e,t),u(e,[{key:"call",value:function(t){"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(1,2,3,0));for(var e=t.tensor.shape,r=[e[0]*this.size[0],e[1]*this.size[1],e[2]*this.size[2],e[3]],n=new l.default([],r),o=0;o<this.size[0];o++)for(var i=0;i<this.size[1];i++)for(var a=0;a<this.size[2];a++)h.default.assign(n.tensor.lo(o,i,a,0).step(this.size[0],this.size[1],this.size[2],1),t.tensor);return t.tensor=n.tensor,"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(3,0,1,2)),t}}]),e}(c.default);e.default=d},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(4),l=n(f),p=r(3),h=n(p),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="ZeroPadding1D";var n=t.padding,a=void 0===n?1:n;return r.padding=a,r}return a(e,t),u(e,[{key:"call",value:function(t){var e=t.tensor.shape,r=[e[0]+2*this.padding,e[1]],n=new l.default([],r);return h.default.assign(n.tensor.hi(e[0]+this.padding,e[1]).lo(this.padding,0),t.tensor),t.tensor=n.tensor,t}}]),e}(c.default);e.default=d},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(4),l=n(f),p=r(3),h=n(p),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="ZeroPadding2D";var n=t.padding,a=void 0===n?[1,1]:n,u=t.dimOrdering,s=void 0===u?"tf":u;return r.padding=a,r.dimOrdering=s,r}return a(e,t),u(e,[{key:"call",value:function(t){"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(1,2,0));var e=t.tensor.shape,r=[e[0]+2*this.padding[0],e[1]+2*this.padding[1],e[2]],n=new l.default([],r);return h.default.assign(n.tensor.hi(e[0]+this.padding[0],e[1]+this.padding[1],e[2]).lo(this.padding[0],this.padding[1],0),t.tensor),t.tensor=n.tensor,"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(2,0,1)),t}}]),e}(c.default);e.default=d},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(4),l=n(f),p=r(3),h=n(p),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="ZeroPadding3D";var n=t.padding,a=void 0===n?[1,1,1]:n,u=t.dimOrdering,s=void 0===u?"tf":u;return r.padding=a,r.dimOrdering=s,r}return a(e,t),u(e,[{key:"call",value:function(t){"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(1,2,3,0));var e=t.tensor.shape,r=[e[0]+2*this.padding[0],e[1]+2*this.padding[1],e[2]+2*this.padding[2],e[3]],n=new l.default([],r);return h.default.assign(n.tensor.hi(e[0]+this.padding[0],e[1]+this.padding[1],e[2]+this.padding[2],e[3]).lo(this.padding[0],this.padding[1],this.padding[2],0),t.tensor),t.tensor=n.tensor,"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(3,0,1,2)),t}}]),e}(c.default);e.default=d},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ZeroPadding3D=e.ZeroPadding2D=e.ZeroPadding1D=e.UpSampling3D=e.UpSampling2D=e.UpSampling1D=e.Convolution3D=e.Deconvolution2D=e.SeparableConvolution2D=e.AtrousConvolution2D=e.Convolution2D=e.Convolution1D=void 0;var o=r(194),i=n(o),a=r(66),u=n(a),s=r(193),c=n(s),f=r(197),l=n(f),p=r(196),h=n(p),d=r(195),v=n(d),y=r(198),g=n(y),b=r(199),m=n(b),_=r(200),w=n(_),x=r(201),O=n(x),j=r(202),S=n(j),E=r(203),P=n(E);e.Convolution1D=i.default,e.Convolution2D=u.default,e.AtrousConvolution2D=c.default,e.SeparableConvolution2D=l.default,e.Deconvolution2D=h.default,e.Convolution3D=v.default,e.UpSampling1D=g.default,
e.UpSampling2D=m.default,e.UpSampling3D=w.default,e.ZeroPadding1D=O.default,e.ZeroPadding2D=S.default,e.ZeroPadding3D=P.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(19),f=o(c),l=r(1),p=n(l),h=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Activation";var n=t.activation,o=void 0===n?"linear":n;return r.activation=f[o],r}return u(e,t),s(e,[{key:"call",value:function(t){return this.activation(t),t}}]),e}(p.default);e.default=h},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(19),f=o(c),l=r(4),p=n(l),h=r(1),d=n(h),v=r(58),y=r(3),g=n(y),b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Dense";var n=t.outputDim,o=void 0===n?1:n,u=t.activation,s=void 0===u?"linear":u,c=t.inputDim,l=void 0===c?null:c,p=t.bias,h=void 0===p||p;return r.activation=f[s],r.outputDim=o,r.inputDim=l,r.bias=h,r.params=r.bias?["W","b"]:["W"],r.inputDim&&(r.inputShape=[r.inputDim]),r}return u(e,t),s(e,[{key:"call",value:function(t){var e=new p.default([],[this.outputDim]);if(this.bias&&g.default.assign(e.tensor,this.weights.b.tensor),t._useWeblas){var r=this.bias?this.weights.b.tensor.data:new Float32Array(this.outputDim);e.tensor.data=weblas.sgemm(1,this.weights.W.tensor.shape[1],t.tensor.shape[0],1,t.tensor.data,this.weights.W.tensor.data,1,r)}else(0,v.gemv)(1,this.weights.W.tensor.transpose(1,0),t.tensor,1,e.tensor);return t.tensor=e.tensor,this.activation(t),t}}]),e}(d.default);e.default=b},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Dropout";var n=t.p,a=void 0===n?.5:n;return r.p=Math.min(Math.max(0,a),1),r}return a(e,t),u(e,[{key:"call",value:function(t){return t}}]),e}(c.default);e.default=f},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(51),l=n(f),p=r(50),h=n(p),d=r(48),v=n(d),y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.layerClass="Flatten",r}return a(e,t),u(e,[{key:"call",value:function(t){if(t.tensor.shape.length>1){var e=[t.tensor.shape.reduce(function(t,e){return t*e},1)];t.tensor=(0,l.default)(new t._type((0,v.default)((0,h.default)(t.tensor))),e)}return t}}]),e}(c.default);e.default=y},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(19),f=o(c),l=r(4),p=n(l),h=r(1),d=n(h),v=r(58),y=r(3),g=n(y),b=r(25),m=n(b),_=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r._computeOutput=(0,m.default)({args:["array","array","array"],body:function(t,e,r){t=e*r+(1-r)*t}}),r.layerClass="Highway";var n=t.transformBias,o=void 0===n?-2:n,u=t.activation,s=void 0===u?"linear":u,c=t.bias,l=void 0===c||c;return r.transformBias=o,r.activation=f[s],r.bias=l,r.params=r.bias?["W","b","W_carry","b_carry"]:["W","W_carry"],r}return u(e,t),s(e,[{key:"call",value:function(t){var e=new p.default([],[this.weights.W.tensor.shape[1]]);this.bias&&g.default.assign(e.tensor,this.weights.b.tensor),(0,v.gemv)(1,this.weights.W.tensor.transpose(1,0),t.tensor,1,e.tensor),this.activation(e);var r=new p.default([],[this.weights.W_carry.tensor.shape[1]]);return this.bias&&g.default.assign(r.tensor,this.weights.b_carry.tensor),(0,v.gemv)(1,this.weights.W_carry.tensor.transpose(1,0),t.tensor,1,r.tensor),f.sigmoid(r),this._computeOutput(t.tensor,e.tensor,r.tensor),t}}]),e}(d.default);e.default=_},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(4),c=n(s),f=r(1),l=n(f),p=r(58),h=r(3),d=n(h),v=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="MaxoutDense";var n=t.outputDim,a=void 0===n?1:n,u=t.inputDim,s=void 0===u?null:u,c=t.bias,f=void 0===c||c;return r.outputDim=a,r.inputDim=s,r.bias=f,r.params=r.bias?["W","b"]:["W"],r}return a(e,t),u(e,[{key:"call",value:function(t){for(var e=this.weights.W.tensor.shape[0],r=new c.default([],[this.outputDim]),n=0;n<e;n++){var o=new c.default([],[this.outputDim]);this.bias&&d.default.assign(o.tensor,this.weights.b.tensor.pick(n,null)),(0,p.gemv)(1,this.weights.W.tensor.pick(n,null,null).transpose(1,0),t.tensor,1,o.tensor),d.default.maxeq(r.tensor,o.tensor)}return t.tensor=r.tensor,t}}]),e}(l.default);e.default=v},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(4),c=n(s),f=r(1),l=n(f),p=r(87),h=n(p),d=r(3),v=n(d),y=r(126),g=n(y),b=r(578),m=n(b),_=r(123),w=n(_),x=r(540),O=n(x),j=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Merge";var n=t.mode,a=void 0===n?"sum":n,u=t.concatAxis,s=void 0===u?-1:u,c=t.dotAxes,f=void 0===c?-1:c,l=t.outputShape,p=void 0===l?null:l,h=t.outputMask,d=void 0===h?null:h,v=["sum","mul","concat","ave","cos","dot","max"];if(!(v.indexOf(a)>-1))throw new Error(r.name+" [Merge layer] "+a+" not available.");return r.mode=a,r.concatAxis=s,r.dotAxes=f,r.outputShape=p,r.outputMask=d,r}return a(e,t),u(e,[{key:"_validateInputs",value:function(t){var e=this,r=t.map(function(t){return t.tensor.shape.slice()});if(["sum","mul","ave","cos","max"].indexOf(this.mode)>-1&&!r.every(function(t){return(0,w.default)(t,r[0])}))throw new Error(this.name+" [Merge layer] All input shapes must be the same for mode "+this.mode+".");if(["cos","dot"].indexOf(this.mode)>-1){if(2!==t.length)throw new Error(this.name+" [Merge layer] Exactly 2 inputs required for mode "+this.mode+".");if((0,O.default)(this.dotAxes)&&(this.dotAxes<0?this.dotAxes=[r[0].length+this.dotAxes,r[1].length+this.dotAxes]:this.dotAxes=[this.dotAxes-1,this.dotAxes-1]),r[0][this.dotAxes[0]]!==r[1][this.dotAxes[1]])throw new Error(this.name+" [Merge layer] Dimensions incompatibility using dot mode.")}else"concat"===this.mode&&!function(){var t=r.slice();if(t.forEach(function(t){return t.splice(e.concatAxis,1)}),!t.every(function(e){return(0,w.default)(e,t[0])}))throw new Error(e.name+" [Merge layer] In concat mode, all shapes must be the same except along the concat axis.")}();return!0}},{key:"call",value:function(t){var e=this,r=this._validateInputs(t);if(!r)throw new Error(this.name+" [Merge layer] Invalid inputs to call method.");var n=void 0,o=void 0;if(["sum","mul","ave","max"].indexOf(this.mode)>-1)o=t[0].tensor.shape.slice(),n=new c.default([],o);else if("concat"===this.mode)!function(){o=t[0].tensor.shape.slice();var r=e.concatAxis<0?o.length+e.concatAxis:e.concatAxis-1;t.slice(1,t.length).forEach(function(t){var e=t.tensor.shape.slice()[r];o[r]+=e}),n=new c.default([],o)}();else if(["cos","dot"].indexOf(this.mode)>-1){var i=t[0].tensor.shape.slice(),a=t[1].tensor.shape.slice();i.splice(this.dotAxes[0],1),a.splice(this.dotAxes[1],1),o=i.concat(a),1===o.length&&o.push(1),n=new c.default([],o)}if("sum"===this.mode)for(var u=0;u<t.length;u++)v.default.addeq(n.tensor,t[u].tensor);else if("mul"===this.mode){v.default.assigns(n.tensor,1);for(var s=0;s<t.length;s++)v.default.muleq(n.tensor,t[s].tensor)}else if("ave"===this.mode){for(var f=0;f<t.length;f++)v.default.addeq(n.tensor,t[f].tensor);v.default.divseq(n.tensor,t.length)}else if("max"===this.mode){v.default.assign(n.tensor,t[0].tensor);for(var l=1;l<t.length;l++)v.default.maxeq(n.tensor,t[l].tensor)}else if("concat"===this.mode){var p=this.concatAxis<0?t[0].tensor.shape.length+this.concatAxis:this.concatAxis-1;0===p?(0,m.default)(n.tensor,t.map(function(t){return t.tensor})):!function(){for(var e,r=[p],o=0;o<t[0].tensor.shape.length;o++)o!==p&&r.push(o);(0,m.default)((e=n.tensor).transpose.apply(e,r),t.map(function(t){var e;return(e=t.tensor).transpose.apply(e,r)}))}()}else if("dot"===this.mode){if(2!==t[0].tensor.shape.length||2!==t[1].tensor.shape.length)throw new Error(this.name+" [Merge layer] dot mode for 3+ dim tensors not yet implemented.");0===this.dotAxes[0]&&0===this.dotAxes[1]?(0,h.default)(n.tensor,t[0].tensor.transpose(1,0),t[1].tensor):1===this.dotAxes[0]&&1===this.dotAxes[1]&&(0,h.default)(n.tensor,t[0].tensor,t[1].tensor.transpose(1,0))}else if("cos"===this.mode){if(2!==t[0].tensor.shape.length||2!==t[1].tensor.shape.length)throw new Error(this.name+" [Merge layer] cos mode for 3+ dim tensors not yet implemented.");var d=new c.default([],n.tensor.shape),y=new c.default([],n.tensor.shape);0===this.dotAxes[0]&&0===this.dotAxes[1]?((0,h.default)(d.tensor,t[0].tensor.transpose(1,0),t[0].tensor),(0,h.default)(y.tensor,t[1].tensor.transpose(1,0),t[1].tensor),(0,h.default)(n.tensor,t[0].tensor.transpose(1,0),t[1].tensor)):1===this.dotAxes[0]&&1===this.dotAxes[1]&&((0,h.default)(d.tensor,t[0].tensor,t[0].tensor.transpose(1,0)),(0,h.default)(y.tensor,t[1].tensor,t[1].tensor.transpose(1,0)),(0,h.default)(n.tensor,t[0].tensor,t[1].tensor.transpose(1,0))),v.default.muleq(d.tensor,y.tensor),v.default.sqrteq(d.tensor),v.default.diveq(n.tensor,d.tensor),n.tensor=(0,g.default)(n.tensor,0)}return n}}]),e}(l.default);e.default=j},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(1),f=n(c),l=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Permute";var n=t.dims,o=void 0===n?[]:n;return r.dims=o.map(function(t){return t-1}),r}return u(e,t),s(e,[{key:"call",value:function(t){var e;if(this.dims.length!==t.tensor.shape.length)throw new Error(this.name+" [Permute layer] The specified dims permutation must match the number of dimensions.");return t.tensor=(e=t.tensor).transpose.apply(e,o(this.dims)),t}}]),e}(f.default);e.default=l},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(126),l=n(f),p=r(580),h=n(p),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="RepeatVector";var n=t.n,a=void 0===n?1:n;return r.n=a,r}return a(e,t),u(e,[{key:"call",value:function(t){if(1!==t.tensor.shape.length)throw new Error(this.name+" [RepeatVector layer] Only 1D tensor inputs allowed.");return t.tensor=(0,h.default)((0,l.default)(t.tensor,0),[this.n,1]),t}}]),e}(c.default);e.default=d},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(51),l=n(f),p=r(50),h=n(p),d=r(48),v=n(d),y=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Reshape";var n=t.shape,a=void 0===n?[]:n;return r.shape=a,r}return a(e,t),u(e,[{key:"call",value:function(t){if(this.shape.reduce(function(t,e){return t*e},1)!==t.tensor.size)throw new Error(this.name+" [Reshape layer] The total size of new array must be unchanged in reshape layer.");return t.tensor=(0,l.default)(new t._type((0,v.default)((0,h.default)(t.tensor))),this.shape),t}}]),e}(c.default);e.default=y},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="SpatialDropout2D";var n=t.p,a=void 0===n?.5:n,u=t.dimOrdering,s=void 0===u?"tf":u;return r.p=Math.min(Math.max(0,a),1),r.dimOrdering=s,r}return a(e,t),u(e,[{key:"call",value:function(t){return t}}]),e}(c.default);e.default=f},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="SpatialDropout3D";var n=t.p,a=void 0===n?.5:n,u=t.dimOrdering,s=void 0===u?"tf":u;return r.p=Math.min(Math.max(0,a),1),r.dimOrdering=s,r}return a(e,t),u(e,[{key:"call",value:function(t){return t}}]),e}(c.default);e.default=f},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.MaxoutDense=e.Highway=e.Merge=e.RepeatVector=e.Permute=e.Reshape=e.Flatten=e.SpatialDropout3D=e.SpatialDropout2D=e.Dropout=e.Activation=e.Dense=void 0;var o=r(206),i=n(o),a=r(205),u=n(a),s=r(207),c=n(s),f=r(215),l=n(f),p=r(216),h=n(p),d=r(208),v=n(d),y=r(214),g=n(y),b=r(212),m=n(b),_=r(213),w=n(_),x=r(211),O=n(x),j=r(209),S=n(j),E=r(210),P=n(E);e.Dense=i.default,e.Activation=u.default,e.Dropout=c.default,e.SpatialDropout2D=l.default,e.SpatialDropout3D=h.default,e.Flatten=v.default,e.Reshape=g.default,e.Permute=m.default,e.RepeatVector=w.default,e.Merge=O.default,e.Highway=S.default,e.MaxoutDense=P.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(4),l=n(f),p=r(3),h=n(p),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Embedding";var n=t.inputDim,a=void 0===n?1:n,u=t.outputDim,s=void 0===u?1:u,c=t.inputLength,f=void 0===c?0:c,l=t.maskZero,p=void 0!==l&&l,h=t.dropout,d=void 0===h?0:h;return r.inputDim=a,r.outputDim=s,r.inputLength=f,r.maskZero=p,r.dropout=d,r.params=["W"],r}return a(e,t),u(e,[{key:"call",value:function(t){for(var e=new l.default([],[t.tensor.shape[0],this.weights.W.tensor.shape[1]]),r=0,n=t.tensor.shape[0];r<n;r++)h.default.assign(e.tensor.pick(r,null),this.weights.W.tensor.pick(t.tensor.get(r),null));return t.tensor=e.tensor,t}}]),e}(c.default);e.default=d},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Embedding=void 0;var o=r(218),i=n(o);e.Embedding=i.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(4),l=n(f),p=r(3),h=n(p),d=r(50),v=n(d),y=r(48),g=n(y),b=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="BatchNormalization";var n=t.epsilon,a=void 0===n?1e-5:n,u=t.mode,s=void 0===u?0:u,c=t.axis,f=void 0===c?-1:c;return r.epsilon=a,r.mode=s,r.axis=f,r.params=0===r.mode?["gamma","beta","running_mean","running_std"]:["gamma","beta"],r}return a(e,t),u(e,[{key:"call",value:function(t){var e=this;this.axis=this.axis<0?t.tensor.shape.length+this.axis:this.axis-1;for(var r=[],n=0;n<t.tensor.shape.length;n++)n===this.axis?r.push(1):r.push(null);for(var o=new l.default([],t.tensor.shape),i=new l.default([],t.tensor.shape),a=0;a<t.tensor.shape[this.axis];a++){var u,s;r[this.axis]=a,h.default.assigns((u=o.tensor).pick.apply(u,r),this.weights.gamma.tensor.get(a)),h.default.assigns((s=i.tensor).pick.apply(s,r),this.weights.beta.tensor.get(a))}var c=new l.default([],t.tensor.shape),f=new l.default([],t.tensor.shape);if(0===this.mode){for(var p=0;p<t.tensor.shape[this.axis];p++){var d,y;r[this.axis]=p,h.default.assigns((d=c.tensor).pick.apply(d,r),this.weights.running_mean.tensor.get(p)),h.default.assigns((y=f.tensor).pick.apply(y,r),this.weights.running_std.tensor.get(p)+this.epsilon)}h.default.sqrteq(f.tensor)}else if(1===this.mode){var b=t.tensor.shape.slice();b.splice(this.axis,1);for(var m=new l.default([],b),_=0;_<t.tensor.shape[this.axis];_++){var w;r[this.axis]=_,h.default.addeq(m.tensor,(w=t.tensor).pick.apply(w,r))}h.default.divseq(m.tensor,t.tensor.shape[this.axis]);for(var x=new l.default([],b),O=new l.default([],b),j=0;j<t.tensor.shape[this.axis];j++){var S;r[this.axis]=j,h.default.sub(O.tensor,(S=t.tensor).pick.apply(S,r),m.tensor),h.default.powseq(O.tensor,2),h.default.addeq(x.tensor,O.tensor)}h.default.divseq(x.tensor,t.tensor.shape[this.axis]),h.default.addseq(x.tensor,this.epsilon),h.default.sqrteq(x.tensor),h.default.addseq(x.tensor,this.epsilon);for(var E=0;E<t.tensor.shape[this.axis];E++){var P,k;r[this.axis]=E,h.default.assign((P=c.tensor).pick.apply(P,r),m.tensor),h.default.assign((k=f.tensor).pick.apply(k,r),x.tensor)}}else{if(2!==this.mode)throw new Error("[normalization.BatchNormalization] Invalid mode "+this.mode+".");for(var A=function(n){var o,i,a;r[e.axis]=n;var u=(0,g.default)((0,v.default)((o=t.tensor).pick.apply(o,r))),s=u.reduce(function(t,e){return t+e},0)/u.length,l=u.map(function(t){return(t-s)*(t-s)}).reduce(function(t,e){return t+e},0)/u.length;h.default.assigns((i=c.tensor).pick.apply(i,r),s),h.default.assigns((a=f.tensor).pick.apply(a,r),l+e.epsilon)},M=0;M<t.tensor.shape[this.axis];M++)A(M);h.default.sqrteq(f.tensor)}return h.default.subeq(t.tensor,c.tensor),h.default.diveq(t.tensor,f.tensor),h.default.muleq(t.tensor,o.tensor),h.default.addeq(t.tensor,i.tensor),t}}]),e}(c.default);e.default=b},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.BatchNormalization=void 0;var o=r(220),i=n(o);e.BatchNormalization=i.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(129),s=n(u),c=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.layerClass="AveragePooling1D",r.poolingFunc="average",r}return a(e,t),e}(s.default);e.default=c},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0
}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(130),s=n(u),c=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.layerClass="AveragePooling2D",r.poolingFunc="average",r}return a(e,t),e}(s.default);e.default=c},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(131),s=n(u),c=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.layerClass="AveragePooling3D",r.poolingFunc="average",r}return a(e,t),e}(s.default);e.default=c},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(1),f=n(c),l=r(4),p=n(l),h=r(3),d=n(h),v=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.layerClass="GlobalAveragePooling1D",r}return a(e,t),s(e,[{key:"call",value:function(t){for(var e=u(t.tensor.shape,2),r=e[0],n=e[1],o=new p.default([],[n]),i=0,a=n;i<a;i++)o.tensor.set(i,d.default.sum(t.tensor.pick(null,i))/r);return t.tensor=o.tensor,t}}]),e}(f.default);e.default=v},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(1),f=n(c),l=r(4),p=n(l),h=r(3),d=n(h),v=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="GlobalAveragePooling2D";var n=t.dimOrdering,a=void 0===n?"tf":n;return r.dimOrdering=a,r}return a(e,t),s(e,[{key:"call",value:function(t){"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(1,2,0));for(var e=u(t.tensor.shape,3),r=e[0],n=e[1],o=e[2],i=new p.default([],[o]),a=0,s=o;a<s;a++)i.tensor.set(a,d.default.sum(t.tensor.pick(null,null,a))/(r*n));return t.tensor=i.tensor,t}}]),e}(f.default);e.default=v},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(4),l=n(f),p=r(3),h=n(p),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.layerClass="GlobalMaxPooling1D",r}return a(e,t),u(e,[{key:"call",value:function(t){for(var e=t.tensor.shape[1],r=new l.default([],[e]),n=0,o=e;n<o;n++)r.tensor.set(n,h.default.sup(t.tensor.pick(null,n)));return t.tensor=r.tensor,t}}]),e}(c.default);e.default=d},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=r(1),c=n(s),f=r(4),l=n(f),p=r(3),h=n(p),d=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="GlobalMaxPooling2D";var n=t.dimOrdering,a=void 0===n?"tf":n;return r.dimOrdering=a,r}return a(e,t),u(e,[{key:"call",value:function(t){"th"===this.dimOrdering&&(t.tensor=t.tensor.transpose(1,2,0));for(var e=t.tensor.shape[2],r=new l.default([],[e]),n=0,o=e;n<o;n++)r.tensor.set(n,h.default.sup(t.tensor.pick(null,null,n)));return t.tensor=r.tensor,t}}]),e}(c.default);e.default=d},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(129),s=n(u),c=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.layerClass="MaxPooling1D",r.poolingFunc="max",r}return a(e,t),e}(s.default);e.default=c},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(130),s=n(u),c=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.layerClass="MaxPooling2D",r.poolingFunc="max",r}return a(e,t),e}(s.default);e.default=c},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(131),s=n(u),c=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.layerClass="MaxPooling3D",r.poolingFunc="max",r}return a(e,t),e}(s.default);e.default=c},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalAveragePooling2D=e.GlobalMaxPooling2D=e.GlobalAveragePooling1D=e.GlobalMaxPooling1D=e.AveragePooling3D=e.AveragePooling2D=e.AveragePooling1D=e.MaxPooling3D=e.MaxPooling2D=e.MaxPooling1D=void 0;var o=r(229),i=n(o),a=r(230),u=n(a),s=r(231),c=n(s),f=r(222),l=n(f),p=r(223),h=n(p),d=r(224),v=n(d),y=r(227),g=n(y),b=r(225),m=n(b),_=r(228),w=n(_),x=r(226),O=n(x);e.MaxPooling1D=i.default,e.MaxPooling2D=u.default,e.MaxPooling3D=c.default,e.AveragePooling1D=l.default,e.AveragePooling2D=h.default,e.AveragePooling3D=v.default,e.GlobalMaxPooling1D=g.default,e.GlobalAveragePooling1D=m.default,e.GlobalMaxPooling2D=w.default,e.GlobalAveragePooling2D=O.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(19),f=o(c),l=r(4),p=n(l),h=r(1),d=n(h),v=r(58),y=r(3),g=n(y),b=r(25),m=n(b),_=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r._combine=(0,m.default)({args:["array","array","array","array"],body:function(t,e,r,n){t=e+r+n}}),r._update=(0,m.default)({args:["array","array","array"],body:function(t,e,r){t=t*(1-r)+e*r}}),r.layerClass="GRU";var n=t.outputDim,o=void 0===n?1:n,u=t.activation,s=void 0===u?"tanh":u,c=t.innerActivation,l=void 0===c?"hardSigmoid":c,p=t.returnSequences,h=void 0!==p&&p,d=t.goBackwards,v=void 0!==d&&d,y=t.stateful,g=void 0!==y&&y;return r.outputDim=o,r.activation=s,r.innerActivation=l,r.activationFunc=f[s],r.innerActivationFunc=f[l],r.returnSequences=h,r.goBackwards=v,r.stateful=g,r.params=["W_z","U_z","b_z","W_r","U_r","b_r","W_h","U_h","b_h"],r}return u(e,t),s(e,[{key:"call",value:function(t){for(var e=this,r=new p.default([],[t.tensor.shape[1]]),n=this.weights.b_z.tensor.shape[0],o=this.weights.b_r.tensor.shape[0],i=this.weights.b_h.tensor.shape[0],a=new p.default([],[n]),u=new p.default([],[n]),s=new p.default([],[n]),c=new p.default([],[o]),f=new p.default([],[o]),l=new p.default([],[o]),h=this.stateful&&this.currentHiddenState?this.currentHiddenState:new p.default([],[i]),d=new p.default([],[i]),y=new p.default([],[i]),b=new p.default([],[i]),m=new p.default([],[t.tensor.shape[0],i]),_=function(){var t=[u,s,f,l,d,y];t.forEach(function(t){return g.default.assigns(t.tensor,0)})},w=function(){g.default.assign(b.tensor,h.tensor),(0,v.gemv)(1,e.weights.W_z.tensor.transpose(1,0),r.tensor,1,u.tensor),(0,v.gemv)(1,e.weights.U_z.tensor.transpose(1,0),b.tensor,1,s.tensor),e._combine(a.tensor,u.tensor,s.tensor,e.weights.b_z.tensor),e.innerActivationFunc(a),(0,v.gemv)(1,e.weights.W_r.tensor.transpose(1,0),r.tensor,1,f.tensor),(0,v.gemv)(1,e.weights.U_r.tensor.transpose(1,0),b.tensor,1,l.tensor),e._combine(c.tensor,f.tensor,l.tensor,e.weights.b_r.tensor),e.innerActivationFunc(c),g.default.muleq(c.tensor,b.tensor),(0,v.gemv)(1,e.weights.W_h.tensor.transpose(1,0),r.tensor,1,d.tensor),(0,v.gemv)(1,e.weights.U_h.tensor.transpose(1,0),c.tensor,1,y.tensor),e._combine(h.tensor,d.tensor,y.tensor,e.weights.b_h.tensor),e.activationFunc(h),e._update(h.tensor,b.tensor,a.tensor)},x=0,O=t.tensor.shape[0];x<O;x++){var j=this.goBackwards?O-x-1:x;g.default.assign(r.tensor,t.tensor.pick(j,null)),_(),w(),this.returnSequences&&g.default.assign(m.tensor.pick(x,null),h.tensor)}return this.returnSequences?t.tensor=m.tensor:t.tensor=h.tensor,this.stateful&&(this.currentHiddenState=h),t}}]),e}(d.default);e.default=_},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(19),f=o(c),l=r(4),p=n(l),h=r(1),d=n(h),v=r(58),y=r(3),g=n(y),b=r(25),m=n(b),_=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r._combine=(0,m.default)({args:["array","array","array","array"],body:function(t,e,r,n){t=e+r+n}}),r._update=(0,m.default)({args:["array","array","array","array"],body:function(t,e,r,n){t=t*r+e*n}}),r.layerClass="LSTM";var n=t.outputDim,o=void 0===n?1:n,u=t.activation,s=void 0===u?"tanh":u,c=t.innerActivation,l=void 0===c?"hardSigmoid":c,p=t.returnSequences,h=void 0!==p&&p,d=t.goBackwards,v=void 0!==d&&d,y=t.stateful,g=void 0!==y&&y;return r.outputDim=o,r.activation=s,r.innerActivation=l,r.activationFunc=f[s],r.innerActivationFunc=f[l],r.returnSequences=h,r.goBackwards=v,r.stateful=g,r.params=["W_i","U_i","b_i","W_c","U_c","b_c","W_f","U_f","b_f","W_o","U_o","b_o"],r}return u(e,t),s(e,[{key:"call",value:function(t){for(var e=this,r=new p.default([],[t.tensor.shape[1]]),n=this.weights.b_i.tensor.shape[0],o=this.weights.b_c.tensor.shape[0],i=this.weights.b_f.tensor.shape[0],a=this.weights.b_o.tensor.shape[0],u=new p.default([],[n]),s=new p.default([],[n]),c=new p.default([],[n]),f=new p.default([],[i]),l=new p.default([],[i]),h=new p.default([],[i]),d=new p.default([],[a]),y=new p.default([],[a]),b=new p.default([],[a]),m=new p.default([],[o]),_=new p.default([],[o]),w=new p.default([],[o]),x=this.stateful&&this.previousCandidate?this.previousCandidate:new p.default([],[o]),O=this.stateful&&this.currentHiddenState?this.currentHiddenState:new p.default([],[o]),j=new p.default([],[o]),S=new p.default([],[t.tensor.shape[0],o]),E=function(){var t=[s,c,l,h,y,b,_,w];t.forEach(function(t){return g.default.assigns(t.tensor,0)})},P=function(){g.default.assign(j.tensor,O.tensor),(0,v.gemv)(1,e.weights.W_i.tensor.transpose(1,0),r.tensor,1,s.tensor),(0,v.gemv)(1,e.weights.U_i.tensor.transpose(1,0),j.tensor,1,c.tensor),e._combine(u.tensor,s.tensor,c.tensor,e.weights.b_i.tensor),e.innerActivationFunc(u),(0,v.gemv)(1,e.weights.W_f.tensor.transpose(1,0),r.tensor,1,l.tensor),(0,v.gemv)(1,e.weights.U_f.tensor.transpose(1,0),j.tensor,1,h.tensor),e._combine(f.tensor,l.tensor,h.tensor,e.weights.b_f.tensor),e.innerActivationFunc(f),(0,v.gemv)(1,e.weights.W_o.tensor.transpose(1,0),r.tensor,1,y.tensor),(0,v.gemv)(1,e.weights.U_o.tensor.transpose(1,0),j.tensor,1,b.tensor),e._combine(d.tensor,y.tensor,b.tensor,e.weights.b_o.tensor),e.innerActivationFunc(d),(0,v.gemv)(1,e.weights.W_c.tensor.transpose(1,0),r.tensor,1,_.tensor),(0,v.gemv)(1,e.weights.U_c.tensor.transpose(1,0),j.tensor,1,w.tensor),e._combine(m.tensor,_.tensor,w.tensor,e.weights.b_c.tensor),e.activationFunc(m),e._update(m.tensor,x.tensor,u.tensor,f.tensor),g.default.assign(x.tensor,m.tensor),e.activationFunc(m),g.default.mul(O.tensor,d.tensor,m.tensor)},k=0,A=t.tensor.shape[0];k<A;k++){var M=this.goBackwards?A-k-1:k;g.default.assign(r.tensor,t.tensor.pick(M,null)),E(),P(),this.returnSequences&&g.default.assign(S.tensor.pick(k,null),O.tensor)}return this.returnSequences?t.tensor=S.tensor:t.tensor=O.tensor,this.stateful&&(this.previousCandidate=x,this.currentHiddenState=O),t}}]),e}(d.default);e.default=_},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(19),f=o(c),l=r(4),p=n(l),h=r(1),d=n(h),v=r(58),y=r(3),g=n(y),b=r(25),m=n(b),_=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r._combine=(0,m.default)({args:["array","array","array","array"],body:function(t,e,r,n){t=e+r+n}}),r.layerClass="SimpleRNN";var n=t.outputDim,o=void 0===n?1:n,u=t.activation,s=void 0===u?"tanh":u,c=t.returnSequences,l=void 0!==c&&c,p=t.goBackwards,h=void 0!==p&&p,d=t.stateful,v=void 0!==d&&d;return r.outputDim=o,r.activation=s,r.activationFunc=f[s],r.returnSequences=l,r.goBackwards=h,r.stateful=v,r.params=["W","U","b"],r}return u(e,t),s(e,[{key:"call",value:function(t){for(var e=this,r=new p.default([],[t.tensor.shape[1]]),n=this.weights.b.tensor.shape[0],o=this.stateful&&this.currentHiddenState?this.currentHiddenState:new p.default([],[n]),i=new p.default([],[n]),a=new p.default([],[n]),u=new p.default([],[n]),s=new p.default([],[t.tensor.shape[0],n]),c=function(){var t=[i,a];t.forEach(function(t){return g.default.assigns(t.tensor,0)})},f=function(){g.default.assign(u.tensor,o.tensor),(0,v.gemv)(1,e.weights.W.tensor.transpose(1,0),r.tensor,1,i.tensor),(0,v.gemv)(1,e.weights.U.tensor.transpose(1,0),u.tensor,1,a.tensor),e._combine(o.tensor,i.tensor,a.tensor,e.weights.b.tensor),e.activationFunc(o)},l=0,h=t.tensor.shape[0];l<h;l++){var d=this.goBackwards?h-l-1:l;g.default.assign(r.tensor,t.tensor.pick(d,null)),c(),f(),this.returnSequences&&g.default.assign(s.tensor.pick(l,null),o.tensor)}return this.returnSequences?t.tensor=s.tensor:t.tensor=o.tensor,this.stateful&&(this.currentHiddenState=o),t}}]),e}(d.default);e.default=_},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(1),f=o(c),l=r(4),p=o(l),h=r(3),d=o(h),v=r(544),y=o(v),g=r(132),b=n(g),m=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="Bidirectional";var n=t.layer,o=t.mergeMode,u=void 0===o?"concat":o;if(!n)throw new Error("[Bidirectional] wrapped layer is undefined.");r.forwardLayer=n;var s=(0,y.default)(n,["outputDim","activation","innerActivation","returnSequences","goBackwards","stateful"]);return s.goBackwards=!s.goBackwards,r.backwardLayer=new b[n.layerClass](s),r.mergeMode=u,r}return u(e,t),s(e,[{key:"setWeights",value:function(t){this.forwardLayer.setWeights(t.slice(0,t.length/2)),this.backwardLayer.setWeights(t.slice(t.length/2))}},{key:"call",value:function(t){var e=new p.default(t.tensor.data,t.tensor.shape),r=new p.default(t.tensor.data,t.tensor.shape),n=this.forwardLayer.call(e),o=this.backwardLayer.call(r);if("concat"===this.mergeMode){var i=n.tensor.shape.slice();i[i.length-1]+=o.tensor.shape[i.length-1];var a=new p.default([],i);this.forwardLayer.returnSequences?(d.default.assign(a.tensor.hi(i[0],n.tensor.shape[1]).lo(0,0),n.tensor),d.default.assign(a.tensor.hi(i[0],i[1]).lo(0,n.tensor.shape[1]),o.tensor.step(-1))):(d.default.assign(a.tensor.hi(n.tensor.shape[0]).lo(0),n.tensor),d.default.assign(a.tensor.hi(i[0]).lo(n.tensor.shape[0]),o.tensor)),t.tensor=a.tensor}else if("sum"===this.mergeMode){var u=n.tensor.shape.slice(),s=new p.default([],u);d.default.addeq(s.tensor,n.tensor),d.default.addeq(s.tensor,o.tensor),t.tensor=s.tensor}else if("mul"===this.mergeMode){var c=n.tensor.shape.slice(),f=new p.default([],c);d.default.assigns(f.tensor,1),d.default.muleq(f.tensor,n.tensor),d.default.muleq(f.tensor,o.tensor),t.tensor=f.tensor}else if("ave"===this.mergeMode){var l=n.tensor.shape.slice(),h=new p.default([],l);d.default.addeq(h.tensor,n.tensor),d.default.addeq(h.tensor,o.tensor),d.default.divseq(h.tensor,2),t.tensor=h.tensor}return t}}]),e}(f.default);e.default=m},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=r(1),f=n(c),l=r(4),p=n(l),h=r(3),d=n(h),v=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));r.layerClass="TimeDistributed";var n=t.layer;if(!n)throw new Error("[TimeDistributed] wrapped layer is undefined.");return r.layer=n,r}return u(e,t),s(e,[{key:"setWeights",value:function(t){this.layer.setWeights(t)}},{key:"call",value:function(t){var e,r,n=[].concat(o(t.tensor.shape.slice(1))),i=new p.default([],n);d.default.assign(i.tensor,(e=t.tensor).pick.apply(e,[0].concat(o(n.map(function(t){return null})))));var a=this.layer.call(i),u=a.tensor.shape.slice(),s=new p.default([],[t.tensor.shape[0]].concat(o(u)));d.default.assign((r=s.tensor).pick.apply(r,[0].concat(o(u.map(function(t){return null})))),a.tensor);for(var c=1,f=t.tensor.shape[0];c<f;c++){var l,h,v=new p.default([],n);d.default.assign(v.tensor,(l=t.tensor).pick.apply(l,[c].concat(o(n.map(function(t){return null}))))),a=this.layer.call(v),d.default.assign((h=s.tensor).pick.apply(h,[c].concat(o(u.map(function(t){return null})))),a.tensor)}return t.tensor=s.tensor,t}}]),e}(f.default);e.default=v},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Bidirectional=e.TimeDistributed=void 0;var o=r(237),i=n(o),a=r(236),u=n(a);e.TimeDistributed=i.default,e.Bidirectional=u.default},function(t,e){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function n(t){return 3*t.length/4-r(t)}function o(t){var e,n,o,i,a,u,s=t.length;a=r(t),u=new f(3*s/4-a),o=a>0?s-4:s;var l=0;for(e=0,n=0;e<o;e+=4,n+=3)i=c[t.charCodeAt(e)]<<18|c[t.charCodeAt(e+1)]<<12|c[t.charCodeAt(e+2)]<<6|c[t.charCodeAt(e+3)],u[l++]=i>>16&255,u[l++]=i>>8&255,u[l++]=255&i;return 2===a?(i=c[t.charCodeAt(e)]<<2|c[t.charCodeAt(e+1)]>>4,u[l++]=255&i):1===a&&(i=c[t.charCodeAt(e)]<<10|c[t.charCodeAt(e+1)]<<4|c[t.charCodeAt(e+2)]>>2,u[l++]=i>>8&255,u[l++]=255&i),u}function i(t){return s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}function a(t,e,r){for(var n,o=[],a=e;a<r;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],o.push(i(n));return o.join("")}function u(t){for(var e,r=t.length,n=r%3,o="",i=[],u=16383,c=0,f=r-n;c<f;c+=u)i.push(a(t,c,c+u>f?f:c+u));return 1===n?(e=t[r-1],o+=s[e>>2],o+=s[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=s[e>>10],o+=s[e>>4&63],o+=s[e<<2&63],o+="="),i.push(o),i.join("")}e.byteLength=n,e.toByteArray=o,e.fromByteArray=u;for(var s=[],c=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,h=l.length;p<h;++p)s[p]=l[p],c[l.charCodeAt(p)]=p;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(t,e){"use strict";"use restrict";function r(t){var e=32;return t&=-t,t&&e--,65535&t&&(e-=16),16711935&t&&(e-=8),252645135&t&&(e-=4),858993459&t&&(e-=2),1431655765&t&&(e-=1),e}var n=32;e.INT_BITS=n,e.INT_MAX=2147483647,e.INT_MIN=-1<<n-1,e.sign=function(t){return(t>0)-(t<0)},e.abs=function(t){var e=t>>n-1;return(t^e)-e},e.min=function(t,e){return e^(t^e)&-(t<e)},e.max=function(t,e){return t^(t^e)&-(t<e)},e.isPow2=function(t){return!(t&t-1||!t)},e.log2=function(t){var e,r;return e=(t>65535)<<4,t>>>=e,r=(t>255)<<3,t>>>=r,e|=r,r=(t>15)<<2,t>>>=r,e|=r,r=(t>3)<<1,t>>>=r,e|=r,e|t>>1},e.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},e.popCount=function(t){return t-=t>>>1&1431655765,t=(858993459&t)+(t>>>2&858993459),16843009*(t+(t>>>4)&252645135)>>>24},e.countTrailingZeros=r,e.nextPow2=function(t){return t+=0===t,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t+1},e.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t-(t>>>1)},e.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,t&=15,27030>>>t&1};var o=new Array(256);!function(t){for(var e=0;e<256;++e){var r=e,n=e,o=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--o;t[e]=n<<o&255}}(o),e.reverse=function(t){return o[255&t]<<24|o[t>>>8&255]<<16|o[t>>>16&255]<<8|o[t>>>24&255]},e.interleave2=function(t,e){return t&=65535,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e&=65535,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t|e<<1},e.deinterleave2=function(t,e){return t=t>>>e&1431655765,t=858993459&(t|t>>>1),t=252645135&(t|t>>>2),t=16711935&(t|t>>>4),t=65535&(t|t>>>16),t<<16>>16},e.interleave3=function(t,e,r){return t&=1023,t=4278190335&(t|t<<16),t=251719695&(t|t<<8),t=3272356035&(t|t<<4),t=1227133513&(t|t<<2),e&=1023,e=4278190335&(e|e<<16),e=251719695&(e|e<<8),e=3272356035&(e|e<<4),e=1227133513&(e|e<<2),t|=e<<1,r&=1023,r=4278190335&(r|r<<16),r=251719695&(r|r<<8),r=3272356035&(r|r<<4),r=1227133513&(r|r<<2),
t|r<<2},e.deinterleave3=function(t,e){return t=t>>>e&1227133513,t=3272356035&(t|t>>>2),t=251719695&(t|t>>>4),t=4278190335&(t|t>>>8),t=1023&(t|t>>>16),t<<22>>22},e.nextCombination=function(t){var e=t|t-1;return e+1|(~e&-~e)-1>>>r(t)+1}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){r(251),t.exports=r(29).RegExp.escape},function(t,e,r){var n=r(7),o=r(96),i=r(8)("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),n(e)&&(e=e[i],null===e&&(e=void 0))),void 0===e?Array:e}},function(t,e,r){var n=r(243);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,r){"use strict";var n=r(2),o=r(28),i="number";t.exports=function(t){if("string"!==t&&t!==i&&"default"!==t)throw TypeError("Incorrect hint");return o(n(this),t!=i)}},function(t,e,r){var n=r(42),o=r(75),i=r(62);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var a,u=r(t),s=i.f,c=0;u.length>c;)s.call(t,a=u[c++])&&e.push(a);return e}},function(t,e,r){var n=r(42),o=r(18);t.exports=function(t,e){for(var r,i=o(t),a=n(i),u=a.length,s=0;u>s;)if(i[r=a[s++]]===e)return r}},function(t,e,r){"use strict";var n=r(249),o=r(71),i=r(14);t.exports=function(){for(var t=i(this),e=arguments.length,r=Array(e),a=0,u=n._,s=!1;e>a;)(r[a]=arguments[a++])===u&&(s=!0);return function(){var n,i=this,a=arguments.length,c=0,f=0;if(!s&&!a)return o(t,r,i);if(n=r.slice(),s)for(;e>c;c++)n[c]===u&&(n[c]=arguments[f++]);for(;a>f;)n.push(arguments[f++]);return o(t,n,i)}}},function(t,e,r){t.exports=r(5)},function(t,e){t.exports=function(t,e){var r=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,r)}}},function(t,e,r){var n=r(0),o=r(250)(/[\\^$*+?.()|[\]{}]/g,"\\$&");n(n.S,"RegExp",{escape:function(t){return o(t)}})},function(t,e,r){var n=r(0);n(n.P,"Array",{copyWithin:r(135)}),r(52)("copyWithin")},function(t,e,r){"use strict";var n=r(0),o=r(26)(4);n(n.P+n.F*!r(24)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,r){var n=r(0);n(n.P,"Array",{fill:r(88)}),r(52)("fill")},function(t,e,r){"use strict";var n=r(0),o=r(26)(2);n(n.P+n.F*!r(24)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),o=r(26)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r(52)(i)},function(t,e,r){"use strict";var n=r(0),o=r(26)(5),i="find",a=!0;i in[]&&Array(1)[i](function(){a=!1}),n(n.P+n.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r(52)(i)},function(t,e,r){"use strict";var n=r(0),o=r(26)(0),i=r(24)([].forEach,!0);n(n.P+n.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(30),o=r(0),i=r(12),a=r(144),u=r(95),s=r(11),c=r(89),f=r(112);o(o.S+o.F*!r(73)(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,o,l,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,g=0,b=f(p);if(y&&(v=n(v,d>2?arguments[2]:void 0,2)),void 0==b||h==Array&&u(b))for(e=s(p.length),r=new h(e);e>g;g++)c(r,g,y?v(p[g],g):p[g]);else for(l=b.call(p),r=new h;!(o=l.next()).done;g++)c(r,g,y?a(l,v,[o.value,g],!0):o.value);return r.length=g,r}})},function(t,e,r){"use strict";var n=r(0),o=r(67)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!r(24)(i)),"Array",{indexOf:function(t){return a?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,r){var n=r(0);n(n.S,"Array",{isArray:r(96)})},function(t,e,r){"use strict";var n=r(0),o=r(18),i=[].join;n(n.P+n.F*(r(61)!=Object||!r(24)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,r){"use strict";var n=r(0),o=r(18),i=r(35),a=r(11),u=[].lastIndexOf,s=!!u&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(s||!r(24)(u)),"Array",{lastIndexOf:function(t){if(s)return u.apply(this,arguments)||0;var e=o(this),r=a(e.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,i(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,r){"use strict";var n=r(0),o=r(26)(1);n(n.P+n.F*!r(24)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),o=r(89);n(n.S+n.F*r(6)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);e>t;)o(r,t,arguments[t++]);return r.length=e,r}})},function(t,e,r){"use strict";var n=r(0),o=r(137);n(n.P+n.F*!r(24)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,r){"use strict";var n=r(0),o=r(137);n(n.P+n.F*!r(24)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,r){"use strict";var n=r(0),o=r(93),i=r(22),a=r(45),u=r(11),s=[].slice;n(n.P+n.F*r(6)(function(){o&&s.call(o)}),"Array",{slice:function(t,e){var r=u(this.length),n=i(this);if(e=void 0===e?r:e,"Array"==n)return s.call(this,t,e);for(var o=a(t,r),c=a(e,r),f=u(c-o),l=Array(f),p=0;p<f;p++)l[p]="String"==n?this.charAt(o+p):this[o+p];return l}})},function(t,e,r){"use strict";var n=r(0),o=r(26)(3);n(n.P+n.F*!r(24)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),o=r(14),i=r(12),a=r(6),u=[].sort,s=[1,2,3];n(n.P+n.F*(a(function(){s.sort(void 0)})||!a(function(){s.sort(null)})||!r(24)(u)),"Array",{sort:function(t){return void 0===t?u.call(i(this)):u.call(i(this),o(t))}})},function(t,e,r){r(44)("Array")},function(t,e,r){var n=r(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,r){"use strict";var n=r(0),o=r(6),i=Date.prototype.getTime,a=function(t){return t>9?t:"0"+t};n(n.P+n.F*(o(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!o(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),r=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(r>99?r:"0"+a(r))+"Z"}})},function(t,e,r){"use strict";var n=r(0),o=r(12),i=r(28);n(n.P+n.F*r(6)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),r=i(e);return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},function(t,e,r){var n=r(8)("toPrimitive"),o=Date.prototype;n in o||r(15)(o,n,r(245))},function(t,e,r){var n=Date.prototype,o="Invalid Date",i="toString",a=n[i],u=n.getTime;new Date(NaN)+""!=o&&r(16)(n,i,function(){var t=u.call(this);return t===t?a.call(this):o})},function(t,e,r){var n=r(0);n(n.P,"Function",{bind:r(138)})},function(t,e,r){"use strict";var n=r(7),o=r(21),i=r(8)("hasInstance"),a=Function.prototype;i in a||r(10).f(a,i,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,r){var n=r(10).f,o=r(34),i=r(13),a=Function.prototype,u=/^\s*function ([^ (]*)/,s="name",c=Object.isExtensible||function(){return!0};s in a||r(9)&&n(a,s,{configurable:!0,get:function(){try{var t=this,e=(""+t).match(u)[1];return i(t,s)||!c(t)||n(t,s,o(5,e)),e}catch(t){return""}}})},function(t,e,r){var n=r(0),o=r(146),i=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,r){function n(t){return isFinite(t=+t)&&0!=t?t<0?-n(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=r(0),i=Math.asinh;o(o.S+o.F*!(i&&1/i(0)>0),"Math",{asinh:n})},function(t,e,r){var n=r(0),o=Math.atanh;n(n.S+n.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,r){var n=r(0),o=r(100);n(n.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,r){var n=r(0);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,r){var n=r(0),o=Math.exp;n(n.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,r){var n=r(0),o=r(99);n(n.S+n.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,r){var n=r(0),o=r(100),i=Math.pow,a=i(2,-52),u=i(2,-23),s=i(2,127)*(2-u),c=i(2,-126),f=function(t){return t+1/a-1/a};n(n.S,"Math",{fround:function(t){var e,r,n=Math.abs(t),i=o(t);return n<c?i*f(n/c/u)*c*u:(e=(1+u/a)*n,r=e-(e-n),r>s||r!=r?i*(1/0):i*r)}})},function(t,e,r){var n=r(0),o=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var r,n,i=0,a=0,u=arguments.length,s=0;a<u;)r=o(arguments[a++]),s<r?(n=s/r,i=i*n*n+1,s=r):r>0?(n=r/s,i+=n*n):i+=r;return s===1/0?1/0:s*Math.sqrt(i)}})},function(t,e,r){var n=r(0),o=Math.imul;n(n.S+n.F*r(6)(function(){return o(4294967295,5)!=-5||2!=o.length}),"Math",{imul:function(t,e){var r=65535,n=+t,o=+e,i=r&n,a=r&o;return 0|i*a+((r&n>>>16)*a+i*(r&o>>>16)<<16>>>0)}})},function(t,e,r){var n=r(0);n(n.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,r){var n=r(0);n(n.S,"Math",{log1p:r(146)})},function(t,e,r){var n=r(0);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,r){var n=r(0);n(n.S,"Math",{sign:r(100)})},function(t,e,r){var n=r(0),o=r(99),i=Math.exp;n(n.S+n.F*r(6)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,r){var n=r(0),o=r(99),i=Math.exp;n(n.S,"Math",{tanh:function(t){var e=o(t=+t),r=o(-t);return e==1/0?1:r==1/0?-1:(e-r)/(i(t)+i(-t))}})},function(t,e,r){var n=r(0);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,r){"use strict";var n=r(5),o=r(13),i=r(22),a=r(94),u=r(28),s=r(6),c=r(41).f,f=r(20).f,l=r(10).f,p=r(56).trim,h="Number",d=n[h],v=d,y=d.prototype,g=i(r(40)(y))==h,b="trim"in String.prototype,m=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():p(e,3);var r,n,o,i=e.charCodeAt(0);if(43===i||45===i){if(r=e.charCodeAt(2),88===r||120===r)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+e}for(var a,s=e.slice(2),c=0,f=s.length;c<f;c++)if(a=s.charCodeAt(c),a<48||a>o)return NaN;return parseInt(s,n)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof d&&(g?s(function(){y.valueOf.call(r)}):i(r)!=h)?a(new v(m(e)),r,d):m(e)};for(var _,w=r(9)?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)o(v,_=w[x])&&!o(d,_)&&l(d,_,f(v,_));d.prototype=y,y.constructor=d,r(16)(n,h,d)}},function(t,e,r){var n=r(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,r){var n=r(0),o=r(5).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,r){var n=r(0);n(n.S,"Number",{isInteger:r(143)})},function(t,e,r){var n=r(0);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,r){var n=r(0),o=r(143),i=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,r){var n=r(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,r){var n=r(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,r){var n=r(0),o=r(153);n(n.S+n.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,r){var n=r(0),o=r(154);n(n.S+n.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,r){"use strict";var n=r(0),o=r(35),i=r(134),a=r(107),u=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l="0",p=function(t,e){for(var r=-1,n=e;++r<6;)n+=t*c[r],c[r]=n%1e7,n=s(n/1e7)},h=function(t){for(var e=6,r=0;--e>=0;)r+=c[e],c[e]=s(r/t),r=r%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var r=String(c[t]);e=""===e?r:e+a.call(l,7-r.length)+r}return e},v=function(t,e,r){return 0===e?r:e%2===1?v(t,e-1,r*t):v(t*t,e/2,r)},y=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e};n(n.P+n.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(6)(function(){u.call({})})),"Number",{toFixed:function(t){var e,r,n,u,s=i(this,f),c=o(t),g="",b=l;if(c<0||c>20)throw RangeError(f);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(g="-",s=-s),s>1e-21)if(e=y(s*v(2,69,1))-69,r=e<0?s*v(2,-e,1):s/v(2,e,1),r*=4503599627370496,e=52-e,e>0){for(p(0,r),n=c;n>=7;)p(1e7,0),n-=7;for(p(v(10,n,1),0),n=e-1;n>=23;)h(1<<23),n-=23;h(1<<n),p(1,1),h(2),b=d()}else p(0,r),p(1<<-e,0),b=d()+a.call(l,c);return c>0?(u=b.length,b=g+(u<=c?"0."+a.call(l,c-u)+b:b.slice(0,u-c)+"."+b.slice(u-c))):b=g+b,b}})},function(t,e,r){"use strict";var n=r(0),o=r(6),i=r(134),a=1..toPrecision;n(n.P+n.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,r){var n=r(0);n(n.S+n.F,"Object",{assign:r(147)})},function(t,e,r){var n=r(0);n(n.S,"Object",{create:r(40)})},function(t,e,r){var n=r(0);n(n.S+n.F*!r(9),"Object",{defineProperties:r(148)})},function(t,e,r){var n=r(0);n(n.S+n.F*!r(9),"Object",{defineProperty:r(10).f})},function(t,e,r){var n=r(7),o=r(33).onFreeze;r(27)("freeze",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,r){var n=r(18),o=r(20).f;r(27)("getOwnPropertyDescriptor",function(){return function(t,e){return o(n(t),e)}})},function(t,e,r){r(27)("getOwnPropertyNames",function(){return r(149).f})},function(t,e,r){var n=r(12),o=r(21);r(27)("getPrototypeOf",function(){return function(t){return o(n(t))}})},function(t,e,r){var n=r(7);r(27)("isExtensible",function(t){return function(e){return!!n(e)&&(!t||t(e))}})},function(t,e,r){var n=r(7);r(27)("isFrozen",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,r){var n=r(7);r(27)("isSealed",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,r){var n=r(0);n(n.S,"Object",{is:r(155)})},function(t,e,r){var n=r(12),o=r(42);r(27)("keys",function(){return function(t){return o(n(t))}})},function(t,e,r){var n=r(7),o=r(33).onFreeze;r(27)("preventExtensions",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,r){var n=r(7),o=r(33).onFreeze;r(27)("seal",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,r){var n=r(0);n(n.S,"Object",{setPrototypeOf:r(102).set})},function(t,e,r){"use strict";var n=r(60),o={};o[r(8)("toStringTag")]="z",o+""!="[object z]"&&r(16)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(t,e,r){var n=r(0),o=r(153);n(n.G+n.F*(parseFloat!=o),{parseFloat:o})},function(t,e,r){var n=r(0),o=r(154);n(n.G+n.F*(parseInt!=o),{parseInt:o})},function(t,e,r){"use strict";var n,o,i,a=r(39),u=r(5),s=r(30),c=r(60),f=r(0),l=r(7),p=r(14),h=r(38),d=r(53),v=r(104),y=r(109).set,g=r(101)(),b="Promise",m=u.TypeError,_=u.process,w=u[b],_=u.process,x="process"==c(_),O=function(){},j=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[r(8)("species")]=function(t){t(O,O)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e}catch(t){}}(),S=function(t,e){return t===e||t===w&&e===i},E=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},P=function(t){return S(w,t)?new k(t):new o(t)},k=o=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw m("Bad Promise constructor");e=t,r=n}),this.resolve=p(e),this.reject=p(r)},A=function(t){try{t()}catch(t){return{error:t}}},M=function(t,e){if(!t._n){t._n=!0;var r=t._c;g(function(){for(var n=t._v,o=1==t._s,i=0,a=function(e){var r,i,a=o?e.ok:e.fail,u=e.resolve,s=e.reject,c=e.domain;try{a?(o||(2==t._h&&I(t),t._h=1),a===!0?r=n:(c&&c.enter(),r=a(n),c&&c.exit()),r===e.promise?s(m("Promise-chain cycle")):(i=E(r))?i.call(r,u,s):u(r)):s(n)}catch(t){s(t)}};r.length>i;)a(r[i++]);t._c=[],t._n=!1,e&&!t._h&&T(t)})}},T=function(t){y.call(u,function(){var e,r,n,o=t._v;if(C(t)&&(e=A(function(){x?_.emit("unhandledRejection",o,t):(r=u.onunhandledrejection)?r({promise:t,reason:o}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=x||C(t)?2:1),t._a=void 0,e)throw e.error})},C=function(t){if(1==t._h)return!1;for(var e,r=t._a||t._c,n=0;r.length>n;)if(e=r[n++],e.fail||!C(e.promise))return!1;return!0},I=function(t){y.call(u,function(){var e;x?_.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},D=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw m("Promise can't be resolved itself");(e=E(t))?g(function(){var n={_w:r,_d:!1};try{e.call(t,s(D,n,1),s(R,n,1))}catch(t){R.call(n,t)}}):(r._v=t,r._s=1,M(r,!1))}catch(t){R.call({_w:r,_d:!1},t)}}};j||(w=function(t){h(this,w,b,"_h"),p(t),n.call(this);try{t(s(D,this,1),s(R,this,1))}catch(t){R.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(43)(w.prototype,{then:function(t,e){var r=P(v(this,w));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=x?_.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&M(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),k=function(){var t=new n;this.promise=t,this.resolve=s(D,t,1),this.reject=s(R,t,1)}),f(f.G+f.W+f.F*!j,{Promise:w}),r(55)(w,b),r(44)(b),i=r(29)[b],f(f.S+f.F*!j,b,{reject:function(t){var e=P(this),r=e.reject;return r(t),e.promise}}),f(f.S+f.F*(a||!j),b,{resolve:function(t){if(t instanceof w&&S(t.constructor,this))return t;var e=P(this),r=e.resolve;return r(t),e.promise}}),f(f.S+f.F*!(j&&r(73)(function(t){w.all(t).catch(O)})),b,{all:function(t){var e=this,r=P(e),n=r.resolve,o=r.reject,i=A(function(){var r=[],i=0,a=1;d(t,!1,function(t){var u=i++,s=!1;r.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,r[u]=t,--a||n(r))},o)}),--a||n(r)});return i&&o(i.error),r.promise},race:function(t){var e=this,r=P(e),n=r.reject,o=A(function(){d(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o&&n(o.error),r.promise}})},function(t,e,r){var n=r(0),o=r(14),i=r(2),a=(r(5).Reflect||{}).apply,u=Function.apply;n(n.S+n.F*!r(6)(function(){a(function(){})}),"Reflect",{apply:function(t,e,r){var n=o(t),s=i(r);return a?a(n,e,s):u.call(n,e,s)}})},function(t,e,r){var n=r(0),o=r(40),i=r(14),a=r(2),u=r(7),s=r(6),c=r(138),f=(r(5).Reflect||{}).construct,l=s(function(){function t(){}return!(f(function(){},[],t)instanceof t)}),p=!s(function(){f(function(){})});n(n.S+n.F*(l||p),"Reflect",{construct:function(t,e){i(t),a(e);var r=arguments.length<3?t:i(arguments[2]);if(p&&!l)return f(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}var s=r.prototype,h=o(u(s)?s:Object.prototype),d=Function.apply.call(t,h,e);return u(d)?d:h}})},function(t,e,r){var n=r(10),o=r(0),i=r(2),a=r(28);o(o.S+o.F*r(6)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,r){i(t),e=a(e,!0),i(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},function(t,e,r){var n=r(0),o=r(20).f,i=r(2);n(n.S,"Reflect",{deleteProperty:function(t,e){var r=o(i(t),e);return!(r&&!r.configurable)&&delete t[e]}})},function(t,e,r){"use strict";var n=r(0),o=r(2),i=function(t){this._t=o(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)};r(97)(i,"Object",function(){var t,e=this,r=e._k;do if(e._i>=r.length)return{value:void 0,done:!0};while(!((t=r[e._i++])in e._t));return{value:t,done:!1}}),n(n.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,r){var n=r(20),o=r(0),i=r(2);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(i(t),e)}})},function(t,e,r){var n=r(0),o=r(21),i=r(2);n(n.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,r){function n(t,e){var r,u,f=arguments.length<3?t:arguments[2];return c(t)===f?t[e]:(r=o.f(t,e))?a(r,"value")?r.value:void 0!==r.get?r.get.call(f):void 0:s(u=i(t))?n(u,e,f):void 0}var o=r(20),i=r(21),a=r(13),u=r(0),s=r(7),c=r(2);u(u.S,"Reflect",{get:n})},function(t,e,r){var n=r(0);n(n.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,r){var n=r(0),o=r(2),i=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,r){var n=r(0);n(n.S,"Reflect",{ownKeys:r(152)})},function(t,e,r){var n=r(0),o=r(2),i=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,r){var n=r(0),o=r(102);o&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,r){function n(t,e,r){var s,p,h=arguments.length<4?t:arguments[3],d=i.f(f(t),e);if(!d){if(l(p=a(t)))return n(p,e,r,h);d=c(0)}return u(d,"value")?!(d.writable===!1||!l(h))&&(s=i.f(h,e)||c(0),s.value=r,o.f(h,e,s),!0):void 0!==d.set&&(d.set.call(h,r),!0)}var o=r(10),i=r(20),a=r(21),u=r(13),s=r(0),c=r(34),f=r(2),l=r(7);s(s.S,"Reflect",{set:n})},function(t,e,r){var n=r(5),o=r(94),i=r(10).f,a=r(41).f,u=r(72),s=r(70),c=n.RegExp,f=c,l=c.prototype,p=/a/g,h=/a/g,d=new c(p)!==p;if(r(9)&&(!d||r(6)(function(){return h[r(8)("match")]=!1,c(p)!=p||c(h)==h||"/a/i"!=c(p,"i")}))){c=function(t,e){var r=this instanceof c,n=u(t),i=void 0===e;return!r&&n&&t.constructor===c&&i?t:o(d?new f(n&&!i?t.source:t,e):f((n=t instanceof c)?t.source:t,n&&i?s.call(t):e),r?this:l,c)};for(var v=(function(t){t in c||i(c,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})}),y=a(f),g=0;y.length>g;)v(y[g++]);l.constructor=c,c.prototype=l,r(16)(n,"RegExp",c)}r(44)("RegExp")},function(t,e,r){r(69)("match",1,function(t,e,r){return[function(r){"use strict";var n=t(this),o=void 0==r?void 0:r[e];return void 0!==o?o.call(r,n):new RegExp(r)[e](String(n))},r]})},function(t,e,r){r(69)("replace",2,function(t,e,r){return[function(n,o){"use strict";var i=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,i,o):r.call(String(i),n,o)},r]})},function(t,e,r){r(69)("search",1,function(t,e,r){return[function(r){"use strict";var n=t(this),o=void 0==r?void 0:r[e];return void 0!==o?o.call(r,n):new RegExp(r)[e](String(n))},r]})},function(t,e,r){r(69)("split",2,function(t,e,n){"use strict";var o=r(72),i=n,a=[].push,u="split",s="length",c="lastIndex";if("c"=="abbc"[u](/(b)*/)[1]||4!="test"[u](/(?:)/,-1)[s]||2!="ab"[u](/(?:ab)*/)[s]||4!="."[u](/(.?)(.?)/)[s]||"."[u](/()()/)[s]>1||""[u](/.?/)[s]){var f=void 0===/()??/.exec("")[1];n=function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(r,t,e);var n,u,l,p,h,d=[],v=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),y=0,g=void 0===e?4294967295:e>>>0,b=new RegExp(t.source,v+"g");for(f||(n=new RegExp("^"+b.source+"$(?!\\s)",v));(u=b.exec(r))&&(l=u.index+u[0][s],!(l>y&&(d.push(r.slice(y,u.index)),!f&&u[s]>1&&u[0].replace(n,function(){for(h=1;h<arguments[s]-2;h++)void 0===arguments[h]&&(u[h]=void 0)}),u[s]>1&&u.index<r[s]&&a.apply(d,u.slice(1)),p=u[0][s],y=l,d[s]>=g)));)b[c]===u.index&&b[c]++;return y===r[s]?!p&&b.test("")||d.push(""):d.push(r.slice(y)),d[s]>g?d.slice(0,g):d}}else"0"[u](void 0,0)[s]&&(n=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(r,o){var i=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},n]})},function(t,e,r){"use strict";r(159);var n=r(2),o=r(70),i=r(9),a="toString",u=/./[a],s=function(t){r(16)(RegExp.prototype,a,t,!0)};r(6)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?s(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):u.name!=a&&s(function(){return u.call(this)})},function(t,e,r){"use strict";r(17)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,r){"use strict";r(17)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,r){"use strict";r(17)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,r){"use strict";r(17)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,r){"use strict";var n=r(0),o=r(105)(!1);n(n.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,r){"use strict";var n=r(0),o=r(11),i=r(106),a="endsWith",u=""[a];n(n.P+n.F*r(92)(a),"String",{endsWith:function(t){var e=i(this,t,a),r=arguments.length>1?arguments[1]:void 0,n=o(e.length),s=void 0===r?n:Math.min(o(r),n),c=String(t);return u?u.call(e,c,s):e.slice(s-c.length,s)===c}})},function(t,e,r){"use strict";r(17)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,r){"use strict";r(17)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,r){"use strict";r(17)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,r){var n=r(0),o=r(45),i=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?i(e):i(((e-=65536)>>10)+55296,e%1024+56320))}return r.join("")}})},function(t,e,r){"use strict";var n=r(0),o=r(106),i="includes";n(n.P+n.F*r(92)(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";r(17)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,r){"use strict";var n=r(105)(!0);r(98)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){"use strict";r(17)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,r){var n=r(0),o=r(18),i=r(11);n(n.S,"String",{raw:function(t){for(var e=o(t.raw),r=i(e.length),n=arguments.length,a=[],u=0;r>u;)a.push(String(e[u++])),u<n&&a.push(String(arguments[u]));return a.join("")}})},function(t,e,r){var n=r(0);n(n.P,"String",{repeat:r(107)})},function(t,e,r){"use strict";r(17)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,r){"use strict";var n=r(0),o=r(11),i=r(106),a="startsWith",u=""[a];n(n.P+n.F*r(92)(a),"String",{startsWith:function(t){var e=i(this,t,a),r=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return u?u.call(e,n,r):e.slice(r,r+n.length)===n}})},function(t,e,r){"use strict";r(17)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,r){"use strict";r(17)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,r){"use strict";r(17)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,r){"use strict";r(56)("trim",function(t){return function(){return t(this,3)}})},function(t,e,r){"use strict";var n=r(5),o=r(13),i=r(9),a=r(0),u=r(16),s=r(33).KEY,c=r(6),f=r(76),l=r(55),p=r(46),h=r(8),d=r(157),v=r(111),y=r(247),g=r(246),b=r(96),m=r(2),_=r(18),w=r(28),x=r(34),O=r(40),j=r(149),S=r(20),E=r(10),P=r(42),k=S.f,A=E.f,M=j.f,T=n.Symbol,C=n.JSON,I=C&&C.stringify,R="prototype",D=h("_hidden"),L=h("toPrimitive"),F={}.propertyIsEnumerable,N=f("symbol-registry"),U=f("symbols"),B=f("op-symbols"),V=Object[R],W="function"==typeof T,z=n.QObject,q=!z||!z[R]||!z[R].findChild,G=i&&c(function(){return 7!=O(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=k(V,e);n&&delete V[e],A(t,e,r),n&&t!==V&&A(V,e,n)}:A,Y=function(t){var e=U[t]=O(T[R]);return e._k=t,e},H=W&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},K=function(t,e,r){return t===V&&K(B,e,r),m(t),e=w(e,!0),m(r),o(U,e)?(r.enumerable?(o(t,D)&&t[D][e]&&(t[D][e]=!1),r=O(r,{enumerable:x(0,!1)})):(o(t,D)||A(t,D,x(1,{})),t[D][e]=!0),G(t,e,r)):A(t,e,r)},$=function(t,e){m(t);for(var r,n=g(e=_(e)),o=0,i=n.length;i>o;)K(t,r=n[o++],e[r]);return t},Z=function(t,e){return void 0===e?O(t):$(O(t),e)},J=function(t){var e=F.call(this,t=w(t,!0));return!(this===V&&o(U,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(U,t)||o(this,D)&&this[D][t])||e)},X=function(t,e){if(t=_(t),e=w(e,!0),t!==V||!o(U,e)||o(B,e)){var r=k(t,e);return!r||!o(U,e)||o(t,D)&&t[D][e]||(r.enumerable=!0),r}},Q=function(t){for(var e,r=M(_(t)),n=[],i=0;r.length>i;)o(U,e=r[i++])||e==D||e==s||n.push(e);return n},tt=function(t){for(var e,r=t===V,n=M(r?B:_(t)),i=[],a=0;n.length>a;)!o(U,e=n[a++])||r&&!o(V,e)||i.push(U[e]);return i};W||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===V&&e.call(B,r),o(this,D)&&o(this[D],t)&&(this[D][t]=!1),G(this,t,x(1,r))};return i&&q&&G(V,t,{configurable:!0,set:e}),Y(t)},u(T[R],"toString",function(){return this._k}),S.f=X,E.f=K,r(41).f=j.f=Q,r(62).f=J,r(75).f=tt,i&&!r(39)&&u(V,"propertyIsEnumerable",J,!0),d.f=function(t){return Y(h(t))}),a(a.G+a.W+a.F*!W,{Symbol:T});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)h(et[rt++]);for(var et=P(h.store),rt=0;et.length>rt;)v(et[rt++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=T(t)},keyFor:function(t){if(H(t))return y(N,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!W,"Object",{create:Z,defineProperty:K,defineProperties:$,getOwnPropertyDescriptor:X,getOwnPropertyNames:Q,getOwnPropertySymbols:tt}),C&&a(a.S+a.F*(!W||c(function(){var t=T();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);return e=n[1],"function"==typeof e&&(r=e),!r&&b(e)||(e=function(t,e){if(r&&(e=r.call(this,t,e)),!H(e))return e}),n[1]=e,I.apply(C,n)}}}),T[R][L]||r(15)(T[R],L,T[R].valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e,r){"use strict";var n=r(0),o=r(77),i=r(110),a=r(2),u=r(45),s=r(11),c=r(7),f=r(5).ArrayBuffer,l=r(104),p=i.ArrayBuffer,h=i.DataView,d=o.ABV&&f.isView,v=p.prototype.slice,y=o.VIEW,g="ArrayBuffer";n(n.G+n.W+n.F*(f!==p),{ArrayBuffer:p}),n(n.S+n.F*!o.CONSTR,g,{isView:function(t){return d&&d(t)||c(t)&&y in t}}),n(n.P+n.U+n.F*r(6)(function(){return!new p(2).slice(1,void 0).byteLength}),g,{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(a(this),t);for(var r=a(this).byteLength,n=u(t,r),o=u(void 0===e?r:e,r),i=new(l(this,p))(s(o-n)),c=new h(this),f=new h(i),d=0;n<o;)f.setUint8(d++,c.getUint8(n++));return i}}),r(44)(g)},function(t,e,r){var n=r(0);n(n.G+n.W+n.F*!r(77).ABV,{DataView:r(110).DataView})},function(t,e,r){r(32)("Float32",4,function(t){return function(e,r,n){return t(this,e,r,n)}})},function(t,e,r){r(32)("Float64",8,function(t){return function(e,r,n){return t(this,e,r,n)}})},function(t,e,r){r(32)("Int16",2,function(t){return function(e,r,n){return t(this,e,r,n)}})},function(t,e,r){r(32)("Int32",4,function(t){return function(e,r,n){return t(this,e,r,n)}})},function(t,e,r){r(32)("Int8",1,function(t){return function(e,r,n){
return t(this,e,r,n)}})},function(t,e,r){r(32)("Uint16",2,function(t){return function(e,r,n){return t(this,e,r,n)}})},function(t,e,r){r(32)("Uint32",4,function(t){return function(e,r,n){return t(this,e,r,n)}})},function(t,e,r){r(32)("Uint8",1,function(t){return function(e,r,n){return t(this,e,r,n)}})},function(t,e,r){r(32)("Uint8",1,function(t){return function(e,r,n){return t(this,e,r,n)}},!0)},function(t,e,r){"use strict";var n=r(141);r(68)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(this,t,!0)}},n,!1,!0)},function(t,e,r){"use strict";var n=r(0),o=r(67)(!0);n(n.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r(52)("includes")},function(t,e,r){var n=r(0),o=r(101)(),i=r(5).process,a="process"==r(22)(i);n(n.G,{asap:function(t){var e=a&&i.domain;o(e?e.bind(t):t)}})},function(t,e,r){var n=r(0),o=r(22);n(n.S,"Error",{isError:function(t){return"Error"===o(t)}})},function(t,e,r){var n=r(0);n(n.P+n.R,"Map",{toJSON:r(140)("Map")})},function(t,e,r){var n=r(0);n(n.S,"Math",{iaddh:function(t,e,r,n){var o=t>>>0,i=e>>>0,a=r>>>0;return i+(n>>>0)+((o&a|(o|a)&~(o+a>>>0))>>>31)|0}})},function(t,e,r){var n=r(0);n(n.S,"Math",{imulh:function(t,e){var r=65535,n=+t,o=+e,i=n&r,a=o&r,u=n>>16,s=o>>16,c=(u*a>>>0)+(i*a>>>16);return u*s+(c>>16)+((i*s>>>0)+(c&r)>>16)}})},function(t,e,r){var n=r(0);n(n.S,"Math",{isubh:function(t,e,r,n){var o=t>>>0,i=e>>>0,a=r>>>0;return i-(n>>>0)-((~o&a|~(o^a)&o-a>>>0)>>>31)|0}})},function(t,e,r){var n=r(0);n(n.S,"Math",{umulh:function(t,e){var r=65535,n=+t,o=+e,i=n&r,a=o&r,u=n>>>16,s=o>>>16,c=(u*a>>>0)+(i*a>>>16);return u*s+(c>>>16)+((i*s>>>0)+(c&r)>>>16)}})},function(t,e,r){"use strict";var n=r(0),o=r(12),i=r(14),a=r(10);r(9)&&n(n.P+r(74),"Object",{__defineGetter__:function(t,e){a.f(o(this),t,{get:i(e),enumerable:!0,configurable:!0})}})},function(t,e,r){"use strict";var n=r(0),o=r(12),i=r(14),a=r(10);r(9)&&n(n.P+r(74),"Object",{__defineSetter__:function(t,e){a.f(o(this),t,{set:i(e),enumerable:!0,configurable:!0})}})},function(t,e,r){var n=r(0),o=r(151)(!0);n(n.S,"Object",{entries:function(t){return o(t)}})},function(t,e,r){var n=r(0),o=r(152),i=r(18),a=r(20),u=r(89);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,r=i(t),n=a.f,s=o(r),c={},f=0;s.length>f;)u(c,e=s[f++],n(r,e));return c}})},function(t,e,r){"use strict";var n=r(0),o=r(12),i=r(28),a=r(21),u=r(20).f;r(9)&&n(n.P+r(74),"Object",{__lookupGetter__:function(t){var e,r=o(this),n=i(t,!0);do if(e=u(r,n))return e.get;while(r=a(r))}})},function(t,e,r){"use strict";var n=r(0),o=r(12),i=r(28),a=r(21),u=r(20).f;r(9)&&n(n.P+r(74),"Object",{__lookupSetter__:function(t){var e,r=o(this),n=i(t,!0);do if(e=u(r,n))return e.set;while(r=a(r))}})},function(t,e,r){var n=r(0),o=r(151)(!1);n(n.S,"Object",{values:function(t){return o(t)}})},function(t,e,r){"use strict";var n=r(0),o=r(5),i=r(29),a=r(101)(),u=r(8)("observable"),s=r(14),c=r(2),f=r(38),l=r(43),p=r(15),h=r(53),d=h.RETURN,v=function(t){return null==t?void 0:s(t)},y=function(t){var e=t._c;e&&(t._c=void 0,e())},g=function(t){return void 0===t._o},b=function(t){g(t)||(t._o=void 0,y(t))},m=function(t,e){c(t),this._c=void 0,this._o=t,t=new _(this);try{var r=e(t),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:s(r),this._c=r)}catch(e){return void t.error(e)}g(this)&&y(this)};m.prototype=l({},{unsubscribe:function(){b(this)}});var _=function(t){this._s=t};_.prototype=l({},{next:function(t){var e=this._s;if(!g(e)){var r=e._o;try{var n=v(r.next);if(n)return n.call(r,t)}catch(t){try{b(e)}finally{throw t}}}},error:function(t){var e=this._s;if(g(e))throw t;var r=e._o;e._o=void 0;try{var n=v(r.error);if(!n)throw t;t=n.call(r,t)}catch(t){try{y(e)}finally{throw t}}return y(e),t},complete:function(t){var e=this._s;if(!g(e)){var r=e._o;e._o=void 0;try{var n=v(r.complete);t=n?n.call(r,t):void 0}catch(t){try{y(e)}finally{throw t}}return y(e),t}}});var w=function(t){f(this,w,"Observable","_f")._f=s(t)};l(w.prototype,{subscribe:function(t){return new m(t,this._f)},forEach:function(t){var e=this;return new(i.Promise||o.Promise)(function(r,n){s(t);var o=e.subscribe({next:function(e){try{return t(e)}catch(t){n(t),o.unsubscribe()}},error:n,complete:r})})}}),l(w,{from:function(t){var e="function"==typeof this?this:w,r=v(c(t)[u]);if(r){var n=c(r.call(t));return n.constructor===e?n:new e(function(t){return n.subscribe(t)})}return new e(function(e){var r=!1;return a(function(){if(!r){try{if(h(t,!1,function(t){if(e.next(t),r)return d})===d)return}catch(t){if(r)throw t;return void e.error(t)}e.complete()}}),function(){r=!0}})},of:function(){for(var t=0,e=arguments.length,r=Array(e);t<e;)r[t]=arguments[t++];return new("function"==typeof this?this:w)(function(t){var e=!1;return a(function(){if(!e){for(var n=0;n<r.length;++n)if(t.next(r[n]),e)return;t.complete()}}),function(){e=!0}})}}),p(w.prototype,u,function(){return this}),n(n.G,{Observable:w}),r(44)("Observable")},function(t,e,r){var n=r(31),o=r(2),i=n.key,a=n.set;n.exp({defineMetadata:function(t,e,r,n){a(t,e,o(r),i(n))}})},function(t,e,r){var n=r(31),o=r(2),i=n.key,a=n.map,u=n.store;n.exp({deleteMetadata:function(t,e){var r=arguments.length<3?void 0:i(arguments[2]),n=a(o(e),r,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var s=u.get(e);return s.delete(r),!!s.size||u.delete(e)}})},function(t,e,r){var n=r(160),o=r(136),i=r(31),a=r(2),u=r(21),s=i.keys,c=i.key,f=function(t,e){var r=s(t,e),i=u(t);if(null===i)return r;var a=f(i,e);return a.length?r.length?o(new n(r.concat(a))):a:r};i.exp({getMetadataKeys:function(t){return f(a(t),arguments.length<2?void 0:c(arguments[1]))}})},function(t,e,r){var n=r(31),o=r(2),i=r(21),a=n.has,u=n.get,s=n.key,c=function(t,e,r){var n=a(t,e,r);if(n)return u(t,e,r);var o=i(e);return null!==o?c(t,o,r):void 0};n.exp({getMetadata:function(t,e){return c(t,o(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,r){var n=r(31),o=r(2),i=n.keys,a=n.key;n.exp({getOwnMetadataKeys:function(t){return i(o(t),arguments.length<2?void 0:a(arguments[1]))}})},function(t,e,r){var n=r(31),o=r(2),i=n.get,a=n.key;n.exp({getOwnMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,r){var n=r(31),o=r(2),i=r(21),a=n.has,u=n.key,s=function(t,e,r){var n=a(t,e,r);if(n)return!0;var o=i(e);return null!==o&&s(t,o,r)};n.exp({hasMetadata:function(t,e){return s(t,o(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,r){var n=r(31),o=r(2),i=n.has,a=n.key;n.exp({hasOwnMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,r){var n=r(31),o=r(2),i=r(14),a=n.key,u=n.set;n.exp({metadata:function(t,e){return function(r,n){u(t,e,(void 0!==n?o:i)(r),a(n))}}})},function(t,e,r){var n=r(0);n(n.P+n.R,"Set",{toJSON:r(140)("Set")})},function(t,e,r){"use strict";var n=r(0),o=r(105)(!0);n(n.P,"String",{at:function(t){return o(this,t)}})},function(t,e,r){"use strict";var n=r(0),o=r(23),i=r(11),a=r(72),u=r(70),s=RegExp.prototype,c=function(t,e){this._r=t,this._s=e};r(97)(c,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),n(n.P,"String",{matchAll:function(t){if(o(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),r="flags"in s?String(t.flags):u.call(t),n=new RegExp(t.source,~r.indexOf("g")?r:"g"+r);return n.lastIndex=i(t.lastIndex),new c(n,e)}})},function(t,e,r){"use strict";var n=r(0),o=r(156);n(n.P,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,r){"use strict";var n=r(0),o=r(156);n(n.P,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,r){"use strict";r(56)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,r){"use strict";r(56)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,r){r(111)("asyncIterator")},function(t,e,r){r(111)("observable")},function(t,e,r){var n=r(0);n(n.S,"System",{global:r(5)})},function(t,e,r){for(var n=r(113),o=r(16),i=r(5),a=r(15),u=r(54),s=r(8),c=s("iterator"),f=s("toStringTag"),l=u.Array,p=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],h=0;h<5;h++){var d,v=p[h],y=i[v],g=y&&y.prototype;if(g){g[c]||a(g,c,l),g[f]||a(g,f,v),u[v]=l;for(d in n)g[d]||o(g,d,n[d],!0)}}},function(t,e,r){var n=r(0),o=r(109);n(n.G+n.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,r){var n=r(5),o=r(0),i=r(71),a=r(248),u=n.navigator,s=!!u&&/MSIE .\./.test(u.userAgent),c=function(t){return s?function(e,r){return t(i(a,[].slice.call(arguments,2),"function"==typeof e?e:Function(e)),r)}:t};o(o.G+o.B+o.F*s,{setTimeout:c(n.setTimeout),setInterval:c(n.setInterval)})},function(t,e,r){r(371),r(310),r(312),r(311),r(314),r(316),r(321),r(315),r(313),r(323),r(322),r(318),r(319),r(317),r(309),r(320),r(324),r(325),r(277),r(279),r(278),r(327),r(326),r(297),r(307),r(308),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(358),r(363),r(370),r(361),r(353),r(354),r(359),r(364),r(366),r(349),r(350),r(351),r(352),r(355),r(356),r(357),r(360),r(362),r(365),r(367),r(368),r(369),r(272),r(274),r(273),r(276),r(275),r(261),r(259),r(265),r(262),r(268),r(270),r(258),r(264),r(255),r(269),r(253),r(267),r(266),r(260),r(263),r(252),r(254),r(257),r(256),r(271),r(113),r(343),r(348),r(159),r(344),r(345),r(346),r(347),r(328),r(158),r(160),r(161),r(383),r(372),r(373),r(378),r(381),r(382),r(376),r(379),r(377),r(380),r(374),r(375),r(329),r(330),r(331),r(332),r(333),r(336),r(334),r(335),r(337),r(338),r(339),r(340),r(342),r(341),r(384),r(410),r(413),r(412),r(414),r(415),r(411),r(416),r(417),r(395),r(398),r(394),r(392),r(393),r(396),r(397),r(387),r(409),r(418),r(386),r(388),r(390),r(389),r(391),r(400),r(401),r(403),r(402),r(405),r(404),r(406),r(407),r(408),r(385),r(399),r(421),r(420),r(419),t.exports=r(29)},function(t,e,r){"use strict";function n(t,e,r){var n,o,i=t.length,a=e.arrayArgs.length,u=e.indexArgs.length>0,s=[],c=[],f=0,l=0;for(n=0;n<i;++n)c.push(["i",n,"=0"].join(""));for(o=0;o<a;++o)for(n=0;n<i;++n)l=f,f=t[n],0===n?c.push(["d",o,"s",n,"=t",o,"p",f].join("")):c.push(["d",o,"s",n,"=(t",o,"p",f,"-s",l,"*t",o,"p",l,")"].join(""));for(s.push("var "+c.join(",")),n=i-1;n>=0;--n)f=t[n],s.push(["for(i",n,"=0;i",n,"<s",f,";++i",n,"){"].join(""));for(s.push(r),n=0;n<i;++n){for(l=f,f=t[n],o=0;o<a;++o)s.push(["p",o,"+=d",o,"s",n].join(""));u&&(n>0&&s.push(["index[",l,"]-=s",l].join("")),s.push(["++index[",f,"]"].join(""))),s.push("}")}return s.join("\n")}function o(t,e,r,o){for(var i=e.length,a=r.arrayArgs.length,u=r.blockSize,s=r.indexArgs.length>0,c=[],f=0;f<a;++f)c.push(["var offset",f,"=p",f].join(""));for(var f=t;f<i;++f)c.push(["for(var j"+f+"=SS[",e[f],"]|0;j",f,">0;){"].join("")),c.push(["if(j",f,"<",u,"){"].join("")),c.push(["s",e[f],"=j",f].join("")),c.push(["j",f,"=0"].join("")),c.push(["}else{s",e[f],"=",u].join("")),c.push(["j",f,"-=",u,"}"].join("")),s&&c.push(["index[",e[f],"]=j",f].join(""));for(var f=0;f<a;++f){for(var l=["offset"+f],p=t;p<i;++p)l.push(["j",p,"*t",f,"p",e[p]].join(""));c.push(["p",f,"=(",l.join("+"),")"].join(""))}c.push(n(e,r,o));for(var f=t;f<i;++f)c.push("}");return c.join("\n")}function i(t){for(var e=0,r=t[0].length;e<r;){for(var n=1;n<t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}function a(t,e,r){for(var n=t.body,o=[],i=[],a=0;a<t.args.length;++a){var u=t.args[a];if(!(u.count<=0)){var s=new RegExp(u.name,"g"),c="",f=e.arrayArgs.indexOf(a);switch(e.argTypes[a]){case"offset":var l=e.offsetArgIndex.indexOf(a),p=e.offsetArgs[l];f=p.array,c="+q"+l;case"array":c="p"+f+c;var h="l"+a,d="a"+f;if(0===e.arrayBlockIndices[f])1===u.count?"generic"===r[f]?u.lvalue?(o.push(["var ",h,"=",d,".get(",c,")"].join("")),n=n.replace(s,h),i.push([d,".set(",c,",",h,")"].join(""))):n=n.replace(s,[d,".get(",c,")"].join("")):n=n.replace(s,[d,"[",c,"]"].join("")):"generic"===r[f]?(o.push(["var ",h,"=",d,".get(",c,")"].join("")),n=n.replace(s,h),u.lvalue&&i.push([d,".set(",c,",",h,")"].join(""))):(o.push(["var ",h,"=",d,"[",c,"]"].join("")),n=n.replace(s,h),u.lvalue&&i.push([d,"[",c,"]=",h].join("")));else{for(var v=[u.name],y=[c],g=0;g<Math.abs(e.arrayBlockIndices[f]);g++)v.push("\\s*\\[([^\\]]+)\\]"),y.push("$"+(g+1)+"*t"+f+"b"+g);if(s=new RegExp(v.join(""),"g"),c=y.join("+"),"generic"===r[f])throw new Error("cwise: Generic arrays not supported in combination with blocks!");n=n.replace(s,[d,"[",c,"]"].join(""))}break;case"scalar":n=n.replace(s,"Y"+e.scalarArgs.indexOf(a));break;case"index":n=n.replace(s,"index");break;case"shape":n=n.replace(s,"shape")}}}return[o.join("\n"),n,i.join("\n")].join("\n").trim()}function u(t){for(var e=new Array(t.length),r=!0,n=0;n<t.length;++n){var o=t[n],i=o.match(/\d+/);i=i?i[0]:"",0===o.charAt(0)?e[n]="u"+o.charAt(1)+i:e[n]=o.charAt(0)+i,n>0&&(r=r&&e[n]===e[n-1])}return r?e[0]:e.join("")}function s(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,s=new Array(t.arrayArgs.length),f=new Array(t.arrayArgs.length),l=0;l<t.arrayArgs.length;++l)f[l]=e[2*l],s[l]=e[2*l+1];for(var p=[],h=[],d=[],v=[],y=[],l=0;l<t.arrayArgs.length;++l){t.arrayBlockIndices[l]<0?(d.push(0),v.push(r),p.push(r),h.push(r+t.arrayBlockIndices[l])):(d.push(t.arrayBlockIndices[l]),v.push(t.arrayBlockIndices[l]+r),p.push(0),h.push(t.arrayBlockIndices[l]));for(var g=[],b=0;b<s[l].length;b++)d[l]<=s[l][b]&&s[l][b]<v[l]&&g.push(s[l][b]-d[l]);y.push(g)}for(var m=["SS"],_=["'use strict'"],w=[],b=0;b<r;++b)w.push(["s",b,"=SS[",b,"]"].join(""));for(var l=0;l<t.arrayArgs.length;++l){m.push("a"+l),m.push("t"+l),m.push("p"+l);for(var b=0;b<r;++b)w.push(["t",l,"p",b,"=t",l,"[",d[l]+b,"]"].join(""));for(var b=0;b<Math.abs(t.arrayBlockIndices[l]);++b)w.push(["t",l,"b",b,"=t",l,"[",p[l]+b,"]"].join(""))}for(var l=0;l<t.scalarArgs.length;++l)m.push("Y"+l);if(t.shapeArgs.length>0&&w.push("shape=SS.slice(0)"),t.indexArgs.length>0){for(var x=new Array(r),l=0;l<r;++l)x[l]="0";w.push(["index=[",x.join(","),"]"].join(""))}for(var l=0;l<t.offsetArgs.length;++l){for(var O=t.offsetArgs[l],j=[],b=0;b<O.offset.length;++b)0!==O.offset[b]&&(1===O.offset[b]?j.push(["t",O.array,"p",b].join("")):j.push([O.offset[b],"*t",O.array,"p",b].join("")));0===j.length?w.push("q"+l+"=0"):w.push(["q",l,"=",j.join("+")].join(""))}var S=c([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));w=w.concat(S),_.push("var "+w.join(","));for(var l=0;l<t.arrayArgs.length;++l)_.push("p"+l+"|=0");t.pre.body.length>3&&_.push(a(t.pre,t,f));var E=a(t.body,t,f),P=i(y);P<r?_.push(o(P,y[0],t,E)):_.push(n(y[0],t,E)),t.post.body.length>3&&_.push(a(t.post,t,f)),t.debug&&console.log("-----Generated cwise routine for ",e,":\n"+_.join("\n")+"\n----------");var k=[t.funcName||"unnamed","_cwise_loop_",s[0].join("s"),"m",P,u(f)].join(""),A=new Function(["function ",k,"(",m.join(","),"){",_.join("\n"),"} return ",k].join(""));return A()}var c=r(181);t.exports=s},function(t,e,r){"use strict";function n(t){var e=["'use strict'","var CACHED={}"],r=[],n=t.funcName+"_cwise_thunk";e.push(["return function ",n,"(",t.shimArgs.join(","),"){"].join(""));for(var i=[],a=[],u=[["array",t.arrayArgs[0],".shape.slice(",Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]<0?","+t.arrayBlockIndices[0]+")":")"].join("")],s=[],c=[],f=0;f<t.arrayArgs.length;++f){var l=t.arrayArgs[f];r.push(["t",l,"=array",l,".dtype,","r",l,"=array",l,".order"].join("")),i.push("t"+l),i.push("r"+l),a.push("t"+l),a.push("r"+l+".join()"),u.push("array"+l+".data"),u.push("array"+l+".stride"),u.push("array"+l+".offset|0"),f>0&&(s.push("array"+t.arrayArgs[0]+".shape.length===array"+l+".shape.length+"+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[f]))),c.push("array"+t.arrayArgs[0]+".shape[shapeIndex+"+Math.max(0,t.arrayBlockIndices[0])+"]===array"+l+".shape[shapeIndex+"+Math.max(0,t.arrayBlockIndices[f])+"]"))}t.arrayArgs.length>1&&(e.push("if (!("+s.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same dimensionality!')"),e.push("for(var shapeIndex=array"+t.arrayArgs[0]+".shape.length-"+Math.abs(t.arrayBlockIndices[0])+"; shapeIndex-->0;) {"),e.push("if (!("+c.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same shape!')"),e.push("}"));for(var f=0;f<t.scalarArgs.length;++f)u.push("scalar"+t.scalarArgs[f]);r.push(["type=[",a.join(","),"].join()"].join("")),r.push("proc=CACHED[type]"),e.push("var "+r.join(",")),e.push(["if(!proc){","CACHED[type]=proc=compile([",i.join(","),"])}","return proc(",u.join(","),")}"].join("")),t.debug&&console.log("-----Generated thunk:\n"+e.join("\n")+"\n----------");var p=new Function("compile",e.join("\n"));return p(o.bind(void 0,t))}var o=r(423);t.exports=n},function(t,e,r){"use strict";(function(e){function n(t,e,r){this.name=t,this.lvalue=e,this.rvalue=r,this.count=0}function o(t,e,r,n){this.body=t,this.args=e,this.thisVars=r,this.localVars=n}function i(t){if("eval"===t)throw new Error("cwise-parser: eval() not allowed");return"undefined"!=typeof window?t in window:"undefined"!=typeof e?t in e:"undefined"!=typeof self&&t in self}function a(t){for(var e=t.body[0].expression.callee.params,r=new Array(e.length),n=0;n<e.length;++n)r[n]=e[n].name;return r}function u(t){function e(t){var e=y+t.replace(/\_/g,"__");return x.push(e),e}function r(t){var e="this_"+t.replace(/\_/g,"__");return O.push(e),e}function u(t,e){for(var r=t.range[0],n=t.range[1],o=r+1;o<n;++o)_[o]="";_[r]=e}function l(t){return"'"+t.replace(/\_/g,"\\_").replace(/\'/g,"'")+"'"}function p(t){return _.slice(t.range[0],t.range[1]).join("")}function h(t){return"AssignmentExpression"===t.parent.type&&t.parent.left===t?"="===t.parent.operator?j:j|S:"UpdateExpression"===t.parent.type?j|S:S}for(var d=["(",t,")()"].join(""),v=s.parse(d,{range:!0}),y="_inline_"+f++ +"_",g=a(v),b=new Array(g.length),m=0;m<g.length;++m)b[m]=new n([y,"arg",m,"_"].join(""),!1,!1);for(var _=new Array(d.length),m=0,w=d.length;m<w;++m)_[m]=d.charAt(m);var x=[],O=[],j=1,S=2;!function t(n,o){if(n.parent=o,"MemberExpression"===n.type)n.computed?(t(n.object,n),t(n.property,n)):"ThisExpression"===n.object.type?u(n,r(n.property.name)):t(n.object,n);else{if("ThisExpression"===n.type)throw new Error("cwise-parser: Computed this is not allowed");if("Identifier"===n.type){var a=n.name,s=g.indexOf(a);if(s>=0){var c=b[s],f=h(n);f&j&&(c.lvalue=!0),f&S&&(c.rvalue=!0),++c.count,u(n,c.name)}else i(a)||u(n,e(a))}else if("Literal"===n.type)"string"==typeof n.value&&u(n,l(n.value));else{if("WithStatement"===n.type)throw new Error("cwise-parser: with() statements not allowed");for(var p=Object.keys(n),d=0,v=p.length;d<v;++d)if("parent"!==p[d]){var y=n[p[d]];if(y)if(y instanceof Array)for(var m=0;m<y.length;++m)y[m]&&"string"==typeof y[m].type&&t(y[m],n);else"string"==typeof y.type&&t(y,n)}}}}(v.body[0].expression.callee.body,void 0),c(x),c(O);var E=new o(p(v.body[0].expression.callee.body),b,O,x);return E}var s=r(426),c=r(181),f=0;t.exports=u}).call(e,r(59))},function(t,e,r){var n,o,i;!function(r,a){"use strict";o=[e],n=a,i="function"==typeof n?n.apply(e,o):n,!(void 0!==i&&(t.exports=i))}(this,function(t){"use strict";function e(t,e){if(!t)throw new Error("ASSERT: "+e)}function r(t){return t>=48&&t<=57}function n(t){return"0123456789abcdefABCDEF".indexOf(t)>=0}function o(t){return"01234567".indexOf(t)>=0}function i(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(t)>=0}function a(t){return 10===t||13===t||8232===t||8233===t}function u(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||92===t||t>=128&&ie.NonAsciiIdentifierStart.test(String.fromCharCode(t))}function s(t){return 36===t||95===t||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||92===t||t>=128&&ie.NonAsciiIdentifierPart.test(String.fromCharCode(t))}function c(t){switch(t){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function f(t){switch(t){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function l(t){return"eval"===t||"arguments"===t}function p(t){if(se&&f(t))return!0;switch(t.length){case 2:return"if"===t||"in"===t||"do"===t;case 3:return"var"===t||"for"===t||"new"===t||"try"===t||"let"===t;case 4:return"this"===t||"else"===t||"case"===t||"void"===t||"with"===t||"enum"===t;case 5:return"while"===t||"break"===t||"catch"===t||"throw"===t||"const"===t||"yield"===t||"class"===t||"super"===t;case 6:return"return"===t||"typeof"===t||"delete"===t||"switch"===t||"export"===t||"import"===t;case 7:return"default"===t||"finally"===t||"extends"===t;case 8:return"function"===t||"continue"===t||"debugger"===t;case 10:return"instanceof"===t;default:return!1}}function h(t,r,n,o,i){var a;e("number"==typeof n,"Comment must have valid position"),ve.lastCommentStart>=n||(ve.lastCommentStart=n,a={type:t,value:r},ye.range&&(a.range=[n,o]),ye.loc&&(a.loc=i),ye.comments.push(a),ye.attachComment&&(ye.leadingComments.push(a),ye.trailingComments.push(a)))}function d(t){var e,r,n,o;for(e=ce-t,r={start:{line:fe,column:ce-le-t}};ce<pe;)if(n=ue.charCodeAt(ce),++ce,a(n))return ye.comments&&(o=ue.slice(e+t,ce-1),r.end={line:fe,column:ce-le-1},h("Line",o,e,ce-1,r)),13===n&&10===ue.charCodeAt(ce)&&++ce,++fe,void(le=ce);ye.comments&&(o=ue.slice(e+t,ce),r.end={line:fe,column:ce-le},h("Line",o,e,ce,r))}function v(){var t,e,r,n;for(ye.comments&&(t=ce-2,e={start:{line:fe,column:ce-le-2}});ce<pe;)if(r=ue.charCodeAt(ce),a(r))13===r&&10===ue.charCodeAt(ce+1)&&++ce,++fe,++ce,le=ce,ce>=pe&&V({},oe.UnexpectedToken,"ILLEGAL");else if(42===r){if(47===ue.charCodeAt(ce+1))return++ce,++ce,void(ye.comments&&(n=ue.slice(t+2,ce-2),e.end={line:fe,column:ce-le},h("Block",n,t,ce,e)));++ce}else++ce;V({},oe.UnexpectedToken,"ILLEGAL")}function y(){var t,e;for(e=0===ce;ce<pe;)if(t=ue.charCodeAt(ce),i(t))++ce;else if(a(t))++ce,13===t&&10===ue.charCodeAt(ce)&&++ce,++fe,le=ce,e=!0;else if(47===t)if(t=ue.charCodeAt(ce+1),47===t)++ce,++ce,d(2),e=!0;else{if(42!==t)break;++ce,++ce,v()}else if(e&&45===t){if(45!==ue.charCodeAt(ce+1)||62!==ue.charCodeAt(ce+2))break;ce+=3,d(3)}else{if(60!==t)break;if("!--"!==ue.slice(ce+1,ce+4))break;++ce,++ce,++ce,++ce,d(4)}}function g(t){var e,r,o,i=0;for(r="u"===t?4:2,e=0;e<r;++e){if(!(ce<pe&&n(ue[ce])))return"";o=ue[ce++],i=16*i+"0123456789abcdef".indexOf(o.toLowerCase())}return String.fromCharCode(i)}function b(){var t,e;for(t=ue.charCodeAt(ce++),e=String.fromCharCode(t),92===t&&(117!==ue.charCodeAt(ce)&&V({},oe.UnexpectedToken,"ILLEGAL"),++ce,t=g("u"),t&&"\\"!==t&&u(t.charCodeAt(0))||V({},oe.UnexpectedToken,"ILLEGAL"),e=t);ce<pe&&(t=ue.charCodeAt(ce),s(t));)++ce,e+=String.fromCharCode(t),92===t&&(e=e.substr(0,e.length-1),117!==ue.charCodeAt(ce)&&V({},oe.UnexpectedToken,"ILLEGAL"),++ce,t=g("u"),t&&"\\"!==t&&s(t.charCodeAt(0))||V({},oe.UnexpectedToken,"ILLEGAL"),e+=t);return e}function m(){var t,e;for(t=ce++;ce<pe;){if(e=ue.charCodeAt(ce),92===e)return ce=t,b();if(!s(e))break;++ce}return ue.slice(t,ce)}function _(){var t,e,r;return t=ce,e=92===ue.charCodeAt(ce)?b():m(),r=1===e.length?Qt.Identifier:p(e)?Qt.Keyword:"null"===e?Qt.NullLiteral:"true"===e||"false"===e?Qt.BooleanLiteral:Qt.Identifier,{type:r,value:e,lineNumber:fe,lineStart:le,start:t,end:ce}}function w(){var t,e,r,n,o=ce,i=ue.charCodeAt(ce),a=ue[ce];switch(i){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++ce,ye.tokenize&&(40===i?ye.openParenToken=ye.tokens.length:123===i&&(ye.openCurlyToken=ye.tokens.length)),{type:Qt.Punctuator,value:String.fromCharCode(i),lineNumber:fe,lineStart:le,start:o,end:ce};default:if(t=ue.charCodeAt(ce+1),61===t)switch(i){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return ce+=2,{type:Qt.Punctuator,value:String.fromCharCode(i)+String.fromCharCode(t),lineNumber:fe,lineStart:le,start:o,end:ce};case 33:case 61:return ce+=2,61===ue.charCodeAt(ce)&&++ce,{type:Qt.Punctuator,value:ue.slice(o,ce),lineNumber:fe,lineStart:le,start:o,end:ce}}}return n=ue.substr(ce,4),">>>="===n?(ce+=4,{type:Qt.Punctuator,value:n,lineNumber:fe,lineStart:le,start:o,end:ce}):(r=n.substr(0,3),">>>"===r||"<<="===r||">>="===r?(ce+=3,{type:Qt.Punctuator,value:r,lineNumber:fe,lineStart:le,start:o,end:ce}):(e=r.substr(0,2),a===e[1]&&"+-<>&|".indexOf(a)>=0||"=>"===e?(ce+=2,{type:Qt.Punctuator,value:e,lineNumber:fe,lineStart:le,start:o,end:ce}):"<>=!+-*%&|^/".indexOf(a)>=0?(++ce,{type:Qt.Punctuator,value:a,lineNumber:fe,lineStart:le,start:o,end:ce}):void V({},oe.UnexpectedToken,"ILLEGAL")))}function x(t){for(var e="";ce<pe&&n(ue[ce]);)e+=ue[ce++];return 0===e.length&&V({},oe.UnexpectedToken,"ILLEGAL"),u(ue.charCodeAt(ce))&&V({},oe.UnexpectedToken,"ILLEGAL"),{type:Qt.NumericLiteral,value:parseInt("0x"+e,16),lineNumber:fe,lineStart:le,start:t,end:ce}}function O(t){for(var e="0"+ue[ce++];ce<pe&&o(ue[ce]);)e+=ue[ce++];return(u(ue.charCodeAt(ce))||r(ue.charCodeAt(ce)))&&V({},oe.UnexpectedToken,"ILLEGAL"),{type:Qt.NumericLiteral,value:parseInt(e,8),octal:!0,lineNumber:fe,lineStart:le,start:t,end:ce}}function j(){var t,e;for(t=ce+1;t<pe;++t){if(e=ue[t],"8"===e||"9"===e)return!1;if(!o(e))return!0}return!0}function S(){var t,n,i;if(i=ue[ce],e(r(i.charCodeAt(0))||"."===i,"Numeric literal must start with a decimal digit or a decimal point"),n=ce,t="","."!==i){if(t=ue[ce++],i=ue[ce],"0"===t){if("x"===i||"X"===i)return++ce,x(n);if(o(i)&&j())return O(n)}for(;r(ue.charCodeAt(ce));)t+=ue[ce++];i=ue[ce]}if("."===i){for(t+=ue[ce++];r(ue.charCodeAt(ce));)t+=ue[ce++];i=ue[ce]}if("e"===i||"E"===i)if(t+=ue[ce++],i=ue[ce],"+"!==i&&"-"!==i||(t+=ue[ce++]),r(ue.charCodeAt(ce)))for(;r(ue.charCodeAt(ce));)t+=ue[ce++];else V({},oe.UnexpectedToken,"ILLEGAL");return u(ue.charCodeAt(ce))&&V({},oe.UnexpectedToken,"ILLEGAL"),{type:Qt.NumericLiteral,value:parseFloat(t),lineNumber:fe,lineStart:le,start:n,end:ce}}function E(){var t,r,n,i,u,s,c,f,l="",p=!1;for(c=fe,f=le,t=ue[ce],e("'"===t||'"'===t,"String literal must starts with a quote"),r=ce,++ce;ce<pe;){if(n=ue[ce++],n===t){t="";break}if("\\"===n)if(n=ue[ce++],n&&a(n.charCodeAt(0)))++fe,"\r"===n&&"\n"===ue[ce]&&++ce,le=ce;else switch(n){case"u":case"x":s=ce,u=g(n),u?l+=u:(ce=s,l+=n);break;case"n":l+="\n";break;case"r":l+="\r";break;case"t":l+="\t";break;case"b":l+="\b";break;case"f":l+="\f";break;case"v":l+="\v";break;default:o(n)?(i="01234567".indexOf(n),0!==i&&(p=!0),ce<pe&&o(ue[ce])&&(p=!0,i=8*i+"01234567".indexOf(ue[ce++]),"0123".indexOf(n)>=0&&ce<pe&&o(ue[ce])&&(i=8*i+"01234567".indexOf(ue[ce++]))),l+=String.fromCharCode(i)):l+=n}else{if(a(n.charCodeAt(0)))break;l+=n}}return""!==t&&V({},oe.UnexpectedToken,"ILLEGAL"),{type:Qt.StringLiteral,value:l,octal:p,startLineNumber:c,startLineStart:f,lineNumber:fe,lineStart:le,start:r,end:ce}}function P(t,e){var r;try{r=new RegExp(t,e)}catch(t){V({},oe.InvalidRegExp)}return r}function k(){var t,r,n,o,i;for(t=ue[ce],e("/"===t,"Regular expression literal must start with a slash"),r=ue[ce++],n=!1,o=!1;ce<pe;)if(t=ue[ce++],r+=t,"\\"===t)t=ue[ce++],a(t.charCodeAt(0))&&V({},oe.UnterminatedRegExp),r+=t;else if(a(t.charCodeAt(0)))V({},oe.UnterminatedRegExp);else if(n)"]"===t&&(n=!1);else{if("/"===t){o=!0;break}"["===t&&(n=!0)}return o||V({},oe.UnterminatedRegExp),i=r.substr(1,r.length-2),{value:i,literal:r}}function A(){var t,e,r,n;for(e="",r="";ce<pe&&(t=ue[ce],s(t.charCodeAt(0)));)if(++ce,"\\"===t&&ce<pe)if(t=ue[ce],"u"===t){if(++ce,n=ce,t=g("u"))for(r+=t,e+="\\u";n<ce;++n)e+=ue[n];else ce=n,r+="u",e+="\\u";W({},oe.UnexpectedToken,"ILLEGAL")}else e+="\\",W({},oe.UnexpectedToken,"ILLEGAL");else r+=t,e+=t;return{value:r,literal:e}}function M(){var t,e,r,n;return de=null,y(),t=ce,e=k(),r=A(),n=P(e.value,r.value),ye.tokenize?{type:Qt.RegularExpression,value:n,lineNumber:fe,lineStart:le,start:t,end:ce}:{literal:e.literal+r.literal,value:n,start:t,end:ce}}function T(){var t,e,r,n;return y(),t=ce,e={start:{line:fe,column:ce-le}},r=M(),e.end={line:fe,column:ce-le},ye.tokenize||(ye.tokens.length>0&&(n=ye.tokens[ye.tokens.length-1],n.range[0]===t&&"Punctuator"===n.type&&("/"!==n.value&&"/="!==n.value||ye.tokens.pop())),ye.tokens.push({type:"RegularExpression",value:r.literal,range:[t,ce],loc:e})),r}function C(t){return t.type===Qt.Identifier||t.type===Qt.Keyword||t.type===Qt.BooleanLiteral||t.type===Qt.NullLiteral}function I(){var t,e;if(t=ye.tokens[ye.tokens.length-1],!t)return T();if("Punctuator"===t.type){if("]"===t.value)return w();if(")"===t.value)return e=ye.tokens[ye.openParenToken-1],!e||"Keyword"!==e.type||"if"!==e.value&&"while"!==e.value&&"for"!==e.value&&"with"!==e.value?w():T();if("}"===t.value){if(ye.tokens[ye.openCurlyToken-3]&&"Keyword"===ye.tokens[ye.openCurlyToken-3].type){if(e=ye.tokens[ye.openCurlyToken-4],!e)return w()}else{if(!ye.tokens[ye.openCurlyToken-4]||"Keyword"!==ye.tokens[ye.openCurlyToken-4].type)return w();if(e=ye.tokens[ye.openCurlyToken-5],!e)return T()}return ee.indexOf(e.value)>=0?w():T()}return T()}return"Keyword"===t.type&&"this"!==t.value?T():w()}function R(){var t;return y(),ce>=pe?{type:Qt.EOF,lineNumber:fe,lineStart:le,start:ce,end:ce}:(t=ue.charCodeAt(ce),u(t)?_():40===t||41===t||59===t?w():39===t||34===t?E():46===t?r(ue.charCodeAt(ce+1))?S():w():r(t)?S():ye.tokenize&&47===t?I():w())}function D(){var t,e,r;return y(),t={start:{line:fe,column:ce-le}},e=R(),t.end={line:fe,column:ce-le},e.type!==Qt.EOF&&(r=ue.slice(e.start,e.end),ye.tokens.push({type:te[e.type],value:r,range:[e.start,e.end],loc:t})),e}function L(){var t;return t=de,ce=t.end,fe=t.lineNumber,le=t.lineStart,de="undefined"!=typeof ye.tokens?D():R(),ce=t.end,fe=t.lineNumber,le=t.lineStart,t}function F(){var t,e,r;t=ce,e=fe,r=le,de="undefined"!=typeof ye.tokens?D():R(),ce=t,fe=e,le=r}function N(t,e){this.line=t,this.column=e}function U(t,e,r,n){this.start=new N(t,e),this.end=new N(r,n)}function B(){var t,e,r,n;return t=ce,e=fe,r=le,y(),n=fe!==e,ce=t,fe=e,le=r,n}function V(t,r){var n,o=Array.prototype.slice.call(arguments,2),i=r.replace(/%(\d)/g,function(t,r){return e(r<o.length,"Message reference must be in range"),o[r]});throw"number"==typeof t.lineNumber?(n=new Error("Line "+t.lineNumber+": "+i),n.index=t.start,n.lineNumber=t.lineNumber,n.column=t.start-le+1):(n=new Error("Line "+fe+": "+i),n.index=ce,n.lineNumber=fe,n.column=ce-le+1),n.description=i,n}function W(){try{V.apply(null,arguments)}catch(t){if(!ye.errors)throw t;ye.errors.push(t)}}function z(t){if(t.type===Qt.EOF&&V(t,oe.UnexpectedEOS),t.type===Qt.NumericLiteral&&V(t,oe.UnexpectedNumber),t.type===Qt.StringLiteral&&V(t,oe.UnexpectedString),t.type===Qt.Identifier&&V(t,oe.UnexpectedIdentifier),t.type===Qt.Keyword){if(c(t.value))V(t,oe.UnexpectedReserved);else if(se&&f(t.value))return void W(t,oe.StrictReservedWord);V(t,oe.UnexpectedToken,t.value)}V(t,oe.UnexpectedToken,t.value)}function q(t){var e=L();e.type===Qt.Punctuator&&e.value===t||z(e)}function G(t){var e=L();e.type===Qt.Keyword&&e.value===t||z(e)}function Y(t){return de.type===Qt.Punctuator&&de.value===t}function H(t){return de.type===Qt.Keyword&&de.value===t}function K(){var t;return de.type===Qt.Punctuator&&(t=de.value,"="===t||"*="===t||"/="===t||"%="===t||"+="===t||"-="===t||"<<="===t||">>="===t||">>>="===t||"&="===t||"^="===t||"|="===t)}function $(){var t,e=ce,r=fe,n=le,o=de;return 59===ue.charCodeAt(ce)||Y(";")?void L():(t=fe,y(),fe!==t?(ce=e,fe=r,le=n,void(de=o)):void(de.type===Qt.EOF||Y("}")||z(de)))}function Z(t){return t.type===re.Identifier||t.type===re.MemberExpression}function J(){var t,e=[];for(t=de,q("[");!Y("]");)Y(",")?(L(),e.push(null)):(e.push(yt()),Y("]")||q(","));return L(),he.markEnd(he.createArrayExpression(e),t)}function X(t,e){var r,n,o;return r=se,o=de,n=zt(),e&&se&&l(t[0].name)&&W(e,oe.StrictParamName),se=r,he.markEnd(he.createFunctionExpression(null,t,[],n),o)}function Q(){var t,e;return e=de,
t=L(),t.type===Qt.StringLiteral||t.type===Qt.NumericLiteral?(se&&t.octal&&W(t,oe.StrictOctalLiteral),he.markEnd(he.createLiteral(t),e)):he.markEnd(he.createIdentifier(t.value),e)}function tt(){var t,e,r,n,o,i;return t=de,i=de,t.type===Qt.Identifier?(r=Q(),"get"!==t.value||Y(":")?"set"!==t.value||Y(":")?(q(":"),n=yt(),he.markEnd(he.createProperty("init",r,n),i)):(e=Q(),q("("),t=de,t.type!==Qt.Identifier?(q(")"),W(t,oe.UnexpectedToken,t.value),n=X([])):(o=[_t()],q(")"),n=X(o,t)),he.markEnd(he.createProperty("set",e,n),i)):(e=Q(),q("("),q(")"),n=X([]),he.markEnd(he.createProperty("get",e,n),i))):t.type!==Qt.EOF&&t.type!==Qt.Punctuator?(e=Q(),q(":"),n=yt(),he.markEnd(he.createProperty("init",e,n),i)):void z(t)}function et(){var t,e,r,n,o,i=[],a={},u=String;for(o=de,q("{");!Y("}");)t=tt(),e=t.key.type===re.Identifier?t.key.name:u(t.key.value),n="init"===t.kind?ne.Data:"get"===t.kind?ne.Get:ne.Set,r="$"+e,Object.prototype.hasOwnProperty.call(a,r)?(a[r]===ne.Data?se&&n===ne.Data?W({},oe.StrictDuplicateProperty):n!==ne.Data&&W({},oe.AccessorDataProperty):n===ne.Data?W({},oe.AccessorDataProperty):a[r]&n&&W({},oe.AccessorGetSet),a[r]|=n):a[r]=n,i.push(t),Y("}")||q(",");return q("}"),he.markEnd(he.createObjectExpression(i),o)}function rt(){var t;return q("("),t=gt(),q(")"),t}function nt(){var t,e,r,n;if(Y("("))return rt();if(Y("["))return J();if(Y("{"))return et();if(t=de.type,n=de,t===Qt.Identifier)r=he.createIdentifier(L().value);else if(t===Qt.StringLiteral||t===Qt.NumericLiteral)se&&de.octal&&W(de,oe.StrictOctalLiteral),r=he.createLiteral(L());else if(t===Qt.Keyword){if(H("function"))return Yt();H("this")?(L(),r=he.createThisExpression()):z(L())}else t===Qt.BooleanLiteral?(e=L(),e.value="true"===e.value,r=he.createLiteral(e)):t===Qt.NullLiteral?(e=L(),e.value=null,r=he.createLiteral(e)):Y("/")||Y("/=")?(r="undefined"!=typeof ye.tokens?he.createLiteral(T()):he.createLiteral(M()),F()):z(L());return he.markEnd(r,n)}function ot(){var t=[];if(q("("),!Y(")"))for(;ce<pe&&(t.push(yt()),!Y(")"));)q(",");return q(")"),t}function it(){var t,e;return e=de,t=L(),C(t)||z(t),he.markEnd(he.createIdentifier(t.value),e)}function at(){return q("."),it()}function ut(){var t;return q("["),t=gt(),q("]"),t}function st(){var t,e,r;return r=de,G("new"),t=ft(),e=Y("(")?ot():[],he.markEnd(he.createNewExpression(t,e),r)}function ct(){var t,e,r,n,o=ve.allowIn;for(n=de,ve.allowIn=!0,t=H("new")?st():nt();;){if(Y("."))r=at(),t=he.createMemberExpression(".",t,r);else if(Y("("))e=ot(),t=he.createCallExpression(t,e);else{if(!Y("["))break;r=ut(),t=he.createMemberExpression("[",t,r)}he.markEnd(t,n)}return ve.allowIn=o,t}function ft(){var t,r,n;for(e(ve.allowIn,"callee of new expression always allow in keyword."),n=de,t=H("new")?st():nt();Y(".")||Y("[");)Y("[")?(r=ut(),t=he.createMemberExpression("[",t,r)):(r=at(),t=he.createMemberExpression(".",t,r)),he.markEnd(t,n);return t}function lt(){var t,e,r=de;return t=ct(),de.type===Qt.Punctuator&&(!Y("++")&&!Y("--")||B()||(se&&t.type===re.Identifier&&l(t.name)&&W({},oe.StrictLHSPostfix),Z(t)||W({},oe.InvalidLHSInAssignment),e=L(),t=he.markEnd(he.createPostfixExpression(e.value,t),r))),t}function pt(){var t,e,r;return de.type!==Qt.Punctuator&&de.type!==Qt.Keyword?e=lt():Y("++")||Y("--")?(r=de,t=L(),e=pt(),se&&e.type===re.Identifier&&l(e.name)&&W({},oe.StrictLHSPrefix),Z(e)||W({},oe.InvalidLHSInAssignment),e=he.createUnaryExpression(t.value,e),e=he.markEnd(e,r)):Y("+")||Y("-")||Y("~")||Y("!")?(r=de,t=L(),e=pt(),e=he.createUnaryExpression(t.value,e),e=he.markEnd(e,r)):H("delete")||H("void")||H("typeof")?(r=de,t=L(),e=pt(),e=he.createUnaryExpression(t.value,e),e=he.markEnd(e,r),se&&"delete"===e.operator&&e.argument.type===re.Identifier&&W({},oe.StrictDelete)):e=lt(),e}function ht(t,e){var r=0;if(t.type!==Qt.Punctuator&&t.type!==Qt.Keyword)return 0;switch(t.value){case"||":r=1;break;case"&&":r=2;break;case"|":r=3;break;case"^":r=4;break;case"&":r=5;break;case"==":case"!=":case"===":case"!==":r=6;break;case"<":case">":case"<=":case">=":case"instanceof":r=7;break;case"in":r=e?7:0;break;case"<<":case">>":case">>>":r=8;break;case"+":case"-":r=9;break;case"*":case"/":case"%":r=11}return r}function dt(){var t,e,r,n,o,i,a,u,s,c;if(t=de,s=pt(),n=de,o=ht(n,ve.allowIn),0===o)return s;for(n.prec=o,L(),e=[t,de],a=pt(),i=[s,n,a];(o=ht(de,ve.allowIn))>0;){for(;i.length>2&&o<=i[i.length-2].prec;)a=i.pop(),u=i.pop().value,s=i.pop(),r=he.createBinaryExpression(u,s,a),e.pop(),t=e[e.length-1],he.markEnd(r,t),i.push(r);n=L(),n.prec=o,i.push(n),e.push(de),r=pt(),i.push(r)}for(c=i.length-1,r=i[c],e.pop();c>1;)r=he.createBinaryExpression(i[c-1].value,i[c-2],r),c-=2,t=e.pop(),he.markEnd(r,t);return r}function vt(){var t,e,r,n,o;return o=de,t=dt(),Y("?")&&(L(),e=ve.allowIn,ve.allowIn=!0,r=yt(),ve.allowIn=e,q(":"),n=yt(),t=he.createConditionalExpression(t,r,n),he.markEnd(t,o)),t}function yt(){var t,e,r,n,o;return t=de,o=de,n=e=vt(),K()&&(Z(e)||W({},oe.InvalidLHSInAssignment),se&&e.type===re.Identifier&&l(e.name)&&W(t,oe.StrictLHSAssignment),t=L(),r=yt(),n=he.markEnd(he.createAssignmentExpression(t.value,e,r),o)),n}function gt(){var t,e=de;if(t=yt(),Y(",")){for(t=he.createSequenceExpression([t]);ce<pe&&Y(",");)L(),t.expressions.push(yt());he.markEnd(t,e)}return t}function bt(){for(var t,e=[];ce<pe&&!Y("}")&&(t=Ht(),"undefined"!=typeof t);)e.push(t);return e}function mt(){var t,e;return e=de,q("{"),t=bt(),q("}"),he.markEnd(he.createBlockStatement(t),e)}function _t(){var t,e;return e=de,t=L(),t.type!==Qt.Identifier&&z(t),he.markEnd(he.createIdentifier(t.value),e)}function wt(t){var e,r,n=null;return r=de,e=_t(),se&&l(e.name)&&W({},oe.StrictVarName),"const"===t?(q("="),n=yt()):Y("=")&&(L(),n=yt()),he.markEnd(he.createVariableDeclarator(e,n),r)}function xt(t){var e=[];do{if(e.push(wt(t)),!Y(","))break;L()}while(ce<pe);return e}function Ot(){var t;return G("var"),t=xt(),$(),he.createVariableDeclaration(t,"var")}function jt(t){var e,r;return r=de,G(t),e=xt(t),$(),he.markEnd(he.createVariableDeclaration(e,t),r)}function St(){return q(";"),he.createEmptyStatement()}function Et(){var t=gt();return $(),he.createExpressionStatement(t)}function Pt(){var t,e,r;return G("if"),q("("),t=gt(),q(")"),e=Wt(),H("else")?(L(),r=Wt()):r=null,he.createIfStatement(t,e,r)}function kt(){var t,e,r;return G("do"),r=ve.inIteration,ve.inIteration=!0,t=Wt(),ve.inIteration=r,G("while"),q("("),e=gt(),q(")"),Y(";")&&L(),he.createDoWhileStatement(t,e)}function At(){var t,e,r;return G("while"),q("("),t=gt(),q(")"),r=ve.inIteration,ve.inIteration=!0,e=Wt(),ve.inIteration=r,he.createWhileStatement(t,e)}function Mt(){var t,e,r;return r=de,t=L(),e=xt(),he.markEnd(he.createVariableDeclaration(e,t.value),r)}function Tt(){var t,e,r,n,o,i,a,u=ve.allowIn;return t=e=r=null,G("for"),q("("),Y(";")?L():(H("var")||H("let")?(ve.allowIn=!1,t=Mt(),ve.allowIn=u,1===t.declarations.length&&H("in")&&(L(),n=t,o=gt(),t=null)):(ve.allowIn=!1,t=gt(),ve.allowIn=u,H("in")&&(Z(t)||W({},oe.InvalidLHSInForIn),L(),n=t,o=gt(),t=null)),"undefined"==typeof n&&q(";")),"undefined"==typeof n&&(Y(";")||(e=gt()),q(";"),Y(")")||(r=gt())),q(")"),a=ve.inIteration,ve.inIteration=!0,i=Wt(),ve.inIteration=a,"undefined"==typeof n?he.createForStatement(t,e,r,i):he.createForInStatement(n,o,i)}function Ct(){var t,e=null;return G("continue"),59===ue.charCodeAt(ce)?(L(),ve.inIteration||V({},oe.IllegalContinue),he.createContinueStatement(null)):B()?(ve.inIteration||V({},oe.IllegalContinue),he.createContinueStatement(null)):(de.type===Qt.Identifier&&(e=_t(),t="$"+e.name,Object.prototype.hasOwnProperty.call(ve.labelSet,t)||V({},oe.UnknownLabel,e.name)),$(),null!==e||ve.inIteration||V({},oe.IllegalContinue),he.createContinueStatement(e))}function It(){var t,e=null;return G("break"),59===ue.charCodeAt(ce)?(L(),ve.inIteration||ve.inSwitch||V({},oe.IllegalBreak),he.createBreakStatement(null)):B()?(ve.inIteration||ve.inSwitch||V({},oe.IllegalBreak),he.createBreakStatement(null)):(de.type===Qt.Identifier&&(e=_t(),t="$"+e.name,Object.prototype.hasOwnProperty.call(ve.labelSet,t)||V({},oe.UnknownLabel,e.name)),$(),null!==e||ve.inIteration||ve.inSwitch||V({},oe.IllegalBreak),he.createBreakStatement(e))}function Rt(){var t=null;return G("return"),ve.inFunctionBody||W({},oe.IllegalReturn),32===ue.charCodeAt(ce)&&u(ue.charCodeAt(ce+1))?(t=gt(),$(),he.createReturnStatement(t)):B()?he.createReturnStatement(null):(Y(";")||Y("}")||de.type===Qt.EOF||(t=gt()),$(),he.createReturnStatement(t))}function Dt(){var t,e;return se&&(y(),W({},oe.StrictModeWith)),G("with"),q("("),t=gt(),q(")"),e=Wt(),he.createWithStatement(t,e)}function Lt(){var t,e,r,n=[];for(r=de,H("default")?(L(),t=null):(G("case"),t=gt()),q(":");ce<pe&&!(Y("}")||H("default")||H("case"));)e=Wt(),n.push(e);return he.markEnd(he.createSwitchCase(t,n),r)}function Ft(){var t,e,r,n,o;if(G("switch"),q("("),t=gt(),q(")"),q("{"),e=[],Y("}"))return L(),he.createSwitchStatement(t,e);for(n=ve.inSwitch,ve.inSwitch=!0,o=!1;ce<pe&&!Y("}");)r=Lt(),null===r.test&&(o&&V({},oe.MultipleDefaultsInSwitch),o=!0),e.push(r);return ve.inSwitch=n,q("}"),he.createSwitchStatement(t,e)}function Nt(){var t;return G("throw"),B()&&V({},oe.NewlineAfterThrow),t=gt(),$(),he.createThrowStatement(t)}function Ut(){var t,e,r;return r=de,G("catch"),q("("),Y(")")&&z(de),t=_t(),se&&l(t.name)&&W({},oe.StrictCatchVariable),q(")"),e=mt(),he.markEnd(he.createCatchClause(t,e),r)}function Bt(){var t,e=[],r=null;return G("try"),t=mt(),H("catch")&&e.push(Ut()),H("finally")&&(L(),r=mt()),0!==e.length||r||V({},oe.NoCatchOrFinally),he.createTryStatement(t,[],e,r)}function Vt(){return G("debugger"),$(),he.createDebuggerStatement()}function Wt(){var t,e,r,n,o=de.type;if(o===Qt.EOF&&z(de),o===Qt.Punctuator&&"{"===de.value)return mt();if(n=de,o===Qt.Punctuator)switch(de.value){case";":return he.markEnd(St(),n);case"(":return he.markEnd(Et(),n)}if(o===Qt.Keyword)switch(de.value){case"break":return he.markEnd(It(),n);case"continue":return he.markEnd(Ct(),n);case"debugger":return he.markEnd(Vt(),n);case"do":return he.markEnd(kt(),n);case"for":return he.markEnd(Tt(),n);case"function":return he.markEnd(Gt(),n);case"if":return he.markEnd(Pt(),n);case"return":return he.markEnd(Rt(),n);case"switch":return he.markEnd(Ft(),n);case"throw":return he.markEnd(Nt(),n);case"try":return he.markEnd(Bt(),n);case"var":return he.markEnd(Ot(),n);case"while":return he.markEnd(At(),n);case"with":return he.markEnd(Dt(),n)}return t=gt(),t.type===re.Identifier&&Y(":")?(L(),r="$"+t.name,Object.prototype.hasOwnProperty.call(ve.labelSet,r)&&V({},oe.Redeclaration,"Label",t.name),ve.labelSet[r]=!0,e=Wt(),delete ve.labelSet[r],he.markEnd(he.createLabeledStatement(t,e),n)):($(),he.markEnd(he.createExpressionStatement(t),n))}function zt(){var t,e,r,n,o,i,a,u,s,c=[];for(s=de,q("{");ce<pe&&de.type===Qt.StringLiteral&&(e=de,t=Ht(),c.push(t),t.expression.type===re.Literal);)r=ue.slice(e.start+1,e.end-1),"use strict"===r?(se=!0,n&&W(n,oe.StrictOctalLiteral)):!n&&e.octal&&(n=e);for(o=ve.labelSet,i=ve.inIteration,a=ve.inSwitch,u=ve.inFunctionBody,ve.labelSet={},ve.inIteration=!1,ve.inSwitch=!1,ve.inFunctionBody=!0;ce<pe&&!Y("}")&&(t=Ht(),"undefined"!=typeof t);)c.push(t);return q("}"),ve.labelSet=o,ve.inIteration=i,ve.inSwitch=a,ve.inFunctionBody=u,he.markEnd(he.createBlockStatement(c),s)}function qt(t){var e,r,n,o,i,a,u=[];if(q("("),!Y(")"))for(o={};ce<pe&&(r=de,e=_t(),i="$"+r.value,se?(l(r.value)&&(n=r,a=oe.StrictParamName),Object.prototype.hasOwnProperty.call(o,i)&&(n=r,a=oe.StrictParamDupe)):t||(l(r.value)?(t=r,a=oe.StrictParamName):f(r.value)?(t=r,a=oe.StrictReservedWord):Object.prototype.hasOwnProperty.call(o,i)&&(t=r,a=oe.StrictParamDupe)),u.push(e),o[i]=!0,!Y(")"));)q(",");return q(")"),{params:u,stricted:n,firstRestricted:t,message:a}}function Gt(){var t,e,r,n,o,i,a,u,s,c=[];return s=de,G("function"),r=de,t=_t(),se?l(r.value)&&W(r,oe.StrictFunctionName):l(r.value)?(i=r,a=oe.StrictFunctionName):f(r.value)&&(i=r,a=oe.StrictReservedWord),o=qt(i),c=o.params,n=o.stricted,i=o.firstRestricted,o.message&&(a=o.message),u=se,e=zt(),se&&i&&V(i,a),se&&n&&W(n,a),se=u,he.markEnd(he.createFunctionDeclaration(t,c,[],e),s)}function Yt(){var t,e,r,n,o,i,a,u,s=null,c=[];return u=de,G("function"),Y("(")||(t=de,s=_t(),se?l(t.value)&&W(t,oe.StrictFunctionName):l(t.value)?(r=t,n=oe.StrictFunctionName):f(t.value)&&(r=t,n=oe.StrictReservedWord)),o=qt(r),c=o.params,e=o.stricted,r=o.firstRestricted,o.message&&(n=o.message),a=se,i=zt(),se&&r&&V(r,n),se&&e&&W(e,n),se=a,he.markEnd(he.createFunctionExpression(s,c,[],i),u)}function Ht(){if(de.type===Qt.Keyword)switch(de.value){case"const":case"let":return jt(de.value);case"function":return Gt();default:return Wt()}if(de.type!==Qt.EOF)return Wt()}function Kt(){for(var t,e,r,n,o=[];ce<pe&&(e=de,e.type===Qt.StringLiteral)&&(t=Ht(),o.push(t),t.expression.type===re.Literal);)r=ue.slice(e.start+1,e.end-1),"use strict"===r?(se=!0,n&&W(n,oe.StrictOctalLiteral)):!n&&e.octal&&(n=e);for(;ce<pe&&(t=Ht(),"undefined"!=typeof t);)o.push(t);return o}function $t(){var t,e;return y(),F(),e=de,se=!1,t=Kt(),he.markEnd(he.createProgram(t),e)}function Zt(){var t,e,r,n=[];for(t=0;t<ye.tokens.length;++t)e=ye.tokens[t],r={type:e.type,value:e.value},ye.range&&(r.range=e.range),ye.loc&&(r.loc=e.loc),n.push(r);ye.tokens=n}function Jt(t,e){var r,n,o;r=String,"string"==typeof t||t instanceof String||(t=r(t)),he=ae,ue=t,ce=0,fe=ue.length>0?1:0,le=0,pe=ue.length,de=null,ve={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},ye={},e=e||{},e.tokens=!0,ye.tokens=[],ye.tokenize=!0,ye.openParenToken=-1,ye.openCurlyToken=-1,ye.range="boolean"==typeof e.range&&e.range,ye.loc="boolean"==typeof e.loc&&e.loc,"boolean"==typeof e.comment&&e.comment&&(ye.comments=[]),"boolean"==typeof e.tolerant&&e.tolerant&&(ye.errors=[]);try{if(F(),de.type===Qt.EOF)return ye.tokens;for(n=L();de.type!==Qt.EOF;)try{n=L()}catch(t){if(n=de,ye.errors){ye.errors.push(t);break}throw t}Zt(),o=ye.tokens,"undefined"!=typeof ye.comments&&(o.comments=ye.comments),"undefined"!=typeof ye.errors&&(o.errors=ye.errors)}catch(t){throw t}finally{ye={}}return o}function Xt(t,e){var r,n;n=String,"string"==typeof t||t instanceof String||(t=n(t)),he=ae,ue=t,ce=0,fe=ue.length>0?1:0,le=0,pe=ue.length,de=null,ve={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},ye={},"undefined"!=typeof e&&(ye.range="boolean"==typeof e.range&&e.range,ye.loc="boolean"==typeof e.loc&&e.loc,ye.attachComment="boolean"==typeof e.attachComment&&e.attachComment,ye.loc&&null!==e.source&&void 0!==e.source&&(ye.source=n(e.source)),"boolean"==typeof e.tokens&&e.tokens&&(ye.tokens=[]),"boolean"==typeof e.comment&&e.comment&&(ye.comments=[]),"boolean"==typeof e.tolerant&&e.tolerant&&(ye.errors=[]),ye.attachComment&&(ye.range=!0,ye.comments=[],ye.bottomRightStack=[],ye.trailingComments=[],ye.leadingComments=[]));try{r=$t(),"undefined"!=typeof ye.comments&&(r.comments=ye.comments),"undefined"!=typeof ye.tokens&&(Zt(),r.tokens=ye.tokens),"undefined"!=typeof ye.errors&&(r.errors=ye.errors)}catch(t){throw t}finally{ye={}}return r}var Qt,te,ee,re,ne,oe,ie,ae,ue,se,ce,fe,le,pe,he,de,ve,ye;Qt={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},te={},te[Qt.BooleanLiteral]="Boolean",te[Qt.EOF]="<end>",te[Qt.Identifier]="Identifier",te[Qt.Keyword]="Keyword",te[Qt.NullLiteral]="Null",te[Qt.NumericLiteral]="Numeric",te[Qt.Punctuator]="Punctuator",te[Qt.StringLiteral]="String",te[Qt.RegularExpression]="RegularExpression",ee=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],re={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},ne={Data:1,Get:2,Set:4},oe={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},ie={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")},ae={name:"SyntaxTree",processComment:function(t){var e,r;if(!(t.type===re.Program&&t.body.length>0)){for(ye.trailingComments.length>0?ye.trailingComments[0].range[0]>=t.range[1]?(r=ye.trailingComments,ye.trailingComments=[]):ye.trailingComments.length=0:ye.bottomRightStack.length>0&&ye.bottomRightStack[ye.bottomRightStack.length-1].trailingComments&&ye.bottomRightStack[ye.bottomRightStack.length-1].trailingComments[0].range[0]>=t.range[1]&&(r=ye.bottomRightStack[ye.bottomRightStack.length-1].trailingComments,delete ye.bottomRightStack[ye.bottomRightStack.length-1].trailingComments);ye.bottomRightStack.length>0&&ye.bottomRightStack[ye.bottomRightStack.length-1].range[0]>=t.range[0];)e=ye.bottomRightStack.pop();e?e.leadingComments&&e.leadingComments[e.leadingComments.length-1].range[1]<=t.range[0]&&(t.leadingComments=e.leadingComments,delete e.leadingComments):ye.leadingComments.length>0&&ye.leadingComments[ye.leadingComments.length-1].range[1]<=t.range[0]&&(t.leadingComments=ye.leadingComments,ye.leadingComments=[]),r&&(t.trailingComments=r),ye.bottomRightStack.push(t)}},markEnd:function(t,e){return ye.range&&(t.range=[e.start,ce]),ye.loc&&(t.loc=new U(void 0===e.startLineNumber?e.lineNumber:e.startLineNumber,e.start-(void 0===e.startLineStart?e.lineStart:e.startLineStart),fe,ce-le),this.postProcess(t)),ye.attachComment&&this.processComment(t),t},postProcess:function(t){return ye.source&&(t.loc.source=ye.source),t},createArrayExpression:function(t){return{type:re.ArrayExpression,elements:t}},createAssignmentExpression:function(t,e,r){return{type:re.AssignmentExpression,operator:t,left:e,right:r}},createBinaryExpression:function(t,e,r){var n="||"===t||"&&"===t?re.LogicalExpression:re.BinaryExpression;return{type:n,operator:t,left:e,right:r}},createBlockStatement:function(t){return{type:re.BlockStatement,body:t}},createBreakStatement:function(t){return{type:re.BreakStatement,label:t}},createCallExpression:function(t,e){return{type:re.CallExpression,callee:t,arguments:e}},createCatchClause:function(t,e){return{type:re.CatchClause,param:t,body:e}},createConditionalExpression:function(t,e,r){return{type:re.ConditionalExpression,test:t,consequent:e,alternate:r}},createContinueStatement:function(t){return{type:re.ContinueStatement,label:t}},createDebuggerStatement:function(){return{type:re.DebuggerStatement}},createDoWhileStatement:function(t,e){return{type:re.DoWhileStatement,body:t,test:e}},createEmptyStatement:function(){return{type:re.EmptyStatement}},createExpressionStatement:function(t){return{type:re.ExpressionStatement,expression:t}},createForStatement:function(t,e,r,n){return{type:re.ForStatement,init:t,test:e,update:r,body:n}},createForInStatement:function(t,e,r){return{type:re.ForInStatement,left:t,right:e,body:r,each:!1}},createFunctionDeclaration:function(t,e,r,n){return{type:re.FunctionDeclaration,id:t,params:e,defaults:r,body:n,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(t,e,r,n){return{type:re.FunctionExpression,id:t,params:e,defaults:r,body:n,rest:null,generator:!1,expression:!1}},createIdentifier:function(t){return{type:re.Identifier,name:t}},createIfStatement:function(t,e,r){return{type:re.IfStatement,test:t,consequent:e,alternate:r}},createLabeledStatement:function(t,e){return{type:re.LabeledStatement,label:t,body:e}},createLiteral:function(t){return{type:re.Literal,value:t.value,raw:ue.slice(t.start,t.end)}},createMemberExpression:function(t,e,r){return{type:re.MemberExpression,computed:"["===t,object:e,property:r}},createNewExpression:function(t,e){return{type:re.NewExpression,callee:t,arguments:e}},createObjectExpression:function(t){return{type:re.ObjectExpression,properties:t}},createPostfixExpression:function(t,e){return{type:re.UpdateExpression,operator:t,argument:e,prefix:!1}},createProgram:function(t){return{type:re.Program,body:t}},createProperty:function(t,e,r){return{type:re.Property,key:e,value:r,kind:t}},createReturnStatement:function(t){return{type:re.ReturnStatement,argument:t}},createSequenceExpression:function(t){return{type:re.SequenceExpression,expressions:t}},createSwitchCase:function(t,e){return{type:re.SwitchCase,test:t,consequent:e}},createSwitchStatement:function(t,e){return{type:re.SwitchStatement,discriminant:t,cases:e}},createThisExpression:function(){return{type:re.ThisExpression}},createThrowStatement:function(t){return{type:re.ThrowStatement,argument:t}},createTryStatement:function(t,e,r,n){return{type:re.TryStatement,block:t,guardedHandlers:e,handlers:r,finalizer:n}},createUnaryExpression:function(t,e){return"++"===t||"--"===t?{type:re.UpdateExpression,operator:t,argument:e,prefix:!0}:{type:re.UnaryExpression,operator:t,argument:e,prefix:!0}},createVariableDeclaration:function(t,e){return{type:re.VariableDeclaration,declarations:t,kind:e}},createVariableDeclarator:function(t,e){return{type:re.VariableDeclarator,id:t,init:e}},createWhileStatement:function(t,e){return{type:re.WhileStatement,test:t,body:e}},createWithStatement:function(t,e){return{type:re.WithStatement,object:t,body:e}}},t.version="1.2.5",t.tokenize=Jt,t.parse=Xt,t.Syntax=function(){var t,e={};"function"==typeof Object.create&&(e=Object.create(null));for(t in re)re.hasOwnProperty(t)&&(e[t]=re[t]);return"function"==typeof Object.freeze&&Object.freeze(e),e}()})},function(t,e){e.read=function(t,e,r,n,o){var i,a,u=8*o-n-1,s=(1<<u)-1,c=s>>1,f=-7,l=r?o-1:0,p=r?-1:1,h=t[e+l];for(l+=p,i=h&(1<<-f)-1,h>>=-f,f+=u;f>0;i=256*i+t[e+l],l+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=p,f-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,u,s,c=8*i-o-1,f=(1<<c)-1,l=f>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),e+=a+l>=1?p/s:p*Math.pow(2,1-l),e*s>=2&&(a++,s/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*s-1)*Math.pow(2,o),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&u,h+=d,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;t[r+h]=255&a,h+=d,a/=256,c-=8);t[r+h-d]|=128*v}},function(t,e){"use strict";function r(t){for(var e=new Array(t),r=0;r<t;++r)e[r]=r;return e}t.exports=r},function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function n(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
t.exports=function(t){return null!=t&&(r(t)||n(t)||!!t._isBuffer)}},function(t,e,r){var n=r(47),o=r(36),i=n(o,"DataView");t.exports=i},function(t,e,r){function n(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(488),i=r(489),a=r(490),u=r(491),s=r(492);n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=a,n.prototype.has=u,n.prototype.set=s,t.exports=n},function(t,e,r){var n=r(47),o=r(36),i=n(o,"Promise");t.exports=i},function(t,e,r){var n=r(47),o=r(36),i=n(o,"Set");t.exports=i},function(t,e,r){function n(t){var e=-1,r=t?t.length:0;for(this.__data__=new o;++e<r;)this.add(t[e])}var o=r(115),i=r(514),a=r(515);n.prototype.add=n.prototype.push=i,n.prototype.has=a,t.exports=n},function(t,e,r){var n=r(36),o=n.Uint8Array;t.exports=o},function(t,e,r){var n=r(47),o=r(36),i=n(o,"WeakMap");t.exports=i},function(t,e){function r(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}t.exports=r},function(t,e){function r(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(!e(t[r],r,t))return!1;return!0}t.exports=r},function(t,e,r){function n(t,e){var r=a(t)||i(t)?o(t.length,String):[],n=r.length,s=!!n;for(var f in t)!e&&!c.call(t,f)||s&&("length"==f||u(f,n))||r.push(f);return r}var o=r(466),i=r(122),a=r(37),u=r(119),s=Object.prototype,c=s.hasOwnProperty;t.exports=n},function(t,e){function r(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}t.exports=r},function(t,e){function r(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}t.exports=r},function(t,e){function r(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}t.exports=r},function(t,e){function r(t){return t.split("")}t.exports=r},function(t,e){function r(t){return t.match(n)||[]}var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=r},function(t,e,r){var n=r(167),o=r(474),i=o(n);t.exports=i},function(t,e,r){function n(t,e){var r=!0;return o(t,function(t,n,o){return r=!!e(t,n,o)}),r}var o=r(445);t.exports=n},function(t,e){function r(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}t.exports=r},function(t,e,r){var n=r(475),o=n();t.exports=o},function(t,e){function r(t){return o.call(t)}var n=Object.prototype,o=n.toString;t.exports=r},function(t,e){function r(t,e){return null!=t&&e in Object(t)}t.exports=r},function(t,e,r){function n(t,e,r,n,v,g){var b=c(t),m=c(e),_=h,w=h;b||(_=s(t),_=_==p?d:_),m||(w=s(e),w=w==p?d:w);var x=_==d,O=w==d,j=_==w;if(j&&!x)return g||(g=new o),b||f(t)?i(t,e,r,n,v,g):a(t,e,_,r,n,v,g);if(!(v&l)){var S=x&&y.call(t,"__wrapped__"),E=O&&y.call(e,"__wrapped__");if(S||E){var P=S?t.value():t,k=E?e.value():e;return g||(g=new o),r(P,k,n,v,g)}}return!!j&&(g||(g=new o),u(t,e,r,n,v,g))}var o=r(164),i=r(170),a=r(481),u=r(482),s=r(172),c=r(37),f=r(541),l=2,p="[object Arguments]",h="[object Array]",d="[object Object]",v=Object.prototype,y=v.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e,r,n){var s=r.length,c=s,f=!n;if(null==t)return!c;for(t=Object(t);s--;){var l=r[s];if(f&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++s<c;){l=r[s];var p=l[0],h=t[p],d=l[1];if(f&&l[2]){if(void 0===h&&!(p in t))return!1}else{var v=new o;if(n)var y=n(h,d,p,t,e,v);if(!(void 0===y?i(d,h,n,a|u,v):y))return!1}}return!0}var o=r(164),i=r(118),a=1,u=2;t.exports=n},function(t,e,r){function n(t){if(!a(t)||i(t))return!1;var e=o(t)?d:c;return e.test(u(t))}var o=r(178),i=r(496),a=r(57),u=r(177),s=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,f=Function.prototype,l=Object.prototype,p=f.toString,h=l.hasOwnProperty,d=RegExp("^"+p.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},function(t,e,r){function n(t){return i(t)&&o(t.length)&&!!M[C.call(t)]}var o=r(124),i=r(84),a="[object Arguments]",u="[object Array]",s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Function]",p="[object Map]",h="[object Number]",d="[object Object]",v="[object RegExp]",y="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",O="[object Int8Array]",j="[object Int16Array]",S="[object Int32Array]",E="[object Uint8Array]",P="[object Uint8ClampedArray]",k="[object Uint16Array]",A="[object Uint32Array]",M={};M[w]=M[x]=M[O]=M[j]=M[S]=M[E]=M[P]=M[k]=M[A]=!0,M[a]=M[u]=M[m]=M[s]=M[_]=M[c]=M[f]=M[l]=M[p]=M[h]=M[d]=M[v]=M[y]=M[g]=M[b]=!1;var T=Object.prototype,C=T.toString;t.exports=n},function(t,e,r){function n(t){if(!o(t))return i(t);var e=[];for(var r in Object(t))u.call(t,r)&&"constructor"!=r&&e.push(r);return e}var o=r(497),i=r(510),a=Object.prototype,u=a.hasOwnProperty;t.exports=n},function(t,e,r){function n(t){var e=i(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(r){return r===t||o(r,t,e)}}var o=r(452),i=r(484),a=r(176);t.exports=n},function(t,e,r){function n(t,e){return u(t)&&s(e)?c(f(t),e):function(r){var n=i(r,t);return void 0===n&&n===e?a(r,t):o(e,n,void 0,l|p)}}var o=r(118),i=r(537),a=r(538),u=r(82),s=r(174),c=r(176),f=r(63),l=1,p=2;t.exports=n},function(t,e,r){function n(t,e){return t=Object(t),o(t,e,function(e,r){return r in t})}var o=r(459);t.exports=n},function(t,e,r){function n(t,e,r){for(var n=-1,i=e.length,a={};++n<i;){var u=e[n],s=t[u];r(s,u)&&o(a,u,s)}return a}var o=r(165);t.exports=n},function(t,e){function r(t){return function(e){return null==e?void 0:e[t]}}t.exports=r},function(t,e,r){function n(t){return function(e){return o(e,t)}}var o=r(168);t.exports=n},function(t,e){function r(t){return function(e){return null==t?void 0:t[e]}}t.exports=r},function(t,e,r){var n=r(531),o=r(121),i=r(509),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o;t.exports=a},function(t,e){function r(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}t.exports=r},function(t,e){function r(t,e){for(var r,n=-1,o=t.length;++n<o;){var i=e(t[n]);void 0!==i&&(r=void 0===r?i:r+i)}return r}t.exports=r},function(t,e){function r(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}t.exports=r},function(t,e,r){function n(t,e){return o(e,function(e){return[e,t[e]]})}var o=r(117);t.exports=n},function(t,e,r){function n(t){if("string"==typeof t)return t;if(i(t))return s?s.call(t):"";var e=t+"";return"0"==e&&1/t==-a?"-0":e}var o=r(116),i=r(85),a=1/0,u=o?o.prototype:void 0,s=u?u.toString:void 0;t.exports=n},function(t,e){function r(t){return function(e){return t(e)}}t.exports=r},function(t,e,r){function n(t,e){return o(e,function(e){return t[e]})}var o=r(117);t.exports=n},function(t,e){function r(t,e){return t.has(e)}t.exports=r},function(t,e,r){function n(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:o(t,e,r)}var o=r(464);t.exports=n},function(t,e,r){var n=r(36),o=n["__core-js_shared__"];t.exports=o},function(t,e,r){function n(t,e){return function(r,n){if(null==r)return r;if(!o(r))return t(r,n);for(var i=r.length,a=e?i:-1,u=Object(r);(e?a--:++a<i)&&n(u[a],a,u)!==!1;);return r}}var o=r(64);t.exports=n},function(t,e){function r(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[t?u:++o];if(r(i[s],s,i)===!1)break}return e}}t.exports=r},function(t,e,r){function n(t){return function(e){e=u(e);var r=i(e)?a(e):void 0,n=r?r[0]:e.charAt(0),s=r?o(r,1).join(""):e.slice(1);return n[t]()+s}}var o=r(472),i=r(173),a=r(525),u=r(65);t.exports=n},function(t,e,r){function n(t){return function(e){return o(a(i(e).replace(s,"")),t,"")}}var o=r(441),i=r(532),a=r(552),u="['’]",s=RegExp(u,"g");t.exports=n},function(t,e,r){function n(t){return function(e,r,n){var u=Object(e);if(!i(e)){var s=o(r,3);e=a(e),r=function(t){return s(u[t],t,u)}}var c=t(e,r,n);return c>-1?u[s?e[c]:c]:void 0}}var o=r(80),i=r(64),a=r(49);t.exports=n},function(t,e,r){function n(t){return function(e){var r=i(e);return r==s?a(e):r==c?u(e):o(e,t(e))}}var o=r(467),i=r(172),a=r(175),u=r(517),s="[object Map]",c="[object Set]";t.exports=n},function(t,e,r){var n=r(462),o={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},i=n(o);t.exports=i},function(t,e,r){function n(t,e,r,n,o,O,S){switch(r){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!n(new i(t),new i(e)));case p:case h:case y:return a(+t,+e);case d:return t.name==e.name&&t.message==e.message;case g:case m:return t==e+"";case v:var E=s;case b:var P=O&l;if(E||(E=c),t.size!=e.size&&!P)return!1;var k=S.get(t);if(k)return k==e;O|=f,S.set(t,e);var A=u(E(t),E(e),n,o,O,S);return S.delete(t),A;case _:if(j)return j.call(t)==j.call(e)}return!1}var o=r(116),i=r(435),a=r(120),u=r(170),s=r(175),c=r(516),f=1,l=2,p="[object Boolean]",h="[object Date]",d="[object Error]",v="[object Map]",y="[object Number]",g="[object RegExp]",b="[object Set]",m="[object String]",_="[object Symbol]",w="[object ArrayBuffer]",x="[object DataView]",O=o?o.prototype:void 0,j=O?O.valueOf:void 0;t.exports=n},function(t,e,r){function n(t,e,r,n,a,s){var c=a&i,f=o(t),l=f.length,p=o(e),h=p.length;if(l!=h&&!c)return!1;for(var d=l;d--;){var v=f[d];if(!(c?v in e:u.call(e,v)))return!1}var y=s.get(t);if(y&&s.get(e))return y==e;var g=!0;s.set(t,e),s.set(e,t);for(var b=c;++d<l;){v=f[d];var m=t[v],_=e[v];if(n)var w=c?n(_,m,v,e,t,s):n(m,_,v,t,e,s);if(!(void 0===w?m===_||r(m,_,n,a,s):w)){g=!1;break}b||(b="constructor"==v)}if(g&&!b){var x=t.constructor,O=e.constructor;x!=O&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O)&&(g=!1)}return s.delete(t),s.delete(e),g}var o=r(49),i=2,a=Object.prototype,u=a.hasOwnProperty;t.exports=n},function(t,e,r){function n(t){return a(i(t,void 0,o),t+"")}var o=r(536),i=r(513),a=r(518);t.exports=n},function(t,e,r){function n(t){for(var e=i(t),r=e.length;r--;){var n=e[r],a=t[n];e[r]=[n,a,o(a)]}return e}var o=r(174),i=r(49);t.exports=n},function(t,e){function r(t,e){return null==t?void 0:t[e]}t.exports=r},function(t,e,r){function n(t,e,r){e=s(e,t)?[e]:o(e);for(var n=-1,l=e.length,p=!1;++n<l;){var h=f(e[n]);if(!(p=null!=t&&r(t,h)))break;t=t[h]}return p||++n!=l?p:(l=t?t.length:0,!!l&&c(l)&&u(h,l)&&(a(t)||i(t)))}var o=r(169),i=r(122),a=r(37),u=r(119),s=r(82),c=r(124),f=r(63);t.exports=n},function(t,e){function r(t){return n.test(t)}var n=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=r},function(t,e,r){function n(){this.__data__=o?o(null):{},this.size=0}var o=r(83);t.exports=n},function(t,e){function r(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=r},function(t,e,r){function n(t){var e=this.__data__;if(o){var r=e[t];return r===i?void 0:r}return u.call(e,t)?e[t]:void 0}var o=r(83),i="__lodash_hash_undefined__",a=Object.prototype,u=a.hasOwnProperty;t.exports=n},function(t,e,r){function n(t){var e=this.__data__;return o?void 0!==e[t]:a.call(e,t)}var o=r(83),i=Object.prototype,a=i.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=o&&void 0===e?i:e,this}var o=r(83),i="__lodash_hash_undefined__";t.exports=n},function(t,e,r){function n(t){return a(t)||i(t)||!!(u&&t&&t[u])}var o=r(116),i=r(122),a=r(37),u=o?o.isConcatSpreadable:void 0;t.exports=n},function(t,e,r){function n(t,e,r){if(!u(r))return!1;var n=typeof e;return!!("number"==n?i(r)&&a(e,r.length):"string"==n&&e in r)&&o(r[e],t)}var o=r(120),i=r(64),a=r(119),u=r(57);t.exports=n},function(t,e){function r(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=r},function(t,e,r){function n(t){return!!i&&i in t}var o=r(473),i=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=n},function(t,e){function r(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||n;return t===r}var n=Object.prototype;t.exports=r},function(t,e){function r(){this.__data__=[],this.size=0}t.exports=r},function(t,e,r){function n(t){var e=this.__data__,r=o(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():a.call(e,r,1),--this.size,!0}var o=r(79),i=Array.prototype,a=i.splice;t.exports=n},function(t,e,r){function n(t){var e=this.__data__,r=o(e,t);return r<0?void 0:e[r][1]}var o=r(79);t.exports=n},function(t,e,r){function n(t){return o(this.__data__,t)>-1}var o=r(79);t.exports=n},function(t,e,r){function n(t,e){var r=this.__data__,n=o(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var o=r(79);t.exports=n},function(t,e,r){function n(){this.size=0,this.__data__={hash:new o,map:new(a||i),string:new o}}var o=r(431),i=r(78),a=r(114);t.exports=n},function(t,e,r){function n(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}var o=r(81);t.exports=n},function(t,e,r){function n(t){return o(this,t).get(t)}var o=r(81);t.exports=n},function(t,e,r){function n(t){return o(this,t).has(t)}var o=r(81);t.exports=n},function(t,e,r){function n(t,e){var r=o(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var o=r(81);t.exports=n},function(t,e,r){function n(t){var e=o(t,function(t){return r.size===i&&r.clear(),t}),r=e.cache;return e}var o=r(543),i=500;t.exports=n},function(t,e,r){var n=r(47),o=n(Object,"defineProperty");t.exports=o},function(t,e,r){var n=r(512),o=n(Object.keys,Object);t.exports=o},function(t,e,r){(function(t){var n=r(171),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o,u=a&&n.process,s=function(){try{return u&&u.binding("util")}catch(t){}}();t.exports=s}).call(e,r(127)(t))},function(t,e){function r(t,e){return function(r){return t(e(r))}}t.exports=r},function(t,e,r){function n(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var n=arguments,a=-1,u=i(n.length-e,0),s=Array(u);++a<u;)s[a]=n[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=n[a];return c[e]=r(s),o(t,this,c)}}var o=r(437),i=Math.max;t.exports=n},function(t,e){function r(t){return this.__data__.set(t,n),this}var n="__lodash_hash_undefined__";t.exports=r},function(t,e){function r(t){return this.__data__.has(t)}t.exports=r},function(t,e){function r(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}t.exports=r},function(t,e){function r(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=[t,t]}),r}t.exports=r},function(t,e,r){var n=r(463),o=r(519),i=o(n);t.exports=i},function(t,e){function r(t){var e=0,r=0;return function(){var a=i(),u=o-(a-r);if(r=a,u>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var n=500,o=16,i=Date.now;t.exports=r},function(t,e,r){function n(){this.__data__=new o,this.size=0}var o=r(78);t.exports=n},function(t,e){function r(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}t.exports=r},function(t,e){function r(t){return this.__data__.get(t)}t.exports=r},function(t,e){function r(t){return this.__data__.has(t)}t.exports=r},function(t,e,r){function n(t,e){var r=this.__data__;if(r instanceof o){var n=r.__data__;if(!i||n.length<u-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new a(n)}return r.set(t,e),this.size=r.size,this}var o=r(78),i=r(114),a=r(115),u=200;t.exports=n},function(t,e,r){function n(t){return i(t)?a(t):o(t)}var o=r(443),i=r(173),a=r(527);t.exports=n},function(t,e,r){var n=r(508),o=r(65),i=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,s=n(function(t){t=o(t);var e=[];return i.test(t)&&e.push(""),t.replace(a,function(t,r,n,o){e.push(n?o.replace(u,"$1"):r||t)}),e});t.exports=s},function(t,e){function r(t){return t.match(_)||[]}var n="\\ud800-\\udfff",o="\\u0300-\\u036f\\ufe20-\\ufe23",i="\\u20d0-\\u20f0",a="\\ufe0e\\ufe0f",u="["+n+"]",s="["+o+i+"]",c="\\ud83c[\\udffb-\\udfff]",f="(?:"+s+"|"+c+")",l="[^"+n+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",v=f+"?",y="["+a+"]?",g="(?:"+d+"(?:"+[l,p,h].join("|")+")"+y+v+")*",b=y+v+g,m="(?:"+[l+s+"?",s,p,h,u].join("|")+")",_=RegExp(c+"(?="+c+")|"+m+b,"g");t.exports=r},function(t,e){function r(t){return t.match(N)||[]}var n="\\ud800-\\udfff",o="\\u0300-\\u036f\\ufe20-\\ufe23",i="\\u20d0-\\u20f0",a="\\u2700-\\u27bf",u="a-z\\xdf-\\xf6\\xf8-\\xff",s="\\xac\\xb1\\xd7\\xf7",c="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f="\\u2000-\\u206f",l=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="A-Z\\xc0-\\xd6\\xd8-\\xde",h="\\ufe0e\\ufe0f",d=s+c+f+l,v="['’]",y="["+d+"]",g="["+o+i+"]",b="\\d+",m="["+a+"]",_="["+u+"]",w="[^"+n+d+b+a+u+p+"]",x="\\ud83c[\\udffb-\\udfff]",O="(?:"+g+"|"+x+")",j="[^"+n+"]",S="(?:\\ud83c[\\udde6-\\uddff]){2}",E="[\\ud800-\\udbff][\\udc00-\\udfff]",P="["+p+"]",k="\\u200d",A="(?:"+_+"|"+w+")",M="(?:"+P+"|"+w+")",T="(?:"+v+"(?:d|ll|m|re|s|t|ve))?",C="(?:"+v+"(?:D|LL|M|RE|S|T|VE))?",I=O+"?",R="["+h+"]?",D="(?:"+k+"(?:"+[j,S,E].join("|")+")"+R+I+")*",L=R+I+D,F="(?:"+[m,S,E].join("|")+")"+L,N=RegExp([P+"?"+_+"+"+T+"(?="+[y,P,"$"].join("|")+")",M+"+"+C+"(?="+[y,P+A,"$"].join("|")+")",P+"?"+A+"+"+T,P+"+"+C,b,F].join("|"),"g");t.exports=r},function(t,e,r){var n=r(530),o=r(477),i=o(function(t,e,r){return e=e.toLowerCase(),t+(r?n(e):e)});t.exports=i},function(t,e,r){function n(t){return i(o(t).toLowerCase())}var o=r(65),i=r(550);t.exports=n},function(t,e){function r(t){return function(){return t}}t.exports=r},function(t,e,r){function n(t){return t=i(t),t&&t.replace(a,o).replace(f,"")}var o=r(480),i=r(65),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u="\\u0300-\\u036f\\ufe20-\\ufe23",s="\\u20d0-\\u20f0",c="["+u+s+"]",f=RegExp(c,"g");t.exports=n},function(t,e,r){function n(t,e,r){var n=u(t)?o:i;return r&&s(t,e,r)&&(e=void 0),n(t,a(e,3))}var o=r(438),i=r(446),a=r(80),u=r(37),s=r(494);t.exports=n},function(t,e,r){var n=r(478),o=r(535),i=n(o);t.exports=i},function(t,e,r){function n(t,e,r){var n=t?t.length:0;if(!n)return-1;var s=null==r?0:a(r);return s<0&&(s=u(n+s,0)),o(t,i(e,3),s)}var o=r(447),i=r(80),a=r(179),u=Math.max;t.exports=n},function(t,e,r){function n(t){var e=t?t.length:0;return e?o(t,1):[]}var o=r(166);t.exports=n},function(t,e,r){function n(t,e,r){var n=null==t?void 0:o(t,e);return void 0===n?r:n}var o=r(168);t.exports=n},function(t,e,r){function n(t,e){return null!=t&&i(t,e,o)}var o=r(450),i=r(486);t.exports=n},function(t,e,r){function n(t){return i(t)&&o(t)}var o=r(64),i=r(84);t.exports=n},function(t,e,r){function n(t){return"number"==typeof t&&t==o(t)}var o=r(179);t.exports=n},function(t,e,r){var n=r(454),o=r(469),i=r(511),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},function(t,e,r){function n(t,e){var r={};return e=a(e,3),i(t,function(t,n,i){o(r,e(t,n,i),t)}),r}var o=r(165),i=r(167),a=r(80);t.exports=n},function(t,e,r){function n(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(i);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(n.Cache||o),r}var o=r(115),i="Expected a function";n.Cache=o,t.exports=n},function(t,e,r){var n=r(117),o=r(458),i=r(483),a=r(63),u=i(function(t,e){return null==t?{}:o(t,n(e,a))});t.exports=u},function(t,e,r){function n(t){return a(t)?o(u(t)):i(t)}var o=r(460),i=r(461),a=r(82),u=r(63);t.exports=n},function(t,e,r){function n(t){return t&&t.length?o(t,i):0}var o=r(465),i=r(121);t.exports=n},function(t,e,r){function n(t){if(!t)return 0===t?t:0;if(t=o(t),t===i||t===-i){var e=t<0?-1:1;return e*a}return t===t?t:0}var o=r(548),i=1/0,a=1.7976931348623157e308;t.exports=n},function(t,e,r){function n(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var r=c.test(t);return r||f.test(t)?l(t.slice(2),r?2:8):s.test(t)?a:+t}var o=r(57),i=r(85),a=NaN,u=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,l=parseInt;t.exports=n},function(t,e,r){var n=r(479),o=r(49),i=n(o);t.exports=i},function(t,e,r){var n=r(476),o=n("toUpperCase");t.exports=o},function(t,e,r){function n(t){return t?o(t,i(t)):[]}var o=r(470),i=r(49);t.exports=n},function(t,e,r){function n(t,e,r){return t=a(t),e=r?void 0:e,void 0===e?i(t)?u(t):o(t):t.match(e)||[]}var o=r(444),i=r(487),a=r(65),u=r(528);t.exports=n},function(t,e){"use strict";t.exports=function(t){var e,r=t.data,n=t.stride[0],o=t.offset,i=0;for(e=t.shape[0]-1;e>=0;e--,o+=n)i+=Math.abs(r[o]);return i}},function(t,e){"use strict";t.exports=function(t,e,r){var n,o=e.data,i=r.data,a=e.stride[0],u=r.stride[0],s=e.offset,c=r.offset;for(n=e.shape[0]-1;n>=0;n--,s+=a,c+=u)i[c]+=t*o[s]}},function(t,e){"use strict";t.exports=function(t,e){var r,n=t.data,o=e.data,i=t.stride[0],a=e.stride[0],u=t.offset,s=e.offset;for(r=t.shape[0]-1;r>=0;r--,u+=i,s+=a)o[s]=n[u]}},function(t,e){"use strict";t.exports=function(t,e,r){var n,o=e.data,i=r.data,a=e.stride[0],u=r.stride[0],s=e.offset,c=r.offset;for(n=e.shape[0]-1;n>=0;n--,s+=a,c+=u)i[c]=t*o[s]}},function(t,e){"use strict";t.exports=function(t,e){var r,n,o=t.data,i=t.stride[0],a=t.offset,u=0;if(t===e)for(r=t.shape[0]-1;r>=0;r--,a+=i)n=o[a],u+=n*n;else{var s=e.data,c=e.stride[0],f=e.offset;for(r=t.shape[0]-1;r>=0;r--,a+=i,f+=c)u+=s[f]*o[a]}return u}},function(t,e){"use strict";t.exports=function(t){var e,r,n,o=-(1/0),i=t.data,a=t.stride[0],u=t.offset,s=t.shape[0];for(e=0;e<s;e++,u+=a)r=Math.abs(i[u]),r>o&&(o=r,n=e);return n}},function(t,e){"use strict";var r=function(t,e){if(0===t&&0===e)return 0;var r=Math.abs(t),n=Math.abs(e),o=Math.min(r,n),i=Math.max(r,n);return o/=i,i*Math.sqrt(1+o*o)};t.exports=function(t){var e,n,o=t.data,i=t.stride[0],a=t.offset,u=0;for(e=t.shape[0]-1;e>=0;e--,a+=i)n=o[a],u=r(u,n);return u}},function(t,e){"use strict";Math.sign=Math.sign||function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},t.exports=function(t,e,r){var n=0,o=0,i=0,a=0,u=0;return 0===e?(n=Math.sign(t),o=0,i=Math.abs(t)):0===t?(n=0,o=Math.sign(e),i=Math.abs(e)):Math.abs(t)>Math.abs(e)?(a=e/t,u=Math.sign(t)*Math.sqrt(1+a*a),n=1/u,o=a*n,i=t*u):(a=t/e,u=Math.sign(t)*Math.sqrt(1+a*a),o=1/u,n=a*o,i=e*u),void 0!==r&&r.length>2?(r[0]=n,r[1]=o,r[2]=i,void 0):[n,o,i]}},function(t,e){"use strict";t.exports=function(t,e){var r,n=e.data,o=e.stride[0],i=e.offset;for(r=e.shape[0]-1;r>=0;r--,i+=o)n[i]*=t}},function(t,e){"use strict";t.exports=function(t,e){var r,n,o=t.data,i=e.data,a=t.stride[0],u=e.stride[0],s=t.offset,c=e.offset;for(r=t.shape[0]-1;r>=0;r--,s+=a,c+=u)n=o[s],o[s]=i[c],i[c]=n}},function(t,e){"use strict";function r(t,e,r,n,o,i,a){for(var u=0,s=0,c=0,f=0,l=0,p=t.shape[0],h=t.shape[1],d=Math.min(e,p-1),v=Math.min(r,h-1),y=void 0===i?1:i,g=void 0===a?0:a;u<=d;){f=0;var b=Math.min(u+v,h-1);for(c=0;c<=b;c++)f+=t.get(u,c)*n.get(c);o.set(u,f*y+g*o.get(u)),u++}if(u<p)for(s=0;u+v<h;){for(f=0,c=0;c<=d+v;c++)l=s+c+1,f+=t.get(u,l)*n.get(l);if(o.set(u,f*y+g*o.get(u)),u++,s++,u===p)break}if(u<p)for(s++;u-d<h;){for(f=0,c=s;c<h;c++)f+=t.get(u,c)*n.get(c);if(o.set(u,f*y+g*o.get(u)),u++,s++,u===p)break}return!0}t.exports=r},function(t,e,r){"use strict";function n(t,e,r,n,i){for(var a=o.dot,u=e.shape[0]-1;u>=0;u--)i.set(u,i.get(u)*n+t*a(e.pick(u,null),r));return!0}var o=r(86);t.exports=n},function(t,e){"use strict";function r(){console.error("GER (rank 1 operation A := alpha*x*y' + A) not yet implemented")}t.exports=r},function(t,e){"use strict";function r(){console.error("SBMV (symmetric banded matrix vector multiply) not yet implemented")}t.exports=r},function(t,e,r){"use strict";(function(t){function e(){console.error("SPMV (symmetric packed matrix vector multiply) not yet implemented")}t.exporst=e}).call(e,r(127)(t))},function(t,e){"use strict";function r(){console.error("SPR (symmetric packed rank 1 operation A := alpha*x*y' + A) not yet implemented")}t.exports=r},function(t,e){"use strict";function r(){console.error("SPR (symmetric packed rank 2 operation A := alpha*x*y' + alpha*y*x' + A) not yet implemented")}t.exports=r},function(t,e,r){"use strict";function n(t,e,r,n,i,a){var u=t.shape[0],s=n||!0,c=void 0===i?1:i,f=void 0===a?0:a,l=0,p=0,h=0,d=0;if(0===f)for(l=0;l<r.shape[0];++l)r.set(l,0);else 1!==f&&o.scal(f,r);if(0===c)return!0;if(1===c)if(s)for(p=0;p<u;++p){for(h=e.get(p),d=0,r.set(p,r.get(p)+h*t.get(p,p)),l=p+1;l<u;++l)r.set(l,r.get(l)+h*t.get(l,p)),d+=t.get(l,p)*e.get(l);r.set(p,r.get(p)+d)}else for(p=0;p<u;++p){for(h=e.get(p),d=0,l=0;l<=p-1;++l)r.set(l,r.get(l)+h*t.get(l,p)),d+=t.get(l,p)*e.get(l);r.set(p,r.get(p)+h*t.get(p,p)+d)}else if(s)for(p=0;p<u;++p){for(h=c*e.get(p),d=0,r.set(p,r.get(p)+h*t.get(p,p)),l=p+1;l<u;++l)r.set(l,r.get(l)+h*t.get(l,p)),d+=t.get(l,p)*e.get(l);r.set(p,r.get(p)+c*d)}else for(p=0;p<u;++p){for(h=c*e.get(p),d=0,l=0;l<=p-1;++l)r.set(l,r.get(l)+h*t.get(l,p)),d+=t.get(l,p)*e.get(l);r.set(p,r.get(p)+h*t.get(p,p)+c*d)}return!0}var o=r(86);t.exports=n},function(t,e){"use strict";function r(){console.error("SYR (symmetric rank 1 operation A := alpha*x*y' + A) not yet implemented")}t.exports=r},function(t,e){"use strict";function r(){console.error("SYR (symmetric rank 2 operation A := alpha*x*y' + alpha*y*x' + A) not yet implemented")}t.exports=r},function(t,e){"use strict";function r(){console.error("TBMV (triangular banded matrix vector multiply) not yet implemented")}t.exports=r},function(t,e,r){"use strict";(function(t){function e(){console.error("TBSV (triangular banded matrix solver) not yet implemented")}t.exporst=e}).call(e,r(127)(t))},function(t,e){"use strict";function r(){console.error("TPSV (triangular packed matrix solver) not yet implemented")}t.exports=r},function(t,e,r){"use strict";function n(t,e,r){var n=o.dot,i=t.shape[1],a=0;if(r)for(a=i-1;a>=0;a--)e.set(a,n(t.pick(a,null).hi(a+1),e.hi(a+1)));else for(a=0;a<i;a++)e.set(a,n(t.pick(a,null).lo(a),e.lo(a)));return!0}var o=r(86);t.exports=n},function(t,e,r){"use strict";function n(t,e,r){var n=o.dot,i=t.shape[1],a=0;if(r)for(e.set(0,e.get(0)/t.get(0,0)),a=1;a<i;a++)e.set(a,(e.get(a)-n(t.pick(a,null).hi(a),e.hi(a)))/t.get(a,a));else for(e.set(i-1,e.get(i-1)/t.get(i-1,i-1)),a=i-2;a>=0;a--)e.set(a,(e.get(a)-n(t.pick(a,null).lo(a+1),e.lo(a+1)))/t.get(a,a));return!0}var o=r(86);t.exports=n},function(t,e,r){"use strict";function n(){var t,e,r,n,s,c,f,l,p,h;if(n=o({},u),0===arguments.length)throw new Error("Array of ndarrays to concatenate must not be empty");if(Array.isArray(arguments[0])?(r=arguments[0],o(n,arguments[1]||{})):2===arguments.length&&(r=arguments[1],t=arguments[0],o(n,arguments[2]||{})),0===r.length)throw new Error("Array of ndarrays to concatenate must not be empty");for(s=0;s<r.length;s++)if(f){if(r[s].dimension!==f.length)throw new Error("all arrays must have the same dimensionality");for(c=1;c<r[s].shape.length;c++)if(r[s].shape[c]!==f[c])throw new Error("last n-1 dimensions of concatenated rows must have the same size");f[0]+=r[s].shape[0]}else f=r[s].shape.slice(0);if(t){if(f[0]!==t.shape[0])throw new Error("first dimension of output array must match the total number of concatenated rows")}else t=a.zeros(f,n.dtype);for(c=0,l=0;c<r.length;c++)e=r[c],p=e.shape[0],h=t.lo(l).hi(p),i.assign(h,e),l+=p;return t}t.exports=n;var o=r(584),i=r(3),a=r(180),u={dtype:"double"}},function(t,e){"use strict";function r(t,e){return"native"===e[1]?[t,"d0=",t,".length,",t,"d1=",t,"[0].length,"].join(""):[t,"d0=",t,".shape[0],",t,"d1=",t,".shape[1],",t,"s0=",t,".stride[0],",t,"s1=",t,".stride[1],",t,"o=",t,".offset,",t,"d=",t,".data,"].join("")}function n(t,e,r,n,o,i){var a=[];return"native"===r[1]?t[0]&&(n?a.push("var ",e,"p=",e,"[",n,"];"):a.push("var ",e,"p=",e,"[0];")):n&&o?i?a.push("var ",e,"t0=",e,"s",t[0],",",e,"t1=",e,"s",t[1],"-",e,"s",t[0],"*",i,",",e,"p=",e,"o+",n,"*",e,"s0+",o,"*",e,"s1;"):a.push("var ",e,"t0=",e,"s",t[0],",",e,"p=",e,"o+",n,"*",e,"s0+",o,"*",e,"s1;"):n?a.push("var ",e,"t0=",e,"s",t[0],",",e,"p=",e,"o+",n,"*",e,"s0;"):o?a.push("var ",e,"t0=",e,"s",t[0],",",e,"p=",e,"o+",o,"*",e,"s1;"):a.push("var ",e,"t0=",e,"s",t[0],",",e,"t1=",e,"s",t[1],"-",e,"s",t[0],"*",e,"d",t[0],",",e,"p=",e,"o;"),a}function o(t,e,r,n,o){var i=[];return"native"===r[1]?t[0]&&1===n&&i.push(e,"p=",e,"[",o,"+1]"):i.push(e,"p+=",e,"t",n,";"),i}function i(t,e,r,n,o,i){var a=[];return"native"===r[1]?t[0]?a.push(e,"p[",o,"]=",i,";"):a.push(e,"[",n,"][",o,"]=",i,";"):"generic"===r[1]?a.push(e,"d.set(",e,"p,",i,");"):a.push(e,"d[",e,"p]=",i,";"),a}function a(t,e,r,n,o){var i=[];return"native"===r[1]?t[0]?i.push(e,"p[",o,"]"):i.push(e,"[",n,"][",o,"]"):"generic"===r[1]?i.push(e,"d.get(",e,"p)"):i.push(e,"d[",e,"p]"),i.join("")}function u(t,e,r,u,s){var c=[],f="r"===t[0]?[1,0]:[0,1],l=[1,0],p=[0,1],h=["i","j"];return c.push.apply(c,n(f,"o",t)),f[1]?(c.push("for(j=0;j<od1;++j){"),c.push("for(i=0;i<od0;++i){")):(c.push("for(i=0;i<od0;++i){"),c.push("for(j=0;j<od1;++j){")),c.push.apply(c,n(l,"a",e,"i")),c.push.apply(c,n(p,"b",r,void 0,"j")),c.push("var r=0.0;","for(k=0;k<ad1;++k){","r+=",a(l,"a",e,"i","k"),"*",a(p,"b",r,"k","j"),";"),c.push.apply(c,o(l,"a",e,0,"k")),c.push.apply(c,o(p,"b",r,0,"k")),c.push("}"),u&&c.push("r*=A;"),s&&c.push("r+=B*",a(f,"o",t,"i","j"),";"),c.push.apply(c,i(f,"o",t,"i","j","r")),c.push.apply(c,o(f,"o",t,0,h[1])),c.push("}"),c.push.apply(c,o(f,"o",t,1,h[0])),c.push("}"),c}function s(t,e){var r,u=[],s="r"===t[0]?[1,0]:[0,1];return e&&u.push("if(B!==1.0){"),u.push.apply(u,n(s,"o",t)),s[0]?(u.push("for(i=0;i<od0;++i){for(j=0;j<od1;++j){"),r=["i","j"]):(u.push("for(j=0;j<od1;++j){for(i=0;i<od0;++i){"),r=["j","i"]),e?u.push.apply(u,i(s,"o",t,"i","j","B*"+a(s,"o",t,"i","j"))):u.push.apply(u,i(s,"o",t,"i","j","0")),u.push.apply(u,o(s,"o",t,0,r[1])),u.push("}"),u.push.apply(u,o(s,"o",t,1,r[0])),u.push("}"),e&&u.push("}"),u}function c(t,e,r,u,c){var f=[],p=["od0","od1","ad1"],h=[1,0],d=[1,0],v=[0,1];f.push.apply(f,s(t,c));for(var y=0;y<3;++y)f.push("for(var i",y,"=",p[y],";i",y,">0;){","var w",y,"=",l,";","if(i",y,"<",l,"){","w",y,"=i",y,";","i",y,"=0;","}else{","i",y,"-=",l,";","}");f.push.apply(f,n(h,"o",t,"i0","i1","w1")),f.push("for(i=0;i<w0;++i){for(j=0;j<w1;++j){var r=0.0;"),f.push.apply(f,n(d,"a",e,"(i0+i)","i2")),f.push.apply(f,n(v,"b",r,"i2","(i1+j)")),f.push("for(k=0;k<w2;++k){"),f.push("r+=",a(d,"a",e,"(i0+i)","(i2+k)"),"*",a(v,"b",r,"(i2+k)","(i1+j)"),";"),f.push.apply(f,o(d,"a",e,0,"(i2+k)")),f.push.apply(f,o(v,"b",r,0,"(i2+k)")),f.push("}");
var g="r";return u&&(g="A*r"),f.push.apply(f,i(h,"o",t,"(i0+i)","(i1+j)",g+"+"+a(h,"o",t,"(i0+i)","(i1+j)"))),f.push.apply(f,o(h,"o",t,0,"(i1+j)")),f.push("}"),f.push.apply(f,o(h,"o",t,1,"(i0+i)")),f.push("}}}}"),f}function f(t,e,n,o,i){var a=["gemm",t[0],t[1],"a",e[0],e[1],"b",n[0],n[1],o?"alpha":"",i?"beta":""].join(""),s=["function ",a,"(o,a,b,A,B){","var ",r("o",t),r("a",e),r("b",n),"i,j,k;"];"r"===e[0]&&"c"===n[0]?s.push.apply(s,u(t,e,n,o,i)):s.push.apply(s,c(t,e,n,o,i)),s.push("}return ",a);var f=new Function(s.join(""));return f()}t.exports=f;var l=32},function(t,e,r){"use strict";function n(){var t,e,r,n;if(2===arguments.length?(e=arguments[0],n=arguments[1]):3===arguments.length&&(r=arguments[0],e=arguments[1],n=arguments[2]),!Array.isArray(n))throw new Error("second argument of tile must be an array of repetition counts for each dimension");var a=e.shape.slice(0),u=a.slice(0),s=Math.max(u.length,n.length);for(t=0;t<s;t++)if(a[t]=void 0===a[t]?1:a[t],n[t]=void 0===n[t]?1:n[t],u[t]=(void 0===u[t]?1:u[t])*n[t],0===u[t])throw new Error("Number of tiles must be greater than zero");r||(r=o.zeros(u,e.dtype));var c=1;for(t=0;t<n.length;t++)c*=n[t];var f=new Array(n.length);for(t=0;t<n.length;t++)f[t]=0;var l=u.slice(0);for(h=0;h<u.length;h++)l[h]=h<e.dimension?null:0;for(t=0;t<c;t++){for(h=e.dimension;h<u.length;h++)l[h]=f[h];var p=r.pick.apply(r,l);if(p=p.lo.apply(p,f),p=p.hi.apply(p,e.shape),i.assign(p,e),t===c-1)break;for(var h=s-1;h>=0&&(f[h]+=a[h],f[h]===u[h]);)f[h]=0,h--}return r}var o=r(180),i=r(3);t.exports=n},function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===n||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function a(){v&&h&&(v=!1,h.length?d=h.concat(d):y=-1,d.length&&u())}function u(){if(!v){var t=o(a);v=!0;for(var e=d.length;e;){for(h=d,d=[];++y<e;)h&&h[y].run();y=-1,e=d.length}h=null,v=!1,i(t)}}function s(t,e){this.fun=t,this.array=e}function c(){}var f,l,p=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{l="function"==typeof clearTimeout?clearTimeout:n}catch(t){l=n}}();var h,d=[],v=!1,y=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];d.push(new s(t,e)),1!==d.length||v||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,r){(function(e,r){!function(e){"use strict";function n(t,e,r,n){var o=Object.create((e||i).prototype),a=new d(n||[]);return o._invoke=l(t,r,a),o}function o(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function a(){}function u(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){this.arg=t}function f(t){function e(r,n,i,a){var u=o(t[r],t,n);if("throw"!==u.type){var s=u.arg,f=s.value;return f instanceof c?Promise.resolve(f.arg).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(f).then(function(t){s.value=t,i(s)},a)}a(u.arg)}function n(t,r){function n(){return new Promise(function(n,o){e(t,r,n,o)})}return i=i?i.then(n,n):n()}"object"==typeof r&&r.domain&&(e=r.domain.bind(e));var i;this._invoke=n}function l(t,e,r){var n=j;return function(i,a){if(n===E)throw new Error("Generator is already running");if(n===P){if("throw"===i)throw a;return y()}for(;;){var u=r.delegate;if(u){if("return"===i||"throw"===i&&u.iterator[i]===g){r.delegate=null;var s=u.iterator.return;if(s){var c=o(s,u.iterator,a);if("throw"===c.type){i="throw",a=c.arg;continue}}if("return"===i)continue}var c=o(u.iterator[i],u.iterator,a);if("throw"===c.type){r.delegate=null,i="throw",a=c.arg;continue}i="next",a=g;var f=c.arg;if(!f.done)return n=S,f;r[u.resultName]=f.value,r.next=u.nextLoc,r.delegate=null}if("next"===i)r.sent=r._sent=a;else if("throw"===i){if(n===j)throw n=P,a;r.dispatchException(a)&&(i="next",a=g)}else"return"===i&&r.abrupt("return",a);n=E;var c=o(t,e,r);if("normal"===c.type){n=r.done?P:S;var f={value:c.arg,done:r.done};if(c.arg!==k)return f;r.delegate&&"next"===i&&(a=g)}else"throw"===c.type&&(n=P,i="throw",a=c.arg)}}}function p(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(p,this),this.reset(!0)}function v(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(b.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=g,e.done=!0,e};return n.next=n}}return{next:y}}function y(){return{value:g,done:!0}}var g,b=Object.prototype.hasOwnProperty,m="function"==typeof Symbol?Symbol:{},_=m.iterator||"@@iterator",w=m.toStringTag||"@@toStringTag",x="object"==typeof t,O=e.regeneratorRuntime;if(O)return void(x&&(t.exports=O));O=e.regeneratorRuntime=x?t.exports:{},O.wrap=n;var j="suspendedStart",S="suspendedYield",E="executing",P="completed",k={},A=u.prototype=i.prototype;a.prototype=A.constructor=u,u.constructor=a,u[w]=a.displayName="GeneratorFunction",O.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},O.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,w in t||(t[w]="GeneratorFunction")),t.prototype=Object.create(A),t},O.awrap=function(t){return new c(t)},s(f.prototype),O.async=function(t,e,r,o){var i=new f(n(t,e,r,o));return O.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},s(A),A[_]=function(){return this},A[w]="Generator",A.toString=function(){return"[object Generator]"},O.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},O.values=v,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.tryEntries.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&b.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=g)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return i.type="throw",i.arg=t,r.next=e,!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=b.call(o,"catchLoc"),u=b.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&b.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?this.next=o.finallyLoc:this.complete(i),k},complete:function(t,e){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e)},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),h(r),k}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;h(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:v(t),resultName:e,nextLoc:r},k}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,r(59),r(581))},function(t,e,r){"use strict";(function(t,n){function o(t){if(t){var e=t.length||t.byteLength,r=b.log2(e);x[r].push(t)}}function i(t){o(t.buffer)}function a(t){var t=b.nextPow2(t),e=b.log2(t),r=x[e];return r.length>0?r.pop():new ArrayBuffer(t)}function u(t){return new Uint8Array(a(t),0,t)}function s(t){return new Uint16Array(a(2*t),0,t)}function c(t){return new Uint32Array(a(4*t),0,t)}function f(t){return new Int8Array(a(t),0,t)}function l(t){return new Int16Array(a(2*t),0,t)}function p(t){return new Int32Array(a(4*t),0,t)}function h(t){return new Float32Array(a(4*t),0,t)}function d(t){return new Float64Array(a(8*t),0,t)}function v(t){return _?new Uint8ClampedArray(a(t),0,t):u(t)}function y(t){return new DataView(a(t),0,t)}function g(t){t=b.nextPow2(t);var e=b.log2(t),r=O[e];return r.length>0?r.pop():new n(t)}var b=r(240),m=r(163);t.__TYPEDARRAY_POOL||(t.__TYPEDARRAY_POOL={UINT8:m([32,0]),UINT16:m([32,0]),UINT32:m([32,0]),INT8:m([32,0]),INT16:m([32,0]),INT32:m([32,0]),FLOAT:m([32,0]),DOUBLE:m([32,0]),DATA:m([32,0]),UINT8C:m([32,0]),BUFFER:m([32,0])});var _="undefined"!=typeof Uint8ClampedArray,w=t.__TYPEDARRAY_POOL;w.UINT8C||(w.UINT8C=m([32,0])),w.BUFFER||(w.BUFFER=m([32,0]));var x=w.DATA,O=w.BUFFER;e.free=function(t){if(n.isBuffer(t))O[b.log2(t.length)].push(t);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(t)&&(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|b.log2(e);x[r].push(t)}},e.freeUint8=e.freeUint16=e.freeUint32=e.freeInt8=e.freeInt16=e.freeInt32=e.freeFloat32=e.freeFloat=e.freeFloat64=e.freeDouble=e.freeUint8Clamped=e.freeDataView=i,e.freeArrayBuffer=o,e.freeBuffer=function(t){O[b.log2(t.length)].push(t)},e.malloc=function(t,e){if(void 0===e||"arraybuffer"===e)return a(t);switch(e){case"uint8":return u(t);case"uint16":return s(t);case"uint32":return c(t);case"int8":return f(t);case"int16":return l(t);case"int32":return p(t);case"float":case"float32":return h(t);case"double":case"float64":return d(t);case"uint8_clamped":return v(t);case"buffer":return g(t);case"data":case"dataview":return y(t);default:return null}return null},e.mallocArrayBuffer=a,e.mallocUint8=u,e.mallocUint16=s,e.mallocUint32=c,e.mallocInt8=f,e.mallocInt16=l,e.mallocInt32=p,e.mallocFloat32=e.mallocFloat=h,e.mallocFloat64=e.mallocDouble=d,e.mallocUint8Clamped=v,e.mallocDataView=y,e.mallocBuffer=g,e.clearCache=function(){for(var t=0;t<32;++t)w.UINT8[t].length=0,w.UINT16[t].length=0,w.UINT32[t].length=0,w.INT8[t].length=0,w.INT16[t].length=0,w.INT32[t].length=0,w.FLOAT[t].length=0,w.DOUBLE[t].length=0,w.UINT8C[t].length=0,x[t].length=0,O[t].length=0}}).call(e,r(59),r(133).Buffer)},function(t,e){function r(t,e){if(!e||"object"!=typeof e)return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}t.exports=r},function(t,e,r){r(183),t.exports=r(182)}])});