text: (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default={getBinaryFromFileAsync:function getBinaryFromFileAsync(inputFile){return new Promise(function(resolve,reject){var reader=new FileReader;reader.onload=function(event){resolve(new Uint8Array(event.target.result))};reader.onerror=function(error){reject(error)};reader.readAsArrayBuffer(inputFile)})},saveBinaryAsFile:function saveBinaryAsFile(binary,fileName){var mime=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"application/octet-stream";var blob=new Blob([binary],{type:mime});if(navigator.msSaveBlob){navigator.msSaveBlob(blob,fileName)}else{var a=document.createElement("a");document.body.appendChild(a);a.setAttribute("href",URL.createObjectURL(blob));a.setAttribute("download",fileName);a.click();document.body.removeChild(a)}}}},{}],2:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"])_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _vector=require("./vector2");var _vector2=_interopRequireDefault(_vector);var _line2d=require("./line-2d");var _line2d2=_interopRequireDefault(_line2d);var _polygon=require("./polygon");var _polygon2=_interopRequireDefault(_polygon);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var DirectedLineSegment2D=function(){function DirectedLineSegment2D(p1,p2){_classCallCheck(this,DirectedLineSegment2D);if(p1.equals(p2))throw new Error("Zero length line segment.");this.p1=p1;this.p2=p2}_createClass(DirectedLineSegment2D,[{key:"reverse",value:function reverse(){return new this.constructor(this.p2,this.p1)}},{key:"equals",value:function equals(other){return this===other||this.p1.equals(other.p1)&&this.p2.equals(other.p2)}},{key:"toVector",value:function toVector(){return this.p2.subtract(this.p1)}},{key:"length",value:function length(){return this.toVector().norm()}},{key:"contains",value:function contains(p){if(p.equals(this.p1)||p.equals(this.p2))return true;var l=_line2d2.default.through(this.p1,this.p2);if(!l.contains(p))return false;var d=p.subtract(this.p1).innerProduct(this.toVector());return 0<=d&&d<=this.toVector().squaredNorm()}},{key:"crosses",value:function crosses(other){return this.crossPoint(other)!==null}},{key:"crossPoint",value:function crossPoint(other){var intersections=this.intersection(other);return intersections.length>0&&intersections[0]instanceof _vector2.default?intersections[0]:null}},{key:"intersects",value:function intersects(other){return this.intersection(other).length>0}},{key:"intersection",value:function intersection(other){var l1=_line2d2.default.through(this.p1,this.p2);var l2=_line2d2.default.through(other.p1,other.p2);if(l1.equals(l2)){var base=this.toVector();var fixedOther=base.innerProduct(other.toVector())>0?other:other.reverse();var d1=0;var d2=base.innerProduct(base);var d3=base.innerProduct(fixedOther.p1.subtract(this.p1));var d4=base.innerProduct(fixedOther.p2.subtract(this.p1));if(d1===d4)return[this.p1];if(d2===d3)return[this.p2];if(d3<=d1&&d2<=d4)return[this];if(d1<=d3&&d4<=d2)return[fixedOther];if(d3<=d1&&d1<=d4&&d4<=d2)return[new this.constructor(this.p1,fixedOther.p2)];if(d1<=d3&&d3<=d2&&d2<=d4)return[new this.constructor(fixedOther.p1,this.p2)];return[]}if(l1.isParallelTo(l2))return[];if(this.p1.equals(other.p1)||this.p1.equals(other.p2))return[this.p1];if(this.p2.equals(other.p1)||this.p2.equals(other.p2))return[this.p2];if(((other.p1.y-this.p1.y)*(this.p2.x-this.p1.x)-(this.p2.y-this.p1.y)*(other.p1.x-this.p1.x))*((other.p2.y-this.p1.y)*(this.p2.x-this.p1.x)-(this.p2.y-this.p1.y)*(other.p2.x-this.p1.x))>0||((this.p1.y-other.p1.y)*(other.p2.x-other.p1.x)-(other.p2.y-other.p1.y)*(this.p1.x-other.p1.x))*((this.p2.y-other.p1.y)*(other.p2.x-other.p1.x)-(other.p2.y-other.p1.y)*(this.p2.x-other.p1.x))>0)return[];return[l1.crossPoint(l2)]}},{key:"subtract",value:function subtract(other){var _this=this;if(other instanceof this.constructor){var intersections=this.intersection(other);if(intersections.length===0||intersections[0]instanceof _vector2.default)return[this];var lineSegment=intersections[0];if(this.equals(lineSegment))return[];if(this.p1.equals(lineSegment.p1))return[new this.constructor(lineSegment.p2,this.p2)];if(this.p2.equals(lineSegment.p2))return[new this.constructor(this.p1,lineSegment.p1)];return[new this.constructor(this.p1,lineSegment.p1),new this.constructor(lineSegment.p2,this.p2)]}else if(other instanceof _polygon2.default){var keys=_([this.p1].concat(other.lineSegments().map(function(lineSegment){return _this.intersection(lineSegment)}).filter(function(intersections){return intersections.length>0}).map(function(intersections){return intersections[0]}),[this.p2])).sortBy(function(key){return(key instanceof _vector2.default?key:key.p1.add(key.p2).divide(2)).subtract(_this.p1).innerProduct(_this.toVector())}).value();return _(keys.slice(0,-1)).zip(keys.slice(1)).flatMap(function(_ref){var _ref2=_slicedToArray(_ref,2);var key1=_ref2[0];var key2=_ref2[1];var p1=key1 instanceof _vector2.default?key1:key1.p2;var p2=key2 instanceof _vector2.default?key2:key2.p1;return p1.equals(p2)?[]:[new _this.constructor(p1,p2)]}).value().filter(function(difference){return!other.contains(difference.p1.add(difference.p2).divide(2))})}}}]);return DirectedLineSegment2D}();exports.default=DirectedLineSegment2D},{"./line-2d":4,"./polygon":12,"./vector2":17}],3:[function(require,module,exports){"use strict";require("babel-polyfill");var _pmx=require("./pmx");var _pmx2=_interopRequireDefault(_pmx);var _pmxUtils=require("./pmx-utils");var _pmxUtils2=_interopRequireDefault(_pmxUtils);var _binaryUtils=require("./binary-utils");var _binaryUtils2=_interopRequireDefault(_binaryUtils);var _vector=require("./vector2");var _vector2=_interopRequireDefault(_vector);var _vector3=require("./vector3");var _vector4=_interopRequireDefault(_vector3);var _plane=require("./plane");var _plane2=_interopRequireDefault(_plane);var _quaternion=require("./quaternion");var _quaternion2=_interopRequireDefault(_quaternion);var _myMath=require("./my-math");var _myMath2=_interopRequireDefault(_myMath);var _textAreaWrapper=require("./text-area-wrapper");var _textAreaWrapper2=_interopRequireDefault(_textAreaWrapper);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}else{return Array.from(arr)}}function _asyncToGenerator(fn){return function(){var gen=fn.apply(this,arguments);return new Promise(function(resolve,reject){function step(key,arg){try{var info=gen[key](arg);var value=info.value}catch(error){reject(error);return}if(info.done){resolve(value)}else{return Promise.resolve(value).then(function(value){step("next",value)},function(err){step("throw",err)})}}return step("next")})}}var log=null;new Vue({el:".container",data:{n:5,m:20,maxDeg:45,width:7,height:31,red:0,blue:0,green:0,isLoaded:false,isProcessing:false},computed:{},methods:{createModel:function(){var _ref=_asyncToGenerator(regeneratorRuntime.mark(function _callee2(){var _this=this;return regeneratorRuntime.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:this.isProcessing=true;_context2.prev=1;return _context2.delegateYield(regeneratorRuntime.mark(function _callee(){var addHair=function addHair(positionOrigin){var _model$vertices,_model$faces;var quaternions=new Array(m).fill().map(function(){var theta=Math.random()*Math.PI*2;return _quaternion2.default.angleAxis(Math.random()*maxDeg*Math.PI/180,new _vector4.default(Math.cos(theta),0,Math.sin(theta)))}).reduce(function(arr,q){arr.push(arr[arr.length-1].multiply(q));return arr},[_quaternion2.default.identity]);var centers=new Array(m).fill().reduce(function(arr,v,i){arr.push(arr[arr.length-1].add(quaternions[i+1].rotate(new _vector4.default(0,l/m,0))));return arr},[positionOrigin]);var positions=new Array(n*(m+1)).fill().map(function(_,i){var i1=Math.floor(i/n);var i2=i%n;var y=i1*(l/m);var r=y<=l*2/3?r0:_myMath2.default.lerp(r0,0,(y/l-2/3)*3);var theta=2*Math.PI/n*(i2+.5*(i1%2));return centers[i1].add(quaternions[i1].rotate(new _vector4.default(Math.cos(theta)*r,0,Math.sin(theta)*r))).divide(.08)});var normals=new Array(n*(m+1)).fill().map(function(_,i){var i1=Math.floor(i/n);var i2=i%n;var iA=(i1-1)*n+[(i2+n-1)%n,i2][i1%2];var iB=(i1-1)*n+[i2,(i2+1)%n][i1%2];var iC=i1*n+(i2+n-1)%n;var iD=i1*n+(i2+1)%n;var iE=(i1+1)*n+[(i2+n-1)%n,i2][i1%2];var iF=(i1+1)*n+[i2,(i2+1)%n][i1%2];if(i1===0){return _plane2.default.through(positions[i],positions[iC],positions[iE]).normal().add(_plane2.default.through(positions[i],positions[iE],positions[iF]).normal()).add(_plane2.default.through(positions[iD],positions[i],positions[iF]).normal()).normalize()}else if(i1===m-1){return _plane2.default.through(positions[iA],positions[iC],positions[i]).normal().add(_plane2.default.through(positions[iB],positions[iA],positions[i]).normal()).add(_plane2.default.through(positions[iB],positions[i],positions[iD]).normal()).add(_plane2.default.through(positions[i],positions[iC],positions[iE]).normal()).add(_plane2.default.through(positions[iD],positions[i],positions[iF]).normal()).normalize()}else if(i1===m){return _plane2.default.through(positions[iB],positions[iA],positions[i]).normal()}else{return _plane2.default.through(positions[iA],positions[iC],positions[i]).normal().add(_plane2.default.through(positions[iB],positions[iA],positions[i]).normal()).add(_plane2.default.through(positions[iB],positions[i],positions[iD]).normal()).add(_plane2.default.through(positions[i],positions[iC],positions[iE]).normal()).add(_plane2.default.through(positions[i],positions[iE],positions[iF]).normal()).add(_plane2.default.through(positions[iD],positions[i],positions[iF]).normal()).normalize()}});var vertexIndexOrigin=model.vertices.length;(_model$vertices=model.vertices).push.apply(_model$vertices,_toConsumableArray(new Array(n*(m+1)).fill().map(function(_,i){return new _pmx2.default.Vertex(positions[i],normals[i],new _vector2.default(0,0),[],new _pmx2.default.Vertex.Weight.BDEF1([{index:0,weight:1}]),0)})));(_model$faces=model.faces).push.apply(_model$faces,_toConsumableArray(new Array(2*n*(m-1)+n).fill().map(function(_,i){var i1=Math.floor(i/(2*n));var i2=Math.floor(i%(2*n)/n);var i3=i%n;if(i1<m&&i2===0||i1===m){return new _pmx2.default.Face([i1*n+(i3+1)%n,i1*n+i3,(i1+1)*n+[i3,(i3+1)%n][i1%2]].map(function(j){return vertexIndexOrigin+j}))}else{return new _pmx2.default.Face([i1*n+i3,(i1+1)*n+[(i3+n-1)%n,i3][i1%2],(i1+1)*n+[i3,(i3+1)%n][i1%2]].map(function(j){return vertexIndexOrigin+j}))}})))};var n,m,maxDeg,r0,l,model,width,height,x,z,rate,red,blue,green;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:log.clear();n=Number(_this.n);m=Number(_this.m);maxDeg=Number(_this.maxDeg);r0=4e-5;l=.04;model=_pmxUtils2.default.createEmptyModel();model.model.japaneseName="陰毛";model.model.englishName="pubic hair";model.model.japaneseComment="ライセンス: CC0";model.model.englishComment="License: CC0";_context.next=13;return log.appendAsync("陰毛モデル作成中... (0%)");case 13:width=Number(_this.width);height=Number(_this.height);x=0;case 16:if(!(x<width)){_context.next=29;break}z=0;case 18:if(!(z<height)){_context.next=26;break}addHair(new _vector4.default((-10*(width-1)/2+10*x)*.08/1e3,0,(-10*(height-1)/2+10*z)*.08/1e3));rate=(x*height+z+1)/(width*height);_context.next=23;return log.updateAsync("陰毛モデル作成中... ("+Math.floor(rate*1e3)/10+"%)");case 23:++z;_context.next=18;break;case 26:++x;_context.next=16;break;case 29:red=Number(_this.red);blue=Number(_this.blue);green=Number(_this.green);model.materials=[new _pmx2.default.Material("材質1","",{red:red*.6,green:green*.6,blue:blue*.6,alpha:1},{red:1,green:1,blue:1,coefficient:5},{red:red*.4,green:green*.4,blue:blue*.4},false,true,true,true,false,{red:0,green:0,blue:0,alpha:1,size:0},-1,{index:-1,mode:"disabled"},{isShared:false,index:-1},"",model.faces.length)];_context.next=35;return log.appendAsync("モデルの作成に成功しました");case 35:_binaryUtils2.default.saveBinaryAsFile(model.write(),"pubic_hair.pmx");case 36:case"end":return _context.stop()}}},_callee,_this)})(),"t0",3);case 3:_context2.next=10;break;case 5:_context2.prev=5;_context2.t1=_context2["catch"](1);_context2.next=9;return log.appendAsync("[Error]"+_context2.t1);case 9:throw _context2.t1;case 10:_context2.prev=10;this.isProcessing=false;return _context2.finish(10);case 13:case"end":return _context2.stop()}}},_callee2,this,[[1,5,10,13]])}));function createModel(){return _ref.apply(this,arguments)}return createModel}()},watch:{},mounted:function mounted(){log=new _textAreaWrapper2.default(document.getElementById("log"));this.isLoaded=true}})},{"./binary-utils":1,"./my-math":7,"./plane":9,"./pmx":11,"./pmx-utils":10,"./quaternion":13,"./text-area-wrapper":15,"./vector2":17,"./vector3":18,"babel-polyfill":20}],4:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _vector=require("./vector2");var _vector2=_interopRequireDefault(_vector);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var Line2D=function(){function Line2D(a,b,c){_classCallCheck(this,Line2D);this.a=a;this.b=b;this.c=c}_createClass(Line2D,[{key:"contains",value:function contains(p){return this.a*p.x+this.b*p.y+this.c===0}},{key:"isParallelTo",value:function isParallelTo(other){return this.a*other.b===this.b*other.a&&(this.b*other.c!==this.c*other.b||this.c*other.a!==this.a*other.c)}},{key:"crosses",value:function crosses(other){return this.a*other.b-other.a*this.b!==0}},{key:"crossPoint",value:function crossPoint(other){if(!this.crosses(other))return null;return new _vector2.default((this.b*other.c-other.b*this.c)/(this.a*other.b-other.a*this.b),(other.a*this.c-this.a*other.c)/(this.a*other.b-other.a*this.b))}},{key:"intersects",value:function intersects(other){return this.equals(other)||this.crosses(other)}},{key:"intersection",value:function intersection(other){if(this.equals(other))return[this];if(this.crosses(other))return[this.crossPoint(other)];return[]}},{key:"subtract",value:function subtract(other){return this.equals(other)?[]:[this]}},{key:"equals",value:function equals(other){return this===other||this.b*other.c===this.c*other.b&&this.c*other.a===this.a*other.c&&this.a*other.b===this.b*other.a}},{key:"toString",value:function toString(){return this.a+"x"+(this.b<0?"-":"+")+Math.abs(this.b)+"y"+(this.c<0?"-":"+")+Math.abs(this.c)+"=0"}}],[{key:"through",value:function through(p1,p2){if(p1.equals(p2))throw new Error("p1 is identical to p2");return new this(p1.y-p2.y,p2.x-p1.x,(p2.y-p1.y)*p1.x-(p2.x-p1.x)*p1.y)}}]);return Line2D}();exports.default=Line2D},{"./vector2":17}],5:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var Line3D=function(){function Line3D(a,d){_classCallCheck(this,Line3D);this.a=a;this.d=d}_createClass(Line3D,[{key:"contains",value:function contains(p){return this.d.y*p.x+this.d.x*this.a.y===this.d.x*p.y+this.d.y*this.a.x&&this.d.z*p.x+this.d.x*this.a.z===this.d.x*p.z+this.d.z*this.a.x&&this.d.z*p.y+this.d.y*this.a.z===this.d.y*p.z+this.d.z*this.a.y}},{key:"equals",value:function equals(other){return this===other||this.contains(other.a)&&this.contains(other.a.add(other.d))}}],[{key:"through",value:function through(p1,p2){if(p1.equals(p2))throw new Error("p1 is identical to p2");return new this(p1,p2.subtract(p1))}}]);return Line3D}();exports.default=Line3D},{}],6:[function(require,module,exports){"use strict";_.mixin({rangeClosed:function rangeClosed(arg1,arg2,arg3){switch(arguments.length){case 1:return _.range(arg1+1);case 2:return _.range(arg1,arg2+1);case 3:return _.range(arg1,arg2+1,arg3)}}},{chain:false})},{}],7:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});require("./lodash-extension");exports.default={binom:function binom(n,k){if(2*k>n)k=n-k;if(k===0)return 1;return _.rangeClosed(n-k+1,n).reduce(function(prod,x){return prod*x},1)/_.rangeClosed(1,k).reduce(function(prod,x){return prod*x},1)},clamp:function clamp(x,min,max){return[min,x,max].sort(function(x,y){return x-y})[1]},lerp:function lerp(x,y,t){return x+(y-x)*t},cartesianProduct:function cartesianProduct(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}if(typeof args[args.length-1]==="function"){(function(){var callback=args.pop();var callbackArgs=[];(function loop(){if(args.length===0){callback.apply(undefined,callbackArgs)}else{var values=args.pop();var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=values[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var value=_step.value;callbackArgs.unshift(value);loop();callbackArgs.shift(value)}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}args.push(values)}})()})()}else{return args.reduce(function(matrix,values){return values.reduce(function(array,value){return array.concat(matrix.map(function(row){return row.concat([value])}))},[])},[[]])}}}},{"./lodash-extension":6}],8:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});function extend(io){var newBuffer=new ArrayBuffer(io.view.byteLength*2);new Uint8Array(newBuffer).set(new Uint8Array(io.view.buffer,0,io.view.byteLength));io.view=new DataView(newBuffer)}exports.default={readValue:function readValue(io,byteLength,methodName){var value=io.view[methodName](io.offset,true);io.offset+=byteLength;return value},writeValue:function writeValue(io,value,byteLength,methodName){while(io.offset+byteLength>io.view.byteLength){extend(io)}io.view[methodName](io.offset,value,true);io.offset+=byteLength},readUint8:function readUint8(io){return this.readValue(io,1,"getUint8")},writeUint8:function writeUint8(io,value){this.writeValue(io,value,1,"setUint8")},readUint8Array:function readUint8Array(io,arrayLength){var _this=this;return new Uint8Array(_.range(arrayLength).map(function(){return _this.readUint8(io)}))},writeUint8Array:function writeUint8Array(io,values){var _this2=this;values.forEach(function(value){_this2.writeUint8(io,value)})},readInt8:function readInt8(io){return this.readValue(io,1,"getInt8")},writeInt8:function writeInt8(io,value){this.writeValue(io,value,1,"setInt8")},readInt8Array:function readInt8Array(io,arrayLength){var _this3=this;return new Int8Array(_.range(arrayLength).map(function(){return _this3.readInt8(io)}))},writeInt8Array:function writeInt8Array(io,values){var _this4=this;values.forEach(function(value){_this4.writeInt8(io,value)})},readUint16:function readUint16(io){return this.readValue(io,2,"getUint16")},writeUint16:function writeUint16(io,value){this.writeValue(io,value,2,"setUint16")},readUint16Array:function readUint16Array(io,arrayLength){var _this5=this;return new Uint16Array(_.range(arrayLength).map(function(){return _this5.readUint16(io)}))},writeUint16Array:function writeUint16Array(io,values){var _this6=this;values.forEach(function(value){_this6.writeUint16(io,value)})},readInt16:function readInt16(io){return this.readValue(io,2,"getInt16")},writeInt16:function writeInt16(io,value){this.writeValue(io,value,2,"setInt16")},readInt16Array:function readInt16Array(io,arrayLength){var _this7=this;return new Int16Array(_.range(arrayLength).map(function(){return _this7.readInt16(io)}))},writeInt16Array:function writeInt16Array(io,values){var _this8=this;values.forEach(function(value){_this8.writeInt16(io,value)})},readUint32:function readUint32(io){return this.readValue(io,4,"getUint32")},writeUint32:function writeUint32(io,value){this.writeValue(io,value,4,"setUint32")},readUint32Array:function readUint32Array(io,arrayLength){var _this9=this;return new Uint32Array(_.range(arrayLength).map(function(){return _this9.readUint32(io)}))},writeUint32Array:function writeUint32Array(io,values){var _this10=this;values.forEach(function(value){_this10.writeUint32(io,value)})},readInt32:function readInt32(io){return this.readValue(io,4,"getInt32")},writeInt32:function writeInt32(io,value){this.writeValue(io,value,4,"setInt32")},readInt32Array:function readInt32Array(io,arrayLength){var _this11=this;return new Int32Array(_.range(arrayLength).map(function(){return _this11.readInt32(io)}))},writeInt32Array:function writeInt32Array(io,values){var _this12=this;values.forEach(function(value){_this12.writeInt32(io,value)})},readFloat32:function readFloat32(io){return this.readValue(io,4,"getFloat32")},writeFloat32:function writeFloat32(io,value){this.writeValue(io,value,4,"setFloat32")},readFloat32Array:function readFloat32Array(io,arrayLength){var _this13=this;return new Float32Array(_.range(arrayLength).map(function(){return _this13.readFloat32(io)}))},writeFloat32Array:function writeFloat32Array(io,values){var _this14=this;values.forEach(function(value){_this14.writeFloat32(io,value)})},readString:function readString(io,byteLength,encoding){return new TextDecoder(encoding).decode(this.readUint8Array(io,byteLength))},writeString:function writeString(io,value,encoding){this.writeUint8Array(io,new TextEncoder(encoding,{NONSTANDARD_allowLegacyEncoding:true}).encode(value))},readNullTerminatedString:function readNullTerminatedString(io,byteLength,encoding){return new TextDecoder(encoding).decode(_.takeWhile(this.readUint8Array(io,byteLength),function(x){return x>0}))},writeNullTerminatedString:function writeNullTerminatedString(io,value,byteLength,encoding){var _this15=this;var previousOffset=io.offset;this.writeString(io,value,encoding);_.range(io.offset-previousOffset,byteLength).forEach(function(){_this15.writeUint8(io,0)})}}},{}],9:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _vector=require("./vector3");var _vector2=_interopRequireDefault(_vector);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var Plane=function(){function Plane(a,b,c,d){_classCallCheck(this,Plane);this.a=a;this.b=b;this.c=c;this.d=d}_createClass(Plane,[{key:"contains",value:function contains(p){return this.a*p.x+this.b*p.y+this.c*p.z+this.d===0}},{key:"normal",value:function normal(){return new _vector2.default(this.a,this.b,this.c).normalize()}},{key:"isParallelTo",value:function isParallelTo(other){return this.a*other.b===this.b*other.a&&this.a*other.c===this.c*other.a&&this.b*other.c===this.c*other.b&&this.a*other.d!==this.d*other.a&&this.b*other.d!==this.d*other.b&&this.c*other.d!==this.d*other.c}},{key:"equals",value:function equals(other){return this===other||this.a*other.b===this.b*other.a&&this.a*other.c===this.c*other.a&&this.a*other.d===this.d*other.a&&this.b*other.c===this.c*other.b&&this.b*other.d===this.d*other.b&&this.c*other.d===this.d*other.c}},{key:"toString",value:function toString(){return this.a+"x"+(this.b<0?"-":"+")+Math.abs(this.b)+"y"+(this.c<0?"-":"+")+Math.abs(this.c)+"z"+(this.d<0?"-":"+")+Math.abs(this.d)+"=0"}}],[{key:"through",value:function through(p1,p2,p3){if(p1.equals(p2))throw new Error("p1 is identical to p2");if(p2.equals(p3))throw new Error("p2 is identical to p3");if(p3.equals(p1))throw new Error("p3 is identical to p1");var normal=p2.subtract(p1).crossProduct(p3.subtract(p1));return new this(normal.x,normal.y,normal.z,normal.x*p1.x+normal.y*p1.y+normal.z*p1.z)}}]);return Plane}();exports.default=Plane},{"./vector3":18}],10:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"])_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var _vector=require("./vector2");var _vector2=_interopRequireDefault(_vector);var _vector3=require("./vector3");var _vector4=_interopRequireDefault(_vector3);var _directedLineSegment2d=require("./directed-line-segment-2d");var _directedLineSegment2d2=_interopRequireDefault(_directedLineSegment2d);var _line3d=require("./line-3d");var _line3d2=_interopRequireDefault(_line3d);var _polygon=require("./polygon");var _polygon2=_interopRequireDefault(_polygon);var _myMath=require("./my-math");var _myMath2=_interopRequireDefault(_myMath);var _pmx=require("./pmx");var _pmx2=_interopRequireDefault(_pmx);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}else{return Array.from(arr)}}exports.default={createEmptyModel:function createEmptyModel(){return _pmx2.default.read(new Uint8Array([80,77,88,32,0,0,0,64,8,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,8,0,0,0,187,48,243,48,191,48,252,48,12,0,0,0,99,0,101,0,110,0,116,0,101,0,114,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0,0,0,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,8,0,0,0,82,0,111,0,111,0,116,0,8,0,0,0,82,0,111,0,111,0,116,0,1,1,0,0,0,0,0,4,0,0,0,104,136,197,96,6,0,0,0,69,0,120,0,112,0,1,0,0,0,0,0,0,0,0,0,0,0,0]))},crossSection:function crossSection(thresholdY,rotationA,displacementA,model,rotationB,displacementB){var protoCurvePartMap=_.flatMap(model.faces,function(face){var points=face.vertexIndices.map(function(i){return rotationA.inverse().rotate(rotationB.rotate(model.vertices[i].position).add(displacementB).subtract(displacementA))});var overPoints=points.filter(function(point){return point.y>=thresholdY});var underPoints=points.filter(function(point){return point.y<thresholdY});if(overPoints.length===3||underPoints.length===3)return[];var centerPoint=overPoints.length===1?overPoints[0]:underPoints[0];while(points[0]!==centerPoint){points.unshift(points.pop())}var newPoints=[points[1],points[2]].map(function(point){var t=(thresholdY-centerPoint.y)/(point.y-centerPoint.y);return _vector4.default.lerp(centerPoint,point,t)});if(newPoints[0].equals(newPoints[1]))return[];return[overPoints.length===1?new _directedLineSegment2d2.default(new _vector2.default(newPoints[1].x,newPoints[1].z),new _vector2.default(newPoints[0].x,newPoints[0].z)):new _directedLineSegment2d2.default(new _vector2.default(newPoints[0].x,newPoints[0].z),new _vector2.default(newPoints[1].x,newPoints[1].z))]}).map(function(lineSegment){return[Array.from(lineSegment.p1).map(function(v){return Math.fround(v)}).toString(),[lineSegment]]});var curvePartMap=new Map(protoCurvePartMap);if(curvePartMap.size<protoCurvePartMap.length)throw new Error("Duplicate vertices were found.");var polygons=[];var curves=[];Array.from(curvePartMap.keys()).forEach(function(startKey){if(!curvePartMap.has(startKey))return;var nextKey=void 0;while(curvePartMap.has(nextKey=Array.from(_(curvePartMap.get(startKey)).last().p2).map(function(v){return Math.fround(v)}).toString())&&nextKey!==startKey){curvePartMap.set(startKey,curvePartMap.get(startKey).concat(curvePartMap.get(nextKey)));curvePartMap.delete(nextKey)}if(nextKey===startKey&&curvePartMap.get(startKey).length>=3){polygons.push(new _polygon2.default(curvePartMap.get(startKey).map(function(lineSegment){return lineSegment.p1})))}else{curves.push(curvePartMap.get(startKey))}curvePartMap.delete(startKey)});return{polygons:polygons,curves:curves}},subtract:function subtract(model,face,subtrahendPolygon){function makeVertexObject(toStringArray,toVertexArray){switch(toVertexArray.length){case 1:{var _ret=function(){var _toVertexArray=_slicedToArray(toVertexArray,1);var i=_toVertexArray[0];var vertex=model.vertices[i];
  return{v:{vertexIndices:[i],toString:function toString(){return toStringArray.join(",")},toVertex:function toVertex(){return vertex}}}}();if((typeof _ret==="undefined"?"undefined":_typeof(_ret))==="object")return _ret.v}case 3:{var _ret2=function(){var _toVertexArray2=_slicedToArray(toVertexArray,3);var i1=_toVertexArray2[0];var i2=_toVertexArray2[1];var t=_toVertexArray2[2];var vertices=[model.vertices[i1],model.vertices[i2]];return{v:{vertexIndices:[i1,i2],t:t,toString:function toString(){return toStringArray.join(",")},toVertex:function toVertex(){if(vertices.some(function(vertex){return vertex.weight instanceof _pmx2.default.Vertex.Weight.SDEF})){throw new Error("Combining vertices ("+i1+" and "+i2+") failed: SDEF not supported.")}var vertexIndexSet=new Set(_(vertices).flatMap(function(vertex){return vertex.weight.bones}).value().map(function(bone){return bone.index}));if(!new Set([1,2,4]).has(vertexIndexSet.size)){throw new Error("Combining vertices ("+i1+" and "+i2+") failed: combining needs BDEF"+vertexIndexSet.size+".")}var weightMap=new Map(Array.from(vertexIndexSet).map(function(i){return[i,0]}));weightMap=vertices[0].weight.bones.reduce(function(map,bone){return map.set(bone.index,map.get(bone.index)+bone.weight*(1-t))},weightMap);weightMap=vertices[1].weight.bones.reduce(function(map,bone){return map.set(bone.index,map.get(bone.index)+bone.weight*t)},weightMap);var weight=new _pmx2.default.Vertex.Weight["BDEF"+vertexIndexSet.size](Array.from(weightMap).map(function(_ref){var _ref2=_slicedToArray(_ref,2);var index=_ref2[0];var weight=_ref2[1];return{index:index,weight:weight}}));return new _pmx2.default.Vertex(_vector4.default.lerp(vertices[0].position,vertices[1].position,t),_vector4.default.lerp(vertices[0].normal,vertices[1].normal,t).normalize(),_vector2.default.lerp(vertices[0].uv,vertices[1].uv,t),_.zip(vertices[0].extraUVs,vertices[1].extraUVs).map(function(_ref3){var _ref4=_slicedToArray(_ref3,2);var uv0=_ref4[0];var uv1=_ref4[1];return _vector2.default.lerp(uv0,uv1,t)}),weight,_myMath2.default.lerp(vertices[0].edgeSizeRate,vertices[1].edgeSizeRate,t))}}}}();if((typeof _ret2==="undefined"?"undefined":_typeof(_ret2))==="object")return _ret2.v}case 5:{var _ret3=function(){var _toVertexArray3=_slicedToArray(toVertexArray,5);var i1=_toVertexArray3[0];var i2=_toVertexArray3[1];var i3=_toVertexArray3[2];var t1=_toVertexArray3[3];var t2=_toVertexArray3[4];var vertices=[model.vertices[i1],model.vertices[i2],model.vertices[i3]];return{v:{vertexIndices:[i1,i2,i3],t1:t1,t2:t2,toString:function toString(){return toStringArray.join(",")},toVertex:function toVertex(){if(vertices.some(function(vertex){return vertex.weight instanceof _pmx2.default.Vertex.Weight.SDEF})){throw new Error("Combining vertices ("+i1+", "+i2+" and "+i3+") failed: SDEF not supported.")}var vertexIndexSet=new Set(_(vertices).flatMap(function(vertex){return vertex.weight.bones}).value().map(function(bone){return bone.index}));if(!new Set([1,2,4]).has(vertexIndexSet.size)){throw new Error("Combining vertices ("+i1+", "+i2+" and "+i3+") failed: combining needs BDEF"+vertexIndexSet.size+".")}var weightMap=new Map(Array.from(vertexIndexSet).map(function(i){return[i,0]}));weightMap=vertices[0].weight.bones.reduce(function(map,bone){return map.set(bone.index,map.get(bone.index)+bone.weight*(1-t1-t2))},weightMap);weightMap=vertices[1].weight.bones.reduce(function(map,bone){return map.set(bone.index,map.get(bone.index)+bone.weight*t1)},weightMap);weightMap=vertices[2].weight.bones.reduce(function(map,bone){return map.set(bone.index,map.get(bone.index)+bone.weight*t2)},weightMap);var weight=new _pmx2.default.Vertex.Weight["BDEF"+vertexIndexSet.size](Array.from(weightMap).map(function(_ref5){var _ref6=_slicedToArray(_ref5,2);var index=_ref6[0];var weight=_ref6[1];return{index:index,weight:weight}}));function slerp(s1,s2,s3,t1,t2){return s1+(s2-s1)*t1+(s3-s1)*t2}function vlerp(v1,v2,v3,t1,t2){return v1.add(v2.subtract(v1).multiply(t1)).add(v3.subtract(v1).multiply(t2))}return new _pmx2.default.Vertex(vlerp(vertices[0].position,vertices[1].position,vertices[2].position,t1,t2),vlerp(vertices[0].normal,vertices[1].normal,vertices[2].normal,t1,t2).normalize(),vlerp(vertices[0].uv,vertices[1].uv,vertices[2].uv,t1,t2),_.zip(vertices[0].extraUVs,vertices[1].extraUVs,vertices[2].extraUVs).map(function(_ref7){var _ref8=_slicedToArray(_ref7,3);var uv0=_ref8[0];var uv1=_ref8[1];var uv2=_ref8[2];return vlerp(uv0,uv1,uv2,t1,t2)}),weight,slerp(vertices[0].edgeSizeRate,vertices[1].edgeSizeRate,vertices[2].edgeSizeRate,t1,t2))}}}}();if((typeof _ret3==="undefined"?"undefined":_typeof(_ret3))==="object")return _ret3.v}}}function helper1(vertexIndices,points,p){var _ref9=p.equals(points[0])?[0,0]:p.equals(points[1])?[1,0]:p.equals(points[2])?[0,1]:[((p.x-points[0].x)*(points[0].y-points[2].y)-(points[0].x-points[2].x)*(p.y-points[0].y))/((points[0].x-points[2].x)*(points[0].y-points[1].y)-(points[0].x-points[1].x)*(points[0].y-points[2].y)),(points[0].x*p.y-points[0].x*points[1].y-points[1].x*p.y-p.x*points[0].y+points[1].x*points[0].y+p.x*points[1].y)/(points[1].x*points[0].y-points[2].x*points[0].y-points[0].x*points[1].y+points[2].x*points[1].y+points[0].x*points[2].y-points[1].x*points[2].y)];var _ref10=_slicedToArray(_ref9,2);var t1=_ref10[0];var t2=_ref10[1];var _map=[t1,t2].map(function(t){return Math.fround(t)});var _map2=_slicedToArray(_map,2);var t1Float32=_map2[0];var t2Float32=_map2[1];if(t1Float32===0&&t2Float32===0){return makeVertexObject([vertexIndices[0]],[vertexIndices[0]])}if(t1Float32===1&&t2Float32===0){return makeVertexObject([vertexIndices[1]],[vertexIndices[1]])}if(t1Float32===0&&t2Float32===1){return makeVertexObject([vertexIndices[2]],[vertexIndices[2]])}if(t2Float32===0){return makeVertexObject([vertexIndices[0],vertexIndices[1],t1Float32],[vertexIndices[0],vertexIndices[1],t1])}if(t1Float32===0){return makeVertexObject([vertexIndices[0],vertexIndices[2],t2Float32],[vertexIndices[0],vertexIndices[2],t2])}if(Math.fround(t1+t2)===1){return makeVertexObject([vertexIndices[1],vertexIndices[2],t2Float32],[vertexIndices[1],vertexIndices[2],t2])}return makeVertexObject([vertexIndices[0],vertexIndices[1],vertexIndices[2],t1Float32,t2Float32],[vertexIndices[0],vertexIndices[1],vertexIndices[2],t1,t2])}function helper2(vertexIndices,reverseOffset,d){var dFloat32=Math.fround(d);var rd=1-d;var rdFloat32=Math.fround(1-d);var i0=vertexIndices[(0+reverseOffset)%3];var i1=vertexIndices[(1+reverseOffset)%3];var i2=vertexIndices[(2+reverseOffset)%3];if(dFloat32===0){return[makeVertexObject([i0],[i0])]}else if(dFloat32===1){return[makeVertexObject([i1],[i1]),makeVertexObject([i2],[i2])]}else{return[i0<i1?makeVertexObject([i0,i1,dFloat32],[i0,i1,d]):makeVertexObject([i1,i0,rdFloat32],[i1,i0,rd]),i0<i2?makeVertexObject([i0,i2,dFloat32],[i0,i2,d]):makeVertexObject([i2,i0,rdFloat32],[i2,i0,rd])]}}function algorithm1(projectedPoints){var sortedVertexIndices=Array.from(face.vertexIndices).sort(function(x,y){return x-y});var sortedPoints=sortedVertexIndices.map(function(i){return new _vector2.default(model.vertices[i].position.x,model.vertices[i].position.z)});var originalProjection=new _polygon2.default(projectedPoints);var projection=originalProjection.isClockwise()?originalProjection:originalProjection.reverse();var differenceTriangles=_(projection.subtract(subtrahendPolygon)).flatMap(function(differencePolygon){return differencePolygon.triangulate()}).value().map(function(triangle){return originalProjection.isClockwise()?triangle:triangle.reverse()});return differenceTriangles.map(function(triangle){return triangle.points.map(function(point){return helper1(sortedVertexIndices,sortedPoints,point)})})}function algorithm2(projectedPoints){var sortedVertexIndices=Array.from(face.vertexIndices).sort(function(x,y){return x-y});var sortedPoints=_(face.vertexIndices).zip([0,1,2]).sortBy(function(_ref11){var _ref12=_slicedToArray(_ref11,2);var vertexIndex=_ref12[0];var i=_ref12[1];return vertexIndex}).value().map(function(_ref13){var _ref14=_slicedToArray(_ref13,2);var vertexIndex=_ref14[0];var i=_ref14[1];return[new _vector2.default(0,0),new _vector2.default(1,0),new _vector2.default(0,1)][i]});return _((new(Function.prototype.bind.apply(_directedLineSegment2d2.default,[null].concat(_toConsumableArray(_(projectedPoints).zip(projectedPoints.slice(1).concat([projectedPoints[0]])).maxBy(function(_ref15){var _ref16=_slicedToArray(_ref15,2);var p1=_ref16[0];var p2=_ref16[1];return p2.subtract(p1).squaredNorm()})))))).subtract(subtrahendPolygon)).flatMap(function(lineSegment){var tuples=_([lineSegment.p1,lineSegment.p2]).flatMap(function(p,j){return[0,1,2].filter(function(i){return p.equals(projectedPoints[i])}).map(function(i){return[[0,0,0,j],[1,0,1,j],[0,1,2,j]][i]}).concat(_.zip([0,1,2],[1,2,0]).filter(function(_ref17){var _ref18=_slicedToArray(_ref17,2);var i1=_ref18[0];var i2=_ref18[1];return!p.equals(projectedPoints[i1])&&!p.equals(projectedPoints[i2])}).map(function(_ref19){var _ref20=_slicedToArray(_ref19,2);var i1=_ref20[0];var i2=_ref20[1];return[i1,i2,projectedPoints[i2].subtract(projectedPoints[i1])]}).filter(function(_ref21){var _ref22=_slicedToArray(_ref21,3);var i1=_ref22[0];var i2=_ref22[1];var v=_ref22[2];return v.squaredNorm()>0}).map(function(_ref23){var _ref24=_slicedToArray(_ref23,3);var i1=_ref24[0];var i2=_ref24[1];var v=_ref24[2];return[i1,i2,p.subtract(projectedPoints[i1]).innerProduct(v)/v.squaredNorm()]}).filter(function(_ref25){var _ref26=_slicedToArray(_ref25,3);var i1=_ref26[0];var i2=_ref26[1];var t=_ref26[2];return 0<t&&t<1}).map(function(_ref27){var _ref28=_slicedToArray(_ref27,3);var i1=_ref28[0];var i2=_ref28[1];var t=_ref28[2];return[[t,0,t,j],[1-t,t,1+t,j],[0,1-t,2+t,j]][i1]}))}).sortBy(function(_ref29){var _ref30=_slicedToArray(_ref29,3);var s=_ref30[2];return s}).value();var tuplePair=_.zip(tuples,tuples.slice(1).concat([tuples[0]])).filter(function(_ref31){var _ref32=_slicedToArray(_ref31,2);var _ref32$=_slicedToArray(_ref32[0],4);var j1=_ref32$[3];var _ref32$2=_slicedToArray(_ref32[1],4);var j2=_ref32$2[3];return j1!==j2}).find(function(_ref33){var _ref34=_slicedToArray(_ref33,2);var _ref34$=_slicedToArray(_ref34[0],3);var s1=_ref34$[2];var _ref34$2=_slicedToArray(_ref34[1],3);var s2=_ref34$2[2];return((Number.isInteger(s1)?s1+1:Math.ceil(s1))-(Number.isInteger(s2)?s2-1:Math.floor(s2)))%3===0});if(typeof tuplePair!=="undefined"){var _tuplePair=_slicedToArray(tuplePair,2);var _tuplePair$=_slicedToArray(_tuplePair[0],3);var s1=_tuplePair$[2];var _tuplePair$2=_slicedToArray(_tuplePair[1],3);tuples.push([[0,0,0,null],[1,0,1,null],[0,1,2,null]][(Number.isInteger(s1)?s1+1:Math.ceil(s1))%3]);tuples.sort(function(_ref35,_ref36){var _ref38=_slicedToArray(_ref35,3);var s1=_ref38[2];var _ref37=_slicedToArray(_ref36,3);var s2=_ref37[2];return s1-s2})}return new _polygon2.default(tuples.map(function(_ref39){var _ref40=_slicedToArray(_ref39,4);var t1=_ref40[0];var t2=_ref40[1];var s=_ref40[2];var j=_ref40[3];return new _vector2.default(t1,t2)})).triangulate()}).value().map(function(triangle){return triangle.points.map(function(point){return helper1(sortedVertexIndices,sortedPoints,point)})})}function algorithm3(projectedPoints,reverseOffset){var projection=new _directedLineSegment2d2.default(projectedPoints[0],projectedPoints[1]);return _(projection.subtract(subtrahendPolygon)).flatMap(function(lineSegment){var d1=lineSegment.p1.subtract(projection.p1).innerProduct(projection.toVector())/projection.toVector().squaredNorm();var d2=lineSegment.p2.subtract(projection.p1).innerProduct(projection.toVector())/projection.toVector().squaredNorm();var vertexObjects1=helper2(face.vertexIndices,reverseOffset,d1);var vertexObjects2=helper2(face.vertexIndices,reverseOffset,d2);if(vertexObjects1.length===1){return[[vertexObjects1[0],vertexObjects2[0],vertexObjects2[1]]]}else{return[[vertexObjects1[1],vertexObjects1[0],vertexObjects2[0]],[vertexObjects1[1],vertexObjects2[0],vertexObjects2[1]]]}}).value()}function algorithm4(projectedPoint){return subtrahendPolygon.contains(projectedPoint)?[]:[face.vertexIndices.map(function(i){return makeVertexObject([i],[i])})]}switch(new Set(face.vertexIndices.map(function(i){return model.vertices[i].position.toString()})).size){case 3:{var projectedPoints=face.vertexIndices.map(function(i){return new _vector2.default(model.vertices[i].position.x,model.vertices[i].position.z)});if(!_line3d2.default.through(model.vertices[face.vertexIndices[0]].position,model.vertices[face.vertexIndices[1]].position).contains(model.vertices[face.vertexIndices[2]].position)){if(model.vertices[face.vertexIndices[1]].position.subtract(model.vertices[face.vertexIndices[0]].position).crossProduct(model.vertices[face.vertexIndices[2]].position.subtract(model.vertices[face.vertexIndices[0]].position)).y!==0){return algorithm1(projectedPoints)}else{return algorithm2(projectedPoints)}}else{if(new Set(projectedPoints.map(function(p){return p.toString()})).size>1){return algorithm2(projectedPoints)}else{return algorithm4(projectedPoints[0])}}}case 2:{var points=face.vertexIndices.map(function(i){return model.vertices[i].position});var reverseOffset=3;while(!points[1].equals(points[2])){points.push(points.shift());--reverseOffset}var _projectedPoints=points.slice(0,2).map(function(p){return new _vector2.default(p.x,p.z)});if(!_projectedPoints[0].equals(_projectedPoints[1])){return algorithm3(_projectedPoints,reverseOffset)}else{return algorithm4(_projectedPoints[0])}}case 1:{var point=model.vertices[face.vertexIndices[0]].position;var projectedPoint=new _vector2.default(point.x,point.z);return algorithm4(projectedPoint)}}}}},{"./directed-line-segment-2d":2,"./line-3d":5,"./my-math":7,"./pmx":11,"./polygon":12,"./vector2":17,"./vector3":18}],11:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();require("babel-polyfill");require("./lodash-extension");var _vector=require("./vector2");var _vector2=_interopRequireDefault(_vector);var _vector3=require("./vector3");var _vector4=_interopRequireDefault(_vector3);var _vector5=require("./vector4");var _vector6=_interopRequireDefault(_vector5);var _packer=require("./packer");var _packer2=_interopRequireDefault(_packer);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}else{return Array.from(arr)}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var PMX=function(){function PMX(header,model,vertices,faces,textures,materials,bones,morphs,displayElementGroups,unknown){_classCallCheck(this,PMX);this.header=header;this.model=model;this.vertices=vertices;this.faces=faces;this.textures=textures;this.materials=materials;this.bones=bones;this.morphs=morphs;this.displayElementGroups=displayElementGroups;this.unknown=unknown}_createClass(PMX,[{key:"establishConsistency",value:function establishConsistency(){this.header=new PMX.Header(this.header.encoding,this.header.extraUVCount,this.vertices.length<=255?1:this.vertices.length<=65535?2:4,this.textures.length<=127?1:this.textures.length<=32767?2:4,this.materials.length<=127?1:this.materials.length<=32767?2:4,this.bones.length<=127?1:this.bones.length<=32767?2:4,this.morphs.length<=127?1:this.morphs.length<=32767?2:4,this.header.rigidBodyIndexSize)}},{key:"write",value:function write(){var io={view:new DataView(new ArrayBuffer(4096)),offset:0};this.establishConsistency();var utils=new PMX.Utils(this.header);utils.writeString(io,"PMX ","utf-8");utils.writeFloat32(io,2);this.header.write(io);this.model.write(io,utils);utils.writeInt32(io,this.vertices.length);this.vertices.forEach(function(vertex){vertex.write(io,utils)});utils.writeInt32(io,this.faces.length*3);this.faces.forEach(function(face){face.write(io,utils)});utils.writeInt32(io,this.textures.length);this.textures.forEach(function(texture){texture.write(io,utils)});utils.writeInt32(io,this.materials.length);this.materials.forEach(function(material){material.write(io,utils)});utils.writeInt32(io,this.bones.length);this.bones.forEach(function(bone){bone.write(io,utils)});utils.writeInt32(io,this.morphs.length);this.morphs.forEach(function(morph){morph.write(io,utils)});utils.writeInt32(io,this.displayElementGroups.length);this.displayElementGroups.forEach(function(displayElementGroup){displayElementGroup.write(io,utils)});utils.writeUint8Array(io,this.unknown);return new Uint8Array(io.view.buffer,io.view.byteOffset,io.offset)}}],[{key:"read",value:function read(binary){var _this=this;var io={view:new DataView(binary.buffer,binary.byteOffset,binary.byteLength),offset:0};if(_packer2.default.readString(io,4,"utf-8")!="PMX ")throw new Error("Not PMX.");if(_packer2.default.readFloat32(io)!=2)throw new Error("Incompatible version.");var header=this.Header.read(io);var utils=new this.Utils(header);var model=this.Model.read(io,utils);var vertices=new Array(utils.readInt32(io)).fill().map(function(){return _this.Vertex.read(io,utils)});var faces=new Array(utils.readInt32(io)/3).fill().map(function(){return _this.Face.read(io,utils)});var textures=new Array(utils.readInt32(io)).fill().map(function(){return _this.Texture.read(io,utils)});var materials=new Array(utils.readInt32(io)).fill().map(function(){return _this.Material.read(io,utils)});var bones=new Array(utils.readInt32(io)).fill().map(function(){return _this.Bone.read(io,utils)});var morphs=new Array(utils.readInt32(io)).fill().map(function(){return _this.Morph.read(io,utils)});var displayElementGroups=new Array(utils.readInt32(io)).fill().map(function(){return _this.DisplayElementGroup.read(io,utils)});var unknown=utils.readUint8Array(io,io.view.byteLength-io.offset);return new this(header,model,vertices,faces,textures,materials,bones,morphs,displayElementGroups,unknown)}}]);return PMX}();exports.default=PMX;PMX.Header=function(){function Header(encoding,extraUVCount,vertexIndexSize,textureIndexSize,materialIndexSize,boneIndexSize,morphIndexSize,rigidBodyIndexSize){_classCallCheck(this,Header);this.encoding=encoding;this.extraUVCount=extraUVCount;this.vertexIndexSize=vertexIndexSize;this.textureIndexSize=textureIndexSize;this.materialIndexSize=materialIndexSize;this.boneIndexSize=boneIndexSize;this.morphIndexSize=morphIndexSize;this.rigidBodyIndexSize=rigidBodyIndexSize}_createClass(Header,[{key:"write",value:function write(io){_packer2.default.writeUint8(io,8);_packer2.default.writeUint8(io,{"utf-16le":0,"utf-8":1}[this.encoding]);_packer2.default.writeUint8(io,this.extraUVCount);_packer2.default.writeUint8(io,this.vertexIndexSize);_packer2.default.writeUint8(io,this.textureIndexSize);_packer2.default.writeUint8(io,this.materialIndexSize);_packer2.default.writeUint8(io,this.boneIndexSize);_packer2.default.writeUint8(io,this.morphIndexSize);_packer2.default.writeUint8(io,this.rigidBodyIndexSize)}}],[{key:"read",value:function read(io){if(_packer2.default.readUint8(io)!=8)throw new Error("Invalid header size.");var encoding=["utf-16le","utf-8"][_packer2.default.readUint8(io)];var extraUVCount=_packer2.default.readUint8(io);var vertexIndexSize=_packer2.default.readUint8(io);var textureIndexSize=_packer2.default.readUint8(io);var materialIndexSize=_packer2.default.readUint8(io);var boneIndexSize=_packer2.default.readUint8(io);var morphIndexSize=_packer2.default.readUint8(io);var rigidBodyIndexSize=_packer2.default.readUint8(io);return new this(encoding,extraUVCount,vertexIndexSize,textureIndexSize,materialIndexSize,boneIndexSize,morphIndexSize,rigidBodyIndexSize)}}]);return Header}();PMX.Utils=function(){function Utils(header){_classCallCheck(this,Utils);this.header=header}_createClass(Utils,[{key:"readTextBuffer",value:function readTextBuffer(io){var byteLength=this.readInt32(io);return this.readString(io,byteLength,this.header.encoding)}},{key:"writeTextBuffer",value:function writeTextBuffer(io,value){var byteLength=new TextEncoder(this.header.encoding,{NONSTANDARD_allowLegacyEncoding:true}).encode(value).length;this.writeInt32(io,byteLength);this.writeString(io,value,this.header.encoding)}},{key:"readExtraUVs",value:function readExtraUVs(io){var _this2=this;return new Array(this.header.extraUVCount).fill().map(function(){return new(Function.prototype.bind.apply(_vector6.default,[null].concat(_toConsumableArray(_this2.readFloat32Array(io,4)))))})}},{key:"writeExtraUVs",value:function writeExtraUVs(io,values){var _this3=this;values.forEach(function(value){_this3.writeFloat32Array(io,Array.from(value))})}},{key:"readVertexIndex",value:function readVertexIndex(io){return this[{1:"readUint8",2:"readUint16",4:"readInt32"}[this.header.vertexIndexSize]](io)}},{key:"writeVertexIndex",value:function writeVertexIndex(io,value){this[{1:"writeUint8",2:"writeUint16",4:"writeInt32"}[this.header.vertexIndexSize]](io,value)}},{key:"readTextureIndex",value:function readTextureIndex(io){return this["readInt"+8*this.header.textureIndexSize](io)}},{key:"writeTextureIndex",value:function writeTextureIndex(io,value){return this["writeInt"+8*this.header.textureIndexSize](io,value)}},{key:"readMaterialIndex",value:function readMaterialIndex(io){return this["readInt"+8*this.header.materialIndexSize](io)}},{key:"writeMaterialIndex",value:function writeMaterialIndex(io,value){return this["writeInt"+8*this.header.materialIndexSize](io,value)}},{key:"readBoneIndex",value:function readBoneIndex(io){return this["readInt"+8*this.header.boneIndexSize](io)}},{key:"writeBoneIndex",value:function writeBoneIndex(io,value){return this["writeInt"+8*this.header.boneIndexSize](io,value)}},{key:"readMorphIndex",value:function readMorphIndex(io){return this["readInt"+8*this.header.morphIndexSize](io)}},{key:"writeMorphIndex",value:function writeMorphIndex(io,value){return this["writeInt"+8*this.header.morphIndexSize](io,value)}},{key:"readRigidBodyIndex",value:function readRigidBodyIndex(io){return this["readInt"+8*this.header.rigidBodyIndexSize](io)}},{key:"writeRigidBodyIndex",value:function writeRigidBodyIndex(io,value){return this["writeInt"+8*this.header.rigidBodyIndexSize](io,value)}}]);return Utils}();_.extend(PMX.Utils.prototype,_packer2.default);PMX.Model=function(){function Model(japaneseName,englishName,japaneseComment,englishComment){_classCallCheck(this,Model);this.japaneseName=japaneseName;this.englishName=englishName;this.japaneseComment=japaneseComment;this.englishComment=englishComment}_createClass(Model,[{key:"write",value:function write(io,utils){utils.writeTextBuffer(io,this.japaneseName);utils.writeTextBuffer(io,this.englishName);utils.writeTextBuffer(io,this.japaneseComment);utils.writeTextBuffer(io,this.englishComment)}}],[{key:"read",value:function read(io,utils){var japaneseName=utils.readTextBuffer(io);var englishName=utils.readTextBuffer(io);var japaneseComment=utils.readTextBuffer(io);var englishComment=utils.readTextBuffer(io);return new this(japaneseName,englishName,japaneseComment,englishComment)}}]);return Model}();PMX.Vertex=function(){function Vertex(position,normal,uv,extraUVs,weight,edgeSizeRate){_classCallCheck(this,Vertex);this.position=position;this.normal=normal;this.uv=uv;this.extraUVs=extraUVs;this.weight=weight;this.edgeSizeRate=edgeSizeRate}_createClass(Vertex,[{key:"write",value:function write(io,utils){utils.writeFloat32Array(io,Array.from(this.position));utils.writeFloat32Array(io,Array.from(this.normal));utils.writeFloat32Array(io,Array.from(this.uv));utils.writeExtraUVs(io,this.extraUVs);utils.writeUint8(io,new Map([[this.constructor.Weight.BDEF1,0],[this.constructor.Weight.BDEF2,1],[this.constructor.Weight.BDEF4,2],[this.constructor.Weight.SDEF,3]]).get(this.weight.constructor));this.weight.write(io,utils);utils.writeFloat32(io,this.edgeSizeRate)}}],[{key:"read",value:function read(io,utils){var position=new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3)))));var normal=new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3)))));var uv=new(Function.prototype.bind.apply(_vector2.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,2)))));var extraUVs=utils.readExtraUVs(io);var weight=[this.Weight.BDEF1,this.Weight.BDEF2,this.Weight.BDEF4,this.Weight.SDEF][utils.readUint8(io)].read(io,utils);var edgeSizeRate=utils.readFloat32(io);return new this(position,normal,uv,extraUVs,weight,edgeSizeRate)}}]);return Vertex}();PMX.Vertex.Weight={BDEF1:function(){function BDEF1(bones){_classCallCheck(this,BDEF1);this.bones=bones}_createClass(BDEF1,[{key:"write",value:function write(io,utils){utils.writeBoneIndex(io,this.bones[0].index)}}],[{key:"read",value:function read(io,utils){var index=utils.readBoneIndex(io);return new this([{index:index,weight:1}])}}]);return BDEF1}(),BDEF2:function(){function BDEF2(bones){_classCallCheck(this,BDEF2);this.bones=bones}_createClass(BDEF2,[{key:"write",value:function write(io,utils){this.bones.forEach(function(bone){utils.writeBoneIndex(io,bone.index)});utils.writeFloat32(io,this.bones[0].weight)}}],[{key:"read",value:function read(io,utils){var indices=new Array(2).fill().map(function(){return utils.readBoneIndex(io)});var weight=utils.readFloat32(io);return new this([{index:indices[0],weight:weight},{index:indices[1],weight:1-weight}])}}]);return BDEF2}(),BDEF4:function(){function BDEF4(bones){_classCallCheck(this,BDEF4);this.bones=bones}_createClass(BDEF4,[{key:"write",value:function write(io,utils){this.bones.forEach(function(bone){utils.writeBoneIndex(io,bone.index)});this.bones.forEach(function(bone){utils.writeFloat32(io,bone.weight)})}}],[{key:"read",value:function read(io,utils){var indices=new Array(4).fill().map(function(){return utils.readBoneIndex(io)});var weights=new Array(4).fill().map(function(){return utils.readFloat32(io)});return new this(_.range(4).map(function(i){return{index:indices[i],weight:weights[i]}}))}}]);return BDEF4}(),SDEF:function(){function SDEF(bones,c,r0,r1){_classCallCheck(this,SDEF);this.bones=bones;this.c=c;this.r0=r0;this.r1=r1}_createClass(SDEF,[{key:"write",value:function write(io,utils){this.bones.forEach(function(bone){utils.writeBoneIndex(io,bone.index)});utils.writeFloat32(io,this.bones[0].weight);utils.writeFloat32Array(io,Array.from(this.c));utils.writeFloat32Array(io,Array.from(this.r0));utils.writeFloat32Array(io,Array.from(this.r1))}}],[{key:"read",value:function read(io,utils){var indices=new Array(2).fill().map(function(){return utils.readBoneIndex(io)});var weight=utils.readFloat32(io);var c=new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3)))));var r0=new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3)))));var r1=new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3)))));return new this([{index:indices[0],weight:weight},{index:indices[1],weight:1-weight}],c,r0,r1)}}]);return SDEF}()};PMX.Face=function(){function Face(vertexIndices){_classCallCheck(this,Face);this.vertexIndices=vertexIndices}_createClass(Face,[{key:"write",value:function write(io,utils){this.vertexIndices.forEach(function(vertexIndex){utils.writeVertexIndex(io,vertexIndex)})}}],[{key:"read",value:function read(io,utils){var vertexIndices=new Array(3).fill().map(function(){return utils.readVertexIndex(io)});return new this(vertexIndices)}}]);return Face}();PMX.Texture=function(){function Texture(filePath){_classCallCheck(this,Texture);this.filePath=filePath}_createClass(Texture,[{key:"write",value:function write(io,utils){utils.writeTextBuffer(io,this.filePath)}}],[{key:"read",value:function read(io,utils){var filePath=utils.readTextBuffer(io);return new this(filePath)}}]);return Texture}();PMX.Material=function(){function Material(japaneseName,englishName,diffuse,specular,ambient,isDoubleSided,rendersGroundShadow,makesSelfShadow,rendersSelfShadow,rendersEdge,edge,textureIndex,sphereTexture,toonTexture,memo,faceCount){_classCallCheck(this,Material);this.japaneseName=japaneseName;this.englishName=englishName;this.diffuse=diffuse;this.specular=specular;this.ambient=ambient;this.isDoubleSided=isDoubleSided;this.rendersGroundShadow=rendersGroundShadow;this.makesSelfShadow=makesSelfShadow;this.rendersSelfShadow=rendersSelfShadow;this.rendersEdge=rendersEdge;this.edge=edge;this.textureIndex=textureIndex;this.sphereTexture=sphereTexture;this.toonTexture=toonTexture;this.memo=memo;this.faceCount=faceCount}_createClass(Material,[{key:"write",value:function write(io,utils){utils.writeTextBuffer(io,this.japaneseName);utils.writeTextBuffer(io,this.englishName);utils.writeFloat32Array(io,[this.diffuse.red,this.diffuse.green,this.diffuse.blue,this.diffuse.alpha]);utils.writeFloat32Array(io,[this.specular.red,this.specular.green,this.specular.blue,this.specular.coefficient]);utils.writeFloat32Array(io,[this.ambient.red,this.ambient.green,this.ambient.blue]);utils.writeUint8(io,(this.isDoubleSided?1:0)|(this.rendersGroundShadow?2:0)|(this.makesSelfShadow?4:0)|(this.rendersSelfShadow?8:0)|(this.rendersEdge?16:0));utils.writeFloat32Array(io,[this.edge.red,this.edge.green,this.edge.blue,this.edge.alpha,this.edge.size]);utils.writeTextureIndex(io,this.textureIndex);utils.writeTextureIndex(io,this.sphereTexture.index);utils.writeUint8(io,{disabled:0,multiply:1,add:2,subTexture:3}[this.sphereTexture.mode]);utils.writeUint8(io,this.toonTexture.isShared?1:0);if(this.toonTexture.isShared){utils.writeUint8(io,this.toonTexture.index)}else{utils.writeTextureIndex(io,this.toonTexture.index)}utils.writeTextBuffer(io,this.memo);utils.writeInt32(io,this.faceCount*3)}}],[{key:"read",value:function read(io,utils){var japaneseName=utils.readTextBuffer(io);var englishName=utils.readTextBuffer(io);var diffuse={red:utils.readFloat32(io),green:utils.readFloat32(io),blue:utils.readFloat32(io),alpha:utils.readFloat32(io)};var specular={red:utils.readFloat32(io),green:utils.readFloat32(io),blue:utils.readFloat32(io),coefficient:utils.readFloat32(io)};var ambient={red:utils.readFloat32(io),green:utils.readFloat32(io),blue:utils.readFloat32(io)};var bitFlag=utils.readUint8(io);var isDoubleSided=(bitFlag&1)==1;var rendersGroundShadow=(bitFlag&2)==2;var makesSelfShadow=(bitFlag&4)==4;var rendersSelfShadow=(bitFlag&8)==8;var rendersEdge=(bitFlag&16)==16;var edge={red:utils.readFloat32(io),green:utils.readFloat32(io),blue:utils.readFloat32(io),alpha:utils.readFloat32(io),size:utils.readFloat32(io)};var textureIndex=utils.readTextureIndex(io);var sphereTexture={index:utils.readTextureIndex(io),mode:["disabled","multiply","add","subTexture"][utils.readUint8(io)]};var toonTextureShared=utils.readUint8(io)==1;var toonTexture={isShared:toonTextureShared,index:toonTextureShared?utils.readUint8(io):utils.readTextureIndex(io)};var memo=utils.readTextBuffer(io);var faceCount=utils.readInt32(io)/3;return new this(japaneseName,englishName,diffuse,specular,ambient,isDoubleSided,rendersGroundShadow,makesSelfShadow,rendersSelfShadow,rendersEdge,edge,textureIndex,sphereTexture,toonTexture,memo,faceCount)}}]);return Material}();PMX.Bone=function(){function Bone(japaneseName,englishName,position,parentIndex,deformationOrder,connection,isRotatable,isMovable,isVisible,isControllable,ikInfo,localAdditionMode,additionalRotation,additionalDisplacement,fixedAxis,localAxis,deformsAfterPhysics,keyValue){
  _classCallCheck(this,Bone);this.japaneseName=japaneseName;this.englishName=englishName;this.position=position;this.parentIndex=parentIndex;this.deformationOrder=deformationOrder;this.connection=connection;this.isRotatable=isRotatable;this.isMovable=isMovable;this.isVisible=isVisible;this.isControllable=isControllable;this.ikInfo=ikInfo;this.localAdditionMode=localAdditionMode;this.additionalRotation=additionalRotation;this.additionalDisplacement=additionalDisplacement;this.fixedAxis=fixedAxis;this.localAxis=localAxis;this.deformsAfterPhysics=deformsAfterPhysics;this.keyValue=keyValue}_createClass(Bone,[{key:"write",value:function write(io,utils){utils.writeTextBuffer(io,this.japaneseName);utils.writeTextBuffer(io,this.englishName);utils.writeFloat32Array(io,Array.from(this.position));utils.writeBoneIndex(io,this.parentIndex);utils.writeInt32(io,this.deformationOrder);utils.writeUint8(io,(this.connection instanceof _vector4.default?0:1)|(this.isRotatable?2:0)|(this.isMovable?4:0)|(this.isVisible?8:0)|(this.isControllable?16:0)|(this.isIk?32:0)|this.localAdditionMode*128);utils.writeUint8(io,(this.addsRotation?1:0)|(this.addsDisplacement?2:0)|(this.fixesAxis?4:0)|(this.hasLocalAxis?8:0)|(this.deformsAfterPhysics?16:0)|(this.deformsUsingExternalParent?32:0));if(this.connection instanceof _vector4.default){utils.writeFloat32Array(io,Array.from(this.connection))}else{utils.writeBoneIndex(io,this.connection)}if(this.addsRotation){utils.writeBoneIndex(io,this.additionalRotation.parentIndex);utils.writeFloat32(io,this.additionalRotation.rate)}if(!this.addsRotation&&this.addsDisplacement){utils.writeBoneIndex(io,this.additionalDisplacement.parentIndex);utils.writeFloat32(io,this.additionalDisplacement.rate)}if(this.fixesAxis){utils.writeFloat32Array(io,Array.from(this.fixedAxis))}if(this.hasLocalAxis){utils.writeFloat32Array(io,Array.from(this.localAxis.x));utils.writeFloat32Array(io,Array.from(this.localAxis.z))}if(this.deformsUsingExternalParent){utils.writeInt32(io,this.keyValue)}if(this.isIk){this.ikInfo.write(io,utils)}}},{key:"isIk",get:function get(){return this.ikInfo!==null}},{key:"addsRotation",get:function get(){return this.additionalRotation!==null}},{key:"addsDisplacement",get:function get(){return this.additionalDisplacement!==null}},{key:"fixesAxis",get:function get(){return this.fixedAxis!==null}},{key:"hasLocalAxis",get:function get(){return this.localAxis!==null}},{key:"deformsUsingExternalParent",get:function get(){return this.keyValue!==null}}],[{key:"read",value:function read(io,utils){var japaneseName=utils.readTextBuffer(io);var englishName=utils.readTextBuffer(io);var position=new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3)))));var parentIndex=utils.readBoneIndex(io);var deformationOrder=utils.readInt32(io);var bitFlags=utils.readUint8Array(io,2);var connection=(bitFlags[0]&1)==0?new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3))))):utils.readBoneIndex(io);var isRotatable=(bitFlags[0]&2)==2;var isMovable=(bitFlags[0]&4)==4;var isVisible=(bitFlags[0]&8)==8;var isControllable=(bitFlags[0]&16)==16;var isIk=(bitFlags[0]&32)==32;var localAdditionMode=(bitFlags[0]&128)/128;var addsRotation=(bitFlags[1]&1)==1;var addsDisplacement=(bitFlags[1]&2)==2;var fixesAxis=(bitFlags[1]&4)==4;var hasLocalAxis=(bitFlags[1]&8)==8;var deformsAfterPhysics=(bitFlags[1]&16)==16;var deformsUsingExternalParent=(bitFlags[1]&32)==32;var addition=addsRotation||addsDisplacement?{parentIndex:utils.readBoneIndex(io),rate:utils.readFloat32(io)}:null;var additionalRotation=addsRotation?addition:null;var additionalDisplacement=addsDisplacement?addition:null;var fixedAxis=fixesAxis?new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3))))):null;var localAxis=hasLocalAxis?{x:new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3))))),z:new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3)))))}:null;var keyValue=deformsUsingExternalParent?utils.readInt32(io):null;var ikInfo=isIk?this.IKInfo.read(io,utils):null;return new this(japaneseName,englishName,position,parentIndex,deformationOrder,connection,isRotatable,isMovable,isVisible,isControllable,ikInfo,localAdditionMode,additionalRotation,additionalDisplacement,fixedAxis,localAxis,deformsAfterPhysics,keyValue)}}]);return Bone}();PMX.Bone.IKInfo=function(){function IKInfo(targetIndex,loopCount,angleLimit,links){_classCallCheck(this,IKInfo);this.targetIndex=targetIndex;this.loopCount=loopCount;this.angleLimit=angleLimit;this.links=links}_createClass(IKInfo,[{key:"write",value:function write(io,utils){utils.writeBoneIndex(io,this.targetIndex);utils.writeInt32(io,this.loopCount);utils.writeFloat32(io,this.angleLimit);utils.writeInt32(io,this.links.length);this.links.forEach(function(link){link.write(io,utils)})}}],[{key:"read",value:function read(io,utils){var _this4=this;var targetIndex=utils.readBoneIndex(io);var loopCount=utils.readInt32(io);var angleLimit=utils.readFloat32(io);var links=new Array(utils.readInt32(io)).fill().map(function(){return _this4.Link.read(io,utils)});return new this(targetIndex,loopCount,angleLimit,links)}}]);return IKInfo}();PMX.Bone.IKInfo.Link=function(){function Link(boneIndex,lowerLimit,upperLimit){_classCallCheck(this,Link);this.boneIndex=boneIndex;this.lowerLimit=lowerLimit;this.upperLimit=upperLimit}_createClass(Link,[{key:"write",value:function write(io,utils){utils.writeBoneIndex(io,this.boneIndex);utils.writeUint8(io,this.hasLimit?1:0);if(this.hasLimit){utils.writeFloat32Array(io,Array.from(this.lowerLimit));utils.writeFloat32Array(io,Array.from(this.upperLimit))}}},{key:"hasLimit",get:function get(){return this.lowerLimit!==null&&this.upperLimit!==null}}],[{key:"read",value:function read(io,utils){var boneIndex=utils.readBoneIndex(io);var hasLimit=utils.readUint8(io)==1;var lowerLimit=hasLimit?new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3))))):null;var upperLimit=hasLimit?new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3))))):null;return new this(boneIndex,lowerLimit,upperLimit)}}]);return Link}();PMX.Morph=function(){function Morph(japaneseName,englishName,panel,type,offsets){_classCallCheck(this,Morph);this.japaneseName=japaneseName;this.englishName=englishName;this.panel=panel;this.type=type;this.offsets=offsets}_createClass(Morph,[{key:"write",value:function write(io,utils){utils.writeTextBuffer(io,this.japaneseName);utils.writeTextBuffer(io,this.englishName);utils.writeUint8(io,{reserved:0,eyebrows:1,eyes:2,mouth:3,others:4}[this.panel]);utils.writeUint8(io,{group:0,vertex:1,bone:2,uv:3,extraUV1:4,extraUV2:5,extraUV3:6,extraUV4:7,material:8}[this.type]);utils.writeInt32(io,this.offsets.length);this.offsets.forEach(function(offset){offset.write(io,utils)})}}],[{key:"read",value:function read(io,utils){var _this5=this;var japaneseName=utils.readTextBuffer(io);var englishName=utils.readTextBuffer(io);var panel=["reserved","eyebrows","eyes","mouth","others"][utils.readUint8(io)];var rawType=utils.readUint8(io);var type=["group","vertex","bone","uv","extraUV1","extraUV2","extraUV3","extraUV4","material"][rawType];var offsets=new Array(utils.readInt32(io)).fill().map(function(){return[_this5.Offset.Group,_this5.Offset.Vertex,_this5.Offset.Bone,_this5.Offset.UV,_this5.Offset.UV,_this5.Offset.UV,_this5.Offset.UV,_this5.Offset.UV,_this5.Offset.Material][rawType].read(io,utils)});return new this(japaneseName,englishName,panel,type,offsets)}}]);return Morph}();PMX.Morph.Offset={Group:function(){function Group(morphIndex,rate){_classCallCheck(this,Group);this.morphIndex=morphIndex;this.rate=rate}_createClass(Group,[{key:"write",value:function write(io,utils){utils.writeMorphIndex(io,this.morphIndex);utils.writeFloat32(io,this.rate)}}],[{key:"read",value:function read(io,utils){var morphIndex=utils.readMorphIndex(io);var rate=utils.readFloat32(io);return new this(morphIndex,rate)}}]);return Group}(),Vertex:function(){function Vertex(vertexIndex,displacement){_classCallCheck(this,Vertex);this.vertexIndex=vertexIndex;this.displacement=displacement}_createClass(Vertex,[{key:"write",value:function write(io,utils){utils.writeVertexIndex(io,this.vertexIndex);utils.writeFloat32Array(io,Array.from(this.displacement))}}],[{key:"read",value:function read(io,utils){var vertexIndex=utils.readVertexIndex(io);var displacement=new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3)))));return new this(vertexIndex,displacement)}}]);return Vertex}(),Bone:function(){function Bone(boneIndex,displacement,rotation){_classCallCheck(this,Bone);this.boneIndex=boneIndex;this.displacement=displacement;this.rotation=rotation}_createClass(Bone,[{key:"write",value:function write(io,utils){utils.writeBoneIndex(io,this.boneIndex);utils.writeFloat32Array(io,Array.from(this.displacement));utils.writeFloat32Array(io,Array.from(this.rotation.toVector()))}}],[{key:"read",value:function read(io,utils){var boneIndex=utils.readBoneIndex(io);var displacement=new(Function.prototype.bind.apply(_vector4.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,3)))));var rotation=(new(Function.prototype.bind.apply(_vector6.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,4)))))).toQuaternion();return new this(boneIndex,displacement,rotation)}}]);return Bone}(),UV:function(){function Vertex(vertexIndex,displacement){_classCallCheck(this,Vertex);this.vertexIndex=vertexIndex;this.displacement=displacement}_createClass(Vertex,[{key:"write",value:function write(io,utils){utils.writeVertexIndex(io,this.vertexIndex);utils.writeFloat32Array(io,Array.from(this.displacement))}}],[{key:"read",value:function read(io,utils){var vertexIndex=utils.readVertexIndex(io);var displacement=new(Function.prototype.bind.apply(_vector6.default,[null].concat(_toConsumableArray(utils.readFloat32Array(io,4)))));return new this(vertexIndex,displacement)}}]);return Vertex}(),Material:function(){function Material(materialIndex,mode,diffuse,specular,ambient,edge,textureCoefficient,sphereTextureCoefficient,toonTextureCoefficient){_classCallCheck(this,Material);this.materialIndex=materialIndex;this.mode=mode;this.diffuse=diffuse;this.specular=specular;this.ambient=ambient;this.edge=edge;this.textureCoefficient=textureCoefficient;this.sphereTextureCoefficient=sphereTextureCoefficient;this.toonTextureCoefficient=toonTextureCoefficient}_createClass(Material,[{key:"write",value:function write(io,utils){utils.writeMaterialIndex(io,this.materialIndex);utils.writeUint8(io,{multiply:0,add:1}[this.mode]);utils.writeFloat32Array(io,[this.diffuse.red,this.diffuse.green,this.diffuse.blue,this.diffuse.alpha]);utils.writeFloat32Array(io,[this.specular.red,this.specular.green,this.specular.blue,this.specular.coefficient]);utils.writeFloat32Array(io,[this.ambient.red,this.ambient.green,this.ambient.blue]);utils.writeFloat32Array(io,[this.edge.red,this.edge.green,this.edge.blue,this.edge.alpha,this.edge.size]);utils.writeFloat32Array(io,[this.textureCoefficient.red,this.textureCoefficient.green,this.textureCoefficient.blue,this.textureCoefficient.alpha]);utils.writeFloat32Array(io,[this.sphereTextureCoefficient.red,this.sphereTextureCoefficient.green,this.sphereTextureCoefficient.blue,this.sphereTextureCoefficient.alpha]);utils.writeFloat32Array(io,[this.toonTextureCoefficient.red,this.toonTextureCoefficient.green,this.toonTextureCoefficient.blue,this.toonTextureCoefficient.alpha])}}],[{key:"read",value:function read(io,utils){var materialIndex=utils.readMaterialIndex(io);var mode=["multiply","add"][utils.readUint8(io)];var diffuse={red:utils.readFloat32(io),green:utils.readFloat32(io),blue:utils.readFloat32(io),alpha:utils.readFloat32(io)};var specular={red:utils.readFloat32(io),green:utils.readFloat32(io),blue:utils.readFloat32(io),coefficient:utils.readFloat32(io)};var ambient={red:utils.readFloat32(io),green:utils.readFloat32(io),blue:utils.readFloat32(io)};var edge={red:utils.readFloat32(io),green:utils.readFloat32(io),blue:utils.readFloat32(io),alpha:utils.readFloat32(io),size:utils.readFloat32(io)};var textureCoefficient={red:utils.readFloat32(io),green:utils.readFloat32(io),blue:utils.readFloat32(io),alpha:utils.readFloat32(io)};var sphereTextureCoefficient={red:utils.readFloat32(io),green:utils.readFloat32(io),blue:utils.readFloat32(io),alpha:utils.readFloat32(io)};var toonTextureCoefficient={red:utils.readFloat32(io),green:utils.readFloat32(io),blue:utils.readFloat32(io),alpha:utils.readFloat32(io)};return new this(materialIndex,mode,diffuse,specular,ambient,edge,textureCoefficient,sphereTextureCoefficient,toonTextureCoefficient)}}]);return Material}()};PMX.DisplayElementGroup=function(){function DisplayElementGroup(japaneseName,englishName,isSpecial,elements){_classCallCheck(this,DisplayElementGroup);this.japaneseName=japaneseName;this.englishName=englishName;this.isSpecial=isSpecial;this.elements=elements}_createClass(DisplayElementGroup,[{key:"write",value:function write(io,utils){utils.writeTextBuffer(io,this.japaneseName);utils.writeTextBuffer(io,this.englishName);utils.writeUint8(io,this.isSpecial?1:0);utils.writeInt32(io,this.elements.length);this.elements.forEach(function(element){element.write(io,utils)})}}],[{key:"read",value:function read(io,utils){var _this6=this;var japaneseName=utils.readTextBuffer(io);var englishName=utils.readTextBuffer(io);var isSpecial=utils.readUint8(io)==1;var count=utils.readInt32(io);var elements=new Array(count).fill().map(function(){return _this6.DisplayElement.read(io,utils)});return new this(japaneseName,englishName,isSpecial,elements)}}]);return DisplayElementGroup}();PMX.DisplayElementGroup.DisplayElement=function(){function DisplayElement(type,index){_classCallCheck(this,DisplayElement);this.type=type;this.index=index}_createClass(DisplayElement,[{key:"write",value:function write(io,utils){utils.writeUint8(io,{bone:0,morph:1}[this.type]);utils[{bone:"writeBoneIndex",morph:"writeMorphIndex"}[this.type]](io,this.index)}}],[{key:"read",value:function read(io,utils){var type=["bone","morph"][utils.readUint8(io)];var index=utils[{bone:"readBoneIndex",morph:"readMorphIndex"}[type]](io);return new this(type,index)}}]);return DisplayElement}()},{"./lodash-extension":6,"./packer":8,"./vector2":17,"./vector3":18,"./vector4":19,"babel-polyfill":20}],12:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"])_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _vector=require("./vector2");var _vector2=_interopRequireDefault(_vector);var _directedLineSegment2d=require("./directed-line-segment-2d");var _directedLineSegment2d2=_interopRequireDefault(_directedLineSegment2d);var _rectangle=require("./rectangle");var _rectangle2=_interopRequireDefault(_rectangle);var _myMath=require("./my-math");var _myMath2=_interopRequireDefault(_myMath);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}else{return Array.from(arr)}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var Polygon=function(){function Polygon(points){_classCallCheck(this,Polygon);if(points.length<3)throw new Error("Polygon must have three or more vertices.");if(!points.every(function(point){return point instanceof _vector2.default}))throw new Error("points must be Vector2 array.");this.points=points;var left=points.reduce(function(min,point){return Math.min(min,point.x)},Number.POSITIVE_INFINITY);var right=points.reduce(function(max,point){return Math.max(max,point.x)},Number.NEGATIVE_INFINITY);var top=points.reduce(function(max,point){return Math.max(max,point.y)},Number.NEGATIVE_INFINITY);var bottom=points.reduce(function(min,point){return Math.min(min,point.y)},Number.POSITIVE_INFINITY);this._outline=new _rectangle2.default(left,top,right-left,top-bottom)}_createClass(Polygon,[{key:"reverse",value:function reverse(){return new this.constructor(Array.from(this.points).reverse())}},{key:"lineSegments",value:function lineSegments(){var _this=this;return new Array(this.points.length).fill().map(function(_,i){return new _directedLineSegment2d2.default(_this.points[i],_this.points[(i+1)%_this.points.length])})}},{key:"isClockwise",value:function isClockwise(){return this.lineSegments().reduce(function(sum,lineSegment){return sum+(lineSegment.p2.x-lineSegment.p1.x)*(lineSegment.p2.y+lineSegment.p1.y)},0)>0}},{key:"_contains",value:function _contains(p){var cn=0;var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=this.lineSegments()[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var lineSegment=_step.value;if(lineSegment.p1.y<=p.y&&p.y<lineSegment.p2.y||lineSegment.p2.y<=p.y&&p.y<lineSegment.p1.y){var t=(p.y-lineSegment.p1.y)/(lineSegment.p2.y-lineSegment.p1.y);if(p.x<_myMath2.default.lerp(lineSegment.p1.x,lineSegment.p2.x,t)){++cn}}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return cn%2===1}},{key:"containsProperly",value:function containsProperly(p){return this._outline.containsProperly(p)&&this._contains(p)&&!this.lineSegments().some(function(lineSegment){return lineSegment.contains(p)})}},{key:"contains",value:function contains(p){return this._outline.contains(p)&&(this._contains(p)||this.lineSegments().some(function(lineSegment){return lineSegment.contains(p)}))}},{key:"equals",value:function equals(other){var _this2=this;if(this===other)return true;var otherPoints=other.points;if(this.points.length!==otherPoints.length)return false;{var i=void 0;for(i=0;i<otherPoints.length&&!otherPoints[0].equals(this.points[0]);++i){otherPoints.unshift(otherPoints.pop())}if(i===otherPoints.length)return false}return new Array(otherPoints.length).fill().every(function(_,i){return _this2.points[i].equals(otherPoints[i])})}},{key:"subtract",value:function subtract(other){var _this3=this;{var intersections=this._outline.intersection(other._outline);if(intersections.length===0||!(intersections[0]instanceof _rectangle2.default))return[this]}var inThis=other.points.map(function(point){return _this3.containsProperly(point)});if(inThis.every(function(flag){return flag})){if(this.points.length>3)throw new Error("Triangulation of four or more sided polygon with holes is currently not supported.");var _$minBy=_(_myMath2.default.cartesianProduct(_.range(0,this.points.length),_.range(0,other.points.length))).minBy(function(_ref){var _ref2=_slicedToArray(_ref,2);var i=_ref2[0];var j=_ref2[1];return _this3.points[i].subtract(other.points[j]).squaredNorm()});var _$minBy2=_slicedToArray(_$minBy,2);var targetI=_$minBy2[0];var targetJ=_$minBy2[1];var otherTargetPoint=other.points[targetJ];var thisPoints=Array.from(this.points);var otherPoints=Array.from(other.points);while(otherPoints[0]!==otherTargetPoint){otherPoints.unshift(otherPoints.pop())}thisPoints.splice.apply(thisPoints,[targetI+1,0].concat(_toConsumableArray(otherPoints.concat(otherPoints[0]).reverse()),[thisPoints[targetI]]));return[new this.constructor(thisPoints)]}var thisVertices=this.points.map(function(point){return{point:point,isOutside:!other.contains(point),cross:null,isInserted:false,isProcessed:false}});if(thisVertices.every(function(point){return!point.isOutside}))return[];var otherVertices=other.points.map(function(point){return{point:point,isOutside:!_this3.contains(point),cross:null,isInserted:false,isProcessed:false}}).reverse();for(var i=0;i<thisVertices.length;++i){for(var j=0;j<otherVertices.length;++j){var thisLineSegment=new _directedLineSegment2d2.default(thisVertices[i].point,thisVertices[(i+1)%thisVertices.length].point);var otherLineSegment=new _directedLineSegment2d2.default(otherVertices[j].point,otherVertices[(j+1)%otherVertices.length].point);var _intersections=thisLineSegment.intersection(otherLineSegment);if(_intersections.length===0)continue;var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=(_intersections[0]instanceof _directedLineSegment2d2.default?[_intersections[0].p1,_intersections[0].p2]:[_intersections[0]])[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var crossPoint=_step2.value;var thisVertex={point:crossPoint,isOutside:false,isInserted:false,isProcessed:false};var otherVertex={point:crossPoint,isOutside:false,isInserted:false,isProcessed:false};thisVertex.cross=otherVertex;otherVertex.cross=thisVertex;if(crossPoint.equals(thisLineSegment.p1)){if(thisVertices[i].cross===null)thisVertices.splice(i,1,thisVertex)}else if(crossPoint.equals(thisLineSegment.p2)){if(thisVertices[(i+1)%thisVertices.length].cross===null)thisVertices.splice((i+1)%thisVertices.length,1,thisVertex)}else{thisVertices.splice(i+1,0,thisVertex)}if(crossPoint.equals(otherLineSegment.p1)){if(otherVertices[j].cross===null)otherVertices.splice(j,1,otherVertex)}else if(crossPoint.equals(otherLineSegment.p2)){if(otherVertices[(j+1)%otherVertices.length].cross===null)otherVertices.splice((j+1)%otherVertices.length,1,otherVertex)}else{otherVertices.splice(j+1,0,otherVertex);++j}}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}}for(var _i=0;_i<thisVertices.length;++_i){if(thisVertices[_i].cross===null||thisVertices[(_i+1)%thisVertices.length].cross===null)continue;var insertedPoint=thisVertices[_i].point.add(thisVertices[(_i+1)%thisVertices.length].point).divide(2);if(other.contains(insertedPoint))continue;thisVertices.splice(_i+1,0,{point:insertedPoint,isOutside:true,cross:null,isInserted:true,isProcessed:false});++_i}for(var _i2=0;_i2<otherVertices.length;++_i2){if(otherVertices[_i2].cross===null||otherVertices[(_i2+1)%otherVertices.length].cross===null)continue;var _insertedPoint=otherVertices[_i2].point.add(otherVertices[(_i2+1)%otherVertices.length].point).divide(2);if(this.contains(_insertedPoint))continue;otherVertices.splice(_i2+1,0,{point:_insertedPoint,isOutside:true,cross:null,isInserted:true,isProcessed:false});++_i2}for(var _i3=0;_i3<thisVertices.length;++_i3){thisVertices[_i3].index=_i3}for(var _i4=0;_i4<otherVertices.length;++_i4){otherVertices[_i4].index=_i4}function opposite(currentVertices){return currentVertices===thisVertices?otherVertices:thisVertices}function next(currentVertices,currentVertex){return currentVertices[(currentVertex.index+1)%currentVertices.length]}var polygons=[];while(true){var startVertex=_(thisVertices.filter(function(vertex){return!vertex.isProcessed&&vertex.isOutside})).minBy(function(vertex){return vertex.index});if(typeof startVertex==="undefined")break;var outputVertices=[startVertex];startVertex.isProcessed=true;var currentVertex=startVertex;var currentVertices=thisVertices;while(true){currentVertex=next(currentVertices,currentVertex);currentVertex.isProcessed=true;if(currentVertex===startVertex)break;outputVertices.push(currentVertex);if(currentVertex.cross!==null&&(currentVertices===thisVertices&&!next(opposite(currentVertices),currentVertex.cross).isOutside||currentVertices===otherVertices&&next(opposite(currentVertices),currentVertex.cross).isOutside)&&next(opposite(currentVertices),currentVertex.cross).cross!==next(currentVertices,currentVertex)){currentVertex=currentVertex.cross;currentVertex.isProcessed=true;currentVertices=opposite(currentVertices)}}polygons.push(new this.constructor(outputVertices.filter(function(vertex){return!vertex.isInserted}).map(function(vertex){return vertex.point})))}return polygons}},{key:"triangulate",value:function triangulate(){var _this4=this;function outer(p1,p2){return p1.x*p2.y-p1.y*p2.x}var triangles=[];var points=Array.from(this.points);var _loop=function _loop(){var targetID=_(points.map(function(point,i){return[point,i]})).maxBy(function(_ref3){var _ref4=_slicedToArray(_ref3,2);var point=_ref4[0];var i=_ref4[1];return point.squaredNorm()})[1];var previousID=targetID-1<0?points.length-1:targetID-1;var nextID=(targetID+1)%points.length;var outerProduct2=outer(points[targetID].subtract(points[previousID]),points[nextID].subtract(points[targetID]));var _loop2=function _loop2(){var outerProduct=outer(points[targetID].subtract(points[previousID]),points[nextID].subtract(points[targetID]));if(points.every(function(point,i){return i===previousID||i===targetID||i===nextID||outer(points[targetID].subtract(points[previousID]),point.subtract(points[previousID]))*outerProduct<=0||outer(points[nextID].subtract(points[targetID]),point.subtract(points[targetID]))*outerProduct<=0||outer(points[previousID].subtract(points[nextID]),point.subtract(points[nextID]))*outerProduct<=0})){triangles.push(new _this4.constructor([points[previousID],points[targetID],points[nextID]]));points.splice(targetID,1);return"break"}else{do{previousID=targetID;targetID=nextID;nextID=(nextID+1)%points.length}while(outer(points[targetID].subtract(points[previousID]),points[nextID].subtract(points[targetID]))*outerProduct2<0)}};while(true){var _ret2=_loop2();if(_ret2==="break")break}};while(points.length>3){_loop()}triangles.push(new this.constructor([points[0],points[1],points[2]]));return triangles}}]);return Polygon}();exports.default=Polygon},{"./directed-line-segment-2d":2,"./my-math":7,"./rectangle":14,"./vector2":17}],13:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _vector=require("./vector3");var _vector2=_interopRequireDefault(_vector);var _vector3=require("./vector4");var _vector4=_interopRequireDefault(_vector3);var _myMath=require("./my-math");var _myMath2=_interopRequireDefault(_myMath);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}else{return Array.from(arr)}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var Quaternion=function(){function Quaternion(w,x,y,z){_classCallCheck(this,Quaternion);this.w=w;this.x=x;this.y=y;this.z=z}_createClass(Quaternion,[{key:"multiply",value:function multiply(other){return new(Function.prototype.bind.apply(this.constructor,[null].concat([this.real()*other.real()-this.imaginary().innerProduct(other.imaginary())],_toConsumableArray(other.imaginary().multiply(this.real()).add(this.imaginary().multiply(other.real())).add(this.imaginary().crossProduct(other.imaginary()))))))}},{key:"rotate",value:function rotate(other){return this.multiply(new(Function.prototype.bind.apply(this.constructor,[null].concat([0],_toConsumableArray(other))))).multiply(this.conjugate()).imaginary()}},{key:"power",value:function power(t){return new(Function.prototype.bind.apply(this.constructor,[null].concat([Math.cos(t*this.angle()/2)],_toConsumableArray(this.axis().multiply(Math.sin(t*this.angle()/2))))))}},{key:"add",value:function add(other){return new(Function.prototype.bind.apply(this.constructor,[null].concat([this.real()+other.real()],_toConsumableArray(this.imaginary().add(other.imaginary())))))}},{key:"subtract",value:function subtract(other){return new(Function.prototype.bind.apply(this.constructor,[null].concat([this.real()-other.real()],_toConsumableArray(this.imaginary().subtract(other.imaginary())))))}},{key:"negate",value:function negate(){return new(Function.prototype.bind.apply(this.constructor,[null].concat([-this.real()],_toConsumableArray(this.imaginary().negate()))))}},{key:"divide",value:function divide(other){return this.multiply(other.inverse())}},{key:"equals",value:function equals(other){return this===other||this.real()===other.real()&&this.imaginary().equals(other.imaginary())}},{key:"abs",value:function abs(){return this.toVector().norm()}},{key:"abs2",value:function abs2(){return this.toVector().squaredNorm()}},{key:"angle",value:function angle(){return Math.acos(_myMath2.default.clamp(this.real(),-1,1))*2}},{key:"axis",value:function axis(){return Math.abs(this.real())>=1?new _vector2.default(1,0,0):this.imaginary().normalize()}},{key:"conjugate",value:function conjugate(){return new(Function.prototype.bind.apply(this.constructor,[null].concat([this.real()],_toConsumableArray(this.imaginary().negate()))))}},{key:"imaginary",value:function imaginary(){return new _vector2.default(this.x,this.y,this.z)}},{key:"inverse",value:function inverse(){var conj=this.conjugate();var abs2=this.abs2();return new this.constructor(conj.w/abs2,conj.x/abs2,conj.y/abs2,conj.z/abs2)}},{key:"real",value:function real(){return this.w}},{key:"toString",value:function toString(){return""+this.w+(this.x<0?"-":"+")+Math.abs(this.x)+"i"+(this.y<0?"-":"+")+Math.abs(this.y)+"j"+(this.z<0?"-":"+")+Math.abs(this.z)+"k"}},{key:"toVector",value:function toVector(){return new _vector4.default(this.x,this.y,this.z,this.w)}},{key:"yxzEulerAngles",value:function yxzEulerAngles(){var cosPitchSinYaw=2*(this.w*this.y+this.x*this.z);var cosPitchCosYaw=1-2*(this.x*this.x+this.y*this.y);var sinPitch=2*(this.w*this.x-this.y*this.z);var cosPitchSinRoll=2*(this.w*this.z+this.x*this.y);var cosPitchCosRoll=1-2*(this.x*this.x+this.z*this.z);if(sinPitch>.9999){return[2*Math.atan2(this.y,this.w),Math.PI/2,0]}else if(sinPitch<-.9999){return[2*Math.atan2(this.y,this.w),-Math.PI/2,0]}else{return[Math.atan2(cosPitchSinYaw,cosPitchCosYaw),Math.asin(_myMath2.default.clamp(sinPitch,-1,1)),Math.atan2(cosPitchSinRoll,cosPitchCosRoll)]}}}],[{key:"angleAxis",value:function angleAxis(angle,axis){return new(Function.prototype.bind.apply(this,[null].concat([Math.cos(angle/2)],_toConsumableArray(axis.normalize().multiply(Math.sin(angle/2))))))}},{key:"fromToRotation",value:function fromToRotation(fromDirection,toDirection){
  fromDirection=fromDirection.normalize();toDirection=toDirection.normalize();if(fromDirection.innerProduct(toDirection)<-.9999){return this.angleAxis(Math.PI,fromDirection.x!==0||fromDirection.y!==0?new _vector2.default(-fromDirection.y,fromDirection.x,0):new _vector2.default(-fromDirection.z,0,0))}var bisect=fromDirection.add(toDirection).normalize();return new(Function.prototype.bind.apply(this,[null].concat([fromDirection.innerProduct(bisect)],_toConsumableArray(fromDirection.crossProduct(bisect)))))}},{key:"lookRotation",value:function lookRotation(forward){var upwards=arguments.length>1&&arguments[1]!==undefined?arguments[1]:new _vector2.default(0,1,0);forward=forward.normalize();upwards=upwards.normalize();var q1=this.fromToRotation(new _vector2.default(0,0,1),forward);var side=upwards.crossProduct(forward);var q2=this.fromToRotation(q1.multiply(new _vector2.default(0,1,0)),side.norm()<1e-4?new _vector2.default(0,0,-1):forward.crossProduct(side.normalize()));return q2.multiply(q1)}},{key:"slerp",value:function slerp(q0,q1,t){return q0.multiply(q0.power(-1).multiply(q1).power(t))}},{key:"yxzEuler",value:function yxzEuler(yaw,pitch,roll){return this.angleAxis(yaw,new _vector2.default(0,1,0)).multiply(this.angleAxis(pitch,new _vector2.default(1,0,0))).multiply(this.angleAxis(roll,new _vector2.default(0,0,1)))}}]);return Quaternion}();exports.default=Quaternion;Quaternion.identity=new Quaternion(1,0,0,0);Quaternion.I=new Quaternion(0,1,0,0);Quaternion.J=new Quaternion(0,0,1,0);Quaternion.K=new Quaternion(0,0,0,1)},{"./my-math":7,"./vector3":18,"./vector4":19}],14:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _vector=require("./vector2");var _vector2=_interopRequireDefault(_vector);var _directedLineSegment2d=require("./directed-line-segment-2d");var _directedLineSegment2d2=_interopRequireDefault(_directedLineSegment2d);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var Rectangle=function(){function Rectangle(x,y,width,height){_classCallCheck(this,Rectangle);this.x=x;this.y=y;this.width=width;this.height=height}_createClass(Rectangle,[{key:"left",value:function left(){return this.x}},{key:"right",value:function right(){return this.x+this.width}},{key:"top",value:function top(){return this.y}},{key:"bottom",value:function bottom(){return this.y-this.height}},{key:"containsProperly",value:function containsProperly(p){return this.left()<p.x&&p.x<this.right()&&this.bottom()<p.y&&p.y<this.top()}},{key:"contains",value:function contains(p){return this.left()<=p.x&&p.x<=this.right()&&this.bottom()<=p.y&&p.y<=this.top()}},{key:"intersection",value:function intersection(other){var left=Math.max(this.left(),other.left());var right=Math.min(this.right(),other.right());var top=Math.min(this.top(),other.top());var bottom=Math.max(this.bottom(),other.bottom());if(right<left||top<bottom)return[];if(left===right&&bottom===top)return[new _vector2.default(left,top)];if(left<right&&bottom===top)return[new _directedLineSegment2d2.default(new _vector2.default(left,top),new _vector2.default(right,top))];if(left===right&&bottom<top)return[new _directedLineSegment2d2.default(new _vector2.default(left,top),new _vector2.default(left,bottom))];return[new this.constructor(left,top,right-left,top-bottom)]}},{key:"equals",value:function equals(other){return this===other||this.x===other.x&&this.y===other.y&&this.width===other.width&&this.height===other.height}}]);return Rectangle}();exports.default=Rectangle},{"./directed-line-segment-2d":2,"./vector2":17}],15:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var TextAreaWrapper=function(){function TextAreaWrapper(textArea){_classCallCheck(this,TextAreaWrapper);this.textArea=textArea}_createClass(TextAreaWrapper,[{key:"clear",value:function clear(){this.textArea.value=""}},{key:"clearAsync",value:function clearAsync(){var _this=this;return new Promise(function(resolve,reject){_this.clear();setImmediate(resolve)})}},{key:"append",value:function append(message){this.textArea.value+=message+"\n"}},{key:"appendAsync",value:function appendAsync(message){var _this2=this;return new Promise(function(resolve,reject){_this2.append(message);setImmediate(resolve)})}},{key:"update",value:function update(message){var lines=this.textArea.value.split(/\n/).slice(0,-1);if(lines[lines.length-1]===message)return false;this.textArea.value=lines.slice(0,-1).map(function(line){return line+"\n"}).join("")+message+"\n";return true}},{key:"updateAsync",value:function updateAsync(message){var _this3=this;return new Promise(function(resolve,reject){if(_this3.update(message))setImmediate(resolve);else resolve()})}}]);return TextAreaWrapper}();exports.default=TextAreaWrapper},{}],16:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}else{return Array.from(arr)}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var Vector=function(){function Vector(){var _this=this;_classCallCheck(this,Vector);for(var _len=arguments.length,values=Array(_len),_key=0;_key<_len;_key++){values[_key]=arguments[_key]}values.forEach(function(value,i){_this[i]=value});this.length=values.length}_createClass(Vector,[{key:"negate",value:function negate(){var _this2=this;return new(Function.prototype.bind.apply(this.constructor,[null].concat(_toConsumableArray(new Array(this.length).fill().map(function(_,i){return-_this2[i]})))))}},{key:"add",value:function add(other){var _this3=this;return new(Function.prototype.bind.apply(this.constructor,[null].concat(_toConsumableArray(new Array(this.length).fill().map(function(_,i){return _this3[i]+other[i]})))))}},{key:"subtract",value:function subtract(other){var _this4=this;return new(Function.prototype.bind.apply(this.constructor,[null].concat(_toConsumableArray(new Array(this.length).fill().map(function(_,i){return _this4[i]-other[i]})))))}},{key:"multiply",value:function multiply(scale){var _this5=this;return new(Function.prototype.bind.apply(this.constructor,[null].concat(_toConsumableArray(new Array(this.length).fill().map(function(_,i){return _this5[i]*scale})))))}},{key:"divide",value:function divide(scale){var _this6=this;return new(Function.prototype.bind.apply(this.constructor,[null].concat(_toConsumableArray(new Array(this.length).fill().map(function(_,i){return _this6[i]/scale})))))}},{key:"norm",value:function norm(){return Math.sqrt(this.squaredNorm())}},{key:"squaredNorm",value:function squaredNorm(){return this.innerProduct(this)}},{key:"innerProduct",value:function innerProduct(other){var _this7=this;return new Array(this.length).fill().reduce(function(sum,_,i){return sum+_this7[i]*other[i]},0)}},{key:"normalize",value:function normalize(){return this.divide(this.norm())}},{key:"equals",value:function equals(other){var _this8=this;return this===other||this.length===other.length&&new Array(this.length).fill().every(function(_,i){return _this8[i]===other[i]})}},{key:"toString",value:function toString(){return Array.from(this).join(",")}}],[{key:"lerp",value:function lerp(v1,v2,t){return v1.add(v2.subtract(v1).multiply(t))}}]);return Vector}();exports.default=Vector},{}],17:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _vector=require("./vector");var _vector2=_interopRequireDefault(_vector);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var Vector2=function(_Vector){_inherits(Vector2,_Vector);function Vector2(x,y){_classCallCheck(this,Vector2);return _possibleConstructorReturn(this,(Vector2.__proto__||Object.getPrototypeOf(Vector2)).call(this,x,y))}_createClass(Vector2,[{key:"x",get:function get(){return this[0]}},{key:"y",get:function get(){return this[1]}}]);return Vector2}(_vector2.default);exports.default=Vector2},{"./vector":16}],18:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _vector=require("./vector");var _vector2=_interopRequireDefault(_vector);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var Vector3=function(_Vector){_inherits(Vector3,_Vector);function Vector3(x,y,z){_classCallCheck(this,Vector3);return _possibleConstructorReturn(this,(Vector3.__proto__||Object.getPrototypeOf(Vector3)).call(this,x,y,z))}_createClass(Vector3,[{key:"crossProduct",value:function crossProduct(other){return new this.constructor(this.y*other.z-this.z*other.y,this.z*other.x-this.x*other.z,this.x*other.y-this.y*other.x)}},{key:"x",get:function get(){return this[0]}},{key:"y",get:function get(){return this[1]}},{key:"z",get:function get(){return this[2]}}]);return Vector3}(_vector2.default);exports.default=Vector3},{"./vector":16}],19:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _vector=require("./vector");var _vector2=_interopRequireDefault(_vector);var _quaternion=require("./quaternion");var _quaternion2=_interopRequireDefault(_quaternion);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var Vector4=function(_Vector){_inherits(Vector4,_Vector);function Vector4(x,y,z,w){_classCallCheck(this,Vector4);return _possibleConstructorReturn(this,(Vector4.__proto__||Object.getPrototypeOf(Vector4)).call(this,x,y,z,w))}_createClass(Vector4,[{key:"toQuaternion",value:function toQuaternion(){return new _quaternion2.default(this.w,this.x,this.y,this.z)}},{key:"x",get:function get(){return this[0]}},{key:"y",get:function get(){return this[1]}},{key:"z",get:function get(){return this[2]}},{key:"w",get:function get(){return this[3]}}]);return Vector4}(_vector2.default);exports.default=Vector4},{"./quaternion":13,"./vector":16}],20:[function(require,module,exports){(function(global){"use strict";require("core-js/shim");require("regenerator-runtime/runtime");require("core-js/fn/regexp/escape");if(global._babelPolyfill){throw new Error("only one instance of babel-polyfill is allowed")}global._babelPolyfill=true;var DEFINE_PROPERTY="defineProperty";function define(O,key,value){O[key]||Object[DEFINE_PROPERTY](O,key,{writable:true,configurable:true,value:value})}define(String.prototype,"padLeft","".padStart);define(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(key){[][key]&&define(Array,key,Function.call.bind([][key]))})}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"core-js/fn/regexp/escape":21,"core-js/shim":314,"regenerator-runtime/runtime":316}],21:[function(require,module,exports){require("../../modules/core.regexp.escape");module.exports=require("../../modules/_core").RegExp.escape},{"../../modules/_core":42,"../../modules/core.regexp.escape":138}],22:[function(require,module,exports){module.exports=function(it){if(typeof it!="function")throw TypeError(it+" is not a function!");return it}},{}],23:[function(require,module,exports){var cof=require("./_cof");module.exports=function(it,msg){if(typeof it!="number"&&cof(it)!="Number")throw TypeError(msg);return+it}},{"./_cof":37}],24:[function(require,module,exports){var UNSCOPABLES=require("./_wks")("unscopables"),ArrayProto=Array.prototype;if(ArrayProto[UNSCOPABLES]==undefined)require("./_hide")(ArrayProto,UNSCOPABLES,{});module.exports=function(key){ArrayProto[UNSCOPABLES][key]=true}},{"./_hide":59,"./_wks":136}],25:[function(require,module,exports){module.exports=function(it,Constructor,name,forbiddenField){if(!(it instanceof Constructor)||forbiddenField!==undefined&&forbiddenField in it){throw TypeError(name+": incorrect invocation!")}return it}},{}],26:[function(require,module,exports){var isObject=require("./_is-object");module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},{"./_is-object":68}],27:[function(require,module,exports){"use strict";var toObject=require("./_to-object"),toIndex=require("./_to-index"),toLength=require("./_to-length");module.exports=[].copyWithin||function copyWithin(target,start){var O=toObject(this),len=toLength(O.length),to=toIndex(target,len),from=toIndex(start,len),end=arguments.length>2?arguments[2]:undefined,count=Math.min((end===undefined?len:toIndex(end,len))-from,len-to),inc=1;if(from<to&&to<from+count){inc=-1;from+=count-1;to+=count-1}while(count-- >0){if(from in O)O[to]=O[from];else delete O[to];to+=inc;from+=inc}return O}},{"./_to-index":124,"./_to-length":127,"./_to-object":128}],28:[function(require,module,exports){"use strict";var toObject=require("./_to-object"),toIndex=require("./_to-index"),toLength=require("./_to-length");module.exports=function fill(value){var O=toObject(this),length=toLength(O.length),aLen=arguments.length,index=toIndex(aLen>1?arguments[1]:undefined,length),end=aLen>2?arguments[2]:undefined,endPos=end===undefined?length:toIndex(end,length);while(endPos>index)O[index++]=value;return O}},{"./_to-index":124,"./_to-length":127,"./_to-object":128}],29:[function(require,module,exports){var forOf=require("./_for-of");module.exports=function(iter,ITERATOR){var result=[];forOf(iter,false,result.push,result,ITERATOR);return result}},{"./_for-of":56}],30:[function(require,module,exports){var toIObject=require("./_to-iobject"),toLength=require("./_to-length"),toIndex=require("./_to-index");module.exports=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIObject($this),length=toLength(O.length),index=toIndex(fromIndex,length),value;if(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];if(value!=value)return true}else for(;length>index;index++)if(IS_INCLUDES||index in O){if(O[index]===el)return IS_INCLUDES||index||0}return!IS_INCLUDES&&-1}}},{"./_to-index":124,"./_to-iobject":126,"./_to-length":127}],31:[function(require,module,exports){var ctx=require("./_ctx"),IObject=require("./_iobject"),toObject=require("./_to-object"),toLength=require("./_to-length"),asc=require("./_array-species-create");module.exports=function(TYPE,$create){var IS_MAP=TYPE==1,IS_FILTER=TYPE==2,IS_SOME=TYPE==3,IS_EVERY=TYPE==4,IS_FIND_INDEX=TYPE==6,NO_HOLES=TYPE==5||IS_FIND_INDEX,create=$create||asc;return function($this,callbackfn,that){var O=toObject($this),self=IObject(O),f=ctx(callbackfn,that,3),length=toLength(self.length),index=0,result=IS_MAP?create($this,length):IS_FILTER?create($this,0):undefined,val,res;for(;length>index;index++)if(NO_HOLES||index in self){val=self[index];res=f(val,index,O);if(TYPE){if(IS_MAP)result[index]=res;else if(res)switch(TYPE){case 3:return true;case 5:return val;case 6:return index;case 2:result.push(val)}else if(IS_EVERY)return false}}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:result}}},{"./_array-species-create":34,"./_ctx":44,"./_iobject":64,"./_to-length":127,"./_to-object":128}],32:[function(require,module,exports){var aFunction=require("./_a-function"),toObject=require("./_to-object"),IObject=require("./_iobject"),toLength=require("./_to-length");module.exports=function(that,callbackfn,aLen,memo,isRight){aFunction(callbackfn);var O=toObject(that),self=IObject(O),length=toLength(O.length),index=isRight?length-1:0,i=isRight?-1:1;if(aLen<2)for(;;){if(index in self){memo=self[index];index+=i;break}index+=i;if(isRight?index<0:length<=index){throw TypeError("Reduce of empty array with no initial value")}}for(;isRight?index>=0:length>index;index+=i)if(index in self){memo=callbackfn(memo,self[index],index,O)}return memo}},{"./_a-function":22,"./_iobject":64,"./_to-length":127,"./_to-object":128}],33:[function(require,module,exports){var isObject=require("./_is-object"),isArray=require("./_is-array"),SPECIES=require("./_wks")("species");module.exports=function(original){var C;if(isArray(original)){C=original.constructor;if(typeof C=="function"&&(C===Array||isArray(C.prototype)))C=undefined;if(isObject(C)){C=C[SPECIES];if(C===null)C=undefined}}return C===undefined?Array:C}},{"./_is-array":66,"./_is-object":68,"./_wks":136}],34:[function(require,module,exports){var speciesConstructor=require("./_array-species-constructor");module.exports=function(original,length){return new(speciesConstructor(original))(length)}},{"./_array-species-constructor":33}],35:[function(require,module,exports){"use strict";var aFunction=require("./_a-function"),isObject=require("./_is-object"),invoke=require("./_invoke"),arraySlice=[].slice,factories={};var construct=function(F,len,args){if(!(len in factories)){for(var n=[],i=0;i<len;i++)n[i]="a["+i+"]";factories[len]=Function("F,a","return new F("+n.join(",")+")")}return factories[len](F,args)};module.exports=Function.bind||function bind(that){var fn=aFunction(this),partArgs=arraySlice.call(arguments,1);var bound=function(){var args=partArgs.concat(arraySlice.call(arguments));return this instanceof bound?construct(fn,args.length,args):invoke(fn,args,that)};if(isObject(fn.prototype))bound.prototype=fn.prototype;return bound}},{"./_a-function":22,"./_invoke":63,"./_is-object":68}],36:[function(require,module,exports){var cof=require("./_cof"),TAG=require("./_wks")("toStringTag"),ARG=cof(function(){return arguments}())=="Arguments";var tryGet=function(it,key){try{return it[key]}catch(e){}};module.exports=function(it){var O,T,B;return it===undefined?"Undefined":it===null?"Null":typeof(T=tryGet(O=Object(it),TAG))=="string"?T:ARG?cof(O):(B=cof(O))=="Object"&&typeof O.callee=="function"?"Arguments":B}},{"./_cof":37,"./_wks":136}],37:[function(require,module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},{}],38:[function(require,module,exports){"use strict";var dP=require("./_object-dp").f,create=require("./_object-create"),redefineAll=require("./_redefine-all"),ctx=require("./_ctx"),anInstance=require("./_an-instance"),defined=require("./_defined"),forOf=require("./_for-of"),$iterDefine=require("./_iter-define"),step=require("./_iter-step"),setSpecies=require("./_set-species"),DESCRIPTORS=require("./_descriptors"),fastKey=require("./_meta").fastKey,SIZE=DESCRIPTORS?"_s":"size";var getEntry=function(that,key){var index=fastKey(key),entry;if(index!=="F")return that._i[index];for(entry=that._f;entry;entry=entry.n){if(entry.k==key)return entry}};module.exports={getConstructor:function(wrapper,NAME,IS_MAP,ADDER){var C=wrapper(function(that,iterable){anInstance(that,C,NAME,"_i");that._i=create(null);that._f=undefined;that._l=undefined;that[SIZE]=0;if(iterable!=undefined)forOf(iterable,IS_MAP,that[ADDER],that)});redefineAll(C.prototype,{clear:function clear(){for(var that=this,data=that._i,entry=that._f;entry;entry=entry.n){entry.r=true;if(entry.p)entry.p=entry.p.n=undefined;delete data[entry.i]}that._f=that._l=undefined;that[SIZE]=0},delete:function(key){var that=this,entry=getEntry(that,key);if(entry){var next=entry.n,prev=entry.p;delete that._i[entry.i];entry.r=true;if(prev)prev.n=next;if(next)next.p=prev;if(that._f==entry)that._f=next;if(that._l==entry)that._l=prev;that[SIZE]--}return!!entry},forEach:function forEach(callbackfn){anInstance(this,C,"forEach");var f=ctx(callbackfn,arguments.length>1?arguments[1]:undefined,3),entry;while(entry=entry?entry.n:this._f){f(entry.v,entry.k,this);while(entry&&entry.r)entry=entry.p}},has:function has(key){return!!getEntry(this,key)}});if(DESCRIPTORS)dP(C.prototype,"size",{get:function(){return defined(this[SIZE])}});return C},def:function(that,key,value){var entry=getEntry(that,key),prev,index;if(entry){entry.v=value}else{that._l=entry={i:index=fastKey(key,true),k:key,v:value,p:prev=that._l,n:undefined,r:false};if(!that._f)that._f=entry;if(prev)prev.n=entry;that[SIZE]++;if(index!=="F")that._i[index]=entry}return that},getEntry:getEntry,setStrong:function(C,NAME,IS_MAP){$iterDefine(C,NAME,function(iterated,kind){this._t=iterated;this._k=kind;this._l=undefined},function(){var that=this,kind=that._k,entry=that._l;while(entry&&entry.r)entry=entry.p;if(!that._t||!(that._l=entry=entry?entry.n:that._t._f)){that._t=undefined;return step(1)}if(kind=="keys")return step(0,entry.k);if(kind=="values")return step(0,entry.v);return step(0,[entry.k,entry.v])},IS_MAP?"entries":"values",!IS_MAP,true);setSpecies(NAME)}}},{"./_an-instance":25,"./_ctx":44,"./_defined":46,"./_descriptors":47,"./_for-of":56,"./_iter-define":72,"./_iter-step":74,"./_meta":81,"./_object-create":85,"./_object-dp":86,"./_redefine-all":105,"./_set-species":110}],39:[function(require,module,exports){var classof=require("./_classof"),from=require("./_array-from-iterable");module.exports=function(NAME){return function toJSON(){if(classof(this)!=NAME)throw TypeError(NAME+"#toJSON isn't generic");return from(this)}}},{"./_array-from-iterable":29,"./_classof":36}],40:[function(require,module,exports){"use strict";var redefineAll=require("./_redefine-all"),getWeak=require("./_meta").getWeak,anObject=require("./_an-object"),isObject=require("./_is-object"),anInstance=require("./_an-instance"),forOf=require("./_for-of"),createArrayMethod=require("./_array-methods"),$has=require("./_has"),arrayFind=createArrayMethod(5),arrayFindIndex=createArrayMethod(6),id=0;var uncaughtFrozenStore=function(that){return that._l||(that._l=new UncaughtFrozenStore)};var UncaughtFrozenStore=function(){this.a=[]};var findUncaughtFrozen=function(store,key){return arrayFind(store.a,function(it){return it[0]===key})};UncaughtFrozenStore.prototype={get:function(key){var entry=findUncaughtFrozen(this,key);if(entry)return entry[1]},has:function(key){return!!findUncaughtFrozen(this,key)},set:function(key,value){var entry=findUncaughtFrozen(this,key);if(entry)entry[1]=value;else this.a.push([key,value])},delete:function(key){var index=arrayFindIndex(this.a,function(it){return it[0]===key});if(~index)this.a.splice(index,1);return!!~index}};module.exports={getConstructor:function(wrapper,NAME,IS_MAP,ADDER){var C=wrapper(function(that,iterable){anInstance(that,C,NAME,"_i");that._i=id++;that._l=undefined;if(iterable!=undefined)forOf(iterable,IS_MAP,that[ADDER],that)});redefineAll(C.prototype,{delete:function(key){if(!isObject(key))return false;var data=getWeak(key);if(data===true)return uncaughtFrozenStore(this)["delete"](key);return data&&$has(data,this._i)&&delete data[this._i]},has:function has(key){if(!isObject(key))return false;var data=getWeak(key);if(data===true)return uncaughtFrozenStore(this).has(key);return data&&$has(data,this._i)}});return C},def:function(that,key,value){var data=getWeak(anObject(key),true);if(data===true)uncaughtFrozenStore(that).set(key,value);else data[that._i]=value;return that},ufstore:uncaughtFrozenStore}},{"./_an-instance":25,"./_an-object":26,"./_array-methods":31,"./_for-of":56,"./_has":58,"./_is-object":68,"./_meta":81,"./_redefine-all":105}],41:[function(require,module,exports){"use strict";var global=require("./_global"),$export=require("./_export"),redefine=require("./_redefine"),redefineAll=require("./_redefine-all"),meta=require("./_meta"),forOf=require("./_for-of"),anInstance=require("./_an-instance"),isObject=require("./_is-object"),fails=require("./_fails"),$iterDetect=require("./_iter-detect"),setToStringTag=require("./_set-to-string-tag"),inheritIfRequired=require("./_inherit-if-required");module.exports=function(NAME,wrapper,methods,common,IS_MAP,IS_WEAK){var Base=global[NAME],C=Base,ADDER=IS_MAP?"set":"add",proto=C&&C.prototype,O={};var fixMethod=function(KEY){var fn=proto[KEY];redefine(proto,KEY,KEY=="delete"?function(a){return IS_WEAK&&!isObject(a)?false:fn.call(this,a===0?0:a)}:KEY=="has"?function has(a){return IS_WEAK&&!isObject(a)?false:fn.call(this,a===0?0:a)}:KEY=="get"?function get(a){return IS_WEAK&&!isObject(a)?undefined:fn.call(this,a===0?0:a)}:KEY=="add"?function add(a){fn.call(this,a===0?0:a);return this}:function set(a,b){fn.call(this,a===0?0:a,b);return this})};if(typeof C!="function"||!(IS_WEAK||proto.forEach&&!fails(function(){(new C).entries().next()}))){C=common.getConstructor(wrapper,NAME,IS_MAP,ADDER);redefineAll(C.prototype,methods);meta.NEED=true}else{var instance=new C,HASNT_CHAINING=instance[ADDER](IS_WEAK?{}:-0,1)!=instance,THROWS_ON_PRIMITIVES=fails(function(){instance.has(1)}),ACCEPT_ITERABLES=$iterDetect(function(iter){new C(iter)}),BUGGY_ZERO=!IS_WEAK&&fails(function(){var $instance=new C,index=5;while(index--)$instance[ADDER](index,index);return!$instance.has(-0)});if(!ACCEPT_ITERABLES){C=wrapper(function(target,iterable){anInstance(target,C,NAME);var that=inheritIfRequired(new Base,target,C);if(iterable!=undefined)forOf(iterable,IS_MAP,that[ADDER],that);return that});C.prototype=proto;proto.constructor=C}if(THROWS_ON_PRIMITIVES||BUGGY_ZERO){fixMethod("delete");fixMethod("has");IS_MAP&&fixMethod("get")}if(BUGGY_ZERO||HASNT_CHAINING)fixMethod(ADDER);if(IS_WEAK&&proto.clear)delete proto.clear}setToStringTag(C,NAME);O[NAME]=C;$export($export.G+$export.W+$export.F*(C!=Base),O);if(!IS_WEAK)common.setStrong(C,NAME,IS_MAP);return C}},{"./_an-instance":25,"./_export":51,"./_fails":53,"./_for-of":56,"./_global":57,"./_inherit-if-required":62,"./_is-object":68,"./_iter-detect":73,"./_meta":81,"./_redefine":106,"./_redefine-all":105,"./_set-to-string-tag":111}],42:[function(require,module,exports){var core=module.exports={version:"2.4.0"};if(typeof __e=="number")__e=core},{}],43:[function(require,module,exports){"use strict";var $defineProperty=require("./_object-dp"),createDesc=require("./_property-desc");module.exports=function(object,index,value){if(index in object)$defineProperty.f(object,index,createDesc(0,value));else object[index]=value}},{"./_object-dp":86,"./_property-desc":104}],44:[function(require,module,exports){var aFunction=require("./_a-function");module.exports=function(fn,that,length){aFunction(fn);if(that===undefined)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){
  return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},{"./_a-function":22}],45:[function(require,module,exports){"use strict";var anObject=require("./_an-object"),toPrimitive=require("./_to-primitive"),NUMBER="number";module.exports=function(hint){if(hint!=="string"&&hint!==NUMBER&&hint!=="default")throw TypeError("Incorrect hint");return toPrimitive(anObject(this),hint!=NUMBER)}},{"./_an-object":26,"./_to-primitive":129}],46:[function(require,module,exports){module.exports=function(it){if(it==undefined)throw TypeError("Can't call method on  "+it);return it}},{}],47:[function(require,module,exports){module.exports=!require("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":53}],48:[function(require,module,exports){var isObject=require("./_is-object"),document=require("./_global").document,is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},{"./_global":57,"./_is-object":68}],49:[function(require,module,exports){module.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],50:[function(require,module,exports){var getKeys=require("./_object-keys"),gOPS=require("./_object-gops"),pIE=require("./_object-pie");module.exports=function(it){var result=getKeys(it),getSymbols=gOPS.f;if(getSymbols){var symbols=getSymbols(it),isEnum=pIE.f,i=0,key;while(symbols.length>i)if(isEnum.call(it,key=symbols[i++]))result.push(key)}return result}},{"./_object-gops":92,"./_object-keys":95,"./_object-pie":96}],51:[function(require,module,exports){var global=require("./_global"),core=require("./_core"),hide=require("./_hide"),redefine=require("./_redefine"),ctx=require("./_ctx"),PROTOTYPE="prototype";var $export=function(type,name,source){var IS_FORCED=type&$export.F,IS_GLOBAL=type&$export.G,IS_STATIC=type&$export.S,IS_PROTO=type&$export.P,IS_BIND=type&$export.B,target=IS_GLOBAL?global:IS_STATIC?global[name]||(global[name]={}):(global[name]||{})[PROTOTYPE],exports=IS_GLOBAL?core:core[name]||(core[name]={}),expProto=exports[PROTOTYPE]||(exports[PROTOTYPE]={}),key,own,out,exp;if(IS_GLOBAL)source=name;for(key in source){own=!IS_FORCED&&target&&target[key]!==undefined;out=(own?target:source)[key];exp=IS_BIND&&own?ctx(out,global):IS_PROTO&&typeof out=="function"?ctx(Function.call,out):out;if(target)redefine(target,key,out,type&$export.U);if(exports[key]!=out)hide(exports,key,exp);if(IS_PROTO&&expProto[key]!=out)expProto[key]=out}};global.core=core;$export.F=1;$export.G=2;$export.S=4;$export.P=8;$export.B=16;$export.W=32;$export.U=64;$export.R=128;module.exports=$export},{"./_core":42,"./_ctx":44,"./_global":57,"./_hide":59,"./_redefine":106}],52:[function(require,module,exports){var MATCH=require("./_wks")("match");module.exports=function(KEY){var re=/./;try{"/./"[KEY](re)}catch(e){try{re[MATCH]=false;return!"/./"[KEY](re)}catch(f){}}return true}},{"./_wks":136}],53:[function(require,module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return true}}},{}],54:[function(require,module,exports){"use strict";var hide=require("./_hide"),redefine=require("./_redefine"),fails=require("./_fails"),defined=require("./_defined"),wks=require("./_wks");module.exports=function(KEY,length,exec){var SYMBOL=wks(KEY),fns=exec(defined,SYMBOL,""[KEY]),strfn=fns[0],rxfn=fns[1];if(fails(function(){var O={};O[SYMBOL]=function(){return 7};return""[KEY](O)!=7})){redefine(String.prototype,KEY,strfn);hide(RegExp.prototype,SYMBOL,length==2?function(string,arg){return rxfn.call(string,this,arg)}:function(string){return rxfn.call(string,this)})}}},{"./_defined":46,"./_fails":53,"./_hide":59,"./_redefine":106,"./_wks":136}],55:[function(require,module,exports){"use strict";var anObject=require("./_an-object");module.exports=function(){var that=anObject(this),result="";if(that.global)result+="g";if(that.ignoreCase)result+="i";if(that.multiline)result+="m";if(that.unicode)result+="u";if(that.sticky)result+="y";return result}},{"./_an-object":26}],56:[function(require,module,exports){var ctx=require("./_ctx"),call=require("./_iter-call"),isArrayIter=require("./_is-array-iter"),anObject=require("./_an-object"),toLength=require("./_to-length"),getIterFn=require("./core.get-iterator-method"),BREAK={},RETURN={};var exports=module.exports=function(iterable,entries,fn,that,ITERATOR){var iterFn=ITERATOR?function(){return iterable}:getIterFn(iterable),f=ctx(fn,that,entries?2:1),index=0,length,step,iterator,result;if(typeof iterFn!="function")throw TypeError(iterable+" is not iterable!");if(isArrayIter(iterFn))for(length=toLength(iterable.length);length>index;index++){result=entries?f(anObject(step=iterable[index])[0],step[1]):f(iterable[index]);if(result===BREAK||result===RETURN)return result}else for(iterator=iterFn.call(iterable);!(step=iterator.next()).done;){result=call(iterator,f,step.value,entries);if(result===BREAK||result===RETURN)return result}};exports.BREAK=BREAK;exports.RETURN=RETURN},{"./_an-object":26,"./_ctx":44,"./_is-array-iter":65,"./_iter-call":70,"./_to-length":127,"./core.get-iterator-method":137}],57:[function(require,module,exports){var global=module.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=global},{}],58:[function(require,module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},{}],59:[function(require,module,exports){var dP=require("./_object-dp"),createDesc=require("./_property-desc");module.exports=require("./_descriptors")?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){object[key]=value;return object}},{"./_descriptors":47,"./_object-dp":86,"./_property-desc":104}],60:[function(require,module,exports){module.exports=require("./_global").document&&document.documentElement},{"./_global":57}],61:[function(require,module,exports){module.exports=!require("./_descriptors")&&!require("./_fails")(function(){return Object.defineProperty(require("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":47,"./_dom-create":48,"./_fails":53}],62:[function(require,module,exports){var isObject=require("./_is-object"),setPrototypeOf=require("./_set-proto").set;module.exports=function(that,target,C){var P,S=target.constructor;if(S!==C&&typeof S=="function"&&(P=S.prototype)!==C.prototype&&isObject(P)&&setPrototypeOf){setPrototypeOf(that,P)}return that}},{"./_is-object":68,"./_set-proto":109}],63:[function(require,module,exports){module.exports=function(fn,args,that){var un=that===undefined;switch(args.length){case 0:return un?fn():fn.call(that);case 1:return un?fn(args[0]):fn.call(that,args[0]);case 2:return un?fn(args[0],args[1]):fn.call(that,args[0],args[1]);case 3:return un?fn(args[0],args[1],args[2]):fn.call(that,args[0],args[1],args[2]);case 4:return un?fn(args[0],args[1],args[2],args[3]):fn.call(that,args[0],args[1],args[2],args[3])}return fn.apply(that,args)}},{}],64:[function(require,module,exports){var cof=require("./_cof");module.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return cof(it)=="String"?it.split(""):Object(it)}},{"./_cof":37}],65:[function(require,module,exports){var Iterators=require("./_iterators"),ITERATOR=require("./_wks")("iterator"),ArrayProto=Array.prototype;module.exports=function(it){return it!==undefined&&(Iterators.Array===it||ArrayProto[ITERATOR]===it)}},{"./_iterators":75,"./_wks":136}],66:[function(require,module,exports){var cof=require("./_cof");module.exports=Array.isArray||function isArray(arg){return cof(arg)=="Array"}},{"./_cof":37}],67:[function(require,module,exports){var isObject=require("./_is-object"),floor=Math.floor;module.exports=function isInteger(it){return!isObject(it)&&isFinite(it)&&floor(it)===it}},{"./_is-object":68}],68:[function(require,module,exports){module.exports=function(it){return typeof it==="object"?it!==null:typeof it==="function"}},{}],69:[function(require,module,exports){var isObject=require("./_is-object"),cof=require("./_cof"),MATCH=require("./_wks")("match");module.exports=function(it){var isRegExp;return isObject(it)&&((isRegExp=it[MATCH])!==undefined?!!isRegExp:cof(it)=="RegExp")}},{"./_cof":37,"./_is-object":68,"./_wks":136}],70:[function(require,module,exports){var anObject=require("./_an-object");module.exports=function(iterator,fn,value,entries){try{return entries?fn(anObject(value)[0],value[1]):fn(value)}catch(e){var ret=iterator["return"];if(ret!==undefined)anObject(ret.call(iterator));throw e}}},{"./_an-object":26}],71:[function(require,module,exports){"use strict";var create=require("./_object-create"),descriptor=require("./_property-desc"),setToStringTag=require("./_set-to-string-tag"),IteratorPrototype={};require("./_hide")(IteratorPrototype,require("./_wks")("iterator"),function(){return this});module.exports=function(Constructor,NAME,next){Constructor.prototype=create(IteratorPrototype,{next:descriptor(1,next)});setToStringTag(Constructor,NAME+" Iterator")}},{"./_hide":59,"./_object-create":85,"./_property-desc":104,"./_set-to-string-tag":111,"./_wks":136}],72:[function(require,module,exports){"use strict";var LIBRARY=require("./_library"),$export=require("./_export"),redefine=require("./_redefine"),hide=require("./_hide"),has=require("./_has"),Iterators=require("./_iterators"),$iterCreate=require("./_iter-create"),setToStringTag=require("./_set-to-string-tag"),getPrototypeOf=require("./_object-gpo"),ITERATOR=require("./_wks")("iterator"),BUGGY=!([].keys&&"next"in[].keys()),FF_ITERATOR="@@iterator",KEYS="keys",VALUES="values";var returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case KEYS:return function keys(){return new Constructor(this,kind)};case VALUES:return function values(){return new Constructor(this,kind)}}return function entries(){return new Constructor(this,kind)}};var TAG=NAME+" Iterator",DEF_VALUES=DEFAULT==VALUES,VALUES_BUG=false,proto=Base.prototype,$native=proto[ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT],$default=$native||getMethod(DEFAULT),$entries=DEFAULT?!DEF_VALUES?$default:getMethod("entries"):undefined,$anyNative=NAME=="Array"?proto.entries||$native:$native,methods,key,IteratorPrototype;if($anyNative){IteratorPrototype=getPrototypeOf($anyNative.call(new Base));if(IteratorPrototype!==Object.prototype){setToStringTag(IteratorPrototype,TAG,true);if(!LIBRARY&&!has(IteratorPrototype,ITERATOR))hide(IteratorPrototype,ITERATOR,returnThis)}}if(DEF_VALUES&&$native&&$native.name!==VALUES){VALUES_BUG=true;$default=function values(){return $native.call(this)}}if((!LIBRARY||FORCED)&&(BUGGY||VALUES_BUG||!proto[ITERATOR])){hide(proto,ITERATOR,$default)}Iterators[NAME]=$default;Iterators[TAG]=returnThis;if(DEFAULT){methods={values:DEF_VALUES?$default:getMethod(VALUES),keys:IS_SET?$default:getMethod(KEYS),entries:$entries};if(FORCED)for(key in methods){if(!(key in proto))redefine(proto,key,methods[key])}else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods)}return methods}},{"./_export":51,"./_has":58,"./_hide":59,"./_iter-create":71,"./_iterators":75,"./_library":77,"./_object-gpo":93,"./_redefine":106,"./_set-to-string-tag":111,"./_wks":136}],73:[function(require,module,exports){var ITERATOR=require("./_wks")("iterator"),SAFE_CLOSING=false;try{var riter=[7][ITERATOR]();riter["return"]=function(){SAFE_CLOSING=true};Array.from(riter,function(){throw 2})}catch(e){}module.exports=function(exec,skipClosing){if(!skipClosing&&!SAFE_CLOSING)return false;var safe=false;try{var arr=[7],iter=arr[ITERATOR]();iter.next=function(){return{done:safe=true}};arr[ITERATOR]=function(){return iter};exec(arr)}catch(e){}return safe}},{"./_wks":136}],74:[function(require,module,exports){module.exports=function(done,value){return{value:value,done:!!done}}},{}],75:[function(require,module,exports){module.exports={}},{}],76:[function(require,module,exports){var getKeys=require("./_object-keys"),toIObject=require("./_to-iobject");module.exports=function(object,el){var O=toIObject(object),keys=getKeys(O),length=keys.length,index=0,key;while(length>index)if(O[key=keys[index++]]===el)return key}},{"./_object-keys":95,"./_to-iobject":126}],77:[function(require,module,exports){module.exports=false},{}],78:[function(require,module,exports){var $expm1=Math.expm1;module.exports=!$expm1||$expm1(10)>22025.465794806718||$expm1(10)<22025.465794806718||$expm1(-2e-17)!=-2e-17?function expm1(x){return(x=+x)==0?x:x>-1e-6&&x<1e-6?x+x*x/2:Math.exp(x)-1}:$expm1},{}],79:[function(require,module,exports){module.exports=Math.log1p||function log1p(x){return(x=+x)>-1e-8&&x<1e-8?x-x*x/2:Math.log(1+x)}},{}],80:[function(require,module,exports){module.exports=Math.sign||function sign(x){return(x=+x)==0||x!=x?x:x<0?-1:1}},{}],81:[function(require,module,exports){var META=require("./_uid")("meta"),isObject=require("./_is-object"),has=require("./_has"),setDesc=require("./_object-dp").f,id=0;var isExtensible=Object.isExtensible||function(){return true};var FREEZE=!require("./_fails")(function(){return isExtensible(Object.preventExtensions({}))});var setMeta=function(it){setDesc(it,META,{value:{i:"O"+ ++id,w:{}}})};var fastKey=function(it,create){if(!isObject(it))return typeof it=="symbol"?it:(typeof it=="string"?"S":"P")+it;if(!has(it,META)){if(!isExtensible(it))return"F";if(!create)return"E";setMeta(it)}return it[META].i};var getWeak=function(it,create){if(!has(it,META)){if(!isExtensible(it))return true;if(!create)return false;setMeta(it)}return it[META].w};var onFreeze=function(it){if(FREEZE&&meta.NEED&&isExtensible(it)&&!has(it,META))setMeta(it);return it};var meta=module.exports={KEY:META,NEED:false,fastKey:fastKey,getWeak:getWeak,onFreeze:onFreeze}},{"./_fails":53,"./_has":58,"./_is-object":68,"./_object-dp":86,"./_uid":133}],82:[function(require,module,exports){var Map=require("./es6.map"),$export=require("./_export"),shared=require("./_shared")("metadata"),store=shared.store||(shared.store=new(require("./es6.weak-map")));var getOrCreateMetadataMap=function(target,targetKey,create){var targetMetadata=store.get(target);if(!targetMetadata){if(!create)return undefined;store.set(target,targetMetadata=new Map)}var keyMetadata=targetMetadata.get(targetKey);if(!keyMetadata){if(!create)return undefined;targetMetadata.set(targetKey,keyMetadata=new Map)}return keyMetadata};var ordinaryHasOwnMetadata=function(MetadataKey,O,P){var metadataMap=getOrCreateMetadataMap(O,P,false);return metadataMap===undefined?false:metadataMap.has(MetadataKey)};var ordinaryGetOwnMetadata=function(MetadataKey,O,P){var metadataMap=getOrCreateMetadataMap(O,P,false);return metadataMap===undefined?undefined:metadataMap.get(MetadataKey)};var ordinaryDefineOwnMetadata=function(MetadataKey,MetadataValue,O,P){getOrCreateMetadataMap(O,P,true).set(MetadataKey,MetadataValue)};var ordinaryOwnMetadataKeys=function(target,targetKey){var metadataMap=getOrCreateMetadataMap(target,targetKey,false),keys=[];if(metadataMap)metadataMap.forEach(function(_,key){keys.push(key)});return keys};var toMetaKey=function(it){return it===undefined||typeof it=="symbol"?it:String(it)};var exp=function(O){$export($export.S,"Reflect",O)};module.exports={store:store,map:getOrCreateMetadataMap,has:ordinaryHasOwnMetadata,get:ordinaryGetOwnMetadata,set:ordinaryDefineOwnMetadata,keys:ordinaryOwnMetadataKeys,key:toMetaKey,exp:exp}},{"./_export":51,"./_shared":113,"./es6.map":168,"./es6.weak-map":274}],83:[function(require,module,exports){var global=require("./_global"),macrotask=require("./_task").set,Observer=global.MutationObserver||global.WebKitMutationObserver,process=global.process,Promise=global.Promise,isNode=require("./_cof")(process)=="process";module.exports=function(){var head,last,notify;var flush=function(){var parent,fn;if(isNode&&(parent=process.domain))parent.exit();while(head){fn=head.fn;head=head.next;try{fn()}catch(e){if(head)notify();else last=undefined;throw e}}last=undefined;if(parent)parent.enter()};if(isNode){notify=function(){process.nextTick(flush)}}else if(Observer){var toggle=true,node=document.createTextNode("");new Observer(flush).observe(node,{characterData:true});notify=function(){node.data=toggle=!toggle}}else if(Promise&&Promise.resolve){var promise=Promise.resolve();notify=function(){promise.then(flush)}}else{notify=function(){macrotask.call(global,flush)}}return function(fn){var task={fn:fn,next:undefined};if(last)last.next=task;if(!head){head=task;notify()}last=task}}},{"./_cof":37,"./_global":57,"./_task":123}],84:[function(require,module,exports){"use strict";var getKeys=require("./_object-keys"),gOPS=require("./_object-gops"),pIE=require("./_object-pie"),toObject=require("./_to-object"),IObject=require("./_iobject"),$assign=Object.assign;module.exports=!$assign||require("./_fails")(function(){var A={},B={},S=Symbol(),K="abcdefghijklmnopqrst";A[S]=7;K.split("").forEach(function(k){B[k]=k});return $assign({},A)[S]!=7||Object.keys($assign({},B)).join("")!=K})?function assign(target,source){var T=toObject(target),aLen=arguments.length,index=1,getSymbols=gOPS.f,isEnum=pIE.f;while(aLen>index){var S=IObject(arguments[index++]),keys=getSymbols?getKeys(S).concat(getSymbols(S)):getKeys(S),length=keys.length,j=0,key;while(length>j)if(isEnum.call(S,key=keys[j++]))T[key]=S[key]}return T}:$assign},{"./_fails":53,"./_iobject":64,"./_object-gops":92,"./_object-keys":95,"./_object-pie":96,"./_to-object":128}],85:[function(require,module,exports){var anObject=require("./_an-object"),dPs=require("./_object-dps"),enumBugKeys=require("./_enum-bug-keys"),IE_PROTO=require("./_shared-key")("IE_PROTO"),Empty=function(){},PROTOTYPE="prototype";var createDict=function(){var iframe=require("./_dom-create")("iframe"),i=enumBugKeys.length,lt="<",gt=">",iframeDocument;iframe.style.display="none";require("./_html").appendChild(iframe);iframe.src="javascript:";iframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write(lt+"script"+gt+"document.F=Object"+lt+"/script"+gt);iframeDocument.close();createDict=iframeDocument.F;while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];return createDict()};module.exports=Object.create||function create(O,Properties){var result;if(O!==null){Empty[PROTOTYPE]=anObject(O);result=new Empty;Empty[PROTOTYPE]=null;result[IE_PROTO]=O}else result=createDict();return Properties===undefined?result:dPs(result,Properties)}},{"./_an-object":26,"./_dom-create":48,"./_enum-bug-keys":49,"./_html":60,"./_object-dps":87,"./_shared-key":112}],86:[function(require,module,exports){var anObject=require("./_an-object"),IE8_DOM_DEFINE=require("./_ie8-dom-define"),toPrimitive=require("./_to-primitive"),dP=Object.defineProperty;exports.f=require("./_descriptors")?Object.defineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPrimitive(P,true);anObject(Attributes);if(IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");if("value"in Attributes)O[P]=Attributes.value;return O}},{"./_an-object":26,"./_descriptors":47,"./_ie8-dom-define":61,"./_to-primitive":129}],87:[function(require,module,exports){var dP=require("./_object-dp"),anObject=require("./_an-object"),getKeys=require("./_object-keys");module.exports=require("./_descriptors")?Object.defineProperties:function defineProperties(O,Properties){anObject(O);var keys=getKeys(Properties),length=keys.length,i=0,P;while(length>i)dP.f(O,P=keys[i++],Properties[P]);return O}},{"./_an-object":26,"./_descriptors":47,"./_object-dp":86,"./_object-keys":95}],88:[function(require,module,exports){module.exports=require("./_library")||!require("./_fails")(function(){var K=Math.random();__defineSetter__.call(null,K,function(){});delete require("./_global")[K]})},{"./_fails":53,"./_global":57,"./_library":77}],89:[function(require,module,exports){var pIE=require("./_object-pie"),createDesc=require("./_property-desc"),toIObject=require("./_to-iobject"),toPrimitive=require("./_to-primitive"),has=require("./_has"),IE8_DOM_DEFINE=require("./_ie8-dom-define"),gOPD=Object.getOwnPropertyDescriptor;exports.f=require("./_descriptors")?gOPD:function getOwnPropertyDescriptor(O,P){O=toIObject(O);P=toPrimitive(P,true);if(IE8_DOM_DEFINE)try{return gOPD(O,P)}catch(e){}if(has(O,P))return createDesc(!pIE.f.call(O,P),O[P])}},{"./_descriptors":47,"./_has":58,"./_ie8-dom-define":61,"./_object-pie":96,"./_property-desc":104,"./_to-iobject":126,"./_to-primitive":129}],90:[function(require,module,exports){var toIObject=require("./_to-iobject"),gOPN=require("./_object-gopn").f,toString={}.toString;var windowNames=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var getWindowNames=function(it){try{return gOPN(it)}catch(e){return windowNames.slice()}};module.exports.f=function getOwnPropertyNames(it){return windowNames&&toString.call(it)=="[object Window]"?getWindowNames(it):gOPN(toIObject(it))}},{"./_object-gopn":91,"./_to-iobject":126}],91:[function(require,module,exports){var $keys=require("./_object-keys-internal"),hiddenKeys=require("./_enum-bug-keys").concat("length","prototype");exports.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return $keys(O,hiddenKeys)}},{"./_enum-bug-keys":49,"./_object-keys-internal":94}],92:[function(require,module,exports){exports.f=Object.getOwnPropertySymbols},{}],93:[function(require,module,exports){var has=require("./_has"),toObject=require("./_to-object"),IE_PROTO=require("./_shared-key")("IE_PROTO"),ObjectProto=Object.prototype;module.exports=Object.getPrototypeOf||function(O){O=toObject(O);if(has(O,IE_PROTO))return O[IE_PROTO];if(typeof O.constructor=="function"&&O instanceof O.constructor){return O.constructor.prototype}return O instanceof Object?ObjectProto:null}},{"./_has":58,"./_shared-key":112,"./_to-object":128}],94:[function(require,module,exports){var has=require("./_has"),toIObject=require("./_to-iobject"),arrayIndexOf=require("./_array-includes")(false),IE_PROTO=require("./_shared-key")("IE_PROTO");module.exports=function(object,names){var O=toIObject(object),i=0,result=[],key;for(key in O)if(key!=IE_PROTO)has(O,key)&&result.push(key);while(names.length>i)if(has(O,key=names[i++])){~arrayIndexOf(result,key)||result.push(key)}return result}},{"./_array-includes":30,"./_has":58,"./_shared-key":112,"./_to-iobject":126}],95:[function(require,module,exports){var $keys=require("./_object-keys-internal"),enumBugKeys=require("./_enum-bug-keys");module.exports=Object.keys||function keys(O){return $keys(O,enumBugKeys)}},{"./_enum-bug-keys":49,"./_object-keys-internal":94}],96:[function(require,module,exports){exports.f={}.propertyIsEnumerable},{}],97:[function(require,module,exports){var $export=require("./_export"),core=require("./_core"),fails=require("./_fails");module.exports=function(KEY,exec){var fn=(core.Object||{})[KEY]||Object[KEY],exp={};exp[KEY]=exec(fn);$export($export.S+$export.F*fails(function(){fn(1)}),"Object",exp)}},{"./_core":42,"./_export":51,"./_fails":53}],98:[function(require,module,exports){var getKeys=require("./_object-keys"),toIObject=require("./_to-iobject"),isEnum=require("./_object-pie").f;module.exports=function(isEntries){return function(it){var O=toIObject(it),keys=getKeys(O),length=keys.length,i=0,result=[],key;while(length>i)if(isEnum.call(O,key=keys[i++])){result.push(isEntries?[key,O[key]]:O[key])}return result}}},{"./_object-keys":95,"./_object-pie":96,"./_to-iobject":126}],99:[function(require,module,exports){var gOPN=require("./_object-gopn"),gOPS=require("./_object-gops"),anObject=require("./_an-object"),Reflect=require("./_global").Reflect;module.exports=Reflect&&Reflect.ownKeys||function ownKeys(it){var keys=gOPN.f(anObject(it)),getSymbols=gOPS.f;return getSymbols?keys.concat(getSymbols(it)):keys}},{"./_an-object":26,"./_global":57,"./_object-gopn":91,"./_object-gops":92}],100:[function(require,module,exports){var $parseFloat=require("./_global").parseFloat,$trim=require("./_string-trim").trim;module.exports=1/$parseFloat(require("./_string-ws")+"-0")!==-Infinity?function parseFloat(str){var string=$trim(String(str),3),result=$parseFloat(string);return result===0&&string.charAt(0)=="-"?-0:result}:$parseFloat},{"./_global":57,"./_string-trim":121,"./_string-ws":122}],101:[function(require,module,exports){var $parseInt=require("./_global").parseInt,$trim=require("./_string-trim").trim,ws=require("./_string-ws"),hex=/^[\-+]?0[xX]/;module.exports=$parseInt(ws+"08")!==8||$parseInt(ws+"0x16")!==22?function parseInt(str,radix){var string=$trim(String(str),3);return $parseInt(string,radix>>>0||(hex.test(string)?16:10))}:$parseInt},{"./_global":57,"./_string-trim":121,"./_string-ws":122}],102:[function(require,module,exports){"use strict";var path=require("./_path"),invoke=require("./_invoke"),aFunction=require("./_a-function");module.exports=function(){var fn=aFunction(this),length=arguments.length,pargs=Array(length),i=0,_=path._,holder=false;while(length>i)if((pargs[i]=arguments[i++])===_)holder=true;return function(){var that=this,aLen=arguments.length,j=0,k=0,args;if(!holder&&!aLen)return invoke(fn,pargs,that);args=pargs.slice();if(holder)for(;length>j;j++)if(args[j]===_)args[j]=arguments[k++];while(aLen>k)args.push(arguments[k++]);return invoke(fn,args,that)}}},{"./_a-function":22,"./_invoke":63,"./_path":103}],103:[function(require,module,exports){module.exports=require("./_global")},{"./_global":57}],104:[function(require,module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}},{}],105:[function(require,module,exports){var redefine=require("./_redefine");module.exports=function(target,src,safe){for(var key in src)redefine(target,key,src[key],safe);return target}},{"./_redefine":106}],106:[function(require,module,exports){var global=require("./_global"),hide=require("./_hide"),has=require("./_has"),SRC=require("./_uid")("src"),TO_STRING="toString",$toString=Function[TO_STRING],TPL=(""+$toString).split(TO_STRING);require("./_core").inspectSource=function(it){return $toString.call(it)};(module.exports=function(O,key,val,safe){var isFunction=typeof val=="function";if(isFunction)has(val,"name")||hide(val,"name",key);if(O[key]===val)return;if(isFunction)has(val,SRC)||hide(val,SRC,O[key]?""+O[key]:TPL.join(String(key)));if(O===global){O[key]=val}else{if(!safe){delete O[key];hide(O,key,val)}else{if(O[key])O[key]=val;else hide(O,key,val)}}})(Function.prototype,TO_STRING,function toString(){return typeof this=="function"&&this[SRC]||$toString.call(this)})},{"./_core":42,"./_global":57,"./_has":58,"./_hide":59,"./_uid":133}],107:[function(require,module,exports){module.exports=function(regExp,replace){var replacer=replace===Object(replace)?function(part){return replace[part]}:replace;return function(it){return String(it).replace(regExp,replacer)}}},{}],108:[function(require,module,exports){module.exports=Object.is||function is(x,y){return x===y?x!==0||1/x===1/y:x!=x&&y!=y}},{}],109:[function(require,module,exports){var isObject=require("./_is-object"),anObject=require("./_an-object");var check=function(O,proto){anObject(O);if(!isObject(proto)&&proto!==null)throw TypeError(proto+": can't set as prototype!")};module.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(test,buggy,set){try{set=require("./_ctx")(Function.call,require("./_object-gopd").f(Object.prototype,"__proto__").set,2);set(test,[]);buggy=!(test instanceof Array)}catch(e){buggy=true}return function setPrototypeOf(O,proto){check(O,proto);if(buggy)O.__proto__=proto;else set(O,proto);return O}}({},false):undefined),check:check}},{"./_an-object":26,"./_ctx":44,"./_is-object":68,"./_object-gopd":89}],110:[function(require,module,exports){"use strict";var global=require("./_global"),dP=require("./_object-dp"),DESCRIPTORS=require("./_descriptors"),SPECIES=require("./_wks")("species");module.exports=function(KEY){var C=global[KEY];if(DESCRIPTORS&&C&&!C[SPECIES])dP.f(C,SPECIES,{configurable:true,get:function(){return this}})}},{"./_descriptors":47,"./_global":57,"./_object-dp":86,"./_wks":136}],111:[function(require,module,exports){var def=require("./_object-dp").f,has=require("./_has"),TAG=require("./_wks")("toStringTag");module.exports=function(it,tag,stat){if(it&&!has(it=stat?it:it.prototype,TAG))def(it,TAG,{configurable:true,value:tag})}},{"./_has":58,"./_object-dp":86,"./_wks":136}],112:[function(require,module,exports){var shared=require("./_shared")("keys"),uid=require("./_uid");module.exports=function(key){return shared[key]||(shared[key]=uid(key))}},{"./_shared":113,"./_uid":133}],113:[function(require,module,exports){var global=require("./_global"),SHARED="__core-js_shared__",store=global[SHARED]||(global[SHARED]={});module.exports=function(key){return store[key]||(store[key]={})}},{"./_global":57}],114:[function(require,module,exports){var anObject=require("./_an-object"),aFunction=require("./_a-function"),SPECIES=require("./_wks")("species");module.exports=function(O,D){var C=anObject(O).constructor,S;return C===undefined||(S=anObject(C)[SPECIES])==undefined?D:aFunction(S)}},{"./_a-function":22,"./_an-object":26,"./_wks":136}],115:[function(require,module,exports){var fails=require("./_fails");module.exports=function(method,arg){return!!method&&fails(function(){arg?method.call(null,function(){},1):method.call(null)})}},{"./_fails":53}],116:[function(require,module,exports){var toInteger=require("./_to-integer"),defined=require("./_defined");module.exports=function(TO_STRING){return function(that,pos){var s=String(defined(that)),i=toInteger(pos),l=s.length,a,b;if(i<0||i>=l)return TO_STRING?"":undefined;a=s.charCodeAt(i);return a<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536}}},{"./_defined":46,"./_to-integer":125}],117:[function(require,module,exports){var isRegExp=require("./_is-regexp"),defined=require("./_defined");module.exports=function(that,searchString,NAME){if(isRegExp(searchString))throw TypeError("String#"+NAME+" doesn't accept regex!");return String(defined(that))}},{"./_defined":46,"./_is-regexp":69}],118:[function(require,module,exports){var $export=require("./_export"),fails=require("./_fails"),defined=require("./_defined"),quot=/"/g;var createHTML=function(string,tag,attribute,value){var S=String(defined(string)),p1="<"+tag;if(attribute!=="")p1+=" "+attribute+'="'+String(value).replace(quot,"&quot;")+'"';return p1+">"+S+"</"+tag+">"};module.exports=function(NAME,exec){var O={};O[NAME]=exec(createHTML);$export($export.P+$export.F*fails(function(){var test=""[NAME]('"');return test!==test.toLowerCase()||test.split('"').length>3}),"String",O)}},{"./_defined":46,"./_export":51,"./_fails":53}],119:[function(require,module,exports){var toLength=require("./_to-length"),repeat=require("./_string-repeat"),defined=require("./_defined");module.exports=function(that,maxLength,fillString,left){var S=String(defined(that)),stringLength=S.length,fillStr=fillString===undefined?" ":String(fillString),intMaxLength=toLength(maxLength);if(intMaxLength<=stringLength||fillStr=="")return S;var fillLen=intMaxLength-stringLength,stringFiller=repeat.call(fillStr,Math.ceil(fillLen/fillStr.length));if(stringFiller.length>fillLen)stringFiller=stringFiller.slice(0,fillLen);return left?stringFiller+S:S+stringFiller}},{"./_defined":46,"./_string-repeat":120,"./_to-length":127}],120:[function(require,module,exports){"use strict";var toInteger=require("./_to-integer"),defined=require("./_defined");module.exports=function repeat(count){var str=String(defined(this)),res="",n=toInteger(count);if(n<0||n==Infinity)throw RangeError("Count can't be negative");
  for(;n>0;(n>>>=1)&&(str+=str))if(n&1)res+=str;return res}},{"./_defined":46,"./_to-integer":125}],121:[function(require,module,exports){var $export=require("./_export"),defined=require("./_defined"),fails=require("./_fails"),spaces=require("./_string-ws"),space="["+spaces+"]",non="​",ltrim=RegExp("^"+space+space+"*"),rtrim=RegExp(space+space+"*$");var exporter=function(KEY,exec,ALIAS){var exp={};var FORCE=fails(function(){return!!spaces[KEY]()||non[KEY]()!=non});var fn=exp[KEY]=FORCE?exec(trim):spaces[KEY];if(ALIAS)exp[ALIAS]=fn;$export($export.P+$export.F*FORCE,"String",exp)};var trim=exporter.trim=function(string,TYPE){string=String(defined(string));if(TYPE&1)string=string.replace(ltrim,"");if(TYPE&2)string=string.replace(rtrim,"");return string};module.exports=exporter},{"./_defined":46,"./_export":51,"./_fails":53,"./_string-ws":122}],122:[function(require,module,exports){module.exports="\t\n\v\f\r   ᠎    "+"         　\u2028\u2029\ufeff"},{}],123:[function(require,module,exports){var ctx=require("./_ctx"),invoke=require("./_invoke"),html=require("./_html"),cel=require("./_dom-create"),global=require("./_global"),process=global.process,setTask=global.setImmediate,clearTask=global.clearImmediate,MessageChannel=global.MessageChannel,counter=0,queue={},ONREADYSTATECHANGE="onreadystatechange",defer,channel,port;var run=function(){var id=+this;if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id];fn()}};var listener=function(event){run.call(event.data)};if(!setTask||!clearTask){setTask=function setImmediate(fn){var args=[],i=1;while(arguments.length>i)args.push(arguments[i++]);queue[++counter]=function(){invoke(typeof fn=="function"?fn:Function(fn),args)};defer(counter);return counter};clearTask=function clearImmediate(id){delete queue[id]};if(require("./_cof")(process)=="process"){defer=function(id){process.nextTick(ctx(run,id,1))}}else if(MessageChannel){channel=new MessageChannel;port=channel.port2;channel.port1.onmessage=listener;defer=ctx(port.postMessage,port,1)}else if(global.addEventListener&&typeof postMessage=="function"&&!global.importScripts){defer=function(id){global.postMessage(id+"","*")};global.addEventListener("message",listener,false)}else if(ONREADYSTATECHANGE in cel("script")){defer=function(id){html.appendChild(cel("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this);run.call(id)}}}else{defer=function(id){setTimeout(ctx(run,id,1),0)}}}module.exports={set:setTask,clear:clearTask}},{"./_cof":37,"./_ctx":44,"./_dom-create":48,"./_global":57,"./_html":60,"./_invoke":63}],124:[function(require,module,exports){var toInteger=require("./_to-integer"),max=Math.max,min=Math.min;module.exports=function(index,length){index=toInteger(index);return index<0?max(index+length,0):min(index,length)}},{"./_to-integer":125}],125:[function(require,module,exports){var ceil=Math.ceil,floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},{}],126:[function(require,module,exports){var IObject=require("./_iobject"),defined=require("./_defined");module.exports=function(it){return IObject(defined(it))}},{"./_defined":46,"./_iobject":64}],127:[function(require,module,exports){var toInteger=require("./_to-integer"),min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},{"./_to-integer":125}],128:[function(require,module,exports){var defined=require("./_defined");module.exports=function(it){return Object(defined(it))}},{"./_defined":46}],129:[function(require,module,exports){var isObject=require("./_is-object");module.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&typeof(fn=it.toString)=="function"&&!isObject(val=fn.call(it)))return val;if(typeof(fn=it.valueOf)=="function"&&!isObject(val=fn.call(it)))return val;if(!S&&typeof(fn=it.toString)=="function"&&!isObject(val=fn.call(it)))return val;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":68}],130:[function(require,module,exports){"use strict";if(require("./_descriptors")){var LIBRARY=require("./_library"),global=require("./_global"),fails=require("./_fails"),$export=require("./_export"),$typed=require("./_typed"),$buffer=require("./_typed-buffer"),ctx=require("./_ctx"),anInstance=require("./_an-instance"),propertyDesc=require("./_property-desc"),hide=require("./_hide"),redefineAll=require("./_redefine-all"),toInteger=require("./_to-integer"),toLength=require("./_to-length"),toIndex=require("./_to-index"),toPrimitive=require("./_to-primitive"),has=require("./_has"),same=require("./_same-value"),classof=require("./_classof"),isObject=require("./_is-object"),toObject=require("./_to-object"),isArrayIter=require("./_is-array-iter"),create=require("./_object-create"),getPrototypeOf=require("./_object-gpo"),gOPN=require("./_object-gopn").f,getIterFn=require("./core.get-iterator-method"),uid=require("./_uid"),wks=require("./_wks"),createArrayMethod=require("./_array-methods"),createArrayIncludes=require("./_array-includes"),speciesConstructor=require("./_species-constructor"),ArrayIterators=require("./es6.array.iterator"),Iterators=require("./_iterators"),$iterDetect=require("./_iter-detect"),setSpecies=require("./_set-species"),arrayFill=require("./_array-fill"),arrayCopyWithin=require("./_array-copy-within"),$DP=require("./_object-dp"),$GOPD=require("./_object-gopd"),dP=$DP.f,gOPD=$GOPD.f,RangeError=global.RangeError,TypeError=global.TypeError,Uint8Array=global.Uint8Array,ARRAY_BUFFER="ArrayBuffer",SHARED_BUFFER="Shared"+ARRAY_BUFFER,BYTES_PER_ELEMENT="BYTES_PER_ELEMENT",PROTOTYPE="prototype",ArrayProto=Array[PROTOTYPE],$ArrayBuffer=$buffer.ArrayBuffer,$DataView=$buffer.DataView,arrayForEach=createArrayMethod(0),arrayFilter=createArrayMethod(2),arraySome=createArrayMethod(3),arrayEvery=createArrayMethod(4),arrayFind=createArrayMethod(5),arrayFindIndex=createArrayMethod(6),arrayIncludes=createArrayIncludes(true),arrayIndexOf=createArrayIncludes(false),arrayValues=ArrayIterators.values,arrayKeys=ArrayIterators.keys,arrayEntries=ArrayIterators.entries,arrayLastIndexOf=ArrayProto.lastIndexOf,arrayReduce=ArrayProto.reduce,arrayReduceRight=ArrayProto.reduceRight,arrayJoin=ArrayProto.join,arraySort=ArrayProto.sort,arraySlice=ArrayProto.slice,arrayToString=ArrayProto.toString,arrayToLocaleString=ArrayProto.toLocaleString,ITERATOR=wks("iterator"),TAG=wks("toStringTag"),TYPED_CONSTRUCTOR=uid("typed_constructor"),DEF_CONSTRUCTOR=uid("def_constructor"),ALL_CONSTRUCTORS=$typed.CONSTR,TYPED_ARRAY=$typed.TYPED,VIEW=$typed.VIEW,WRONG_LENGTH="Wrong length!";var $map=createArrayMethod(1,function(O,length){return allocate(speciesConstructor(O,O[DEF_CONSTRUCTOR]),length)});var LITTLE_ENDIAN=fails(function(){return new Uint8Array(new Uint16Array([1]).buffer)[0]===1});var FORCED_SET=!!Uint8Array&&!!Uint8Array[PROTOTYPE].set&&fails(function(){new Uint8Array(1).set({})});var strictToLength=function(it,SAME){if(it===undefined)throw TypeError(WRONG_LENGTH);var number=+it,length=toLength(it);if(SAME&&!same(number,length))throw RangeError(WRONG_LENGTH);return length};var toOffset=function(it,BYTES){var offset=toInteger(it);if(offset<0||offset%BYTES)throw RangeError("Wrong offset!");return offset};var validate=function(it){if(isObject(it)&&TYPED_ARRAY in it)return it;throw TypeError(it+" is not a typed array!")};var allocate=function(C,length){if(!(isObject(C)&&TYPED_CONSTRUCTOR in C)){throw TypeError("It is not a typed array constructor!")}return new C(length)};var speciesFromList=function(O,list){return fromList(speciesConstructor(O,O[DEF_CONSTRUCTOR]),list)};var fromList=function(C,list){var index=0,length=list.length,result=allocate(C,length);while(length>index)result[index]=list[index++];return result};var addGetter=function(it,key,internal){dP(it,key,{get:function(){return this._d[internal]}})};var $from=function from(source){var O=toObject(source),aLen=arguments.length,mapfn=aLen>1?arguments[1]:undefined,mapping=mapfn!==undefined,iterFn=getIterFn(O),i,length,values,result,step,iterator;if(iterFn!=undefined&&!isArrayIter(iterFn)){for(iterator=iterFn.call(O),values=[],i=0;!(step=iterator.next()).done;i++){values.push(step.value)}O=values}if(mapping&&aLen>2)mapfn=ctx(mapfn,arguments[2],2);for(i=0,length=toLength(O.length),result=allocate(this,length);length>i;i++){result[i]=mapping?mapfn(O[i],i):O[i]}return result};var $of=function of(){var index=0,length=arguments.length,result=allocate(this,length);while(length>index)result[index]=arguments[index++];return result};var TO_LOCALE_BUG=!!Uint8Array&&fails(function(){arrayToLocaleString.call(new Uint8Array(1))});var $toLocaleString=function toLocaleString(){return arrayToLocaleString.apply(TO_LOCALE_BUG?arraySlice.call(validate(this)):validate(this),arguments)};var proto={copyWithin:function copyWithin(target,start){return arrayCopyWithin.call(validate(this),target,start,arguments.length>2?arguments[2]:undefined)},every:function every(callbackfn){return arrayEvery(validate(this),callbackfn,arguments.length>1?arguments[1]:undefined)},fill:function fill(value){return arrayFill.apply(validate(this),arguments)},filter:function filter(callbackfn){return speciesFromList(this,arrayFilter(validate(this),callbackfn,arguments.length>1?arguments[1]:undefined))},find:function find(predicate){return arrayFind(validate(this),predicate,arguments.length>1?arguments[1]:undefined)},findIndex:function findIndex(predicate){return arrayFindIndex(validate(this),predicate,arguments.length>1?arguments[1]:undefined)},forEach:function forEach(callbackfn){arrayForEach(validate(this),callbackfn,arguments.length>1?arguments[1]:undefined)},indexOf:function indexOf(searchElement){return arrayIndexOf(validate(this),searchElement,arguments.length>1?arguments[1]:undefined)},includes:function includes(searchElement){return arrayIncludes(validate(this),searchElement,arguments.length>1?arguments[1]:undefined)},join:function join(separator){return arrayJoin.apply(validate(this),arguments)},lastIndexOf:function lastIndexOf(searchElement){return arrayLastIndexOf.apply(validate(this),arguments)},map:function map(mapfn){return $map(validate(this),mapfn,arguments.length>1?arguments[1]:undefined)},reduce:function reduce(callbackfn){return arrayReduce.apply(validate(this),arguments)},reduceRight:function reduceRight(callbackfn){return arrayReduceRight.apply(validate(this),arguments)},reverse:function reverse(){var that=this,length=validate(that).length,middle=Math.floor(length/2),index=0,value;while(index<middle){value=that[index];that[index++]=that[--length];that[length]=value}return that},some:function some(callbackfn){return arraySome(validate(this),callbackfn,arguments.length>1?arguments[1]:undefined)},sort:function sort(comparefn){return arraySort.call(validate(this),comparefn)},subarray:function subarray(begin,end){var O=validate(this),length=O.length,$begin=toIndex(begin,length);return new(speciesConstructor(O,O[DEF_CONSTRUCTOR]))(O.buffer,O.byteOffset+$begin*O.BYTES_PER_ELEMENT,toLength((end===undefined?length:toIndex(end,length))-$begin))}};var $slice=function slice(start,end){return speciesFromList(this,arraySlice.call(validate(this),start,end))};var $set=function set(arrayLike){validate(this);var offset=toOffset(arguments[1],1),length=this.length,src=toObject(arrayLike),len=toLength(src.length),index=0;if(len+offset>length)throw RangeError(WRONG_LENGTH);while(index<len)this[offset+index]=src[index++]};var $iterators={entries:function entries(){return arrayEntries.call(validate(this))},keys:function keys(){return arrayKeys.call(validate(this))},values:function values(){return arrayValues.call(validate(this))}};var isTAIndex=function(target,key){return isObject(target)&&target[TYPED_ARRAY]&&typeof key!="symbol"&&key in target&&String(+key)==String(key)};var $getDesc=function getOwnPropertyDescriptor(target,key){return isTAIndex(target,key=toPrimitive(key,true))?propertyDesc(2,target[key]):gOPD(target,key)};var $setDesc=function defineProperty(target,key,desc){if(isTAIndex(target,key=toPrimitive(key,true))&&isObject(desc)&&has(desc,"value")&&!has(desc,"get")&&!has(desc,"set")&&!desc.configurable&&(!has(desc,"writable")||desc.writable)&&(!has(desc,"enumerable")||desc.enumerable)){target[key]=desc.value;return target}else return dP(target,key,desc)};if(!ALL_CONSTRUCTORS){$GOPD.f=$getDesc;$DP.f=$setDesc}$export($export.S+$export.F*!ALL_CONSTRUCTORS,"Object",{getOwnPropertyDescriptor:$getDesc,defineProperty:$setDesc});if(fails(function(){arrayToString.call({})})){arrayToString=arrayToLocaleString=function toString(){return arrayJoin.call(this)}}var $TypedArrayPrototype$=redefineAll({},proto);redefineAll($TypedArrayPrototype$,$iterators);hide($TypedArrayPrototype$,ITERATOR,$iterators.values);redefineAll($TypedArrayPrototype$,{slice:$slice,set:$set,constructor:function(){},toString:arrayToString,toLocaleString:$toLocaleString});addGetter($TypedArrayPrototype$,"buffer","b");addGetter($TypedArrayPrototype$,"byteOffset","o");addGetter($TypedArrayPrototype$,"byteLength","l");addGetter($TypedArrayPrototype$,"length","e");dP($TypedArrayPrototype$,TAG,{get:function(){return this[TYPED_ARRAY]}});module.exports=function(KEY,BYTES,wrapper,CLAMPED){CLAMPED=!!CLAMPED;var NAME=KEY+(CLAMPED?"Clamped":"")+"Array",ISNT_UINT8=NAME!="Uint8Array",GETTER="get"+KEY,SETTER="set"+KEY,TypedArray=global[NAME],Base=TypedArray||{},TAC=TypedArray&&getPrototypeOf(TypedArray),FORCED=!TypedArray||!$typed.ABV,O={},TypedArrayPrototype=TypedArray&&TypedArray[PROTOTYPE];var getter=function(that,index){var data=that._d;return data.v[GETTER](index*BYTES+data.o,LITTLE_ENDIAN)};var setter=function(that,index,value){var data=that._d;if(CLAMPED)value=(value=Math.round(value))<0?0:value>255?255:value&255;data.v[SETTER](index*BYTES+data.o,value,LITTLE_ENDIAN)};var addElement=function(that,index){dP(that,index,{get:function(){return getter(this,index)},set:function(value){return setter(this,index,value)},enumerable:true})};if(FORCED){TypedArray=wrapper(function(that,data,$offset,$length){anInstance(that,TypedArray,NAME,"_d");var index=0,offset=0,buffer,byteLength,length,klass;if(!isObject(data)){length=strictToLength(data,true);byteLength=length*BYTES;buffer=new $ArrayBuffer(byteLength)}else if(data instanceof $ArrayBuffer||(klass=classof(data))==ARRAY_BUFFER||klass==SHARED_BUFFER){buffer=data;offset=toOffset($offset,BYTES);var $len=data.byteLength;if($length===undefined){if($len%BYTES)throw RangeError(WRONG_LENGTH);byteLength=$len-offset;if(byteLength<0)throw RangeError(WRONG_LENGTH)}else{byteLength=toLength($length)*BYTES;if(byteLength+offset>$len)throw RangeError(WRONG_LENGTH)}length=byteLength/BYTES}else if(TYPED_ARRAY in data){return fromList(TypedArray,data)}else{return $from.call(TypedArray,data)}hide(that,"_d",{b:buffer,o:offset,l:byteLength,e:length,v:new $DataView(buffer)});while(index<length)addElement(that,index++)});TypedArrayPrototype=TypedArray[PROTOTYPE]=create($TypedArrayPrototype$);hide(TypedArrayPrototype,"constructor",TypedArray)}else if(!$iterDetect(function(iter){new TypedArray(null);new TypedArray(iter)},true)){TypedArray=wrapper(function(that,data,$offset,$length){anInstance(that,TypedArray,NAME);var klass;if(!isObject(data))return new Base(strictToLength(data,ISNT_UINT8));if(data instanceof $ArrayBuffer||(klass=classof(data))==ARRAY_BUFFER||klass==SHARED_BUFFER){return $length!==undefined?new Base(data,toOffset($offset,BYTES),$length):$offset!==undefined?new Base(data,toOffset($offset,BYTES)):new Base(data)}if(TYPED_ARRAY in data)return fromList(TypedArray,data);return $from.call(TypedArray,data)});arrayForEach(TAC!==Function.prototype?gOPN(Base).concat(gOPN(TAC)):gOPN(Base),function(key){if(!(key in TypedArray))hide(TypedArray,key,Base[key])});TypedArray[PROTOTYPE]=TypedArrayPrototype;if(!LIBRARY)TypedArrayPrototype.constructor=TypedArray}var $nativeIterator=TypedArrayPrototype[ITERATOR],CORRECT_ITER_NAME=!!$nativeIterator&&($nativeIterator.name=="values"||$nativeIterator.name==undefined),$iterator=$iterators.values;hide(TypedArray,TYPED_CONSTRUCTOR,true);hide(TypedArrayPrototype,TYPED_ARRAY,NAME);hide(TypedArrayPrototype,VIEW,true);hide(TypedArrayPrototype,DEF_CONSTRUCTOR,TypedArray);if(CLAMPED?new TypedArray(1)[TAG]!=NAME:!(TAG in TypedArrayPrototype)){dP(TypedArrayPrototype,TAG,{get:function(){return NAME}})}O[NAME]=TypedArray;$export($export.G+$export.W+$export.F*(TypedArray!=Base),O);$export($export.S,NAME,{BYTES_PER_ELEMENT:BYTES,from:$from,of:$of});if(!(BYTES_PER_ELEMENT in TypedArrayPrototype))hide(TypedArrayPrototype,BYTES_PER_ELEMENT,BYTES);$export($export.P,NAME,proto);setSpecies(NAME);$export($export.P+$export.F*FORCED_SET,NAME,{set:$set});$export($export.P+$export.F*!CORRECT_ITER_NAME,NAME,$iterators);$export($export.P+$export.F*(TypedArrayPrototype.toString!=arrayToString),NAME,{toString:arrayToString});$export($export.P+$export.F*fails(function(){new TypedArray(1).slice()}),NAME,{slice:$slice});$export($export.P+$export.F*(fails(function(){return[1,2].toLocaleString()!=new TypedArray([1,2]).toLocaleString()})||!fails(function(){TypedArrayPrototype.toLocaleString.call([1,2])})),NAME,{toLocaleString:$toLocaleString});Iterators[NAME]=CORRECT_ITER_NAME?$nativeIterator:$iterator;if(!LIBRARY&&!CORRECT_ITER_NAME)hide(TypedArrayPrototype,ITERATOR,$iterator)}}else module.exports=function(){}},{"./_an-instance":25,"./_array-copy-within":27,"./_array-fill":28,"./_array-includes":30,"./_array-methods":31,"./_classof":36,"./_ctx":44,"./_descriptors":47,"./_export":51,"./_fails":53,"./_global":57,"./_has":58,"./_hide":59,"./_is-array-iter":65,"./_is-object":68,"./_iter-detect":73,"./_iterators":75,"./_library":77,"./_object-create":85,"./_object-dp":86,"./_object-gopd":89,"./_object-gopn":91,"./_object-gpo":93,"./_property-desc":104,"./_redefine-all":105,"./_same-value":108,"./_set-species":110,"./_species-constructor":114,"./_to-index":124,"./_to-integer":125,"./_to-length":127,"./_to-object":128,"./_to-primitive":129,"./_typed":132,"./_typed-buffer":131,"./_uid":133,"./_wks":136,"./core.get-iterator-method":137,"./es6.array.iterator":149}],131:[function(require,module,exports){"use strict";var global=require("./_global"),DESCRIPTORS=require("./_descriptors"),LIBRARY=require("./_library"),$typed=require("./_typed"),hide=require("./_hide"),redefineAll=require("./_redefine-all"),fails=require("./_fails"),anInstance=require("./_an-instance"),toInteger=require("./_to-integer"),toLength=require("./_to-length"),gOPN=require("./_object-gopn").f,dP=require("./_object-dp").f,arrayFill=require("./_array-fill"),setToStringTag=require("./_set-to-string-tag"),ARRAY_BUFFER="ArrayBuffer",DATA_VIEW="DataView",PROTOTYPE="prototype",WRONG_LENGTH="Wrong length!",WRONG_INDEX="Wrong index!",$ArrayBuffer=global[ARRAY_BUFFER],$DataView=global[DATA_VIEW],Math=global.Math,RangeError=global.RangeError,Infinity=global.Infinity,BaseBuffer=$ArrayBuffer,abs=Math.abs,pow=Math.pow,floor=Math.floor,log=Math.log,LN2=Math.LN2,BUFFER="buffer",BYTE_LENGTH="byteLength",BYTE_OFFSET="byteOffset",$BUFFER=DESCRIPTORS?"_b":BUFFER,$LENGTH=DESCRIPTORS?"_l":BYTE_LENGTH,$OFFSET=DESCRIPTORS?"_o":BYTE_OFFSET;var packIEEE754=function(value,mLen,nBytes){var buffer=Array(nBytes),eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?pow(2,-24)-pow(2,-77):0,i=0,s=value<0||value===0&&1/value<0?1:0,e,m,c;value=abs(value);if(value!=value||value===Infinity){m=value!=value?1:0;e=eMax}else{e=floor(log(value)/LN2);if(value*(c=pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*pow(2,mLen);e=e+eBias}else{m=value*pow(2,eBias-1)*pow(2,mLen);e=0}}for(;mLen>=8;buffer[i++]=m&255,m/=256,mLen-=8);e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[i++]=e&255,e/=256,eLen-=8);buffer[--i]|=s*128;return buffer};var unpackIEEE754=function(buffer,mLen,nBytes){var eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=eLen-7,i=nBytes-1,s=buffer[i--],e=s&127,m;s>>=7;for(;nBits>0;e=e*256+buffer[i],i--,nBits-=8);m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[i],i--,nBits-=8);if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:s?-Infinity:Infinity}else{m=m+pow(2,mLen);e=e-eBias}return(s?-1:1)*m*pow(2,e-mLen)};var unpackI32=function(bytes){return bytes[3]<<24|bytes[2]<<16|bytes[1]<<8|bytes[0]};var packI8=function(it){return[it&255]};var packI16=function(it){return[it&255,it>>8&255]};var packI32=function(it){return[it&255,it>>8&255,it>>16&255,it>>24&255]};var packF64=function(it){return packIEEE754(it,52,8)};var packF32=function(it){return packIEEE754(it,23,4)};var addGetter=function(C,key,internal){dP(C[PROTOTYPE],key,{get:function(){return this[internal]}})};var get=function(view,bytes,index,isLittleEndian){var numIndex=+index,intIndex=toInteger(numIndex);if(numIndex!=intIndex||intIndex<0||intIndex+bytes>view[$LENGTH])throw RangeError(WRONG_INDEX);var store=view[$BUFFER]._b,start=intIndex+view[$OFFSET],pack=store.slice(start,start+bytes);return isLittleEndian?pack:pack.reverse()};var set=function(view,bytes,index,conversion,value,isLittleEndian){var numIndex=+index,intIndex=toInteger(numIndex);if(numIndex!=intIndex||intIndex<0||intIndex+bytes>view[$LENGTH])throw RangeError(WRONG_INDEX);var store=view[$BUFFER]._b,start=intIndex+view[$OFFSET],pack=conversion(+value);for(var i=0;i<bytes;i++)store[start+i]=pack[isLittleEndian?i:bytes-i-1]};var validateArrayBufferArguments=function(that,length){anInstance(that,$ArrayBuffer,ARRAY_BUFFER);var numberLength=+length,byteLength=toLength(numberLength);if(numberLength!=byteLength)throw RangeError(WRONG_LENGTH);return byteLength};if(!$typed.ABV){$ArrayBuffer=function ArrayBuffer(length){var byteLength=validateArrayBufferArguments(this,length);this._b=arrayFill.call(Array(byteLength),0);this[$LENGTH]=byteLength};$DataView=function DataView(buffer,byteOffset,byteLength){anInstance(this,$DataView,DATA_VIEW);anInstance(buffer,$ArrayBuffer,DATA_VIEW);var bufferLength=buffer[$LENGTH],offset=toInteger(byteOffset);if(offset<0||offset>bufferLength)throw RangeError("Wrong offset!");byteLength=byteLength===undefined?bufferLength-offset:toLength(byteLength);if(offset+byteLength>bufferLength)throw RangeError(WRONG_LENGTH);this[$BUFFER]=buffer;this[$OFFSET]=offset;this[$LENGTH]=byteLength};if(DESCRIPTORS){addGetter($ArrayBuffer,BYTE_LENGTH,"_l");addGetter($DataView,BUFFER,"_b");addGetter($DataView,BYTE_LENGTH,"_l");addGetter($DataView,BYTE_OFFSET,"_o")}redefineAll($DataView[PROTOTYPE],{getInt8:function getInt8(byteOffset){return get(this,1,byteOffset)[0]<<24>>24},getUint8:function getUint8(byteOffset){return get(this,1,byteOffset)[0]},getInt16:function getInt16(byteOffset){var bytes=get(this,2,byteOffset,arguments[1]);return(bytes[1]<<8|bytes[0])<<16>>16},getUint16:function getUint16(byteOffset){var bytes=get(this,2,byteOffset,arguments[1]);return bytes[1]<<8|bytes[0]},getInt32:function getInt32(byteOffset){return unpackI32(get(this,4,byteOffset,arguments[1]))},getUint32:function getUint32(byteOffset){return unpackI32(get(this,4,byteOffset,arguments[1]))>>>0},getFloat32:function getFloat32(byteOffset){return unpackIEEE754(get(this,4,byteOffset,arguments[1]),23,4)},getFloat64:function getFloat64(byteOffset){return unpackIEEE754(get(this,8,byteOffset,arguments[1]),52,8)},setInt8:function setInt8(byteOffset,value){set(this,1,byteOffset,packI8,value)},setUint8:function setUint8(byteOffset,value){set(this,1,byteOffset,packI8,value)},setInt16:function setInt16(byteOffset,value){set(this,2,byteOffset,packI16,value,arguments[2])},setUint16:function setUint16(byteOffset,value){set(this,2,byteOffset,packI16,value,arguments[2])},setInt32:function setInt32(byteOffset,value){set(this,4,byteOffset,packI32,value,arguments[2])},setUint32:function setUint32(byteOffset,value){set(this,4,byteOffset,packI32,value,arguments[2])},setFloat32:function setFloat32(byteOffset,value){set(this,4,byteOffset,packF32,value,arguments[2])},setFloat64:function setFloat64(byteOffset,value){set(this,8,byteOffset,packF64,value,arguments[2])}})}else{if(!fails(function(){new $ArrayBuffer})||!fails(function(){new $ArrayBuffer(.5)})){$ArrayBuffer=function ArrayBuffer(length){return new BaseBuffer(validateArrayBufferArguments(this,length))};var ArrayBufferProto=$ArrayBuffer[PROTOTYPE]=BaseBuffer[PROTOTYPE];for(var keys=gOPN(BaseBuffer),j=0,key;keys.length>j;){if(!((key=keys[j++])in $ArrayBuffer))hide($ArrayBuffer,key,BaseBuffer[key])}if(!LIBRARY)ArrayBufferProto.constructor=$ArrayBuffer}var view=new $DataView(new $ArrayBuffer(2)),$setInt8=$DataView[PROTOTYPE].setInt8;view.setInt8(0,2147483648);view.setInt8(1,2147483649);if(view.getInt8(0)||!view.getInt8(1))redefineAll($DataView[PROTOTYPE],{setInt8:function setInt8(byteOffset,value){$setInt8.call(this,byteOffset,value<<24>>24)},setUint8:function setUint8(byteOffset,value){$setInt8.call(this,byteOffset,value<<24>>24)}},true)}setToStringTag($ArrayBuffer,ARRAY_BUFFER);setToStringTag($DataView,DATA_VIEW);hide($DataView[PROTOTYPE],$typed.VIEW,true);exports[ARRAY_BUFFER]=$ArrayBuffer;exports[DATA_VIEW]=$DataView},{"./_an-instance":25,"./_array-fill":28,"./_descriptors":47,"./_fails":53,"./_global":57,"./_hide":59,"./_library":77,"./_object-dp":86,"./_object-gopn":91,"./_redefine-all":105,"./_set-to-string-tag":111,"./_to-integer":125,"./_to-length":127,"./_typed":132}],132:[function(require,module,exports){var global=require("./_global"),hide=require("./_hide"),uid=require("./_uid"),TYPED=uid("typed_array"),VIEW=uid("view"),ABV=!!(global.ArrayBuffer&&global.DataView),CONSTR=ABV,i=0,l=9,Typed;var TypedArrayConstructors="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(i<l){if(Typed=global[TypedArrayConstructors[i++]]){hide(Typed.prototype,TYPED,true);hide(Typed.prototype,VIEW,true)}else CONSTR=false}module.exports={ABV:ABV,CONSTR:CONSTR,TYPED:TYPED,VIEW:VIEW}},{"./_global":57,"./_hide":59,"./_uid":133}],133:[function(require,module,exports){var id=0,px=Math.random();module.exports=function(key){return"Symbol(".concat(key===undefined?"":key,")_",(++id+px).toString(36))}},{}],134:[function(require,module,exports){var global=require("./_global"),core=require("./_core"),LIBRARY=require("./_library"),wksExt=require("./_wks-ext"),defineProperty=require("./_object-dp").f;module.exports=function(name){var $Symbol=core.Symbol||(core.Symbol=LIBRARY?{}:global.Symbol||{});if(name.charAt(0)!="_"&&!(name in $Symbol))defineProperty($Symbol,name,{value:wksExt.f(name)})}},{"./_core":42,"./_global":57,"./_library":77,"./_object-dp":86,"./_wks-ext":135}],135:[function(require,module,exports){exports.f=require("./_wks")},{"./_wks":136}],136:[function(require,module,exports){var store=require("./_shared")("wks"),uid=require("./_uid"),Symbol=require("./_global").Symbol,USE_SYMBOL=typeof Symbol=="function";var $exports=module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))};$exports.store=store},{"./_global":57,"./_shared":113,"./_uid":133}],137:[function(require,module,exports){var classof=require("./_classof"),ITERATOR=require("./_wks")("iterator"),Iterators=require("./_iterators");module.exports=require("./_core").getIteratorMethod=function(it){if(it!=undefined)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},{"./_classof":36,"./_core":42,"./_iterators":75,"./_wks":136}],138:[function(require,module,exports){var $export=require("./_export"),$re=require("./_replacer")(/[\\^$*+?.()|[\]{}]/g,"\\$&");$export($export.S,"RegExp",{escape:function escape(it){return $re(it)}})},{"./_export":51,"./_replacer":107}],139:[function(require,module,exports){var $export=require("./_export");$export($export.P,"Array",{copyWithin:require("./_array-copy-within")});require("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":24,"./_array-copy-within":27,"./_export":51}],140:[function(require,module,exports){"use strict";var $export=require("./_export"),$every=require("./_array-methods")(4);$export($export.P+$export.F*!require("./_strict-method")([].every,true),"Array",{every:function every(callbackfn){return $every(this,callbackfn,arguments[1])}})},{"./_array-methods":31,"./_export":51,"./_strict-method":115}],141:[function(require,module,exports){var $export=require("./_export");$export($export.P,"Array",{fill:require("./_array-fill")});require("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":24,"./_array-fill":28,"./_export":51}],142:[function(require,module,exports){"use strict";var $export=require("./_export"),$filter=require("./_array-methods")(2);$export($export.P+$export.F*!require("./_strict-method")([].filter,true),"Array",{filter:function filter(callbackfn){return $filter(this,callbackfn,arguments[1])}})},{"./_array-methods":31,"./_export":51,"./_strict-method":115}],143:[function(require,module,exports){"use strict";var $export=require("./_export"),$find=require("./_array-methods")(6),KEY="findIndex",forced=true;if(KEY in[])Array(1)[KEY](function(){forced=false});$export($export.P+$export.F*forced,"Array",{findIndex:function findIndex(callbackfn){return $find(this,callbackfn,arguments.length>1?arguments[1]:undefined)}});require("./_add-to-unscopables")(KEY)},{"./_add-to-unscopables":24,"./_array-methods":31,"./_export":51}],144:[function(require,module,exports){"use strict";var $export=require("./_export"),$find=require("./_array-methods")(5),KEY="find",forced=true;if(KEY in[])Array(1)[KEY](function(){forced=false});$export($export.P+$export.F*forced,"Array",{find:function find(callbackfn){return $find(this,callbackfn,arguments.length>1?arguments[1]:undefined)}});require("./_add-to-unscopables")(KEY)},{"./_add-to-unscopables":24,"./_array-methods":31,"./_export":51}],145:[function(require,module,exports){"use strict";var $export=require("./_export"),$forEach=require("./_array-methods")(0),STRICT=require("./_strict-method")([].forEach,true);$export($export.P+$export.F*!STRICT,"Array",{forEach:function forEach(callbackfn){return $forEach(this,callbackfn,arguments[1])}})},{"./_array-methods":31,"./_export":51,"./_strict-method":115}],146:[function(require,module,exports){"use strict";var ctx=require("./_ctx"),$export=require("./_export"),toObject=require("./_to-object"),call=require("./_iter-call"),isArrayIter=require("./_is-array-iter"),toLength=require("./_to-length"),createProperty=require("./_create-property"),getIterFn=require("./core.get-iterator-method");$export($export.S+$export.F*!require("./_iter-detect")(function(iter){Array.from(iter)}),"Array",{from:function from(arrayLike){var O=toObject(arrayLike),C=typeof this=="function"?this:Array,aLen=arguments.length,mapfn=aLen>1?arguments[1]:undefined,mapping=mapfn!==undefined,index=0,iterFn=getIterFn(O),length,result,step,iterator;if(mapping)mapfn=ctx(mapfn,aLen>2?arguments[2]:undefined,2);if(iterFn!=undefined&&!(C==Array&&isArrayIter(iterFn))){for(iterator=iterFn.call(O),result=new C;!(step=iterator.next()).done;index++){createProperty(result,index,mapping?call(iterator,mapfn,[step.value,index],true):step.value)}}else{length=toLength(O.length);for(result=new C(length);length>index;index++){createProperty(result,index,mapping?mapfn(O[index],index):O[index])}}result.length=index;return result}})},{"./_create-property":43,"./_ctx":44,"./_export":51,"./_is-array-iter":65,"./_iter-call":70,"./_iter-detect":73,"./_to-length":127,"./_to-object":128,"./core.get-iterator-method":137}],147:[function(require,module,exports){"use strict";var $export=require("./_export"),$indexOf=require("./_array-includes")(false),$native=[].indexOf,NEGATIVE_ZERO=!!$native&&1/[1].indexOf(1,-0)<0;$export($export.P+$export.F*(NEGATIVE_ZERO||!require("./_strict-method")($native)),"Array",{indexOf:function indexOf(searchElement){return NEGATIVE_ZERO?$native.apply(this,arguments)||0:$indexOf(this,searchElement,arguments[1])}})},{"./_array-includes":30,"./_export":51,"./_strict-method":115}],148:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Array",{
  isArray:require("./_is-array")})},{"./_export":51,"./_is-array":66}],149:[function(require,module,exports){"use strict";var addToUnscopables=require("./_add-to-unscopables"),step=require("./_iter-step"),Iterators=require("./_iterators"),toIObject=require("./_to-iobject");module.exports=require("./_iter-define")(Array,"Array",function(iterated,kind){this._t=toIObject(iterated);this._i=0;this._k=kind},function(){var O=this._t,kind=this._k,index=this._i++;if(!O||index>=O.length){this._t=undefined;return step(1)}if(kind=="keys")return step(0,index);if(kind=="values")return step(0,O[index]);return step(0,[index,O[index]])},"values");Iterators.Arguments=Iterators.Array;addToUnscopables("keys");addToUnscopables("values");addToUnscopables("entries")},{"./_add-to-unscopables":24,"./_iter-define":72,"./_iter-step":74,"./_iterators":75,"./_to-iobject":126}],150:[function(require,module,exports){"use strict";var $export=require("./_export"),toIObject=require("./_to-iobject"),arrayJoin=[].join;$export($export.P+$export.F*(require("./_iobject")!=Object||!require("./_strict-method")(arrayJoin)),"Array",{join:function join(separator){return arrayJoin.call(toIObject(this),separator===undefined?",":separator)}})},{"./_export":51,"./_iobject":64,"./_strict-method":115,"./_to-iobject":126}],151:[function(require,module,exports){"use strict";var $export=require("./_export"),toIObject=require("./_to-iobject"),toInteger=require("./_to-integer"),toLength=require("./_to-length"),$native=[].lastIndexOf,NEGATIVE_ZERO=!!$native&&1/[1].lastIndexOf(1,-0)<0;$export($export.P+$export.F*(NEGATIVE_ZERO||!require("./_strict-method")($native)),"Array",{lastIndexOf:function lastIndexOf(searchElement){if(NEGATIVE_ZERO)return $native.apply(this,arguments)||0;var O=toIObject(this),length=toLength(O.length),index=length-1;if(arguments.length>1)index=Math.min(index,toInteger(arguments[1]));if(index<0)index=length+index;for(;index>=0;index--)if(index in O)if(O[index]===searchElement)return index||0;return-1}})},{"./_export":51,"./_strict-method":115,"./_to-integer":125,"./_to-iobject":126,"./_to-length":127}],152:[function(require,module,exports){"use strict";var $export=require("./_export"),$map=require("./_array-methods")(1);$export($export.P+$export.F*!require("./_strict-method")([].map,true),"Array",{map:function map(callbackfn){return $map(this,callbackfn,arguments[1])}})},{"./_array-methods":31,"./_export":51,"./_strict-method":115}],153:[function(require,module,exports){"use strict";var $export=require("./_export"),createProperty=require("./_create-property");$export($export.S+$export.F*require("./_fails")(function(){function F(){}return!(Array.of.call(F)instanceof F)}),"Array",{of:function of(){var index=0,aLen=arguments.length,result=new(typeof this=="function"?this:Array)(aLen);while(aLen>index)createProperty(result,index,arguments[index++]);result.length=aLen;return result}})},{"./_create-property":43,"./_export":51,"./_fails":53}],154:[function(require,module,exports){"use strict";var $export=require("./_export"),$reduce=require("./_array-reduce");$export($export.P+$export.F*!require("./_strict-method")([].reduceRight,true),"Array",{reduceRight:function reduceRight(callbackfn){return $reduce(this,callbackfn,arguments.length,arguments[1],true)}})},{"./_array-reduce":32,"./_export":51,"./_strict-method":115}],155:[function(require,module,exports){"use strict";var $export=require("./_export"),$reduce=require("./_array-reduce");$export($export.P+$export.F*!require("./_strict-method")([].reduce,true),"Array",{reduce:function reduce(callbackfn){return $reduce(this,callbackfn,arguments.length,arguments[1],false)}})},{"./_array-reduce":32,"./_export":51,"./_strict-method":115}],156:[function(require,module,exports){"use strict";var $export=require("./_export"),html=require("./_html"),cof=require("./_cof"),toIndex=require("./_to-index"),toLength=require("./_to-length"),arraySlice=[].slice;$export($export.P+$export.F*require("./_fails")(function(){if(html)arraySlice.call(html)}),"Array",{slice:function slice(begin,end){var len=toLength(this.length),klass=cof(this);end=end===undefined?len:end;if(klass=="Array")return arraySlice.call(this,begin,end);var start=toIndex(begin,len),upTo=toIndex(end,len),size=toLength(upTo-start),cloned=Array(size),i=0;for(;i<size;i++)cloned[i]=klass=="String"?this.charAt(start+i):this[start+i];return cloned}})},{"./_cof":37,"./_export":51,"./_fails":53,"./_html":60,"./_to-index":124,"./_to-length":127}],157:[function(require,module,exports){"use strict";var $export=require("./_export"),$some=require("./_array-methods")(3);$export($export.P+$export.F*!require("./_strict-method")([].some,true),"Array",{some:function some(callbackfn){return $some(this,callbackfn,arguments[1])}})},{"./_array-methods":31,"./_export":51,"./_strict-method":115}],158:[function(require,module,exports){"use strict";var $export=require("./_export"),aFunction=require("./_a-function"),toObject=require("./_to-object"),fails=require("./_fails"),$sort=[].sort,test=[1,2,3];$export($export.P+$export.F*(fails(function(){test.sort(undefined)})||!fails(function(){test.sort(null)})||!require("./_strict-method")($sort)),"Array",{sort:function sort(comparefn){return comparefn===undefined?$sort.call(toObject(this)):$sort.call(toObject(this),aFunction(comparefn))}})},{"./_a-function":22,"./_export":51,"./_fails":53,"./_strict-method":115,"./_to-object":128}],159:[function(require,module,exports){require("./_set-species")("Array")},{"./_set-species":110}],160:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Date",{now:function(){return(new Date).getTime()}})},{"./_export":51}],161:[function(require,module,exports){"use strict";var $export=require("./_export"),fails=require("./_fails"),getTime=Date.prototype.getTime;var lz=function(num){return num>9?num:"0"+num};$export($export.P+$export.F*(fails(function(){return new Date(-5e13-1).toISOString()!="0385-07-25T07:06:39.999Z"})||!fails(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function toISOString(){if(!isFinite(getTime.call(this)))throw RangeError("Invalid time value");var d=this,y=d.getUTCFullYear(),m=d.getUTCMilliseconds(),s=y<0?"-":y>9999?"+":"";return s+("00000"+Math.abs(y)).slice(s?-6:-4)+"-"+lz(d.getUTCMonth()+1)+"-"+lz(d.getUTCDate())+"T"+lz(d.getUTCHours())+":"+lz(d.getUTCMinutes())+":"+lz(d.getUTCSeconds())+"."+(m>99?m:"0"+lz(m))+"Z"}})},{"./_export":51,"./_fails":53}],162:[function(require,module,exports){"use strict";var $export=require("./_export"),toObject=require("./_to-object"),toPrimitive=require("./_to-primitive");$export($export.P+$export.F*require("./_fails")(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1}),"Date",{toJSON:function toJSON(key){var O=toObject(this),pv=toPrimitive(O);return typeof pv=="number"&&!isFinite(pv)?null:O.toISOString()}})},{"./_export":51,"./_fails":53,"./_to-object":128,"./_to-primitive":129}],163:[function(require,module,exports){var TO_PRIMITIVE=require("./_wks")("toPrimitive"),proto=Date.prototype;if(!(TO_PRIMITIVE in proto))require("./_hide")(proto,TO_PRIMITIVE,require("./_date-to-primitive"))},{"./_date-to-primitive":45,"./_hide":59,"./_wks":136}],164:[function(require,module,exports){var DateProto=Date.prototype,INVALID_DATE="Invalid Date",TO_STRING="toString",$toString=DateProto[TO_STRING],getTime=DateProto.getTime;if(new Date(NaN)+""!=INVALID_DATE){require("./_redefine")(DateProto,TO_STRING,function toString(){var value=getTime.call(this);return value===value?$toString.call(this):INVALID_DATE})}},{"./_redefine":106}],165:[function(require,module,exports){var $export=require("./_export");$export($export.P,"Function",{bind:require("./_bind")})},{"./_bind":35,"./_export":51}],166:[function(require,module,exports){"use strict";var isObject=require("./_is-object"),getPrototypeOf=require("./_object-gpo"),HAS_INSTANCE=require("./_wks")("hasInstance"),FunctionProto=Function.prototype;if(!(HAS_INSTANCE in FunctionProto))require("./_object-dp").f(FunctionProto,HAS_INSTANCE,{value:function(O){if(typeof this!="function"||!isObject(O))return false;if(!isObject(this.prototype))return O instanceof this;while(O=getPrototypeOf(O))if(this.prototype===O)return true;return false}})},{"./_is-object":68,"./_object-dp":86,"./_object-gpo":93,"./_wks":136}],167:[function(require,module,exports){var dP=require("./_object-dp").f,createDesc=require("./_property-desc"),has=require("./_has"),FProto=Function.prototype,nameRE=/^\s*function ([^ (]*)/,NAME="name";var isExtensible=Object.isExtensible||function(){return true};NAME in FProto||require("./_descriptors")&&dP(FProto,NAME,{configurable:true,get:function(){try{var that=this,name=(""+that).match(nameRE)[1];has(that,NAME)||!isExtensible(that)||dP(that,NAME,createDesc(5,name));return name}catch(e){return""}}})},{"./_descriptors":47,"./_has":58,"./_object-dp":86,"./_property-desc":104}],168:[function(require,module,exports){"use strict";var strong=require("./_collection-strong");module.exports=require("./_collection")("Map",function(get){return function Map(){return get(this,arguments.length>0?arguments[0]:undefined)}},{get:function get(key){var entry=strong.getEntry(this,key);return entry&&entry.v},set:function set(key,value){return strong.def(this,key===0?0:key,value)}},strong,true)},{"./_collection":41,"./_collection-strong":38}],169:[function(require,module,exports){var $export=require("./_export"),log1p=require("./_math-log1p"),sqrt=Math.sqrt,$acosh=Math.acosh;$export($export.S+$export.F*!($acosh&&Math.floor($acosh(Number.MAX_VALUE))==710&&$acosh(Infinity)==Infinity),"Math",{acosh:function acosh(x){return(x=+x)<1?NaN:x>94906265.62425156?Math.log(x)+Math.LN2:log1p(x-1+sqrt(x-1)*sqrt(x+1))}})},{"./_export":51,"./_math-log1p":79}],170:[function(require,module,exports){var $export=require("./_export"),$asinh=Math.asinh;function asinh(x){return!isFinite(x=+x)||x==0?x:x<0?-asinh(-x):Math.log(x+Math.sqrt(x*x+1))}$export($export.S+$export.F*!($asinh&&1/$asinh(0)>0),"Math",{asinh:asinh})},{"./_export":51}],171:[function(require,module,exports){var $export=require("./_export"),$atanh=Math.atanh;$export($export.S+$export.F*!($atanh&&1/$atanh(-0)<0),"Math",{atanh:function atanh(x){return(x=+x)==0?x:Math.log((1+x)/(1-x))/2}})},{"./_export":51}],172:[function(require,module,exports){var $export=require("./_export"),sign=require("./_math-sign");$export($export.S,"Math",{cbrt:function cbrt(x){return sign(x=+x)*Math.pow(Math.abs(x),1/3)}})},{"./_export":51,"./_math-sign":80}],173:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Math",{clz32:function clz32(x){return(x>>>=0)?31-Math.floor(Math.log(x+.5)*Math.LOG2E):32}})},{"./_export":51}],174:[function(require,module,exports){var $export=require("./_export"),exp=Math.exp;$export($export.S,"Math",{cosh:function cosh(x){return(exp(x=+x)+exp(-x))/2}})},{"./_export":51}],175:[function(require,module,exports){var $export=require("./_export"),$expm1=require("./_math-expm1");$export($export.S+$export.F*($expm1!=Math.expm1),"Math",{expm1:$expm1})},{"./_export":51,"./_math-expm1":78}],176:[function(require,module,exports){var $export=require("./_export"),sign=require("./_math-sign"),pow=Math.pow,EPSILON=pow(2,-52),EPSILON32=pow(2,-23),MAX32=pow(2,127)*(2-EPSILON32),MIN32=pow(2,-126);var roundTiesToEven=function(n){return n+1/EPSILON-1/EPSILON};$export($export.S,"Math",{fround:function fround(x){var $abs=Math.abs(x),$sign=sign(x),a,result;if($abs<MIN32)return $sign*roundTiesToEven($abs/MIN32/EPSILON32)*MIN32*EPSILON32;a=(1+EPSILON32/EPSILON)*$abs;result=a-(a-$abs);if(result>MAX32||result!=result)return $sign*Infinity;return $sign*result}})},{"./_export":51,"./_math-sign":80}],177:[function(require,module,exports){var $export=require("./_export"),abs=Math.abs;$export($export.S,"Math",{hypot:function hypot(value1,value2){var sum=0,i=0,aLen=arguments.length,larg=0,arg,div;while(i<aLen){arg=abs(arguments[i++]);if(larg<arg){div=larg/arg;sum=sum*div*div+1;larg=arg}else if(arg>0){div=arg/larg;sum+=div*div}else sum+=arg}return larg===Infinity?Infinity:larg*Math.sqrt(sum)}})},{"./_export":51}],178:[function(require,module,exports){var $export=require("./_export"),$imul=Math.imul;$export($export.S+$export.F*require("./_fails")(function(){return $imul(4294967295,5)!=-5||$imul.length!=2}),"Math",{imul:function imul(x,y){var UINT16=65535,xn=+x,yn=+y,xl=UINT16&xn,yl=UINT16&yn;return 0|xl*yl+((UINT16&xn>>>16)*yl+xl*(UINT16&yn>>>16)<<16>>>0)}})},{"./_export":51,"./_fails":53}],179:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Math",{log10:function log10(x){return Math.log(x)/Math.LN10}})},{"./_export":51}],180:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Math",{log1p:require("./_math-log1p")})},{"./_export":51,"./_math-log1p":79}],181:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Math",{log2:function log2(x){return Math.log(x)/Math.LN2}})},{"./_export":51}],182:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Math",{sign:require("./_math-sign")})},{"./_export":51,"./_math-sign":80}],183:[function(require,module,exports){var $export=require("./_export"),expm1=require("./_math-expm1"),exp=Math.exp;$export($export.S+$export.F*require("./_fails")(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function sinh(x){return Math.abs(x=+x)<1?(expm1(x)-expm1(-x))/2:(exp(x-1)-exp(-x-1))*(Math.E/2)}})},{"./_export":51,"./_fails":53,"./_math-expm1":78}],184:[function(require,module,exports){var $export=require("./_export"),expm1=require("./_math-expm1"),exp=Math.exp;$export($export.S,"Math",{tanh:function tanh(x){var a=expm1(x=+x),b=expm1(-x);return a==Infinity?1:b==Infinity?-1:(a-b)/(exp(x)+exp(-x))}})},{"./_export":51,"./_math-expm1":78}],185:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Math",{trunc:function trunc(it){return(it>0?Math.floor:Math.ceil)(it)}})},{"./_export":51}],186:[function(require,module,exports){"use strict";var global=require("./_global"),has=require("./_has"),cof=require("./_cof"),inheritIfRequired=require("./_inherit-if-required"),toPrimitive=require("./_to-primitive"),fails=require("./_fails"),gOPN=require("./_object-gopn").f,gOPD=require("./_object-gopd").f,dP=require("./_object-dp").f,$trim=require("./_string-trim").trim,NUMBER="Number",$Number=global[NUMBER],Base=$Number,proto=$Number.prototype,BROKEN_COF=cof(require("./_object-create")(proto))==NUMBER,TRIM="trim"in String.prototype;var toNumber=function(argument){var it=toPrimitive(argument,false);if(typeof it=="string"&&it.length>2){it=TRIM?it.trim():$trim(it,3);var first=it.charCodeAt(0),third,radix,maxCode;if(first===43||first===45){third=it.charCodeAt(2);if(third===88||third===120)return NaN}else if(first===48){switch(it.charCodeAt(1)){case 66:case 98:radix=2;maxCode=49;break;case 79:case 111:radix=8;maxCode=55;break;default:return+it}for(var digits=it.slice(2),i=0,l=digits.length,code;i<l;i++){code=digits.charCodeAt(i);if(code<48||code>maxCode)return NaN}return parseInt(digits,radix)}}return+it};if(!$Number(" 0o1")||!$Number("0b1")||$Number("+0x1")){$Number=function Number(value){var it=arguments.length<1?0:value,that=this;return that instanceof $Number&&(BROKEN_COF?fails(function(){proto.valueOf.call(that)}):cof(that)!=NUMBER)?inheritIfRequired(new Base(toNumber(it)),that,$Number):toNumber(it)};for(var keys=require("./_descriptors")?gOPN(Base):("MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,"+"EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,"+"MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger").split(","),j=0,key;keys.length>j;j++){if(has(Base,key=keys[j])&&!has($Number,key)){dP($Number,key,gOPD(Base,key))}}$Number.prototype=proto;proto.constructor=$Number;require("./_redefine")(global,NUMBER,$Number)}},{"./_cof":37,"./_descriptors":47,"./_fails":53,"./_global":57,"./_has":58,"./_inherit-if-required":62,"./_object-create":85,"./_object-dp":86,"./_object-gopd":89,"./_object-gopn":91,"./_redefine":106,"./_string-trim":121,"./_to-primitive":129}],187:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":51}],188:[function(require,module,exports){var $export=require("./_export"),_isFinite=require("./_global").isFinite;$export($export.S,"Number",{isFinite:function isFinite(it){return typeof it=="number"&&_isFinite(it)}})},{"./_export":51,"./_global":57}],189:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Number",{isInteger:require("./_is-integer")})},{"./_export":51,"./_is-integer":67}],190:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Number",{isNaN:function isNaN(number){return number!=number}})},{"./_export":51}],191:[function(require,module,exports){var $export=require("./_export"),isInteger=require("./_is-integer"),abs=Math.abs;$export($export.S,"Number",{isSafeInteger:function isSafeInteger(number){return isInteger(number)&&abs(number)<=9007199254740991}})},{"./_export":51,"./_is-integer":67}],192:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":51}],193:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":51}],194:[function(require,module,exports){var $export=require("./_export"),$parseFloat=require("./_parse-float");$export($export.S+$export.F*(Number.parseFloat!=$parseFloat),"Number",{parseFloat:$parseFloat})},{"./_export":51,"./_parse-float":100}],195:[function(require,module,exports){var $export=require("./_export"),$parseInt=require("./_parse-int");$export($export.S+$export.F*(Number.parseInt!=$parseInt),"Number",{parseInt:$parseInt})},{"./_export":51,"./_parse-int":101}],196:[function(require,module,exports){"use strict";var $export=require("./_export"),toInteger=require("./_to-integer"),aNumberValue=require("./_a-number-value"),repeat=require("./_string-repeat"),$toFixed=1..toFixed,floor=Math.floor,data=[0,0,0,0,0,0],ERROR="Number.toFixed: incorrect invocation!",ZERO="0";var multiply=function(n,c){var i=-1,c2=c;while(++i<6){c2+=n*data[i];data[i]=c2%1e7;c2=floor(c2/1e7)}};var divide=function(n){var i=6,c=0;while(--i>=0){c+=data[i];data[i]=floor(c/n);c=c%n*1e7}};var numToString=function(){var i=6,s="";while(--i>=0){if(s!==""||i===0||data[i]!==0){var t=String(data[i]);s=s===""?t:s+repeat.call(ZERO,7-t.length)+t}}return s};var pow=function(x,n,acc){return n===0?acc:n%2===1?pow(x,n-1,acc*x):pow(x*x,n/2,acc)};var log=function(x){var n=0,x2=x;while(x2>=4096){n+=12;x2/=4096}while(x2>=2){n+=1;x2/=2}return n};$export($export.P+$export.F*(!!$toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||(0xde0b6b3a7640080).toFixed(0)!=="1000000000000000128")||!require("./_fails")(function(){$toFixed.call({})})),"Number",{toFixed:function toFixed(fractionDigits){var x=aNumberValue(this,ERROR),f=toInteger(fractionDigits),s="",m=ZERO,e,z,j,k;if(f<0||f>20)throw RangeError(ERROR);if(x!=x)return"NaN";if(x<=-1e21||x>=1e21)return String(x);if(x<0){s="-";x=-x}if(x>1e-21){e=log(x*pow(2,69,1))-69;z=e<0?x*pow(2,-e,1):x/pow(2,e,1);z*=4503599627370496;e=52-e;if(e>0){multiply(0,z);j=f;while(j>=7){multiply(1e7,0);j-=7}multiply(pow(10,j,1),0);j=e-1;while(j>=23){divide(1<<23);j-=23}divide(1<<j);multiply(1,1);divide(2);m=numToString()}else{multiply(0,z);multiply(1<<-e,0);m=numToString()+repeat.call(ZERO,f)}}if(f>0){k=m.length;m=s+(k<=f?"0."+repeat.call(ZERO,f-k)+m:m.slice(0,k-f)+"."+m.slice(k-f))}else{m=s+m}return m}})},{"./_a-number-value":23,"./_export":51,"./_fails":53,"./_string-repeat":120,"./_to-integer":125}],197:[function(require,module,exports){"use strict";var $export=require("./_export"),$fails=require("./_fails"),aNumberValue=require("./_a-number-value"),$toPrecision=1..toPrecision;$export($export.P+$export.F*($fails(function(){return $toPrecision.call(1,undefined)!=="1"})||!$fails(function(){$toPrecision.call({})})),"Number",{toPrecision:function toPrecision(precision){var that=aNumberValue(this,"Number#toPrecision: incorrect invocation!");return precision===undefined?$toPrecision.call(that):$toPrecision.call(that,precision)}})},{"./_a-number-value":23,"./_export":51,"./_fails":53}],198:[function(require,module,exports){var $export=require("./_export");$export($export.S+$export.F,"Object",{assign:require("./_object-assign")})},{"./_export":51,"./_object-assign":84}],199:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Object",{create:require("./_object-create")})},{"./_export":51,"./_object-create":85}],200:[function(require,module,exports){var $export=require("./_export");$export($export.S+$export.F*!require("./_descriptors"),"Object",{defineProperties:require("./_object-dps")})},{"./_descriptors":47,"./_export":51,"./_object-dps":87}],201:[function(require,module,exports){var $export=require("./_export");$export($export.S+$export.F*!require("./_descriptors"),"Object",{defineProperty:require("./_object-dp").f})},{"./_descriptors":47,"./_export":51,"./_object-dp":86}],202:[function(require,module,exports){var isObject=require("./_is-object"),meta=require("./_meta").onFreeze;require("./_object-sap")("freeze",function($freeze){return function freeze(it){return $freeze&&isObject(it)?$freeze(meta(it)):it}})},{"./_is-object":68,"./_meta":81,"./_object-sap":97}],203:[function(require,module,exports){var toIObject=require("./_to-iobject"),$getOwnPropertyDescriptor=require("./_object-gopd").f;require("./_object-sap")("getOwnPropertyDescriptor",function(){return function getOwnPropertyDescriptor(it,key){return $getOwnPropertyDescriptor(toIObject(it),key)}})},{"./_object-gopd":89,"./_object-sap":97,"./_to-iobject":126}],204:[function(require,module,exports){require("./_object-sap")("getOwnPropertyNames",function(){return require("./_object-gopn-ext").f})},{"./_object-gopn-ext":90,"./_object-sap":97}],205:[function(require,module,exports){var toObject=require("./_to-object"),$getPrototypeOf=require("./_object-gpo");require("./_object-sap")("getPrototypeOf",function(){return function getPrototypeOf(it){return $getPrototypeOf(toObject(it))}})},{"./_object-gpo":93,"./_object-sap":97,"./_to-object":128}],206:[function(require,module,exports){var isObject=require("./_is-object");require("./_object-sap")("isExtensible",function($isExtensible){return function isExtensible(it){return isObject(it)?$isExtensible?$isExtensible(it):true:false}})},{"./_is-object":68,"./_object-sap":97}],207:[function(require,module,exports){var isObject=require("./_is-object");require("./_object-sap")("isFrozen",function($isFrozen){return function isFrozen(it){return isObject(it)?$isFrozen?$isFrozen(it):false:true}})},{"./_is-object":68,"./_object-sap":97}],208:[function(require,module,exports){var isObject=require("./_is-object");require("./_object-sap")("isSealed",function($isSealed){return function isSealed(it){return isObject(it)?$isSealed?$isSealed(it):false:true}})},{"./_is-object":68,"./_object-sap":97}],209:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Object",{is:require("./_same-value")})},{"./_export":51,"./_same-value":108}],210:[function(require,module,exports){var toObject=require("./_to-object"),$keys=require("./_object-keys");require("./_object-sap")("keys",function(){return function keys(it){return $keys(toObject(it))}})},{"./_object-keys":95,"./_object-sap":97,"./_to-object":128}],211:[function(require,module,exports){var isObject=require("./_is-object"),meta=require("./_meta").onFreeze;require("./_object-sap")("preventExtensions",function($preventExtensions){return function preventExtensions(it){return $preventExtensions&&isObject(it)?$preventExtensions(meta(it)):it}})},{"./_is-object":68,"./_meta":81,"./_object-sap":97}],212:[function(require,module,exports){var isObject=require("./_is-object"),meta=require("./_meta").onFreeze;require("./_object-sap")("seal",function($seal){return function seal(it){return $seal&&isObject(it)?$seal(meta(it)):it}})},{"./_is-object":68,"./_meta":81,"./_object-sap":97}],213:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Object",{setPrototypeOf:require("./_set-proto").set})},{"./_export":51,"./_set-proto":109}],214:[function(require,module,exports){"use strict";var classof=require("./_classof"),test={};test[require("./_wks")("toStringTag")]="z";if(test+""!="[object z]"){require("./_redefine")(Object.prototype,"toString",function toString(){return"[object "+classof(this)+"]"},true)}},{"./_classof":36,"./_redefine":106,"./_wks":136}],215:[function(require,module,exports){var $export=require("./_export"),$parseFloat=require("./_parse-float");$export($export.G+$export.F*(parseFloat!=$parseFloat),{parseFloat:$parseFloat})},{"./_export":51,"./_parse-float":100}],216:[function(require,module,exports){var $export=require("./_export"),$parseInt=require("./_parse-int");$export($export.G+$export.F*(parseInt!=$parseInt),{parseInt:$parseInt})},{"./_export":51,"./_parse-int":101}],217:[function(require,module,exports){"use strict";var LIBRARY=require("./_library"),global=require("./_global"),ctx=require("./_ctx"),classof=require("./_classof"),$export=require("./_export"),isObject=require("./_is-object"),aFunction=require("./_a-function"),anInstance=require("./_an-instance"),forOf=require("./_for-of"),speciesConstructor=require("./_species-constructor"),task=require("./_task").set,microtask=require("./_microtask")(),PROMISE="Promise",TypeError=global.TypeError,process=global.process,$Promise=global[PROMISE],process=global.process,isNode=classof(process)=="process",empty=function(){},Internal,GenericPromiseCapability,Wrapper;var USE_NATIVE=!!function(){try{var promise=$Promise.resolve(1),FakePromise=(promise.constructor={})[require("./_wks")("species")]=function(exec){exec(empty,empty)};return(isNode||typeof PromiseRejectionEvent=="function")&&promise.then(empty)instanceof FakePromise}catch(e){}}();var sameConstructor=function(a,b){return a===b||a===$Promise&&b===Wrapper};var isThenable=function(it){var then;return isObject(it)&&typeof(then=it.then)=="function"?then:false};var newPromiseCapability=function(C){return sameConstructor($Promise,C)?new PromiseCapability(C):new GenericPromiseCapability(C)};var PromiseCapability=GenericPromiseCapability=function(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(resolve!==undefined||reject!==undefined)throw TypeError("Bad Promise constructor");resolve=$$resolve;reject=$$reject});this.resolve=aFunction(resolve);this.reject=aFunction(reject)};var perform=function(exec){try{exec()}catch(e){return{error:e}}};var notify=function(promise,isReject){if(promise._n)return;promise._n=true;var chain=promise._c;microtask(function(){var value=promise._v,ok=promise._s==1,i=0;var run=function(reaction){var handler=ok?reaction.ok:reaction.fail,resolve=reaction.resolve,reject=reaction.reject,domain=reaction.domain,result,then;try{if(handler){if(!ok){if(promise._h==2)onHandleUnhandled(promise);promise._h=1}if(handler===true)result=value;else{if(domain)domain.enter();result=handler(value);if(domain)domain.exit()}if(result===reaction.promise){reject(TypeError("Promise-chain cycle"))}else if(then=isThenable(result)){then.call(result,resolve,reject)}else resolve(result)}else reject(value)}catch(e){reject(e)}};while(chain.length>i)run(chain[i++]);promise._c=[];promise._n=false;if(isReject&&!promise._h)onUnhandled(promise)})};var onUnhandled=function(promise){task.call(global,function(){var value=promise._v,abrupt,handler,console;if(isUnhandled(promise)){abrupt=perform(function(){if(isNode){process.emit("unhandledRejection",value,promise)}else if(handler=global.onunhandledrejection){handler({promise:promise,reason:value})}else if((console=global.console)&&console.error){console.error("Unhandled promise rejection",value)}});promise._h=isNode||isUnhandled(promise)?2:1}promise._a=undefined;if(abrupt)throw abrupt.error})};var isUnhandled=function(promise){if(promise._h==1)return false;var chain=promise._a||promise._c,i=0,reaction;while(chain.length>i){reaction=chain[i++];if(reaction.fail||!isUnhandled(reaction.promise))return false}return true};var onHandleUnhandled=function(promise){task.call(global,function(){var handler;if(isNode){process.emit("rejectionHandled",promise)}else if(handler=global.onrejectionhandled){handler({promise:promise,reason:promise._v})}})};var $reject=function(value){var promise=this;if(promise._d)return;promise._d=true;promise=promise._w||promise;promise._v=value;promise._s=2;if(!promise._a)promise._a=promise._c.slice();notify(promise,true)};var $resolve=function(value){var promise=this,then;if(promise._d)return;promise._d=true;promise=promise._w||promise;try{if(promise===value)throw TypeError("Promise can't be resolved itself");if(then=isThenable(value)){microtask(function(){var wrapper={_w:promise,_d:false};try{then.call(value,ctx($resolve,wrapper,1),ctx($reject,wrapper,1))}catch(e){$reject.call(wrapper,e)}})}else{promise._v=value;promise._s=1;notify(promise,false)}}catch(e){$reject.call({_w:promise,_d:false},e)}};if(!USE_NATIVE){$Promise=function Promise(executor){anInstance(this,$Promise,PROMISE,"_h");aFunction(executor);Internal.call(this);try{executor(ctx($resolve,this,1),ctx($reject,this,1))}catch(err){$reject.call(this,err)}};Internal=function Promise(executor){this._c=[];this._a=undefined;this._s=0;this._d=false;this._v=undefined;this._h=0;this._n=false};Internal.prototype=require("./_redefine-all")($Promise.prototype,{then:function then(onFulfilled,onRejected){var reaction=newPromiseCapability(speciesConstructor(this,$Promise));reaction.ok=typeof onFulfilled=="function"?onFulfilled:true;reaction.fail=typeof onRejected=="function"&&onRejected;reaction.domain=isNode?process.domain:undefined;this._c.push(reaction);if(this._a)this._a.push(reaction);if(this._s)notify(this,false);return reaction.promise},catch:function(onRejected){return this.then(undefined,onRejected)}});PromiseCapability=function(){var promise=new Internal;this.promise=promise;this.resolve=ctx($resolve,promise,1);this.reject=ctx($reject,promise,1)}}$export($export.G+$export.W+$export.F*!USE_NATIVE,{Promise:$Promise});require("./_set-to-string-tag")($Promise,PROMISE);require("./_set-species")(PROMISE);Wrapper=require("./_core")[PROMISE];$export($export.S+$export.F*!USE_NATIVE,PROMISE,{reject:function reject(r){var capability=newPromiseCapability(this),$$reject=capability.reject;$$reject(r);return capability.promise}});$export($export.S+$export.F*(LIBRARY||!USE_NATIVE),PROMISE,{resolve:function resolve(x){if(x instanceof $Promise&&sameConstructor(x.constructor,this))return x;var capability=newPromiseCapability(this),$$resolve=capability.resolve;$$resolve(x);return capability.promise}});$export($export.S+$export.F*!(USE_NATIVE&&require("./_iter-detect")(function(iter){$Promise.all(iter)["catch"](empty)})),PROMISE,{all:function all(iterable){var C=this,capability=newPromiseCapability(C),resolve=capability.resolve,reject=capability.reject;var abrupt=perform(function(){var values=[],index=0,remaining=1;forOf(iterable,false,function(promise){var $index=index++,alreadyCalled=false;values.push(undefined);remaining++;C.resolve(promise).then(function(value){if(alreadyCalled)return;alreadyCalled=true;values[$index]=value;--remaining||resolve(values)},reject)});--remaining||resolve(values)});if(abrupt)reject(abrupt.error);return capability.promise},race:function race(iterable){var C=this,capability=newPromiseCapability(C),reject=capability.reject;var abrupt=perform(function(){forOf(iterable,false,function(promise){C.resolve(promise).then(capability.resolve,reject)})});if(abrupt)reject(abrupt.error);return capability.promise}})},{"./_a-function":22,"./_an-instance":25,
  "./_classof":36,"./_core":42,"./_ctx":44,"./_export":51,"./_for-of":56,"./_global":57,"./_is-object":68,"./_iter-detect":73,"./_library":77,"./_microtask":83,"./_redefine-all":105,"./_set-species":110,"./_set-to-string-tag":111,"./_species-constructor":114,"./_task":123,"./_wks":136}],218:[function(require,module,exports){var $export=require("./_export"),aFunction=require("./_a-function"),anObject=require("./_an-object"),rApply=(require("./_global").Reflect||{}).apply,fApply=Function.apply;$export($export.S+$export.F*!require("./_fails")(function(){rApply(function(){})}),"Reflect",{apply:function apply(target,thisArgument,argumentsList){var T=aFunction(target),L=anObject(argumentsList);return rApply?rApply(T,thisArgument,L):fApply.call(T,thisArgument,L)}})},{"./_a-function":22,"./_an-object":26,"./_export":51,"./_fails":53,"./_global":57}],219:[function(require,module,exports){var $export=require("./_export"),create=require("./_object-create"),aFunction=require("./_a-function"),anObject=require("./_an-object"),isObject=require("./_is-object"),fails=require("./_fails"),bind=require("./_bind"),rConstruct=(require("./_global").Reflect||{}).construct;var NEW_TARGET_BUG=fails(function(){function F(){}return!(rConstruct(function(){},[],F)instanceof F)});var ARGS_BUG=!fails(function(){rConstruct(function(){})});$export($export.S+$export.F*(NEW_TARGET_BUG||ARGS_BUG),"Reflect",{construct:function construct(Target,args){aFunction(Target);anObject(args);var newTarget=arguments.length<3?Target:aFunction(arguments[2]);if(ARGS_BUG&&!NEW_TARGET_BUG)return rConstruct(Target,args,newTarget);if(Target==newTarget){switch(args.length){case 0:return new Target;case 1:return new Target(args[0]);case 2:return new Target(args[0],args[1]);case 3:return new Target(args[0],args[1],args[2]);case 4:return new Target(args[0],args[1],args[2],args[3])}var $args=[null];$args.push.apply($args,args);return new(bind.apply(Target,$args))}var proto=newTarget.prototype,instance=create(isObject(proto)?proto:Object.prototype),result=Function.apply.call(Target,instance,args);return isObject(result)?result:instance}})},{"./_a-function":22,"./_an-object":26,"./_bind":35,"./_export":51,"./_fails":53,"./_global":57,"./_is-object":68,"./_object-create":85}],220:[function(require,module,exports){var dP=require("./_object-dp"),$export=require("./_export"),anObject=require("./_an-object"),toPrimitive=require("./_to-primitive");$export($export.S+$export.F*require("./_fails")(function(){Reflect.defineProperty(dP.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function defineProperty(target,propertyKey,attributes){anObject(target);propertyKey=toPrimitive(propertyKey,true);anObject(attributes);try{dP.f(target,propertyKey,attributes);return true}catch(e){return false}}})},{"./_an-object":26,"./_export":51,"./_fails":53,"./_object-dp":86,"./_to-primitive":129}],221:[function(require,module,exports){var $export=require("./_export"),gOPD=require("./_object-gopd").f,anObject=require("./_an-object");$export($export.S,"Reflect",{deleteProperty:function deleteProperty(target,propertyKey){var desc=gOPD(anObject(target),propertyKey);return desc&&!desc.configurable?false:delete target[propertyKey]}})},{"./_an-object":26,"./_export":51,"./_object-gopd":89}],222:[function(require,module,exports){"use strict";var $export=require("./_export"),anObject=require("./_an-object");var Enumerate=function(iterated){this._t=anObject(iterated);this._i=0;var keys=this._k=[],key;for(key in iterated)keys.push(key)};require("./_iter-create")(Enumerate,"Object",function(){var that=this,keys=that._k,key;do{if(that._i>=keys.length)return{value:undefined,done:true}}while(!((key=keys[that._i++])in that._t));return{value:key,done:false}});$export($export.S,"Reflect",{enumerate:function enumerate(target){return new Enumerate(target)}})},{"./_an-object":26,"./_export":51,"./_iter-create":71}],223:[function(require,module,exports){var gOPD=require("./_object-gopd"),$export=require("./_export"),anObject=require("./_an-object");$export($export.S,"Reflect",{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(target,propertyKey){return gOPD.f(anObject(target),propertyKey)}})},{"./_an-object":26,"./_export":51,"./_object-gopd":89}],224:[function(require,module,exports){var $export=require("./_export"),getProto=require("./_object-gpo"),anObject=require("./_an-object");$export($export.S,"Reflect",{getPrototypeOf:function getPrototypeOf(target){return getProto(anObject(target))}})},{"./_an-object":26,"./_export":51,"./_object-gpo":93}],225:[function(require,module,exports){var gOPD=require("./_object-gopd"),getPrototypeOf=require("./_object-gpo"),has=require("./_has"),$export=require("./_export"),isObject=require("./_is-object"),anObject=require("./_an-object");function get(target,propertyKey){var receiver=arguments.length<3?target:arguments[2],desc,proto;if(anObject(target)===receiver)return target[propertyKey];if(desc=gOPD.f(target,propertyKey))return has(desc,"value")?desc.value:desc.get!==undefined?desc.get.call(receiver):undefined;if(isObject(proto=getPrototypeOf(target)))return get(proto,propertyKey,receiver)}$export($export.S,"Reflect",{get:get})},{"./_an-object":26,"./_export":51,"./_has":58,"./_is-object":68,"./_object-gopd":89,"./_object-gpo":93}],226:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Reflect",{has:function has(target,propertyKey){return propertyKey in target}})},{"./_export":51}],227:[function(require,module,exports){var $export=require("./_export"),anObject=require("./_an-object"),$isExtensible=Object.isExtensible;$export($export.S,"Reflect",{isExtensible:function isExtensible(target){anObject(target);return $isExtensible?$isExtensible(target):true}})},{"./_an-object":26,"./_export":51}],228:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Reflect",{ownKeys:require("./_own-keys")})},{"./_export":51,"./_own-keys":99}],229:[function(require,module,exports){var $export=require("./_export"),anObject=require("./_an-object"),$preventExtensions=Object.preventExtensions;$export($export.S,"Reflect",{preventExtensions:function preventExtensions(target){anObject(target);try{if($preventExtensions)$preventExtensions(target);return true}catch(e){return false}}})},{"./_an-object":26,"./_export":51}],230:[function(require,module,exports){var $export=require("./_export"),setProto=require("./_set-proto");if(setProto)$export($export.S,"Reflect",{setPrototypeOf:function setPrototypeOf(target,proto){setProto.check(target,proto);try{setProto.set(target,proto);return true}catch(e){return false}}})},{"./_export":51,"./_set-proto":109}],231:[function(require,module,exports){var dP=require("./_object-dp"),gOPD=require("./_object-gopd"),getPrototypeOf=require("./_object-gpo"),has=require("./_has"),$export=require("./_export"),createDesc=require("./_property-desc"),anObject=require("./_an-object"),isObject=require("./_is-object");function set(target,propertyKey,V){var receiver=arguments.length<4?target:arguments[3],ownDesc=gOPD.f(anObject(target),propertyKey),existingDescriptor,proto;if(!ownDesc){if(isObject(proto=getPrototypeOf(target))){return set(proto,propertyKey,V,receiver)}ownDesc=createDesc(0)}if(has(ownDesc,"value")){if(ownDesc.writable===false||!isObject(receiver))return false;existingDescriptor=gOPD.f(receiver,propertyKey)||createDesc(0);existingDescriptor.value=V;dP.f(receiver,propertyKey,existingDescriptor);return true}return ownDesc.set===undefined?false:(ownDesc.set.call(receiver,V),true)}$export($export.S,"Reflect",{set:set})},{"./_an-object":26,"./_export":51,"./_has":58,"./_is-object":68,"./_object-dp":86,"./_object-gopd":89,"./_object-gpo":93,"./_property-desc":104}],232:[function(require,module,exports){var global=require("./_global"),inheritIfRequired=require("./_inherit-if-required"),dP=require("./_object-dp").f,gOPN=require("./_object-gopn").f,isRegExp=require("./_is-regexp"),$flags=require("./_flags"),$RegExp=global.RegExp,Base=$RegExp,proto=$RegExp.prototype,re1=/a/g,re2=/a/g,CORRECT_NEW=new $RegExp(re1)!==re1;if(require("./_descriptors")&&(!CORRECT_NEW||require("./_fails")(function(){re2[require("./_wks")("match")]=false;return $RegExp(re1)!=re1||$RegExp(re2)==re2||$RegExp(re1,"i")!="/a/i"}))){$RegExp=function RegExp(p,f){var tiRE=this instanceof $RegExp,piRE=isRegExp(p),fiU=f===undefined;return!tiRE&&piRE&&p.constructor===$RegExp&&fiU?p:inheritIfRequired(CORRECT_NEW?new Base(piRE&&!fiU?p.source:p,f):Base((piRE=p instanceof $RegExp)?p.source:p,piRE&&fiU?$flags.call(p):f),tiRE?this:proto,$RegExp)};var proxy=function(key){key in $RegExp||dP($RegExp,key,{configurable:true,get:function(){return Base[key]},set:function(it){Base[key]=it}})};for(var keys=gOPN(Base),i=0;keys.length>i;)proxy(keys[i++]);proto.constructor=$RegExp;$RegExp.prototype=proto;require("./_redefine")(global,"RegExp",$RegExp)}require("./_set-species")("RegExp")},{"./_descriptors":47,"./_fails":53,"./_flags":55,"./_global":57,"./_inherit-if-required":62,"./_is-regexp":69,"./_object-dp":86,"./_object-gopn":91,"./_redefine":106,"./_set-species":110,"./_wks":136}],233:[function(require,module,exports){if(require("./_descriptors")&&/./g.flags!="g")require("./_object-dp").f(RegExp.prototype,"flags",{configurable:true,get:require("./_flags")})},{"./_descriptors":47,"./_flags":55,"./_object-dp":86}],234:[function(require,module,exports){require("./_fix-re-wks")("match",1,function(defined,MATCH,$match){return[function match(regexp){"use strict";var O=defined(this),fn=regexp==undefined?undefined:regexp[MATCH];return fn!==undefined?fn.call(regexp,O):new RegExp(regexp)[MATCH](String(O))},$match]})},{"./_fix-re-wks":54}],235:[function(require,module,exports){require("./_fix-re-wks")("replace",2,function(defined,REPLACE,$replace){return[function replace(searchValue,replaceValue){"use strict";var O=defined(this),fn=searchValue==undefined?undefined:searchValue[REPLACE];return fn!==undefined?fn.call(searchValue,O,replaceValue):$replace.call(String(O),searchValue,replaceValue)},$replace]})},{"./_fix-re-wks":54}],236:[function(require,module,exports){require("./_fix-re-wks")("search",1,function(defined,SEARCH,$search){return[function search(regexp){"use strict";var O=defined(this),fn=regexp==undefined?undefined:regexp[SEARCH];return fn!==undefined?fn.call(regexp,O):new RegExp(regexp)[SEARCH](String(O))},$search]})},{"./_fix-re-wks":54}],237:[function(require,module,exports){require("./_fix-re-wks")("split",2,function(defined,SPLIT,$split){"use strict";var isRegExp=require("./_is-regexp"),_split=$split,$push=[].push,$SPLIT="split",LENGTH="length",LAST_INDEX="lastIndex";if("abbc"[$SPLIT](/(b)*/)[1]=="c"||"test"[$SPLIT](/(?:)/,-1)[LENGTH]!=4||"ab"[$SPLIT](/(?:ab)*/)[LENGTH]!=2||"."[$SPLIT](/(.?)(.?)/)[LENGTH]!=4||"."[$SPLIT](/()()/)[LENGTH]>1||""[$SPLIT](/.?/)[LENGTH]){var NPCG=/()??/.exec("")[1]===undefined;$split=function(separator,limit){var string=String(this);if(separator===undefined&&limit===0)return[];if(!isRegExp(separator))return _split.call(string,separator,limit);var output=[];var flags=(separator.ignoreCase?"i":"")+(separator.multiline?"m":"")+(separator.unicode?"u":"")+(separator.sticky?"y":"");var lastLastIndex=0;var splitLimit=limit===undefined?4294967295:limit>>>0;var separatorCopy=new RegExp(separator.source,flags+"g");var separator2,match,lastIndex,lastLength,i;if(!NPCG)separator2=new RegExp("^"+separatorCopy.source+"$(?!\\s)",flags);while(match=separatorCopy.exec(string)){lastIndex=match.index+match[0][LENGTH];if(lastIndex>lastLastIndex){output.push(string.slice(lastLastIndex,match.index));if(!NPCG&&match[LENGTH]>1)match[0].replace(separator2,function(){for(i=1;i<arguments[LENGTH]-2;i++)if(arguments[i]===undefined)match[i]=undefined});if(match[LENGTH]>1&&match.index<string[LENGTH])$push.apply(output,match.slice(1));lastLength=match[0][LENGTH];lastLastIndex=lastIndex;if(output[LENGTH]>=splitLimit)break}if(separatorCopy[LAST_INDEX]===match.index)separatorCopy[LAST_INDEX]++}if(lastLastIndex===string[LENGTH]){if(lastLength||!separatorCopy.test(""))output.push("")}else output.push(string.slice(lastLastIndex));return output[LENGTH]>splitLimit?output.slice(0,splitLimit):output}}else if("0"[$SPLIT](undefined,0)[LENGTH]){$split=function(separator,limit){return separator===undefined&&limit===0?[]:_split.call(this,separator,limit)}}return[function split(separator,limit){var O=defined(this),fn=separator==undefined?undefined:separator[SPLIT];return fn!==undefined?fn.call(separator,O,limit):$split.call(String(O),separator,limit)},$split]})},{"./_fix-re-wks":54,"./_is-regexp":69}],238:[function(require,module,exports){"use strict";require("./es6.regexp.flags");var anObject=require("./_an-object"),$flags=require("./_flags"),DESCRIPTORS=require("./_descriptors"),TO_STRING="toString",$toString=/./[TO_STRING];var define=function(fn){require("./_redefine")(RegExp.prototype,TO_STRING,fn,true)};if(require("./_fails")(function(){return $toString.call({source:"a",flags:"b"})!="/a/b"})){define(function toString(){var R=anObject(this);return"/".concat(R.source,"/","flags"in R?R.flags:!DESCRIPTORS&&R instanceof RegExp?$flags.call(R):undefined)})}else if($toString.name!=TO_STRING){define(function toString(){return $toString.call(this)})}},{"./_an-object":26,"./_descriptors":47,"./_fails":53,"./_flags":55,"./_redefine":106,"./es6.regexp.flags":233}],239:[function(require,module,exports){"use strict";var strong=require("./_collection-strong");module.exports=require("./_collection")("Set",function(get){return function Set(){return get(this,arguments.length>0?arguments[0]:undefined)}},{add:function add(value){return strong.def(this,value=value===0?0:value,value)}},strong)},{"./_collection":41,"./_collection-strong":38}],240:[function(require,module,exports){"use strict";require("./_string-html")("anchor",function(createHTML){return function anchor(name){return createHTML(this,"a","name",name)}})},{"./_string-html":118}],241:[function(require,module,exports){"use strict";require("./_string-html")("big",function(createHTML){return function big(){return createHTML(this,"big","","")}})},{"./_string-html":118}],242:[function(require,module,exports){"use strict";require("./_string-html")("blink",function(createHTML){return function blink(){return createHTML(this,"blink","","")}})},{"./_string-html":118}],243:[function(require,module,exports){"use strict";require("./_string-html")("bold",function(createHTML){return function bold(){return createHTML(this,"b","","")}})},{"./_string-html":118}],244:[function(require,module,exports){"use strict";var $export=require("./_export"),$at=require("./_string-at")(false);$export($export.P,"String",{codePointAt:function codePointAt(pos){return $at(this,pos)}})},{"./_export":51,"./_string-at":116}],245:[function(require,module,exports){"use strict";var $export=require("./_export"),toLength=require("./_to-length"),context=require("./_string-context"),ENDS_WITH="endsWith",$endsWith=""[ENDS_WITH];$export($export.P+$export.F*require("./_fails-is-regexp")(ENDS_WITH),"String",{endsWith:function endsWith(searchString){var that=context(this,searchString,ENDS_WITH),endPosition=arguments.length>1?arguments[1]:undefined,len=toLength(that.length),end=endPosition===undefined?len:Math.min(toLength(endPosition),len),search=String(searchString);return $endsWith?$endsWith.call(that,search,end):that.slice(end-search.length,end)===search}})},{"./_export":51,"./_fails-is-regexp":52,"./_string-context":117,"./_to-length":127}],246:[function(require,module,exports){"use strict";require("./_string-html")("fixed",function(createHTML){return function fixed(){return createHTML(this,"tt","","")}})},{"./_string-html":118}],247:[function(require,module,exports){"use strict";require("./_string-html")("fontcolor",function(createHTML){return function fontcolor(color){return createHTML(this,"font","color",color)}})},{"./_string-html":118}],248:[function(require,module,exports){"use strict";require("./_string-html")("fontsize",function(createHTML){return function fontsize(size){return createHTML(this,"font","size",size)}})},{"./_string-html":118}],249:[function(require,module,exports){var $export=require("./_export"),toIndex=require("./_to-index"),fromCharCode=String.fromCharCode,$fromCodePoint=String.fromCodePoint;$export($export.S+$export.F*(!!$fromCodePoint&&$fromCodePoint.length!=1),"String",{fromCodePoint:function fromCodePoint(x){var res=[],aLen=arguments.length,i=0,code;while(aLen>i){code=+arguments[i++];if(toIndex(code,1114111)!==code)throw RangeError(code+" is not a valid code point");res.push(code<65536?fromCharCode(code):fromCharCode(((code-=65536)>>10)+55296,code%1024+56320))}return res.join("")}})},{"./_export":51,"./_to-index":124}],250:[function(require,module,exports){"use strict";var $export=require("./_export"),context=require("./_string-context"),INCLUDES="includes";$export($export.P+$export.F*require("./_fails-is-regexp")(INCLUDES),"String",{includes:function includes(searchString){return!!~context(this,searchString,INCLUDES).indexOf(searchString,arguments.length>1?arguments[1]:undefined)}})},{"./_export":51,"./_fails-is-regexp":52,"./_string-context":117}],251:[function(require,module,exports){"use strict";require("./_string-html")("italics",function(createHTML){return function italics(){return createHTML(this,"i","","")}})},{"./_string-html":118}],252:[function(require,module,exports){"use strict";var $at=require("./_string-at")(true);require("./_iter-define")(String,"String",function(iterated){this._t=String(iterated);this._i=0},function(){var O=this._t,index=this._i,point;if(index>=O.length)return{value:undefined,done:true};point=$at(O,index);this._i+=point.length;return{value:point,done:false}})},{"./_iter-define":72,"./_string-at":116}],253:[function(require,module,exports){"use strict";require("./_string-html")("link",function(createHTML){return function link(url){return createHTML(this,"a","href",url)}})},{"./_string-html":118}],254:[function(require,module,exports){var $export=require("./_export"),toIObject=require("./_to-iobject"),toLength=require("./_to-length");$export($export.S,"String",{raw:function raw(callSite){var tpl=toIObject(callSite.raw),len=toLength(tpl.length),aLen=arguments.length,res=[],i=0;while(len>i){res.push(String(tpl[i++]));if(i<aLen)res.push(String(arguments[i]))}return res.join("")}})},{"./_export":51,"./_to-iobject":126,"./_to-length":127}],255:[function(require,module,exports){var $export=require("./_export");$export($export.P,"String",{repeat:require("./_string-repeat")})},{"./_export":51,"./_string-repeat":120}],256:[function(require,module,exports){"use strict";require("./_string-html")("small",function(createHTML){return function small(){return createHTML(this,"small","","")}})},{"./_string-html":118}],257:[function(require,module,exports){"use strict";var $export=require("./_export"),toLength=require("./_to-length"),context=require("./_string-context"),STARTS_WITH="startsWith",$startsWith=""[STARTS_WITH];$export($export.P+$export.F*require("./_fails-is-regexp")(STARTS_WITH),"String",{startsWith:function startsWith(searchString){var that=context(this,searchString,STARTS_WITH),index=toLength(Math.min(arguments.length>1?arguments[1]:undefined,that.length)),search=String(searchString);return $startsWith?$startsWith.call(that,search,index):that.slice(index,index+search.length)===search}})},{"./_export":51,"./_fails-is-regexp":52,"./_string-context":117,"./_to-length":127}],258:[function(require,module,exports){"use strict";require("./_string-html")("strike",function(createHTML){return function strike(){return createHTML(this,"strike","","")}})},{"./_string-html":118}],259:[function(require,module,exports){"use strict";require("./_string-html")("sub",function(createHTML){return function sub(){return createHTML(this,"sub","","")}})},{"./_string-html":118}],260:[function(require,module,exports){"use strict";require("./_string-html")("sup",function(createHTML){return function sup(){return createHTML(this,"sup","","")}})},{"./_string-html":118}],261:[function(require,module,exports){"use strict";require("./_string-trim")("trim",function($trim){return function trim(){return $trim(this,3)}})},{"./_string-trim":121}],262:[function(require,module,exports){"use strict";var global=require("./_global"),has=require("./_has"),DESCRIPTORS=require("./_descriptors"),$export=require("./_export"),redefine=require("./_redefine"),META=require("./_meta").KEY,$fails=require("./_fails"),shared=require("./_shared"),setToStringTag=require("./_set-to-string-tag"),uid=require("./_uid"),wks=require("./_wks"),wksExt=require("./_wks-ext"),wksDefine=require("./_wks-define"),keyOf=require("./_keyof"),enumKeys=require("./_enum-keys"),isArray=require("./_is-array"),anObject=require("./_an-object"),toIObject=require("./_to-iobject"),toPrimitive=require("./_to-primitive"),createDesc=require("./_property-desc"),_create=require("./_object-create"),gOPNExt=require("./_object-gopn-ext"),$GOPD=require("./_object-gopd"),$DP=require("./_object-dp"),$keys=require("./_object-keys"),gOPD=$GOPD.f,dP=$DP.f,gOPN=gOPNExt.f,$Symbol=global.Symbol,$JSON=global.JSON,_stringify=$JSON&&$JSON.stringify,PROTOTYPE="prototype",HIDDEN=wks("_hidden"),TO_PRIMITIVE=wks("toPrimitive"),isEnum={}.propertyIsEnumerable,SymbolRegistry=shared("symbol-registry"),AllSymbols=shared("symbols"),OPSymbols=shared("op-symbols"),ObjectProto=Object[PROTOTYPE],USE_NATIVE=typeof $Symbol=="function",QObject=global.QObject;var setter=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild;var setSymbolDesc=DESCRIPTORS&&$fails(function(){return _create(dP({},"a",{get:function(){return dP(this,"a",{value:7}).a}})).a!=7})?function(it,key,D){var protoDesc=gOPD(ObjectProto,key);if(protoDesc)delete ObjectProto[key];dP(it,key,D);if(protoDesc&&it!==ObjectProto)dP(ObjectProto,key,protoDesc)}:dP;var wrap=function(tag){var sym=AllSymbols[tag]=_create($Symbol[PROTOTYPE]);sym._k=tag;return sym};var isSymbol=USE_NATIVE&&typeof $Symbol.iterator=="symbol"?function(it){return typeof it=="symbol"}:function(it){return it instanceof $Symbol};var $defineProperty=function defineProperty(it,key,D){if(it===ObjectProto)$defineProperty(OPSymbols,key,D);anObject(it);key=toPrimitive(key,true);anObject(D);if(has(AllSymbols,key)){if(!D.enumerable){if(!has(it,HIDDEN))dP(it,HIDDEN,createDesc(1,{}));it[HIDDEN][key]=true}else{if(has(it,HIDDEN)&&it[HIDDEN][key])it[HIDDEN][key]=false;D=_create(D,{enumerable:createDesc(0,false)})}return setSymbolDesc(it,key,D)}return dP(it,key,D)};var $defineProperties=function defineProperties(it,P){anObject(it);var keys=enumKeys(P=toIObject(P)),i=0,l=keys.length,key;while(l>i)$defineProperty(it,key=keys[i++],P[key]);return it};var $create=function create(it,P){return P===undefined?_create(it):$defineProperties(_create(it),P)};var $propertyIsEnumerable=function propertyIsEnumerable(key){var E=isEnum.call(this,key=toPrimitive(key,true));if(this===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return false;return E||!has(this,key)||!has(AllSymbols,key)||has(this,HIDDEN)&&this[HIDDEN][key]?E:true};var $getOwnPropertyDescriptor=function getOwnPropertyDescriptor(it,key){it=toIObject(it);key=toPrimitive(key,true);if(it===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return;var D=gOPD(it,key);if(D&&has(AllSymbols,key)&&!(has(it,HIDDEN)&&it[HIDDEN][key]))D.enumerable=true;return D};var $getOwnPropertyNames=function getOwnPropertyNames(it){var names=gOPN(toIObject(it)),result=[],i=0,key;while(names.length>i){if(!has(AllSymbols,key=names[i++])&&key!=HIDDEN&&key!=META)result.push(key)}return result};var $getOwnPropertySymbols=function getOwnPropertySymbols(it){var IS_OP=it===ObjectProto,names=gOPN(IS_OP?OPSymbols:toIObject(it)),result=[],i=0,key;while(names.length>i){if(has(AllSymbols,key=names[i++])&&(IS_OP?has(ObjectProto,key):true))result.push(AllSymbols[key])}return result};if(!USE_NATIVE){$Symbol=function Symbol(){if(this instanceof $Symbol)throw TypeError("Symbol is not a constructor!");var tag=uid(arguments.length>0?arguments[0]:undefined);var $set=function(value){if(this===ObjectProto)$set.call(OPSymbols,value);if(has(this,HIDDEN)&&has(this[HIDDEN],tag))this[HIDDEN][tag]=false;setSymbolDesc(this,tag,createDesc(1,value))};if(DESCRIPTORS&&setter)setSymbolDesc(ObjectProto,tag,{configurable:true,set:$set});return wrap(tag)};redefine($Symbol[PROTOTYPE],"toString",function toString(){return this._k});$GOPD.f=$getOwnPropertyDescriptor;$DP.f=$defineProperty;require("./_object-gopn").f=gOPNExt.f=$getOwnPropertyNames;require("./_object-pie").f=$propertyIsEnumerable;require("./_object-gops").f=$getOwnPropertySymbols;if(DESCRIPTORS&&!require("./_library")){redefine(ObjectProto,"propertyIsEnumerable",$propertyIsEnumerable,true)}wksExt.f=function(name){return wrap(wks(name))}}$export($export.G+$export.W+$export.F*!USE_NATIVE,{Symbol:$Symbol});for(var symbols="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),i=0;symbols.length>i;)wks(symbols[i++]);for(var symbols=$keys(wks.store),i=0;symbols.length>i;)wksDefine(symbols[i++]);$export($export.S+$export.F*!USE_NATIVE,"Symbol",{for:function(key){return has(SymbolRegistry,key+="")?SymbolRegistry[key]:SymbolRegistry[key]=$Symbol(key)},keyFor:function keyFor(key){if(isSymbol(key))return keyOf(SymbolRegistry,key);throw TypeError(key+" is not a symbol!")},useSetter:function(){setter=true},useSimple:function(){setter=false}});$export($export.S+$export.F*!USE_NATIVE,"Object",{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor,getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols});$JSON&&$export($export.S+$export.F*(!USE_NATIVE||$fails(function(){var S=$Symbol();return _stringify([S])!="[null]"||_stringify({a:S})!="{}"||_stringify(Object(S))!="{}"})),"JSON",{stringify:function stringify(it){if(it===undefined||isSymbol(it))return;var args=[it],i=1,replacer,$replacer;while(arguments.length>i)args.push(arguments[i++]);replacer=args[1];if(typeof replacer=="function")$replacer=replacer;if($replacer||!isArray(replacer))replacer=function(key,value){if($replacer)value=$replacer.call(this,key,value);if(!isSymbol(value))return value};args[1]=replacer;return _stringify.apply($JSON,args)}});$Symbol[PROTOTYPE][TO_PRIMITIVE]||require("./_hide")($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf);setToStringTag($Symbol,"Symbol");setToStringTag(Math,"Math",true);setToStringTag(global.JSON,"JSON",true)},{"./_an-object":26,"./_descriptors":47,"./_enum-keys":50,"./_export":51,"./_fails":53,"./_global":57,"./_has":58,"./_hide":59,"./_is-array":66,"./_keyof":76,"./_library":77,"./_meta":81,"./_object-create":85,"./_object-dp":86,"./_object-gopd":89,"./_object-gopn":91,"./_object-gopn-ext":90,"./_object-gops":92,"./_object-keys":95,"./_object-pie":96,"./_property-desc":104,"./_redefine":106,"./_set-to-string-tag":111,"./_shared":113,"./_to-iobject":126,"./_to-primitive":129,"./_uid":133,"./_wks":136,"./_wks-define":134,"./_wks-ext":135}],263:[function(require,module,exports){"use strict";var $export=require("./_export"),$typed=require("./_typed"),buffer=require("./_typed-buffer"),anObject=require("./_an-object"),toIndex=require("./_to-index"),toLength=require("./_to-length"),isObject=require("./_is-object"),ArrayBuffer=require("./_global").ArrayBuffer,speciesConstructor=require("./_species-constructor"),$ArrayBuffer=buffer.ArrayBuffer,$DataView=buffer.DataView,$isView=$typed.ABV&&ArrayBuffer.isView,$slice=$ArrayBuffer.prototype.slice,VIEW=$typed.VIEW,ARRAY_BUFFER="ArrayBuffer";$export($export.G+$export.W+$export.F*(ArrayBuffer!==$ArrayBuffer),{ArrayBuffer:$ArrayBuffer});$export($export.S+$export.F*!$typed.CONSTR,ARRAY_BUFFER,{isView:function isView(it){return $isView&&$isView(it)||isObject(it)&&VIEW in it}});$export($export.P+$export.U+$export.F*require("./_fails")(function(){return!new $ArrayBuffer(2).slice(1,undefined).byteLength}),ARRAY_BUFFER,{slice:function slice(start,end){if($slice!==undefined&&end===undefined)return $slice.call(anObject(this),start);var len=anObject(this).byteLength,first=toIndex(start,len),final=toIndex(end===undefined?len:end,len),result=new(speciesConstructor(this,$ArrayBuffer))(toLength(final-first)),viewS=new $DataView(this),viewT=new $DataView(result),index=0;while(first<final){viewT.setUint8(index++,viewS.getUint8(first++))}return result}});require("./_set-species")(ARRAY_BUFFER)},{"./_an-object":26,"./_export":51,"./_fails":53,"./_global":57,"./_is-object":68,"./_set-species":110,"./_species-constructor":114,"./_to-index":124,"./_to-length":127,"./_typed":132,"./_typed-buffer":131}],264:[function(require,module,exports){var $export=require("./_export");$export($export.G+$export.W+$export.F*!require("./_typed").ABV,{DataView:require("./_typed-buffer").DataView})},{"./_export":51,"./_typed":132,"./_typed-buffer":131}],265:[function(require,module,exports){require("./_typed-array")("Float32",4,function(init){return function Float32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},{"./_typed-array":130}],266:[function(require,module,exports){require("./_typed-array")("Float64",8,function(init){return function Float64Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},{"./_typed-array":130}],267:[function(require,module,exports){require("./_typed-array")("Int16",2,function(init){return function Int16Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},{"./_typed-array":130}],268:[function(require,module,exports){require("./_typed-array")("Int32",4,function(init){return function Int32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},{"./_typed-array":130}],269:[function(require,module,exports){require("./_typed-array")("Int8",1,function(init){return function Int8Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},{"./_typed-array":130}],270:[function(require,module,exports){require("./_typed-array")("Uint16",2,function(init){return function Uint16Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},{"./_typed-array":130}],271:[function(require,module,exports){require("./_typed-array")("Uint32",4,function(init){return function Uint32Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},{"./_typed-array":130}],272:[function(require,module,exports){require("./_typed-array")("Uint8",1,function(init){return function Uint8Array(data,byteOffset,length){return init(this,data,byteOffset,length)}})},{"./_typed-array":130}],273:[function(require,module,exports){require("./_typed-array")("Uint8",1,function(init){return function Uint8ClampedArray(data,byteOffset,length){return init(this,data,byteOffset,length)}},true)},{"./_typed-array":130}],274:[function(require,module,exports){"use strict";var each=require("./_array-methods")(0),redefine=require("./_redefine"),meta=require("./_meta"),assign=require("./_object-assign"),weak=require("./_collection-weak"),isObject=require("./_is-object"),getWeak=meta.getWeak,isExtensible=Object.isExtensible,uncaughtFrozenStore=weak.ufstore,tmp={},InternalMap;var wrapper=function(get){return function WeakMap(){return get(this,arguments.length>0?arguments[0]:undefined)}};var methods={get:function get(key){if(isObject(key)){var data=getWeak(key);if(data===true)return uncaughtFrozenStore(this).get(key);return data?data[this._i]:undefined}},set:function set(key,value){return weak.def(this,key,value)}};var $WeakMap=module.exports=require("./_collection")("WeakMap",wrapper,methods,weak,true,true);if((new $WeakMap).set((Object.freeze||Object)(tmp),7).get(tmp)!=7){InternalMap=weak.getConstructor(wrapper);assign(InternalMap.prototype,methods);meta.NEED=true;each(["delete","has","get","set"],function(key){var proto=$WeakMap.prototype,method=proto[key];redefine(proto,key,function(a,b){if(isObject(a)&&!isExtensible(a)){if(!this._f)this._f=new InternalMap;var result=this._f[key](a,b);
  return key=="set"?this:result}return method.call(this,a,b)})})}},{"./_array-methods":31,"./_collection":41,"./_collection-weak":40,"./_is-object":68,"./_meta":81,"./_object-assign":84,"./_redefine":106}],275:[function(require,module,exports){"use strict";var weak=require("./_collection-weak");require("./_collection")("WeakSet",function(get){return function WeakSet(){return get(this,arguments.length>0?arguments[0]:undefined)}},{add:function add(value){return weak.def(this,value,true)}},weak,false,true)},{"./_collection":41,"./_collection-weak":40}],276:[function(require,module,exports){"use strict";var $export=require("./_export"),$includes=require("./_array-includes")(true);$export($export.P,"Array",{includes:function includes(el){return $includes(this,el,arguments.length>1?arguments[1]:undefined)}});require("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":24,"./_array-includes":30,"./_export":51}],277:[function(require,module,exports){var $export=require("./_export"),microtask=require("./_microtask")(),process=require("./_global").process,isNode=require("./_cof")(process)=="process";$export($export.G,{asap:function asap(fn){var domain=isNode&&process.domain;microtask(domain?domain.bind(fn):fn)}})},{"./_cof":37,"./_export":51,"./_global":57,"./_microtask":83}],278:[function(require,module,exports){var $export=require("./_export"),cof=require("./_cof");$export($export.S,"Error",{isError:function isError(it){return cof(it)==="Error"}})},{"./_cof":37,"./_export":51}],279:[function(require,module,exports){var $export=require("./_export");$export($export.P+$export.R,"Map",{toJSON:require("./_collection-to-json")("Map")})},{"./_collection-to-json":39,"./_export":51}],280:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Math",{iaddh:function iaddh(x0,x1,y0,y1){var $x0=x0>>>0,$x1=x1>>>0,$y0=y0>>>0;return $x1+(y1>>>0)+(($x0&$y0|($x0|$y0)&~($x0+$y0>>>0))>>>31)|0}})},{"./_export":51}],281:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Math",{imulh:function imulh(u,v){var UINT16=65535,$u=+u,$v=+v,u0=$u&UINT16,v0=$v&UINT16,u1=$u>>16,v1=$v>>16,t=(u1*v0>>>0)+(u0*v0>>>16);return u1*v1+(t>>16)+((u0*v1>>>0)+(t&UINT16)>>16)}})},{"./_export":51}],282:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Math",{isubh:function isubh(x0,x1,y0,y1){var $x0=x0>>>0,$x1=x1>>>0,$y0=y0>>>0;return $x1-(y1>>>0)-((~$x0&$y0|~($x0^$y0)&$x0-$y0>>>0)>>>31)|0}})},{"./_export":51}],283:[function(require,module,exports){var $export=require("./_export");$export($export.S,"Math",{umulh:function umulh(u,v){var UINT16=65535,$u=+u,$v=+v,u0=$u&UINT16,v0=$v&UINT16,u1=$u>>>16,v1=$v>>>16,t=(u1*v0>>>0)+(u0*v0>>>16);return u1*v1+(t>>>16)+((u0*v1>>>0)+(t&UINT16)>>>16)}})},{"./_export":51}],284:[function(require,module,exports){"use strict";var $export=require("./_export"),toObject=require("./_to-object"),aFunction=require("./_a-function"),$defineProperty=require("./_object-dp");require("./_descriptors")&&$export($export.P+require("./_object-forced-pam"),"Object",{__defineGetter__:function __defineGetter__(P,getter){$defineProperty.f(toObject(this),P,{get:aFunction(getter),enumerable:true,configurable:true})}})},{"./_a-function":22,"./_descriptors":47,"./_export":51,"./_object-dp":86,"./_object-forced-pam":88,"./_to-object":128}],285:[function(require,module,exports){"use strict";var $export=require("./_export"),toObject=require("./_to-object"),aFunction=require("./_a-function"),$defineProperty=require("./_object-dp");require("./_descriptors")&&$export($export.P+require("./_object-forced-pam"),"Object",{__defineSetter__:function __defineSetter__(P,setter){$defineProperty.f(toObject(this),P,{set:aFunction(setter),enumerable:true,configurable:true})}})},{"./_a-function":22,"./_descriptors":47,"./_export":51,"./_object-dp":86,"./_object-forced-pam":88,"./_to-object":128}],286:[function(require,module,exports){var $export=require("./_export"),$entries=require("./_object-to-array")(true);$export($export.S,"Object",{entries:function entries(it){return $entries(it)}})},{"./_export":51,"./_object-to-array":98}],287:[function(require,module,exports){var $export=require("./_export"),ownKeys=require("./_own-keys"),toIObject=require("./_to-iobject"),gOPD=require("./_object-gopd"),createProperty=require("./_create-property");$export($export.S,"Object",{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(object){var O=toIObject(object),getDesc=gOPD.f,keys=ownKeys(O),result={},i=0,key;while(keys.length>i)createProperty(result,key=keys[i++],getDesc(O,key));return result}})},{"./_create-property":43,"./_export":51,"./_object-gopd":89,"./_own-keys":99,"./_to-iobject":126}],288:[function(require,module,exports){"use strict";var $export=require("./_export"),toObject=require("./_to-object"),toPrimitive=require("./_to-primitive"),getPrototypeOf=require("./_object-gpo"),getOwnPropertyDescriptor=require("./_object-gopd").f;require("./_descriptors")&&$export($export.P+require("./_object-forced-pam"),"Object",{__lookupGetter__:function __lookupGetter__(P){var O=toObject(this),K=toPrimitive(P,true),D;do{if(D=getOwnPropertyDescriptor(O,K))return D.get}while(O=getPrototypeOf(O))}})},{"./_descriptors":47,"./_export":51,"./_object-forced-pam":88,"./_object-gopd":89,"./_object-gpo":93,"./_to-object":128,"./_to-primitive":129}],289:[function(require,module,exports){"use strict";var $export=require("./_export"),toObject=require("./_to-object"),toPrimitive=require("./_to-primitive"),getPrototypeOf=require("./_object-gpo"),getOwnPropertyDescriptor=require("./_object-gopd").f;require("./_descriptors")&&$export($export.P+require("./_object-forced-pam"),"Object",{__lookupSetter__:function __lookupSetter__(P){var O=toObject(this),K=toPrimitive(P,true),D;do{if(D=getOwnPropertyDescriptor(O,K))return D.set}while(O=getPrototypeOf(O))}})},{"./_descriptors":47,"./_export":51,"./_object-forced-pam":88,"./_object-gopd":89,"./_object-gpo":93,"./_to-object":128,"./_to-primitive":129}],290:[function(require,module,exports){var $export=require("./_export"),$values=require("./_object-to-array")(false);$export($export.S,"Object",{values:function values(it){return $values(it)}})},{"./_export":51,"./_object-to-array":98}],291:[function(require,module,exports){"use strict";var $export=require("./_export"),global=require("./_global"),core=require("./_core"),microtask=require("./_microtask")(),OBSERVABLE=require("./_wks")("observable"),aFunction=require("./_a-function"),anObject=require("./_an-object"),anInstance=require("./_an-instance"),redefineAll=require("./_redefine-all"),hide=require("./_hide"),forOf=require("./_for-of"),RETURN=forOf.RETURN;var getMethod=function(fn){return fn==null?undefined:aFunction(fn)};var cleanupSubscription=function(subscription){var cleanup=subscription._c;if(cleanup){subscription._c=undefined;cleanup()}};var subscriptionClosed=function(subscription){return subscription._o===undefined};var closeSubscription=function(subscription){if(!subscriptionClosed(subscription)){subscription._o=undefined;cleanupSubscription(subscription)}};var Subscription=function(observer,subscriber){anObject(observer);this._c=undefined;this._o=observer;observer=new SubscriptionObserver(this);try{var cleanup=subscriber(observer),subscription=cleanup;if(cleanup!=null){if(typeof cleanup.unsubscribe==="function")cleanup=function(){subscription.unsubscribe()};else aFunction(cleanup);this._c=cleanup}}catch(e){observer.error(e);return}if(subscriptionClosed(this))cleanupSubscription(this)};Subscription.prototype=redefineAll({},{unsubscribe:function unsubscribe(){closeSubscription(this)}});var SubscriptionObserver=function(subscription){this._s=subscription};SubscriptionObserver.prototype=redefineAll({},{next:function next(value){var subscription=this._s;if(!subscriptionClosed(subscription)){var observer=subscription._o;try{var m=getMethod(observer.next);if(m)return m.call(observer,value)}catch(e){try{closeSubscription(subscription)}finally{throw e}}}},error:function error(value){var subscription=this._s;if(subscriptionClosed(subscription))throw value;var observer=subscription._o;subscription._o=undefined;try{var m=getMethod(observer.error);if(!m)throw value;value=m.call(observer,value)}catch(e){try{cleanupSubscription(subscription)}finally{throw e}}cleanupSubscription(subscription);return value},complete:function complete(value){var subscription=this._s;if(!subscriptionClosed(subscription)){var observer=subscription._o;subscription._o=undefined;try{var m=getMethod(observer.complete);value=m?m.call(observer,value):undefined}catch(e){try{cleanupSubscription(subscription)}finally{throw e}}cleanupSubscription(subscription);return value}}});var $Observable=function Observable(subscriber){anInstance(this,$Observable,"Observable","_f")._f=aFunction(subscriber)};redefineAll($Observable.prototype,{subscribe:function subscribe(observer){return new Subscription(observer,this._f)},forEach:function forEach(fn){var that=this;return new(core.Promise||global.Promise)(function(resolve,reject){aFunction(fn);var subscription=that.subscribe({next:function(value){try{return fn(value)}catch(e){reject(e);subscription.unsubscribe()}},error:reject,complete:resolve})})}});redefineAll($Observable,{from:function from(x){var C=typeof this==="function"?this:$Observable;var method=getMethod(anObject(x)[OBSERVABLE]);if(method){var observable=anObject(method.call(x));return observable.constructor===C?observable:new C(function(observer){return observable.subscribe(observer)})}return new C(function(observer){var done=false;microtask(function(){if(!done){try{if(forOf(x,false,function(it){observer.next(it);if(done)return RETURN})===RETURN)return}catch(e){if(done)throw e;observer.error(e);return}observer.complete()}});return function(){done=true}})},of:function of(){for(var i=0,l=arguments.length,items=Array(l);i<l;)items[i]=arguments[i++];return new(typeof this==="function"?this:$Observable)(function(observer){var done=false;microtask(function(){if(!done){for(var i=0;i<items.length;++i){observer.next(items[i]);if(done)return}observer.complete()}});return function(){done=true}})}});hide($Observable.prototype,OBSERVABLE,function(){return this});$export($export.G,{Observable:$Observable});require("./_set-species")("Observable")},{"./_a-function":22,"./_an-instance":25,"./_an-object":26,"./_core":42,"./_export":51,"./_for-of":56,"./_global":57,"./_hide":59,"./_microtask":83,"./_redefine-all":105,"./_set-species":110,"./_wks":136}],292:[function(require,module,exports){var metadata=require("./_metadata"),anObject=require("./_an-object"),toMetaKey=metadata.key,ordinaryDefineOwnMetadata=metadata.set;metadata.exp({defineMetadata:function defineMetadata(metadataKey,metadataValue,target,targetKey){ordinaryDefineOwnMetadata(metadataKey,metadataValue,anObject(target),toMetaKey(targetKey))}})},{"./_an-object":26,"./_metadata":82}],293:[function(require,module,exports){var metadata=require("./_metadata"),anObject=require("./_an-object"),toMetaKey=metadata.key,getOrCreateMetadataMap=metadata.map,store=metadata.store;metadata.exp({deleteMetadata:function deleteMetadata(metadataKey,target){var targetKey=arguments.length<3?undefined:toMetaKey(arguments[2]),metadataMap=getOrCreateMetadataMap(anObject(target),targetKey,false);if(metadataMap===undefined||!metadataMap["delete"](metadataKey))return false;if(metadataMap.size)return true;var targetMetadata=store.get(target);targetMetadata["delete"](targetKey);return!!targetMetadata.size||store["delete"](target)}})},{"./_an-object":26,"./_metadata":82}],294:[function(require,module,exports){var Set=require("./es6.set"),from=require("./_array-from-iterable"),metadata=require("./_metadata"),anObject=require("./_an-object"),getPrototypeOf=require("./_object-gpo"),ordinaryOwnMetadataKeys=metadata.keys,toMetaKey=metadata.key;var ordinaryMetadataKeys=function(O,P){var oKeys=ordinaryOwnMetadataKeys(O,P),parent=getPrototypeOf(O);if(parent===null)return oKeys;var pKeys=ordinaryMetadataKeys(parent,P);return pKeys.length?oKeys.length?from(new Set(oKeys.concat(pKeys))):pKeys:oKeys};metadata.exp({getMetadataKeys:function getMetadataKeys(target){return ordinaryMetadataKeys(anObject(target),arguments.length<2?undefined:toMetaKey(arguments[1]))}})},{"./_an-object":26,"./_array-from-iterable":29,"./_metadata":82,"./_object-gpo":93,"./es6.set":239}],295:[function(require,module,exports){var metadata=require("./_metadata"),anObject=require("./_an-object"),getPrototypeOf=require("./_object-gpo"),ordinaryHasOwnMetadata=metadata.has,ordinaryGetOwnMetadata=metadata.get,toMetaKey=metadata.key;var ordinaryGetMetadata=function(MetadataKey,O,P){var hasOwn=ordinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn)return ordinaryGetOwnMetadata(MetadataKey,O,P);var parent=getPrototypeOf(O);return parent!==null?ordinaryGetMetadata(MetadataKey,parent,P):undefined};metadata.exp({getMetadata:function getMetadata(metadataKey,target){return ordinaryGetMetadata(metadataKey,anObject(target),arguments.length<3?undefined:toMetaKey(arguments[2]))}})},{"./_an-object":26,"./_metadata":82,"./_object-gpo":93}],296:[function(require,module,exports){var metadata=require("./_metadata"),anObject=require("./_an-object"),ordinaryOwnMetadataKeys=metadata.keys,toMetaKey=metadata.key;metadata.exp({getOwnMetadataKeys:function getOwnMetadataKeys(target){return ordinaryOwnMetadataKeys(anObject(target),arguments.length<2?undefined:toMetaKey(arguments[1]))}})},{"./_an-object":26,"./_metadata":82}],297:[function(require,module,exports){var metadata=require("./_metadata"),anObject=require("./_an-object"),ordinaryGetOwnMetadata=metadata.get,toMetaKey=metadata.key;metadata.exp({getOwnMetadata:function getOwnMetadata(metadataKey,target){return ordinaryGetOwnMetadata(metadataKey,anObject(target),arguments.length<3?undefined:toMetaKey(arguments[2]))}})},{"./_an-object":26,"./_metadata":82}],298:[function(require,module,exports){var metadata=require("./_metadata"),anObject=require("./_an-object"),getPrototypeOf=require("./_object-gpo"),ordinaryHasOwnMetadata=metadata.has,toMetaKey=metadata.key;var ordinaryHasMetadata=function(MetadataKey,O,P){var hasOwn=ordinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn)return true;var parent=getPrototypeOf(O);return parent!==null?ordinaryHasMetadata(MetadataKey,parent,P):false};metadata.exp({hasMetadata:function hasMetadata(metadataKey,target){return ordinaryHasMetadata(metadataKey,anObject(target),arguments.length<3?undefined:toMetaKey(arguments[2]))}})},{"./_an-object":26,"./_metadata":82,"./_object-gpo":93}],299:[function(require,module,exports){var metadata=require("./_metadata"),anObject=require("./_an-object"),ordinaryHasOwnMetadata=metadata.has,toMetaKey=metadata.key;metadata.exp({hasOwnMetadata:function hasOwnMetadata(metadataKey,target){return ordinaryHasOwnMetadata(metadataKey,anObject(target),arguments.length<3?undefined:toMetaKey(arguments[2]))}})},{"./_an-object":26,"./_metadata":82}],300:[function(require,module,exports){var metadata=require("./_metadata"),anObject=require("./_an-object"),aFunction=require("./_a-function"),toMetaKey=metadata.key,ordinaryDefineOwnMetadata=metadata.set;metadata.exp({metadata:function metadata(metadataKey,metadataValue){return function decorator(target,targetKey){ordinaryDefineOwnMetadata(metadataKey,metadataValue,(targetKey!==undefined?anObject:aFunction)(target),toMetaKey(targetKey))}}})},{"./_a-function":22,"./_an-object":26,"./_metadata":82}],301:[function(require,module,exports){var $export=require("./_export");$export($export.P+$export.R,"Set",{toJSON:require("./_collection-to-json")("Set")})},{"./_collection-to-json":39,"./_export":51}],302:[function(require,module,exports){"use strict";var $export=require("./_export"),$at=require("./_string-at")(true);$export($export.P,"String",{at:function at(pos){return $at(this,pos)}})},{"./_export":51,"./_string-at":116}],303:[function(require,module,exports){"use strict";var $export=require("./_export"),defined=require("./_defined"),toLength=require("./_to-length"),isRegExp=require("./_is-regexp"),getFlags=require("./_flags"),RegExpProto=RegExp.prototype;var $RegExpStringIterator=function(regexp,string){this._r=regexp;this._s=string};require("./_iter-create")($RegExpStringIterator,"RegExp String",function next(){var match=this._r.exec(this._s);return{value:match,done:match===null}});$export($export.P,"String",{matchAll:function matchAll(regexp){defined(this);if(!isRegExp(regexp))throw TypeError(regexp+" is not a regexp!");var S=String(this),flags="flags"in RegExpProto?String(regexp.flags):getFlags.call(regexp),rx=new RegExp(regexp.source,~flags.indexOf("g")?flags:"g"+flags);rx.lastIndex=toLength(regexp.lastIndex);return new $RegExpStringIterator(rx,S)}})},{"./_defined":46,"./_export":51,"./_flags":55,"./_is-regexp":69,"./_iter-create":71,"./_to-length":127}],304:[function(require,module,exports){"use strict";var $export=require("./_export"),$pad=require("./_string-pad");$export($export.P,"String",{padEnd:function padEnd(maxLength){return $pad(this,maxLength,arguments.length>1?arguments[1]:undefined,false)}})},{"./_export":51,"./_string-pad":119}],305:[function(require,module,exports){"use strict";var $export=require("./_export"),$pad=require("./_string-pad");$export($export.P,"String",{padStart:function padStart(maxLength){return $pad(this,maxLength,arguments.length>1?arguments[1]:undefined,true)}})},{"./_export":51,"./_string-pad":119}],306:[function(require,module,exports){"use strict";require("./_string-trim")("trimLeft",function($trim){return function trimLeft(){return $trim(this,1)}},"trimStart")},{"./_string-trim":121}],307:[function(require,module,exports){"use strict";require("./_string-trim")("trimRight",function($trim){return function trimRight(){return $trim(this,2)}},"trimEnd")},{"./_string-trim":121}],308:[function(require,module,exports){require("./_wks-define")("asyncIterator")},{"./_wks-define":134}],309:[function(require,module,exports){require("./_wks-define")("observable")},{"./_wks-define":134}],310:[function(require,module,exports){var $export=require("./_export");$export($export.S,"System",{global:require("./_global")})},{"./_export":51,"./_global":57}],311:[function(require,module,exports){var $iterators=require("./es6.array.iterator"),redefine=require("./_redefine"),global=require("./_global"),hide=require("./_hide"),Iterators=require("./_iterators"),wks=require("./_wks"),ITERATOR=wks("iterator"),TO_STRING_TAG=wks("toStringTag"),ArrayValues=Iterators.Array;for(var collections=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],i=0;i<5;i++){var NAME=collections[i],Collection=global[NAME],proto=Collection&&Collection.prototype,key;if(proto){if(!proto[ITERATOR])hide(proto,ITERATOR,ArrayValues);if(!proto[TO_STRING_TAG])hide(proto,TO_STRING_TAG,NAME);Iterators[NAME]=ArrayValues;for(key in $iterators)if(!proto[key])redefine(proto,key,$iterators[key],true)}}},{"./_global":57,"./_hide":59,"./_iterators":75,"./_redefine":106,"./_wks":136,"./es6.array.iterator":149}],312:[function(require,module,exports){var $export=require("./_export"),$task=require("./_task");$export($export.G+$export.B,{setImmediate:$task.set,clearImmediate:$task.clear})},{"./_export":51,"./_task":123}],313:[function(require,module,exports){var global=require("./_global"),$export=require("./_export"),invoke=require("./_invoke"),partial=require("./_partial"),navigator=global.navigator,MSIE=!!navigator&&/MSIE .\./.test(navigator.userAgent);var wrap=function(set){return MSIE?function(fn,time){return set(invoke(partial,[].slice.call(arguments,2),typeof fn=="function"?fn:Function(fn)),time)}:set};$export($export.G+$export.B+$export.F*MSIE,{setTimeout:wrap(global.setTimeout),setInterval:wrap(global.setInterval)})},{"./_export":51,"./_global":57,"./_invoke":63,"./_partial":102}],314:[function(require,module,exports){require("./modules/es6.symbol");require("./modules/es6.object.create");require("./modules/es6.object.define-property");require("./modules/es6.object.define-properties");require("./modules/es6.object.get-own-property-descriptor");require("./modules/es6.object.get-prototype-of");require("./modules/es6.object.keys");require("./modules/es6.object.get-own-property-names");require("./modules/es6.object.freeze");require("./modules/es6.object.seal");require("./modules/es6.object.prevent-extensions");require("./modules/es6.object.is-frozen");require("./modules/es6.object.is-sealed");require("./modules/es6.object.is-extensible");require("./modules/es6.object.assign");require("./modules/es6.object.is");require("./modules/es6.object.set-prototype-of");require("./modules/es6.object.to-string");require("./modules/es6.function.bind");require("./modules/es6.function.name");require("./modules/es6.function.has-instance");require("./modules/es6.parse-int");require("./modules/es6.parse-float");require("./modules/es6.number.constructor");require("./modules/es6.number.to-fixed");require("./modules/es6.number.to-precision");require("./modules/es6.number.epsilon");require("./modules/es6.number.is-finite");require("./modules/es6.number.is-integer");require("./modules/es6.number.is-nan");require("./modules/es6.number.is-safe-integer");require("./modules/es6.number.max-safe-integer");require("./modules/es6.number.min-safe-integer");require("./modules/es6.number.parse-float");require("./modules/es6.number.parse-int");require("./modules/es6.math.acosh");require("./modules/es6.math.asinh");require("./modules/es6.math.atanh");require("./modules/es6.math.cbrt");require("./modules/es6.math.clz32");require("./modules/es6.math.cosh");require("./modules/es6.math.expm1");require("./modules/es6.math.fround");require("./modules/es6.math.hypot");require("./modules/es6.math.imul");require("./modules/es6.math.log10");require("./modules/es6.math.log1p");require("./modules/es6.math.log2");require("./modules/es6.math.sign");require("./modules/es6.math.sinh");require("./modules/es6.math.tanh");require("./modules/es6.math.trunc");require("./modules/es6.string.from-code-point");require("./modules/es6.string.raw");require("./modules/es6.string.trim");require("./modules/es6.string.iterator");require("./modules/es6.string.code-point-at");require("./modules/es6.string.ends-with");require("./modules/es6.string.includes");require("./modules/es6.string.repeat");require("./modules/es6.string.starts-with");require("./modules/es6.string.anchor");require("./modules/es6.string.big");require("./modules/es6.string.blink");require("./modules/es6.string.bold");require("./modules/es6.string.fixed");require("./modules/es6.string.fontcolor");require("./modules/es6.string.fontsize");require("./modules/es6.string.italics");require("./modules/es6.string.link");require("./modules/es6.string.small");require("./modules/es6.string.strike");require("./modules/es6.string.sub");require("./modules/es6.string.sup");require("./modules/es6.date.now");require("./modules/es6.date.to-json");require("./modules/es6.date.to-iso-string");require("./modules/es6.date.to-string");require("./modules/es6.date.to-primitive");require("./modules/es6.array.is-array");require("./modules/es6.array.from");require("./modules/es6.array.of");require("./modules/es6.array.join");require("./modules/es6.array.slice");require("./modules/es6.array.sort");require("./modules/es6.array.for-each");require("./modules/es6.array.map");require("./modules/es6.array.filter");require("./modules/es6.array.some");require("./modules/es6.array.every");require("./modules/es6.array.reduce");require("./modules/es6.array.reduce-right");require("./modules/es6.array.index-of");require("./modules/es6.array.last-index-of");require("./modules/es6.array.copy-within");require("./modules/es6.array.fill");require("./modules/es6.array.find");require("./modules/es6.array.find-index");require("./modules/es6.array.species");require("./modules/es6.array.iterator");require("./modules/es6.regexp.constructor");require("./modules/es6.regexp.to-string");require("./modules/es6.regexp.flags");require("./modules/es6.regexp.match");require("./modules/es6.regexp.replace");require("./modules/es6.regexp.search");require("./modules/es6.regexp.split");require("./modules/es6.promise");require("./modules/es6.map");require("./modules/es6.set");require("./modules/es6.weak-map");require("./modules/es6.weak-set");require("./modules/es6.typed.array-buffer");require("./modules/es6.typed.data-view");require("./modules/es6.typed.int8-array");require("./modules/es6.typed.uint8-array");require("./modules/es6.typed.uint8-clamped-array");require("./modules/es6.typed.int16-array");require("./modules/es6.typed.uint16-array");require("./modules/es6.typed.int32-array");require("./modules/es6.typed.uint32-array");require("./modules/es6.typed.float32-array");require("./modules/es6.typed.float64-array");require("./modules/es6.reflect.apply");require("./modules/es6.reflect.construct");require("./modules/es6.reflect.define-property");require("./modules/es6.reflect.delete-property");require("./modules/es6.reflect.enumerate");require("./modules/es6.reflect.get");require("./modules/es6.reflect.get-own-property-descriptor");require("./modules/es6.reflect.get-prototype-of");require("./modules/es6.reflect.has");require("./modules/es6.reflect.is-extensible");require("./modules/es6.reflect.own-keys");require("./modules/es6.reflect.prevent-extensions");require("./modules/es6.reflect.set");require("./modules/es6.reflect.set-prototype-of");require("./modules/es7.array.includes");require("./modules/es7.string.at");require("./modules/es7.string.pad-start");require("./modules/es7.string.pad-end");require("./modules/es7.string.trim-left");require("./modules/es7.string.trim-right");require("./modules/es7.string.match-all");require("./modules/es7.symbol.async-iterator");require("./modules/es7.symbol.observable");require("./modules/es7.object.get-own-property-descriptors");require("./modules/es7.object.values");require("./modules/es7.object.entries");require("./modules/es7.object.define-getter");require("./modules/es7.object.define-setter");require("./modules/es7.object.lookup-getter");require("./modules/es7.object.lookup-setter");require("./modules/es7.map.to-json");require("./modules/es7.set.to-json");require("./modules/es7.system.global");require("./modules/es7.error.is-error");require("./modules/es7.math.iaddh");require("./modules/es7.math.isubh");require("./modules/es7.math.imulh");require("./modules/es7.math.umulh");require("./modules/es7.reflect.define-metadata");require("./modules/es7.reflect.delete-metadata");require("./modules/es7.reflect.get-metadata");require("./modules/es7.reflect.get-metadata-keys");require("./modules/es7.reflect.get-own-metadata");require("./modules/es7.reflect.get-own-metadata-keys");require("./modules/es7.reflect.has-metadata");require("./modules/es7.reflect.has-own-metadata");require("./modules/es7.reflect.metadata");require("./modules/es7.asap");require("./modules/es7.observable");require("./modules/web.timers");require("./modules/web.immediate");require("./modules/web.dom.iterable");module.exports=require("./modules/_core")},{"./modules/_core":42,"./modules/es6.array.copy-within":139,"./modules/es6.array.every":140,"./modules/es6.array.fill":141,"./modules/es6.array.filter":142,"./modules/es6.array.find":144,"./modules/es6.array.find-index":143,"./modules/es6.array.for-each":145,"./modules/es6.array.from":146,"./modules/es6.array.index-of":147,"./modules/es6.array.is-array":148,"./modules/es6.array.iterator":149,"./modules/es6.array.join":150,"./modules/es6.array.last-index-of":151,"./modules/es6.array.map":152,"./modules/es6.array.of":153,"./modules/es6.array.reduce":155,"./modules/es6.array.reduce-right":154,"./modules/es6.array.slice":156,"./modules/es6.array.some":157,"./modules/es6.array.sort":158,"./modules/es6.array.species":159,"./modules/es6.date.now":160,"./modules/es6.date.to-iso-string":161,"./modules/es6.date.to-json":162,"./modules/es6.date.to-primitive":163,"./modules/es6.date.to-string":164,"./modules/es6.function.bind":165,"./modules/es6.function.has-instance":166,"./modules/es6.function.name":167,"./modules/es6.map":168,"./modules/es6.math.acosh":169,"./modules/es6.math.asinh":170,"./modules/es6.math.atanh":171,"./modules/es6.math.cbrt":172,"./modules/es6.math.clz32":173,"./modules/es6.math.cosh":174,"./modules/es6.math.expm1":175,"./modules/es6.math.fround":176,"./modules/es6.math.hypot":177,"./modules/es6.math.imul":178,"./modules/es6.math.log10":179,"./modules/es6.math.log1p":180,"./modules/es6.math.log2":181,"./modules/es6.math.sign":182,"./modules/es6.math.sinh":183,"./modules/es6.math.tanh":184,"./modules/es6.math.trunc":185,"./modules/es6.number.constructor":186,"./modules/es6.number.epsilon":187,"./modules/es6.number.is-finite":188,"./modules/es6.number.is-integer":189,"./modules/es6.number.is-nan":190,"./modules/es6.number.is-safe-integer":191,"./modules/es6.number.max-safe-integer":192,"./modules/es6.number.min-safe-integer":193,"./modules/es6.number.parse-float":194,"./modules/es6.number.parse-int":195,"./modules/es6.number.to-fixed":196,"./modules/es6.number.to-precision":197,"./modules/es6.object.assign":198,"./modules/es6.object.create":199,"./modules/es6.object.define-properties":200,"./modules/es6.object.define-property":201,"./modules/es6.object.freeze":202,"./modules/es6.object.get-own-property-descriptor":203,"./modules/es6.object.get-own-property-names":204,"./modules/es6.object.get-prototype-of":205,"./modules/es6.object.is":209,"./modules/es6.object.is-extensible":206,"./modules/es6.object.is-frozen":207,"./modules/es6.object.is-sealed":208,"./modules/es6.object.keys":210,"./modules/es6.object.prevent-extensions":211,"./modules/es6.object.seal":212,"./modules/es6.object.set-prototype-of":213,"./modules/es6.object.to-string":214,"./modules/es6.parse-float":215,"./modules/es6.parse-int":216,"./modules/es6.promise":217,"./modules/es6.reflect.apply":218,"./modules/es6.reflect.construct":219,"./modules/es6.reflect.define-property":220,"./modules/es6.reflect.delete-property":221,"./modules/es6.reflect.enumerate":222,"./modules/es6.reflect.get":225,"./modules/es6.reflect.get-own-property-descriptor":223,"./modules/es6.reflect.get-prototype-of":224,"./modules/es6.reflect.has":226,"./modules/es6.reflect.is-extensible":227,"./modules/es6.reflect.own-keys":228,"./modules/es6.reflect.prevent-extensions":229,"./modules/es6.reflect.set":231,"./modules/es6.reflect.set-prototype-of":230,"./modules/es6.regexp.constructor":232,"./modules/es6.regexp.flags":233,"./modules/es6.regexp.match":234,"./modules/es6.regexp.replace":235,"./modules/es6.regexp.search":236,"./modules/es6.regexp.split":237,"./modules/es6.regexp.to-string":238,"./modules/es6.set":239,"./modules/es6.string.anchor":240,"./modules/es6.string.big":241,"./modules/es6.string.blink":242,"./modules/es6.string.bold":243,"./modules/es6.string.code-point-at":244,"./modules/es6.string.ends-with":245,"./modules/es6.string.fixed":246,"./modules/es6.string.fontcolor":247,"./modules/es6.string.fontsize":248,"./modules/es6.string.from-code-point":249,"./modules/es6.string.includes":250,"./modules/es6.string.italics":251,"./modules/es6.string.iterator":252,"./modules/es6.string.link":253,"./modules/es6.string.raw":254,"./modules/es6.string.repeat":255,"./modules/es6.string.small":256,"./modules/es6.string.starts-with":257,"./modules/es6.string.strike":258,"./modules/es6.string.sub":259,"./modules/es6.string.sup":260,"./modules/es6.string.trim":261,"./modules/es6.symbol":262,"./modules/es6.typed.array-buffer":263,"./modules/es6.typed.data-view":264,"./modules/es6.typed.float32-array":265,"./modules/es6.typed.float64-array":266,"./modules/es6.typed.int16-array":267,"./modules/es6.typed.int32-array":268,"./modules/es6.typed.int8-array":269,"./modules/es6.typed.uint16-array":270,"./modules/es6.typed.uint32-array":271,"./modules/es6.typed.uint8-array":272,"./modules/es6.typed.uint8-clamped-array":273,"./modules/es6.weak-map":274,"./modules/es6.weak-set":275,"./modules/es7.array.includes":276,"./modules/es7.asap":277,
  "./modules/es7.error.is-error":278,"./modules/es7.map.to-json":279,"./modules/es7.math.iaddh":280,"./modules/es7.math.imulh":281,"./modules/es7.math.isubh":282,"./modules/es7.math.umulh":283,"./modules/es7.object.define-getter":284,"./modules/es7.object.define-setter":285,"./modules/es7.object.entries":286,"./modules/es7.object.get-own-property-descriptors":287,"./modules/es7.object.lookup-getter":288,"./modules/es7.object.lookup-setter":289,"./modules/es7.object.values":290,"./modules/es7.observable":291,"./modules/es7.reflect.define-metadata":292,"./modules/es7.reflect.delete-metadata":293,"./modules/es7.reflect.get-metadata":295,"./modules/es7.reflect.get-metadata-keys":294,"./modules/es7.reflect.get-own-metadata":297,"./modules/es7.reflect.get-own-metadata-keys":296,"./modules/es7.reflect.has-metadata":298,"./modules/es7.reflect.has-own-metadata":299,"./modules/es7.reflect.metadata":300,"./modules/es7.set.to-json":301,"./modules/es7.string.at":302,"./modules/es7.string.match-all":303,"./modules/es7.string.pad-end":304,"./modules/es7.string.pad-start":305,"./modules/es7.string.trim-left":306,"./modules/es7.string.trim-right":307,"./modules/es7.symbol.async-iterator":308,"./modules/es7.symbol.observable":309,"./modules/es7.system.global":310,"./modules/web.dom.iterable":311,"./modules/web.immediate":312,"./modules/web.timers":313}],315:[function(require,module,exports){var process=module.exports={};var cachedSetTimeout;var cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){cachedSetTimeout=setTimeout}else{cachedSetTimeout=defaultSetTimout}}catch(e){cachedSetTimeout=defaultSetTimout}try{if(typeof clearTimeout==="function"){cachedClearTimeout=clearTimeout}else{cachedClearTimeout=defaultClearTimeout}}catch(e){cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout){return setTimeout(fun,0)}if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0)}try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){return clearTimeout(marker)}if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker)}try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue)}else{queueIndex=-1}if(queue.length){drainQueue()}}function drainQueue(){if(draining){return}var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex<len){if(currentQueue){currentQueue[queueIndex].run()}}queueIndex=-1;len=queue.length}currentQueue=null;draining=false;runClearTimeout(timeout)}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1){for(var i=1;i<arguments.length;i++){args[i-1]=arguments[i]}}queue.push(new Item(fun,args));if(queue.length===1&&!draining){runTimeout(drainQueue)}};function Item(fun,array){this.fun=fun;this.array=array}Item.prototype.run=function(){this.fun.apply(null,this.array)};process.title="browser";process.browser=true;process.env={};process.argv=[];process.version="";process.versions={};function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.binding=function(name){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")};process.umask=function(){return 0}},{}],316:[function(require,module,exports){(function(process,global){!function(global){"use strict";var hasOwn=Object.prototype.hasOwnProperty;var undefined;var $Symbol=typeof Symbol==="function"?Symbol:{};var iteratorSymbol=$Symbol.iterator||"@@iterator";var toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";var inModule=typeof module==="object";var runtime=global.regeneratorRuntime;if(runtime){if(inModule){module.exports=runtime}return}runtime=global.regeneratorRuntime=inModule?module.exports:{};function wrap(innerFn,outerFn,self,tryLocsList){var generator=Object.create((outerFn||Generator).prototype);var context=new Context(tryLocsList||[]);generator._invoke=makeInvokeMethod(innerFn,self,context);return generator}runtime.wrap=wrap;function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)}}catch(err){return{type:"throw",arg:err}}}var GenStateSuspendedStart="suspendedStart";var GenStateSuspendedYield="suspendedYield";var GenStateExecuting="executing";var GenStateCompleted="completed";var ContinueSentinel={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype;GeneratorFunction.prototype=Gp.constructor=GeneratorFunctionPrototype;GeneratorFunctionPrototype.constructor=GeneratorFunction;GeneratorFunctionPrototype[toStringTagSymbol]=GeneratorFunction.displayName="GeneratorFunction";function defineIteratorMethods(prototype){["next","throw","return"].forEach(function(method){prototype[method]=function(arg){return this._invoke(method,arg)}})}runtime.isGeneratorFunction=function(genFun){var ctor=typeof genFun==="function"&&genFun.constructor;return ctor?ctor===GeneratorFunction||(ctor.displayName||ctor.name)==="GeneratorFunction":false};runtime.mark=function(genFun){if(Object.setPrototypeOf){Object.setPrototypeOf(genFun,GeneratorFunctionPrototype)}else{genFun.__proto__=GeneratorFunctionPrototype;if(!(toStringTagSymbol in genFun)){genFun[toStringTagSymbol]="GeneratorFunction"}}genFun.prototype=Object.create(Gp);return genFun};runtime.awrap=function(arg){return new AwaitArgument(arg)};function AwaitArgument(arg){this.arg=arg}function AsyncIterator(generator){function invoke(method,arg,resolve,reject){var record=tryCatch(generator[method],generator,arg);if(record.type==="throw"){reject(record.arg)}else{var result=record.arg;var value=result.value;if(value instanceof AwaitArgument){return Promise.resolve(value.arg).then(function(value){invoke("next",value,resolve,reject)},function(err){invoke("throw",err,resolve,reject)})}return Promise.resolve(value).then(function(unwrapped){result.value=unwrapped;resolve(result)},reject)}}if(typeof process==="object"&&process.domain){invoke=process.domain.bind(invoke)}var previousPromise;function enqueue(method,arg){function callInvokeWithMethodAndArg(){return new Promise(function(resolve,reject){invoke(method,arg,resolve,reject)})}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}this._invoke=enqueue}defineIteratorMethods(AsyncIterator.prototype);runtime.async=function(innerFn,outerFn,self,tryLocsList){var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList));return runtime.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next()})};function makeInvokeMethod(innerFn,self,context){var state=GenStateSuspendedStart;return function invoke(method,arg){if(state===GenStateExecuting){throw new Error("Generator is already running")}if(state===GenStateCompleted){if(method==="throw"){throw arg}return doneResult()}while(true){var delegate=context.delegate;if(delegate){if(method==="return"||method==="throw"&&delegate.iterator[method]===undefined){context.delegate=null;var returnMethod=delegate.iterator["return"];if(returnMethod){var record=tryCatch(returnMethod,delegate.iterator,arg);if(record.type==="throw"){method="throw";arg=record.arg;continue}}if(method==="return"){continue}}var record=tryCatch(delegate.iterator[method],delegate.iterator,arg);if(record.type==="throw"){context.delegate=null;method="throw";arg=record.arg;continue}method="next";arg=undefined;var info=record.arg;if(info.done){context[delegate.resultName]=info.value;context.next=delegate.nextLoc}else{state=GenStateSuspendedYield;return info}context.delegate=null}if(method==="next"){context.sent=context._sent=arg}else if(method==="throw"){if(state===GenStateSuspendedStart){state=GenStateCompleted;throw arg}if(context.dispatchException(arg)){method="next";arg=undefined}}else if(method==="return"){context.abrupt("return",arg)}state=GenStateExecuting;var record=tryCatch(innerFn,self,context);if(record.type==="normal"){state=context.done?GenStateCompleted:GenStateSuspendedYield;var info={value:record.arg,done:context.done};if(record.arg===ContinueSentinel){if(context.delegate&&method==="next"){arg=undefined}}else{return info}}else if(record.type==="throw"){state=GenStateCompleted;method="throw";arg=record.arg}}}}defineIteratorMethods(Gp);Gp[iteratorSymbol]=function(){return this};Gp[toStringTagSymbol]="Generator";Gp.toString=function(){return"[object Generator]"};function pushTryEntry(locs){var entry={tryLoc:locs[0]};if(1 in locs){entry.catchLoc=locs[1]}if(2 in locs){entry.finallyLoc=locs[2];entry.afterLoc=locs[3]}this.tryEntries.push(entry)}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal";delete record.arg;entry.completion=record}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}];tryLocsList.forEach(pushTryEntry,this);this.reset(true)}runtime.keys=function(object){var keys=[];for(var key in object){keys.push(key)}keys.reverse();return function next(){while(keys.length){var key=keys.pop();if(key in object){next.value=key;next.done=false;return next}}next.done=true;return next}};function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];if(iteratorMethod){return iteratorMethod.call(iterable)}if(typeof iterable.next==="function"){return iterable}if(!isNaN(iterable.length)){var i=-1,next=function next(){while(++i<iterable.length){if(hasOwn.call(iterable,i)){next.value=iterable[i];next.done=false;return next}}next.value=undefined;next.done=true;return next};return next.next=next}}return{next:doneResult}}runtime.values=values;function doneResult(){return{value:undefined,done:true}}Context.prototype={constructor:Context,reset:function(skipTempReset){this.prev=0;this.next=0;this.sent=this._sent=undefined;this.done=false;this.delegate=null;this.tryEntries.forEach(resetTryEntry);if(!skipTempReset){for(var name in this){if(name.charAt(0)==="t"&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))){this[name]=undefined}}}},stop:function(){this.done=true;var rootEntry=this.tryEntries[0];var rootRecord=rootEntry.completion;if(rootRecord.type==="throw"){throw rootRecord.arg}return this.rval},dispatchException:function(exception){if(this.done){throw exception}var context=this;function handle(loc,caught){record.type="throw";record.arg=exception;context.next=loc;return!!caught}for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];var record=entry.completion;if(entry.tryLoc==="root"){return handle("end")}if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc");var hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc){return handle(entry.catchLoc,true)}else if(this.prev<entry.finallyLoc){return handle(entry.finallyLoc)}}else if(hasCatch){if(this.prev<entry.catchLoc){return handle(entry.catchLoc,true)}}else if(hasFinally){if(this.prev<entry.finallyLoc){return handle(entry.finallyLoc)}}else{throw new Error("try statement without catch or finally")}}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break}}if(finallyEntry&&(type==="break"||type==="continue")&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc){finallyEntry=null}var record=finallyEntry?finallyEntry.completion:{};record.type=type;record.arg=arg;if(finallyEntry){this.next=finallyEntry.finallyLoc}else{this.complete(record)}return ContinueSentinel},complete:function(record,afterLoc){if(record.type==="throw"){throw record.arg}if(record.type==="break"||record.type==="continue"){this.next=record.arg}else if(record.type==="return"){this.rval=record.arg;this.next="end"}else if(record.type==="normal"&&afterLoc){this.next=afterLoc}},finish:function(finallyLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc){this.complete(entry.completion,entry.afterLoc);resetTryEntry(entry);return ContinueSentinel}}},catch:function(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if(record.type==="throw"){var thrown=record.arg;resetTryEntry(entry)}return thrown}}throw new Error("illegal catch attempt")},delegateYield:function(iterable,resultName,nextLoc){this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc};return ContinueSentinel}}}(typeof global==="object"?global:typeof window==="object"?window:typeof self==="object"?self:this)}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{_process:315}]},{},[3]);