12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e0b64e64"],{"21a6":function(e,t,r){(function(r){var i;void 0!==(i="function"==typeof(i=function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function i(e,t,r){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){l(i.response,t,r)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function s(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r&&r.global===r?r:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,t,r){var o=a.URL||a.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?s(l):n(l.href)?i(e,t,r):s(l,l.target="_blank")):(l.href=o.createObjectURL(e),setTimeout((function(){o.revokeObjectURL(l.href)}),4e4),setTimeout((function(){s(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,a){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),r);else if(n(e))i(e,r,a);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout((function(){s(o)}))}}:function(e,t,r,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof e)return i(e,t,r);var s="application/octet-stream"===e.type,l=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&l||o)&&"undefined"!=typeof FileReader){var h=new FileReader;h.onloadend=function(){var e=h.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location=e,n=null},h.readAsDataURL(e)}else{var u=a.URL||a.webkitURL,d=u.createObjectURL(e);n?n.location=d:location.href=d,n=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});a.saveAs=l.saveAs=l,e.exports=l})?i.apply(t,[]):i)&&(e.exports=i)}).call(this,r("c8ba"))},"34ce":function(e,t,r){},"3f2a":function(e,t,r){"use strict";r.d(t,"g",(function(){return n})),r.d(t,"d",(function(){return s})),r.d(t,"c",(function(){return a})),r.d(t,"e",(function(){return o})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return c})),r.d(t,"f",(function(){return h})),r.d(t,"h",(function(){return u}));var i=r("6b6c");function n(e){return Object(i.a)({url:"/export/user_list",method:"get",params:e})}function s(e){return Object(i.a)({url:"/export/order_list",method:"get",params:e})}function a(e){return Object(i.a)({url:"/export/order_delivery_list",method:"get",params:e})}function o(e){return Object(i.a)({url:"/export/product_list",method:"get",params:e})}function l(e){return Object(i.a)({url:"/export/bargain_list",method:"get",params:e})}function c(e){return Object(i.a)({url:"/export/combination_list",method:"get",params:e})}function h(e){return Object(i.a)({url:"/export/seckill_list",method:"get",params:e})}function u(e){return Object(i.a)({url:"/export/member_card/".concat(e),method:"get"})}},"5acf":function(e,t,r){},"5c3ac":function(e,t,r){"use strict";r.r(t);var i=r("5530"),n=(r("a9e3"),r("d3b7"),r("159b"),r("a584")),s=r("c7eb"),a=r("1da1"),o=(r("25f0"),r("b64b"),r("e9c4"),r("99af"),r("a15b"),r("2f62")),l=r("f8b7"),c=r("3f2a"),h=r("1031"),u={name:"table_from",data:function(){return{fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},currentTab:"",grid:{xl:8,lg:8,md:8,sm:24,xs:24},orderData:{status:"",data:"",real_name:"",field_key:"all",pay_type:"",type:""},modalTitleSs:"",statusType:"",time:"",value2:[],modals2:!1,timeVal:[],payList:[{label:"全部",val:""},{label:"微信支付",val:"1"},{label:"支付宝支付",val:"4"},{label:"余额支付",val:"2"},{label:"线下支付",val:"3"}],pickerOptions:h.a}},computed:Object(i.a)(Object(i.a)({},Object(o.d)("order",["orderChartType","isDels","delIdList","orderType"])),{},{today:function(){var e=new Date,t=new Date;return[t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate(),e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()]}}),watch:{$route:function(){this.$route.fullPath===this.$routeProStr+"/order/list?status=1"&&this.getPath()},"orderData.field_key":function(e,t){this.getfieldKey(e)}},created:function(){this.setOrderKeyword(""),this.$route.fullPath===this.$routeProStr+"/order/list?status=1"&&this.getPath()},methods:Object(i.a)(Object(i.a)({},Object(o.c)("order",["getOrderStatus","getOrderType","getOrderTime","onChangeTabs","setOrderKeyword","getfieldKey"])),{},{getPath:function(){this.orderData.status=this.$route.query.status.toString(),this.getOrderStatus(this.orderData.status),this.$emit("getList",1)},exportList:function(){var e=this;return Object(a.a)(Object(s.a)().mark((function t(){var r,i,n,a,o,l,c;return Object(s.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.orderData.type=0===e.orderType?"":e.orderType,r=[],i=[],n=[],a="",(o=JSON.parse(JSON.stringify(e.orderData))).page=1,o.limit=200,o.ids=e.delIdList,l=0;case 7:if(l<o.page+1)return t.next=10,e.getExcelData(o);t.next=24;break;case 10:c=t.sent,a=a||c.filename,i.length||(i=c.fileKey),r.length||(r=c.header),c.export.length?(n=n.concat(c.export),o.page++,t.next=21):t.next=19;break;case 19:return e.$exportExcel(r,i,a,n),t.abrupt("return");case 21:l++,t.next=7;break;case 24:case"end":return t.stop()}}),t)})))()},getExcelData:function(e){return new Promise((function(t,r){Object(c.d)(e).then((function(e){t(e.data)}))}))},onchangeTime:function(e){this.timeVal=e||[],this.orderData.data=this.timeVal[0]&&this.timeVal?this.timeVal.join("-"):"",this.$store.dispatch("order/getOrderTabs",{type:this.orderData.status,data:this.orderData.data,pay_type:this.orderData.pay_type,field_key:this.orderData.field_key,real_name:this.orderData.real_name}),this.getOrderTime(this.orderData.data),this.$emit("getList",1)},selectChange:function(e){this.$store.dispatch("order/getOrderTabs",{type:this.orderData.status,data:this.orderData.data,pay_type:this.orderData.pay_type,field_key:this.orderData.field_key,real_name:this.orderData.real_name}),this.orderData.data=e,this.getOrderTime(this.orderData.data),this.timeVal=[],this.$emit("getList")},selectChange2:function(e){this.onChangeTabs(Number(e)),this.$store.dispatch("order/getOrderTabs",{type:this.orderData.status,data:this.orderData.data,pay_type:this.orderData.pay_type,field_key:this.orderData.field_key,real_name:this.orderData.real_name})},userSearchs:function(e){this.getOrderType(e),this.$store.dispatch("order/getOrderTabs",{type:this.orderData.status,data:this.orderData.data,pay_type:this.orderData.pay_type,field_key:this.orderData.field_key,real_name:this.orderData.real_name}),this.$emit("getList",1)},timeChange:function(e){this.getOrderTime(e),this.$emit("getList")},orderSearch:function(){this.setOrderKeyword(this.orderData.real_name),this.getfieldKey(this.orderData.field_key),this.$emit("getList",1),this.$store.dispatch("order/getOrderTabs",{type:this.orderData.status,data:this.orderData.data,pay_type:this.orderData.pay_type,field_key:this.orderData.field_key,real_name:this.orderData.real_name})},onClickTab:function(){this.$emit("onChangeType",this.currentTab)},delAll:function(){var e,t=this;0===this.delIdList.length?this.$message.error("请先选择删除的订单!"):this.isDels?(e={ids:this.delIdList},this.$modalSure({title:"删除订单",url:"/order/dels",method:"post",ids:e}).then((function(e){t.$message.success(e.msg),t.$emit("getList")})).catch((function(e){t.$message.error(e.msg)}))):this.$message.error("您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!")},Refresh:function(){this.$emit("getList")},handleReset:function(){this.$refs.form.resetFields(),this.$emit("on-reset")}})},d=r("2877"),p=(u=Object(d.a)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"table_box"},[t("div",{staticClass:"padding-add"},[t("el-form",{ref:"orderData",attrs:{model:e.orderData,"label-width":"80px","label-position":"right",inline:""},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{label:"订单类型:"}},[t("el-select",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"全部"},on:{change:e.selectChange2},model:{value:e.orderData.status,callback:function(t){e.$set(e.orderData,"status",t)},expression:"orderData.status"}},[t("el-option",{attrs:{label:"全部订单",value:""}}),t("el-option",{attrs:{label:"普通订单",value:"1"}}),t("el-option",{directives:[{name:"permission",rawName:"v-permission",value:"combination",expression:"'combination'"}],attrs:{label:"拼团订单",value:"2"}}),t("el-option",{directives:[{name:"permission",rawName:"v-permission",value:"seckill",expression:"'seckill'"}],attrs:{label:"秒杀订单",value:"3"}}),t("el-option",{directives:[{name:"permission",rawName:"v-permission",value:"bargain",expression:"'bargain'"}],attrs:{label:"砍价订单",value:"4"}}),t("el-option",{attrs:{label:"预售订单",value:"5"}})],1)],1),t("el-form-item",{attrs:{label:"支付方式:"}},[t("el-select",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"全部"},on:{change:e.userSearchs},model:{value:e.orderData.pay_type,callback:function(t){e.$set(e.orderData,"pay_type",t)},expression:"orderData.pay_type"}},e._l(e.payList,(function(e){return t("el-option",{key:e.id,attrs:{value:e.val,label:e.label}})})),1)],1),t("el-form-item",{attrs:{label:"创建时间:"}},[t("el-date-picker",{staticClass:"mr20",staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1),t("el-form-item",{attrs:{label:"搜索:",prop:"real_name","label-for":"real_name"}},[t("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入"},model:{value:e.orderData.real_name,callback:function(t){e.$set(e.orderData,"real_name",t)},expression:"orderData.real_name"}},[t("el-select",{staticStyle:{width:"100px"},attrs:{slot:"prepend"},slot:"prepend",model:{value:e.orderData.field_key,callback:function(t){e.$set(e.orderData,"field_key",t)},expression:"orderData.field_key"}},[t("el-option",{attrs:{value:"all",label:"全部"}}),t("el-option",{attrs:{value:"order_id",label:"订单号"}}),t("el-option",{attrs:{value:"uid",label:"UID"}}),t("el-option",{attrs:{value:"real_name",label:"用户姓名"}}),t("el-option",{attrs:{value:"user_phone",label:"用户电话"}}),t("el-option",{attrs:{value:"title",label:"商品名称"}})],1)],1)],1),t("el-form-item",[t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:e.orderSearch}},[e._v("查询")])],1)],1)],1)])}),[],!1,null,null,null).exports,r("ac1f"),r("1276"),r("2909")),m=(r("d9e2"),r("8ba4"),r("00b4"),r("d81d"),r("14d9"),r("c740"),{name:"table-expand",props:{row:Object}}),b=(m=(r("b271"),Object(d.a)(m,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"expand"},[t("el-row",{staticClass:"expand-row"},[t("el-col",{attrs:{span:6}},[t("span",{staticClass:"expand-key"},[e._v("商品总价:")]),t("span",{staticClass:"expand-value",domProps:{textContent:e._s(e.row.total_price)}})]),t("el-col",{attrs:{span:6}},[t("span",{staticClass:"expand-key"},[e._v("下单时间:")]),t("span",{staticClass:"expand-value",domProps:{textContent:e._s(e.row.add_time)}})]),t("el-col",{attrs:{span:6}},[t("span",{staticClass:"expand-key"},[e._v("推广人:")]),t("span",{staticClass:"expand-value",domProps:{textContent:e._s(e.row.spread_nickname||"无")}})]),t("el-col",{attrs:{span:6}},[t("span",{staticClass:"expand-key"},[e._v("事业部:")]),t("span",{staticClass:"expand-value",domProps:{textContent:e._s(e.row.division_name||"无")}})])],1),t("el-row",[t("el-col",{attrs:{span:6}},[t("span",{staticClass:"expand-key"},[e._v("用户备注:")]),t("span",{staticClass:"expand-value",domProps:{textContent:e._s(e.row.mark||"无")}})]),t("el-col",{attrs:{span:6}},[t("span",{staticClass:"expand-key"},[e._v("商家备注:")]),t("span",{staticClass:"expand-value",domProps:{textContent:e._s(e.row.remark||"无")}})]),t("el-col",{attrs:{span:6}},[t("span",{staticClass:"expand-key"},[e._v("核销码:")]),t("span",{staticClass:"expand-value",domProps:{textContent:e._s(e.row.verify_code||"无")}})])],1)],1)}),[],!1,null,"4fdf5833",null).exports),r("add5")),g=r.n(b),y=(b=r("31b4"),r("fc48")),v=r("61f8"),w=(r("caad"),r("a434"),r("7db0"),{name:"orderSend",props:{orderId:Number,status:Number,pay_type:String,virtual_type:{type:Number,default:0}},data:function(){return{orderStatus:0,total_num:0,splitSwitch:!0,formItem:{type:"1",express_record_type:"3",delivery_name:"",delivery_id:"",express_temp_id:"",to_name:"",to_tel:"",to_addr:"",sh_delivery:"",fictitious_content:"",service_type:"",day_type:0,pickup_time:["",""]},modals:!1,express:[],kuaidiExpress:[],expressTemp:[],deliveryList:[],temp:{},export_open:!1,manyFormValidate:[],selectData:[],serviceTypeList:[],sendPrice:0,ruleValidate:{sh_delivery:[{required:!0,message:"请输入送货人",trigger:"change"}]},deliveryErrorMsg:"",isLoading:!0,userSendmsg:{}}},watch:{virtual_type:function(e){3==this.virtual_type&&(this.formItem.type="3")}},mounted:function(){var e;this.kuaidiComsList(1),(e=localStorage.getItem("DELIVERY_DATA")?JSON.parse(localStorage.getItem("DELIVERY_DATA")):e)&&(this.formItem.delivery_name=e.delivery_name,this.formItem.delivery_code=e.delivery_code)},methods:{handleChange:function(e,t,r){var i=this;t.num=e||1,this.manyFormValidate[r]=t,this.selectData.forEach((function(e,r){e.cart_id===t.cart_id&&i.selectData.splice(r,1,t)}))},watchPrice:function(){var e,t=this;3==this.formItem.express_record_type&&(e={kuaidicom:this.formItem.delivery_code,send_address:this.formItem.to_addr,orderId:this.orderId,service_type:this.formItem.service_type,cart_ids:[]},this.selectData.forEach((function(t){e.cart_ids.push({cart_id:t.cart_id,cart_num:t.num||t.surplus_num})})),Object(l.J)(e).then((function(e){t.sendPrice=e.data.price,t.deliveryErrorMsg=""})).catch((function(e){1==t.formItem.type&&(t.deliveryErrorMsg=e.msg),t.$message.error(e.msg)})))},selectOne:function(e){this.selectData=e},changeModal:function(){this.cancel(),this.isLoading=!0},changeSplitStatus:function(e){var t=this;e?Object(l.bb)(this.orderId).then((function(e){t.manyFormValidate=[],Object.keys(e.data).forEach((function(r){t.manyFormValidate.push(e.data[r])}))})):(this.formItem.cart_ids=[],this.selectData=[])},changeRadio:function(e){switch(this.$refs.formItem.resetFields(),this.deliveryErrorMsg="",e){case"1":this.formItem.delivery_name="",this.formItem.delivery_id="",this.formItem.express_temp_id="",this.formItem.express_record_type="1",this.expressTemp=[],this.getList(1);break;case"2":this.formItem.sh_delivery="";break;case"3":this.formItem.fictitious_content=""}},changeExpress:function(e){switch(this.deliveryErrorMsg="",e){case"1":this.formItem.delivery_name="",this.formItem.delivery_id="",this.getList(1);break;case"2":this.formItem.delivery_name="",this.formItem.express_temp_id="",this.expressTemp=[],this.getList(2);break;case"3":this.formItem.delivery_name="",this.formItem.delivery_id=""}},kuaidiComsList:function(e){var t=this;Object(l.x)().then((function(e){t.kuaidiExpress=e.data,t.formItem.delivery_name&&t.expressChange(t.formItem.delivery_name)}))},reset:function(){this.formItem={type:"1",express_record_type:"3",delivery_name:"",delivery_id:"",express_temp_id:"",expressTemp:[],to_name:"",to_tel:"",to_addr:"",sh_delivery:"",fictitious_content:"",service_type:""}},getList:function(e){var t=this;e=2===e?1:"";Object(l.k)(e).then(function(){var e=Object(a.a)(Object(s.a)().mark((function e(r){return Object(s.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.express=r.data,t.getSheetInfo();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},printImg:function(e){g()({printable:e,type:"image",documentTitle:"快递信息",style:"img{\n width: 100%;\n height: 476px;\n }"})},putSend:function(e){var t=this,r={id:this.orderId,datas:this.formItem};if("1"===this.formItem.type&&"2"===this.formItem.express_record_type){if(""===this.formItem.delivery_name)return this.$message.error("快递公司不能为空");if(""===this.formItem.express_temp_id)return this.$message.error("电子面单不能为空");if(""===this.formItem.to_name)return this.$message.error("寄件人姓名不能为空");if(""===this.formItem.to_tel)return this.$message.error("寄件人电话不能为空");if(!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.formItem.to_tel))return this.$message.error("请输入正确的手机号码");if(""===this.formItem.to_addr)return this.$message.error("寄件人地址不能为空")}if("1"===this.formItem.type&&"1"===this.formItem.express_record_type){if(""===this.formItem.delivery_name)return this.$message.error("快递公司不能为空");if(""===this.formItem.delivery_id)return this.$message.error("快递单号不能为空")}if("2"===this.formItem.type&&""===this.formItem.sh_delivery)return this.$message.error("送货人不能为空");this.splitSwitch?(r.datas.cart_ids=[],this.selectData.forEach((function(e){r.datas.cart_ids.push({cart_id:e.cart_id,cart_num:e.num||e.surplus_num})})),Object(l.cb)(r).then((function(e){t.modals=!1,t.$message.success(e.msg),localStorage.setItem("DELIVERY_DATA",JSON.stringify(t.formItem)),t.$emit("submitFail"),t.reset(),t.splitSwitch=!1,e.data.label&&t.printImg(e.data.label)})).catch((function(e){t.$message.error(e.msg)}))):Object(l.O)(r).then(function(){var e=Object(a.a)(Object(s.a)().mark((function e(r){return Object(s.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.modals=!1,t.$message.success(r.msg),localStorage.setItem("DELIVERY_DATA",JSON.stringify(t.formItem)),t.splitSwitch=!1,t.$emit("submitFail"),t.reset(),r.data.label&&t.printImg(r.data.label);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))},cancel:function(e){this.modals=!1,this.orderStatus=0,this.sendPrice=0,this.deliveryErrorMsg="",this.splitSwitch=!1,this.selectData=[],this.formItem.type="1",this.$emit("clearId"),this.reset()},expressChange:function(e){var t=this,r=(this.formItem.service_type="",("3"==this.formItem.express_record_type?this.kuaidiExpress:this.express).find((function(t){return t.value===e})));void 0!==r&&(this.serviceTypeList=r.types,1==this.formItem.type&&3==this.formItem.express_record_type&&(this.formItem.service_type=r.types.length?r.types[0]:""),this.formItem.delivery_code=r.code,this.formItem.to_name&&this.formItem.to_addr&&3==this.formItem.express_record_type&&this.watchPrice(),"2"===this.formItem.express_record_type?(this.expressTemp=[],this.formItem.express_temp_id="",Object(l.C)({com:this.formItem.delivery_code}).then((function(e){t.expressTemp=e.data,t.formItem.express_temp_id=e.data.length?e.data[0].temp_id:"",e.data.length||t.$message.error("请配置你所选快递公司的电子面单")})).catch((function(e){t.$message.error(e.msg)}))):"3"==this.formItem.express_record_type&&(this.expressTemp=r.list,r.list.length)&&(this.formItem.express_temp_id=r.list[0].temp_id,this.temp=r.list[0]))},getCartInfo:function(e,t){var r=this;this.$set(this,"orderStatus",e),this.$set(this,"splitSwitch",8===e||11===e),Object(l.bb)(this.orderId).then((function(e){r.manyFormValidate=[],Object.keys(e.data).forEach((function(t){r.manyFormValidate.push(e.data[t])}))}))},getDeliveryList:function(){var e=this;Object(l.A)().then((function(t){e.deliveryList=t.data.list})).catch((function(t){e.$message.error(t.msg)}))},getSheetInfo:function(){var e=this;Object(l.M)().then((function(t){var r,i=t.data;for(r in i)i.hasOwnProperty(r)&&(e.formItem[r]=i[r]);e.export_open=void 0===i.export_open||i.export_open,e.export_open||(e.formItem.express_record_type="1"),e.formItem.to_addr=i.to_add,e.isLoading=!1})).catch((function(t){e.$message.error(t.msg)}))},shDeliveryChange:function(e){var t;e&&(t=this.deliveryList.find((function(t){return t.id===e})),this.formItem.sh_delivery_name=t.wx_name,this.formItem.sh_delivery_id=t.phone,this.formItem.sh_delivery_uid=t.uid)},expressTempChange:function(e){this.temp=this.expressTemp.find((function(t){return e===t.temp_id})),void 0===this.temp&&(this.temp={})},preview:function(){this.$refs.viewer.$viewer.show()}}}),_=(w=(r("d597"),Object(d.a)(w,(function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"order_box",attrs:{visible:e.modals,title:"订单发送货","show-close":!0,width:"1000px"},on:{"update:visible":function(t){e.modals=t},closed:e.changeModal}},[t("el-alert",{staticClass:"mb10",attrs:{type:"warning",closable:!1}},[t("template",{slot:"title"},[t("p",[e._v("用户姓名:"+e._s(e.userSendmsg.real_name))]),t("p",[e._v("用户电话:"+e._s(e.userSendmsg.user_phone))]),t("p",[e._v("用户地址:"+e._s(e.userSendmsg.user_address))])])],2),e.modals?t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading,expression:"isLoading"}],ref:"formItem",attrs:{rules:e.ruleValidate,model:e.formItem,"label-width":"100px"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{label:"选择类型:"}},[t("el-radio-group",{on:{input:e.changeRadio},model:{value:e.formItem.type,callback:function(t){e.$set(e.formItem,"type",t)},expression:"formItem.type"}},[3!==e.virtual_type?t("el-radio",{attrs:{label:"1"}},[e._v("发货")]):e._e(),3!==e.virtual_type?t("el-radio",{attrs:{label:"2"}},[e._v("送货")]):e._e(),t("el-radio",{attrs:{label:"3"}},[e._v("无需配送")])],1)],1),1==e.formItem.type?t("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.export_open,expression:"export_open"}],attrs:{label:"发货类型:"}},[t("el-radio-group",{on:{input:e.changeExpress},model:{value:e.formItem.express_record_type,callback:function(t){e.$set(e.formItem,"express_record_type",t)},expression:"formItem.express_record_type"}},[t("el-radio",{attrs:{label:"3"}},[e._v("商家寄件")]),t("el-radio",{attrs:{label:"1"}},[e._v("录入单号")]),t("el-radio",{attrs:{label:"2"}},[e._v("电子面单打印")])],1)],1):e._e(),["2","3"].includes(e.formItem.express_record_type)&&1==e.formItem.type?[t("el-form-item",{attrs:{label:"寄件人姓名:"}},[t("el-input",{staticStyle:{width:"60%"},attrs:{placeholder:"请输入寄件人姓名"},model:{value:e.formItem.to_name,callback:function(t){e.$set(e.formItem,"to_name",t)},expression:"formItem.to_name"}})],1),t("el-form-item",{attrs:{label:"寄件人电话:"}},[t("el-input",{staticStyle:{width:"60%"},attrs:{placeholder:"请输入寄件人电话"},model:{value:e.formItem.to_tel,callback:function(t){e.$set(e.formItem,"to_tel",t)},expression:"formItem.to_tel"}})],1),t("el-form-item",{attrs:{label:"寄件人地址:"}},[t("el-input",{staticStyle:{width:"60%"},attrs:{placeholder:"请输入寄件人地址"},on:{blur:e.watchPrice},model:{value:e.formItem.to_addr,callback:function(t){e.$set(e.formItem,"to_addr",t)},expression:"formItem.to_addr"}})],1)]:e._e(),t("div",[1==e.formItem.type?t("el-form-item",{attrs:{label:"快递公司:"}},[t("div",{staticClass:"from-box"},[t("el-select",{staticStyle:{width:"60%"},attrs:{filterable:"",placeholder:"请选择快递公司"},on:{change:e.expressChange},model:{value:e.formItem.delivery_name,callback:function(t){e.$set(e.formItem,"delivery_name",t)},expression:"formItem.delivery_name"}},e._l(3==e.formItem.express_record_type?e.kuaidiExpress:e.express,(function(r){return t("el-option",{key:r.value,attrs:{value:r.value}},[e._v(e._s(r.value))])})),1),t("div",{staticClass:"trip"},[e._v(e._s(e.deliveryErrorMsg))])],1)]):e._e(),1==e.formItem.type&&3==e.formItem.express_record_type?t("el-form-item",{attrs:{label:"快递业务类型:"}},[t("el-select",{staticStyle:{width:"60%"},attrs:{filterable:"",placeholder:"请选择业务类型"},on:{change:e.watchPrice},model:{value:e.formItem.service_type,callback:function(t){e.$set(e.formItem,"service_type",t)},expression:"formItem.service_type"}},e._l(e.serviceTypeList,(function(r){return t("el-option",{key:r,attrs:{value:r}},[e._v(e._s(r))])})),1)],1):e._e(),"1"===e.formItem.express_record_type&&1==e.formItem.type?t("el-form-item",{attrs:{label:"快递单号:"}},[t("el-input",{staticStyle:{width:"60%"},attrs:{placeholder:"请输入快递单号"},model:{value:e.formItem.delivery_id,callback:function(t){e.$set(e.formItem,"delivery_id",t)},expression:"formItem.delivery_id"}}),"顺丰速运"==e.formItem.delivery_name?t("div",{staticClass:"trips"},[t("p",[e._v("顺丰请输入单号 :收件人或寄件人手机号后四位,")]),t("p",[e._v("例如:SF000000000000:3941")])]):e._e()],1):e._e(),["2","3"].includes(e.formItem.express_record_type)&&1==e.formItem.type?[t("el-form-item",{staticClass:"express_temp_id",attrs:{label:"电子面单:"}},[t("el-select",{staticStyle:{width:"60%"},attrs:{placeholder:"请选择电子面单"},on:{change:e.expressTempChange},model:{value:e.formItem.express_temp_id,callback:function(t){e.$set(e.formItem,"express_temp_id",t)},expression:"formItem.express_temp_id"}},e._l(e.expressTemp,(function(e,r){return t("el-option",{key:r,attrs:{value:e.temp_id,label:e.title}})})),1),e.formItem.express_temp_id?t("Button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"text"},on:{click:e.preview}},[e._v("预览")]):e._e()],1),3==e.formItem.express_record_type?t("el-form-item",{attrs:{label:"预计寄件金额:"}},[t("span",{staticClass:"red"},[e._v(e._s(e.sendPrice))]),t("a",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"ml10 coumped",on:{click:e.watchPrice}},[e._v("立即计算")])]):e._e(),3==e.formItem.express_record_type?t("el-form-item",{attrs:{label:"取件日期:"}},[t("el-radio-group",{attrs:{type:"button"},model:{value:e.formItem.day_type,callback:function(t){e.$set(e.formItem,"day_type",t)},expression:"formItem.day_type"}},[t("el-radio",{attrs:{label:0}},[e._v("今天")]),t("el-radio",{attrs:{label:1}},[e._v("明天")]),t("el-radio",{attrs:{label:2}},[e._v("后天")])],1)],1):e._e(),3==e.formItem.express_record_type?t("el-form-item",{attrs:{label:"取件时间:"}},[t("el-time-picker",{attrs:{"is-range":"",format:"HH:mm","value-format":"HH:mm","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围"},model:{value:e.formItem.pickup_time,callback:function(t){e.$set(e.formItem,"pickup_time",t)},expression:"formItem.pickup_time"}})],1):e._e()]:e._e()],2),"2"===e.formItem.type?t("div",[t("el-form-item",{attrs:{label:"送货人:",prop:"2"==e.formItem.type?"sh_delivery":""}},[t("el-select",{staticStyle:{width:"60%"},attrs:{placeholder:"请选择送货人"},on:{change:e.shDeliveryChange},model:{value:e.formItem.sh_delivery,callback:function(t){e.$set(e.formItem,"sh_delivery",t)},expression:"formItem.sh_delivery"}},e._l(e.deliveryList,(function(e,r){return t("el-option",{key:r,attrs:{value:e.id,label:"".concat(e.wx_name,"(").concat(e.phone,")")}})})),1)],1)],1):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:"3"===e.formItem.type,expression:"formItem.type === '3'"}]},[t("el-form-item",{attrs:{label:"备注:"}},[t("el-input",{staticStyle:{width:"60%"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"备注"},model:{value:e.formItem.fictitious_content,callback:function(t){e.$set(e.formItem,"fictitious_content",t)},expression:"formItem.fictitious_content"}})],1)],1),1<e.total_num?t("div",[t("el-form-item",{attrs:{label:"分单发货:"}},[t("el-switch",{attrs:{"active-value":1,"inactive-value":0,size:"large",disabled:8===e.orderStatus||11===e.orderStatus},on:{change:e.changeSplitStatus},model:{value:e.splitSwitch,callback:function(t){e.splitSwitch=t},expression:"splitSwitch"}},[t("span",{attrs:{slot:"open"},slot:"open"},[e._v("开启")]),t("span",{attrs:{slot:"close"},slot:"close"},[e._v("关闭")])]),t("div",{staticClass:"trips"},[t("p",[e._v("可选择表格中的商品单独发货,发货后会生成新的订单且不能撤回,请谨慎操作!")])]),e.splitSwitch&&e.manyFormValidate.length?t("el-table",{ref:"table",attrs:{data:e.manyFormValidate},on:{"selection-change":e.selectOne}},[t("el-table-column",{attrs:{type:"selection",width:"55"}}),t("el-table-column",{attrs:{label:"商品信息",width:"200"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",{staticClass:"product-data"},[t("img",{staticClass:"image",attrs:{src:r.row.cart_info.productInfo.image}}),t("div",{staticClass:"line2"},[e._v("\n "+e._s(r.row.cart_info.productInfo.store_name)+"\n ")])])]}}],null,!1,103845676)}),t("el-table-column",{attrs:{label:"规格","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[e._v(e._s(r.row.cart_info.productInfo.attrInfo.suk))])]}}],null,!1,3831194527)}),t("el-table-column",{attrs:{label:"价格","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",{staticClass:"product-data"},[t("div",[e._v(e._s(r.row.cart_info.truePrice))])])]}}],null,!1,3465910445)}),t("el-table-column",{attrs:{label:"总数","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[e._v(e._s(r.row.cart_num))])]}}],null,!1,1546150460)}),t("el-table-column",{attrs:{label:"待发数量",width:"180"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("el-input-number",{attrs:{controls:!1,min:1,max:r.row.surplus_num},on:{change:function(t){e.handleChange(t,r.row,r.$index)}},model:{value:r.row.num,callback:function(t){e.$set(r.row,"num",t)},expression:"scope.row.num"}})]}}],null,!1,735198357)})],1):e._e()],1)],1):e._e()],2):e._e(),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:e.cancel}},[e._v("取消")]),t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:e.putSend}},[e._v("提交")])],1),t("div",{directives:[{name:"viewer",rawName:"v-viewer"}],ref:"viewer"},[t("img",{staticStyle:{display:"none"},attrs:{src:e.temp.pic}})])],1)}),[],!1,null,"012bdb6a",null).exports),{name:"orderSend",props:{orderId:Number,status:Number,pay_type:String,virtual_type:{type:Number,default:0}},data:function(){return{orderStatus:0,total_num:0,splitSwitch:!0,order_id:"",formItem:{refund_price:"",cart_ids:[]},modals:!1,express:[],kuaidiExpress:[],expressTemp:[],deliveryList:[],temp:{},export_open:!1,manyFormValidate:[],selectData:[],sendPrice:0,ruleValidate:{sh_delivery:[{required:!0,message:"请输入送货人",trigger:"change"}]},deliveryErrorMsg:"",isLoading:!0,userSendmsg:{}}},mounted:function(){},methods:{handleChange:function(e,t,r){var i=this,n=0;this.selectData.forEach((function(e,t){n+=i.manyFormValidate[t].num||0*i.manyFormValidate[t].cart_info.truePrice})),this.formItem.refund_price=n},selectOne:function(e){var t,r=this;this.selectData=e,this.selectData.length&&(t=0,this.selectData.forEach((function(e,i){t+=r.manyFormValidate[i].num*r.manyFormValidate[i].cart_info.truePrice})),this.formItem.refund_price=t)},changeModal:function(){this.cancel(),this.isLoading=!0},changeSplitStatus:function(e){var t=this;e?Object(l.bb)(this.orderId).then((function(e){t.manyFormValidate=[],Object.keys(e.data).forEach((function(r){t.manyFormValidate.push(e.data[r])}))})):(this.formItem.cart_ids=[],this.selectData=[])},reset:function(){this.formItem={refund_price:"",cart_ids:[]}},putSend:function(e){var t=this,r=(this.formItem.cart_ids=[],!0);if(this.splitSwitch&&this.selectData.forEach((function(e){e.num||(r=!1),t.formItem.cart_ids.push({cart_id:e.cart_id,cart_num:e.num||e.surplus_num})})),!r)return this.$message.error("请选择退款数量");Object(l.X)(this.orderId,this.formItem).then((function(e){t.modals=!1,t.$message.success(e.msg),t.$emit("submitFail"),t.reset(),t.splitSwitch=!1,e.data.label&&t.printImg(e.data.label)})).catch((function(e){t.$message.error(e.msg)}))},cancel:function(e){this.modals=!1,this.orderStatus=0,this.sendPrice=0,this.deliveryErrorMsg="",this.splitSwitch=!1,this.selectData=[],this.formItem.type="1",this.$emit("clearId"),this.reset()}}}),x=(_=(r("6bce"),Object(d.a)(_,(function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"order_box",attrs:{visible:e.modals,title:"订单退款","show-close":!0,width:"1000px"},on:{"update:visible":function(t){e.modals=t},closed:e.changeModal}},[e.modals?t("el-form",{ref:"formItem",attrs:{rules:e.ruleValidate,model:e.formItem,"label-width":"100px"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{label:"订单号:"}},[t("el-input",{staticStyle:{width:"60%"},attrs:{disabled:"",placeholder:"请输入订单号"},model:{value:e.order_id,callback:function(t){e.order_id=t},expression:"order_id"}})],1),t("el-form-item",{attrs:{label:"退款金额:"}},[t("el-input-number",{staticStyle:{width:"60%"},attrs:{placeholder:"请输入退款金额"},model:{value:e.formItem.refund_price,callback:function(t){e.$set(e.formItem,"refund_price",t)},expression:"formItem.refund_price"}})],1),1<e.total_num?t("div",[t("el-form-item",{attrs:{label:"分单退款:"}},[t("el-switch",{attrs:{"active-value":1,"inactive-value":0,size:"large",disabled:8===e.orderStatus||11===e.orderStatus},on:{change:e.changeSplitStatus},model:{value:e.splitSwitch,callback:function(t){e.splitSwitch=t},expression:"splitSwitch"}},[t("span",{attrs:{slot:"open"},slot:"open"},[e._v("开启")]),t("span",{attrs:{slot:"close"},slot:"close"},[e._v("关闭")])]),t("div",{staticClass:"trips"},[t("p",[e._v("可选择表格中的商品单独退款,请谨慎操作!")])]),e.splitSwitch&&e.manyFormValidate.length?t("el-table",{ref:"table",attrs:{data:e.manyFormValidate},on:{"selection-change":e.selectOne}},[t("el-table-column",{attrs:{type:"selection",width:"55"}}),t("el-table-column",{attrs:{label:"商品信息",width:"200"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",{staticClass:"product-data"},[t("img",{staticClass:"image",attrs:{src:r.row.cart_info.productInfo.image}}),t("div",{staticClass:"line2"},[e._v("\n "+e._s(r.row.cart_info.productInfo.store_name)+"\n ")])])]}}],null,!1,103845676)}),t("el-table-column",{attrs:{label:"规格","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[e._v(e._s(r.row.cart_info.productInfo.attrInfo.suk))])]}}],null,!1,3831194527)}),t("el-table-column",{attrs:{label:"价格","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",{staticClass:"product-data"},[t("div",[e._v(e._s(r.row.cart_info.truePrice))])])]}}],null,!1,3465910445)}),t("el-table-column",{attrs:{label:"总数","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[e._v(e._s(r.row.cart_num))])]}}],null,!1,1546150460)}),t("el-table-column",{attrs:{label:"退款数量",width:"180"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("el-input-number",{attrs:{controls:!1,min:1,max:r.row.cart_num},on:{change:function(t){e.handleChange(t,r.row,r.$index)}},model:{value:r.row.num,callback:function(t){e.$set(r.row,"num",t)},expression:"scope.row.num"}})]}}],null,!1,653023743)})],1):e._e()],1)],1):e._e()],1):e._e(),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:e.cancel}},[e._v("取消")]),t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:e.putSend}},[e._v("提交")])],1),t("div",{directives:[{name:"viewer",rawName:"v-viewer"}],ref:"viewer"},[t("img",{staticStyle:{display:"none"},attrs:{src:e.temp.pic}})])],1)}),[],!1,null,"c02b7bc2",null).exports),{name:"orderMark",data:function(){return{formValidate:{msg:""},modals:!1,ruleValidate:{msg:[{required:!0,message:"请输入备注信息",trigger:"blur"}]}}},props:{orderId:Number},methods:{cancel:function(e){this.modals=!1,this.$refs[e].resetFields()},putRemark:function(e){var t=this,r={msg:this.formValidate.msg};this.$refs[e].validate((function(i){i?Object(l.ab)(t.orderId,r).then(function(){var r=Object(a.a)(Object(s.a)().mark((function r(i){return Object(s.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t.$message.success(i.msg),t.modals=!1,t.$refs[e].resetFields(),t.$emit("submitFail");case 4:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)})):t.$message.warning("请填写备注信息")}))}}}),k=(x=Object(d.a)(x,(function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"order_box",attrs:{visible:e.modals,title:"取消寄件","show-close":!0,width:"540px"},on:{"update:visible":function(t){e.modals=t}}},[t("Form",{ref:"formValidate",attrs:{model:e.formValidate,rules:e.ruleValidate,"label-width":"80px","label-position":"right"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("FormItem",{attrs:{label:"备注:",prop:"msg"}},[t("Input",{staticStyle:{width:"414px"},attrs:{maxlength:200,"show-word-limit":"",type:"textarea",placeholder:"取消寄件备注"},model:{value:e.formValidate.msg,callback:function(t){e.$set(e.formValidate,"msg",t)},expression:"formValidate.msg"}})],1)],1),t("div",{staticClass:"acea-row row-right mt20"},[t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(t){return e.cancel("formValidate")}}},[e._v("取消")]),t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:function(t){return e.putRemark("formValidate")}}},[e._v("提交")])],1)],1)}),[],!1,null,"550ba555",null).exports,r("d708")),S=r("c276"),C=(r("90e7"),r("8122")),T=r("e8ae"),E=r.n(T),M=r("21a6");function A(e,t,r,i,n,s){var a,o,l=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],c=1,h=new E.a.Workbook,u=e.length;function d(e){var t;return e<26?l[e]:(t=e%26,e=Math.floor(e%26),l[e]+l[t])}s=s,X=Array.isArray(s)?s[0]:s,s=Array.isArray(s)?s[1]:{},a=h.addWorksheet(X,s);var p=t,m=u;if(!Object(C.isEmpty)(p)){p=Array.isArray(p)?p:p.split(",");for(var b=0;b<p.length;b++){var g=a.getRow(b+1);g.getCell(1).value=p[b],g.height=30,g.font={bold:!0,size:20,vertAlign:"subscript"},g.alignment={vertical:"bottom",horizontal:"center"},g.outlineLevel=1,a.mergeCells(b+1,1,b+1,m),g.commit(),c++}}var y=e;if(!Object(C.isEmpty)(y)){for(var v=a.getRow(c),w=1;w<=y.length;w++)v.getCell(w).value=y[w-1];v.height=25,v.width=50,v.font={bold:!0,size:18,vertAlign:"subscript"},v.alignment={vertical:"bottom",horizontal:"center"},v.outlineLevel=1,v.commit(),c++}var _=r;if(!Object(C.isEmpty)(_))for(var x=0;x<_.length;x++){for(var k=c,S=a.getRow(c),T=!1,A=0,O=0,j=0,I=0;I<_[x].length;I++)if(Array.isArray(_[x][I])){A=j,T=!0,F=B=D=P=N=R=void 0;for(var R=_[x][I],N=j,P=R.length-1,D=0;D<R.length;D++){for(var B=a.getRow(c),F=0;F<R[D].length;F++)B.getCell(d(N+F)).value=R[D][F],B.getCell(d(N+F)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},B.alignment={vertical:"middle",horizontal:"center"};B.height=25,B.commit(),D<P&&c++}O=j+=_[x][I][0].length}else S.getCell(d(j)).value=_[x][I],S.getCell(d(j)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},S.alignment={vertical:"middle",horizontal:"center"},j++;if(T){H=U=$=z=L=void 0;for(var L=k,z=c,$=A,U=O,H=0;H<u;H++)(H<$||U<=H)&&a.mergeCells(d(H)+L+":"+d(H)+z)}S.height=25,S.commit(),c++}var V=i;if(!Object(C.isEmpty)(V))if(Array.isArray(V))for(var q=0;q<V.length;q++){var W=a.getRow(c);W.getCell(1).value=V[q],W.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},W.alignment={vertical:"middle",horizontal:"left"},a.mergeCells("A"+c+":"+d(u-1)+c),c++}else{var X=a.getRow(c);X.getCell(1).value=V[f],X.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},X.alignment={vertical:"middle",horizontal:"left"},a.mergeCells("A"+c+":"+d(u-1)+c)}o=(o=n)||(new Date).getTime(),h.xlsx.writeBuffer().then((function(e){e=new Blob([e],{type:"application/octet-stream"}),M.saveAs(e,o+".xlsx")}))}var O=r("ed08");T={name:"table_list",components:{expandRow:m,editFrom:b.a,detailsFrom:y.a,orderRemark:v.a,orderSend:w,orderShipment:x,orderRefund:_},data:function(){return{batchShipmentModal:!1,expressUrl:k.a.apiBaseURL+"/file/upload/1",header:{},delfromData:{},modal:!1,orderList:[],orderCards:[],loading:!1,orderId:0,total_num:0,virtual_type:0,status:0,pay_type:"",total:0,page:{page:1,limit:15},data:[],FromData:null,orderDatalist:null,selectedIds:[],currentTab:"null",spinShow:!1,tablists:{all:"0",general:"0",pink:"0",seckill:"0",bargain:"0",advance:"0"},writeOffRules:{code:[{validator:function(e,t,r){if(!t)return r(new Error("请填写核销码"));Number.isInteger(t)&&/\b\d{12}\b/.test(t)?r():r(new Error("请填写12位数字"))},trigger:"blur",required:!0}]},writeOffFrom:{code:"",confirm:0},modals2:!1}},computed:Object(i.a)({},Object(o.d)("order",["orderPayType","orderStatus","orderTime","real_name","fieldKey","orderType","delIdList","isDels","orderChartType"])),mounted:function(){},created:function(){this.getTabs(),this.onChangeTabs(""),this.getList(),this.getToken()},watch:{orderType:function(){this.page.page=1,this.getList()}},methods:Object(i.a)(Object(i.a)({},Object(o.c)("order",["getOrderStatus","onChangeTabs","getIsDel","getisDelIdListl"])),{},{batchShipment:function(){},beforeUpload:function(e){return Object(O.a)(e)},changeMenu:function(e,t){var r=this;switch(this.orderId=e.id,t){case"1":this.delfromData={title:"修改立即支付",url:"/order/pay_offline/".concat(e.id),method:"post",ids:""},this.$modalSure(this.delfromData).then((function(e){r.$message.success(e.msg),r.$emit("changeGetTabs"),r.getList()})).catch((function(e){r.$message.error(e.msg)}));break;case"2":this.getData(e.id);break;case"4":this.$refs.remarks.modals=!0,this.$refs.remarks.formValidate.remark=e.remark;break;case"5":this.$refs.refund.total_num=e.total_num,this.$refs.refund.order_id=e.order_id,this.$refs.refund.formItem.refund_price=e.pay_price,this.virtual_type=e.virtual_type,this.$refs.refund.modals=!0,this.orderId=e.id,this.status=e._status,this.pay_type=e.pay_type;break;case"8":this.delfromData={title:"修改确认收货",url:"/order/take/".concat(e.id),method:"put",ids:""},this.$modalSure(this.delfromData).then((function(e){r.$message.success(e.msg),r.getList()})).catch((function(e){r.$message.error(e.msg)}));break;case"10":this.delfromData={title:"立即打印订单",url:"/order/print/".concat(e.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(e){r.$message.success(e.msg),r.$emit("changeGetTabs"),r.getList()})).catch((function(e){r.$message.error(e.msg)}));break;case"11":this.delfromData={title:"立即打印电子面单",info:"您确认打印此电子面单吗?",url:"/order/order_dump/".concat(e.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(e){r.$message.success(e.msg),r.getList()})).catch((function(e){r.$message.error(e.msg)}));break;case"12":this.printImg(e.kuaidi_label);break;case"13":var i=this.$router.resolve({path:k.a.routePre+"/order/print",query:{id:e.order_id}});window.open(i.href,"_blank");break;default:this.delfromData={title:"删除订单",url:"/order/del/".concat(e.id),method:"DELETE",ids:""},this.delOrder(e,this.delfromData)}},shipmentClear:function(e){this.orderId=e.id,this.$refs.shipment.modals=!0},printImg:function(e){g()({printable:e,type:"image",documentTitle:"快递信息",style:"img{\n width: 100%;\n height: 476px;\n }"})},submitModel:function(){this.getList()},getList:function(e){var t=this;this.page.page=1===e?1:this.page.page,this.loading=!0,Object(l.H)({page:this.page.page,limit:this.page.limit,status:this.orderStatus,pay_type:this.orderPayType,data:this.orderTime,real_name:this.real_name,field_key:this.fieldKey,type:0===this.orderType?"":this.orderType}).then(function(){var e=Object(a.a)(Object(s.a)().mark((function e(r){var i;return Object(s.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=r.data,t.orderList=i.data,t.orderCards=i.stat,t.total=i.count,t.$nextTick((function(){t.setChecked()})),t.$emit("on-changeCards",i.stat),t.loading=!1;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},handleSelectRow:function(e){var t=this,r=[];e.map((function(e){r.push(e.id)})),this.selectedIds=r,this.$nextTick((function(){t.setChecked()}))},setChecked:function(){var e,t=Object(p.a)(this.selectedIds),r=(this.getisDelIdListl(t),this.$refs.table.objData);for(e in r)this.selectedIds.has(r[e].id)&&(r[e]._isChecked=!0)},isDel:function(e){-1==e.findIndex((function(e){return 0===e.is_del}))?this.getIsDel(1):this.getIsDel(0)},edit:function(e){this.getOrderData(e.id)},delOrder:function(e,t){var r=this;1===e.is_del?this.$modalSure(t).then((function(e){r.$message.success(e.msg),r.getList()})).catch((function(e){r.$message.error(e.msg)})):this.$message.error("您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!")},getOrderData:function(e){var t=this;Object(l.n)(e).then(function(){var e=Object(a.a)(Object(s.a)().mark((function e(r){return Object(s.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.FromData=r.data,t.$refs.edits.modals=!0;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))},getData:function(e){var t=this;Object(l.g)(e).then(function(){var e=Object(a.a)(Object(s.a)().mark((function e(r){return Object(s.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$refs.details.modals=!0,t.orderDatalist=r.data,t.orderDatalist.orderInfo.refund_reason_wap_img)try{t.orderDatalist.orderInfo.refund_reason_wap_img=JSON.parse(t.orderDatalist.orderInfo.refund_reason_wap_img)}catch(e){t.orderDatalist.orderInfo.refund_reason_wap_img=[]}case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))},submitFail:function(){this.getList(),this.$emit("changeGetTabs")},getRefundData:function(e){var t=this;this.$modalForm(Object(l.q)(e)).then((function(){t.getList(),t.$emit("changeGetTabs")}))},getRefundIntegral:function(e){var t=this;Object(l.W)(e).then(function(){var e=Object(a.a)(Object(s.a)().mark((function e(r){return Object(s.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.FromData=r.data,t.$refs.edits.modals=!0;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))},getNoRefundData:function(e){var t=this;this.$modalForm(Object(l.r)(e)).then((function(){t.getList(),t.$emit("changeGetTabs")}))},sendOrder:function(e){var t=this;e.user_address&&(this.$refs.send.userSendmsg={real_name:e.real_name,user_address:e.user_address,user_phone:e.user_phone}),this.$refs.send.total_num=e.total_num,this.virtual_type=e.virtual_type,this.$refs.send.modals=!0,this.orderId=e.id,this.status=e._status,this.pay_type=e.pay_type,this.$refs.send.getList(),this.$refs.send.getDeliveryList(),this.$nextTick((function(r){t.$refs.send.getCartInfo(e._status,e.id)}))},delivery:function(e){var t=this;Object(l.i)(e.id).then(function(){var e=Object(a.a)(Object(s.a)().mark((function e(r){return Object(s.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.FromData=r.data,t.$refs.edits.modals=!0;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))},bindWrite:function(e){var t=this;this.$msgbox({title:"提示",message:"确定要核销该订单吗?",showCancelButton:!0,cancelButtonText:"取消",confirmButtonText:"确定",iconClass:"el-icon-warning",confirmButtonClass:"btn-custom-cancel"}).then((function(){Object(l.fb)(e.order_id).then((function(e){t.$message.success(e.msg),t.getList()})).catch((function(e){t.$message.error(e.msg)}))})).catch((function(){}))},getTabs:function(){var e=this;this.spinShow=!0,this.$store.dispatch("order/getOrderTabs",{data:""}).then((function(t){e.tablists=t.data,e.spinShow=!1})).catch((function(t){e.spinShow=!1,e.$message.error(t.msg)}))},onClickTab:function(){this.getOrderStatus("null"==this.currentTab?"":this.currentTab),this.getList()},delAll:function(){var e,t=this;0===this.delIdList.length?this.$message.error("请先选择删除的订单!"):this.isDels?(e={ids:this.delIdList},this.$modalSure({title:"删除订单",url:"/order/dels",method:"post",ids:e}).then((function(e){t.$message.success(e.msg),t.getList()})).catch((function(e){t.$message.error(e.msg)}))):this.$message.error("您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!")},exportDeliveryList:function(){var e=this;return Object(a.a)(Object(s.a)().mark((function t(){var r,i,n,a,o,l,c;return Object(s.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=[],i=[],n=[],a="",o={page:1,limit:200},l=0;case 3:if(l<o.page+1)return t.next=6,e.getDeliveryData(o);t.next=20;break;case 6:c=t.sent,a=a||c.filename,i.length||(i=c.fileKey),r.length||(r=c.header),c.export.length?(n=n.concat(c.export),o.page++,t.next=17):t.next=15;break;case 15:return e.$exportExcel(r,i,a,n),t.abrupt("return");case 17:l++,t.next=3;break;case 20:case"end":return t.stop()}}),t)})))()},getDeliveryData:function(e){return new Promise((function(t,r){Object(c.c)(e).then((function(e){t(e.data)}))}))},getToken:function(){this.header["Authori-zation"]="Bearer "+Object(S.c)("token")},upExpress:function(e){var t=this;Object(l.t)({file:e.data.src}).then((function(e){t.$message.success(e.msg),t.getList()})).catch((function(e){t.$message.error(e.msg)}))},exportList:function(){var e=this;return Object(a.a)(Object(s.a)().mark((function t(){var r,i,n,a;return Object(s.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r={page:1,limit:100,status:e.orderStatus,pay_type:e.orderPayType,data:e.orderTime,real_name:e.real_name,field_key:e.fieldKey,type:0===e.orderType?"":e.orderType,ids:e.delIdList},i=[],n={},a=1;case 2:if(a<r.page+1)return t.next=5,e.getExcelData(r);t.next=10;break;case 5:(n=t.sent).export.length&&(i=i.concat(n.export),n.export.length==r.limit)&&r.page++;case 7:a++,t.next=2;break;case 10:A(n.header,n.filename,i,"",n.filename);case 11:case"end":return t.stop()}}),t)})))()},getExcelData:function(e){return new Promise((function(t,r){Object(c.d)(e).then((function(e){t(e.data)}))}))},writeOff:function(){this.modals2=!0},ok:function(e){var t=this;this.writeOffFrom.code?(this.writeOffFrom.confirm=1,Object(l.R)(this.writeOffFrom).then(function(){var r=Object(a.a)(Object(s.a)().mark((function r(i){return Object(s.a)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:200===i.status?(t.$message.success(i.msg),t.modals2=!1,t.$refs[e].resetFields(),t.getList()):t.$message.error(i.msg);case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))):this.$message.warning("请先验证订单!")},del:function(e){this.modals2=!1,this.writeOffFrom.code="",this.$refs[e].resetFields()},changeModal:function(){this.writeOffFrom.code=""}})},r("b80c"),m={name:"orderListDetails",components:{tableForm:u,tableList:Object(d.a)(T,(function(){var e=this,t=e._self._c;return t("div",[e.tablists?t("el-tabs",{on:{"tab-click":e.onClickTab},model:{value:e.currentTab,callback:function(t){e.currentTab=t},expression:"currentTab"}},[t("el-tab-pane",{attrs:{name:"null",label:"全部"}}),t("el-tab-pane",{attrs:{name:"0",label:0<e.orderChartType.un_paid?"待支付(".concat(e.orderChartType.un_paid,")"):"待支付"}}),t("el-tab-pane",{attrs:{name:"1",label:0<e.orderChartType.un_send?"待发货(".concat(e.orderChartType.un_send,")"):"待发货"}}),t("el-tab-pane",{attrs:{name:"5",label:"待核销"}}),t("el-tab-pane",{attrs:{name:"2",label:"待收货"}}),t("el-tab-pane",{attrs:{name:"3",label:"待评价"}}),t("el-tab-pane",{attrs:{name:"4",label:"已完成"}}),t("el-tab-pane",{attrs:{name:"-2",label:"已退款"}}),t("el-tab-pane",{attrs:{name:"-4",label:"已删除"}})],1):e._e(),t("div",{staticClass:"acea-row"},[t("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["order-write"],expression:"['order-write']"},{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:e.writeOff}},[e._v("订单核销")]),t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:function(t){e.batchShipmentModal=!0}}},[e._v("批量发货")]),t("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["order-dels"],expression:"['order-dels']"},{name:"db-click",rawName:"v-db-click"}],on:{click:e.delAll}},[e._v("批量删除")]),t("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["export-storeOrder"],expression:"['export-storeOrder']"},{name:"db-click",rawName:"v-db-click"}],staticClass:"export",on:{click:e.exportList}},[e._v("订单导出")])],1),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",staticClass:"orderData mt14",attrs:{data:e.orderList,"empty-text":"暂无数据"},on:{select:e.handleSelectRow,"select-all":e.handleSelectRow}},[t("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(e){return[t("expandRow",{attrs:{row:e.row}})]}}])}),t("el-table-column",{attrs:{type:"selection",width:"55"}}),t("el-table-column",{attrs:{label:"订单号 | 类型",width:"200"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",[e._v(e._s(r.row.order_id))]),t("div",{staticClass:"pink_name",style:{color:r.row.color}},[e._v(e._s(r.row.pink_name))]),t("span",{directives:[{name:"show",rawName:"v-show",value:1===r.row.is_del,expression:"scope.row.is_del === 1"}],staticStyle:{color:"#ed4014",display:"block"}},[e._v("用户已删除")]),t("span",{directives:[{name:"show",rawName:"v-show",value:6===r.row.refund_type,expression:"scope.row.refund_type === 6"}],staticStyle:{color:"#ed4014",display:"block"}},[e._v("订单已退款")])]}}])}),t("el-table-column",{attrs:{label:"商品信息","min-width":"250"},scopedSlots:e._u([{key:"default",fn:function(r){return e._l(r.row._info,(function(r,i){return t("div",{key:i,staticClass:"tab"},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:(r.cart_info.productInfo.attrInfo||r.cart_info.productInfo).image,expression:"\n item.cart_info.productInfo.attrInfo\n ? item.cart_info.productInfo.attrInfo.image\n : item.cart_info.productInfo.image\n "}]}),t("el-tooltip",{attrs:{placement:"top","open-delay":300}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",[t("span",[e._v("商品名称:")]),t("span",[e._v(e._s(r.cart_info.productInfo.store_name||"--"))])]),t("div",[t("span",[e._v("规格名称:")]),t("span",[e._v(e._s(r.cart_info.productInfo.attrInfo?r.cart_info.productInfo.attrInfo.suk:"---"))])]),t("div",[t("span",[e._v("支付价格:")]),t("span",[e._v("¥"+e._s(r.cart_info.truePrice||"--"))])]),t("div",[t("span",[e._v("购买数量:")]),t("span",[e._v(e._s(r.cart_info.cart_num||"--"))])])]),t("span",{staticClass:"line2 w-250"},[e._v(e._s(r.cart_info.productInfo.store_name))])])],1)}))}}])}),t("el-table-column",{attrs:{label:"用户信息","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",{staticClass:"nickname"},[e._v(e._s(r.row.nickname)+" | "+e._s(r.row.uid))])]}}])}),t("el-table-column",{attrs:{label:"实际支付","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.paid?r.row.pay_price:"未支付"))])]}}])}),t("el-table-column",{attrs:{label:"支付方式","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.pay_type_name))])]}}])}),t("el-table-column",{attrs:{label:"支付时间","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row._pay_time))])]}}])}),t("el-table-column",{attrs:{label:"订单状态","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("div",{staticClass:"pt5",domProps:{innerHTML:e._s(r.row.status_name.status_name)}}),!r.row.is_all_refund&&r.row.refund.length?t("div",{staticClass:"trip"},[e._v("部分退款中")]):e._e(),0==r.row.refund_status&&r.row.is_all_refund&&r.row.refund.length&&6!=r.row.refund_type?t("div",{staticClass:"trip"},[e._v("\n 退款中\n ")]):e._e(),t("div",{staticClass:"img"},[r.row.status_name.pics?e._l(r.row.status_name.pics||[],(function(e,r){return t("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:r,staticClass:"pictrue"},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e,expression:"item"}],attrs:{src:e}})])})):e._e()],2)]}}])}),t("el-table-column",{attrs:{label:"操作",fixed:"right",width:"130"},scopedSlots:e._u([{key:"default",fn:function(r){return[1===r.row._status&&1!==r.row.is_del?t("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(t){return e.edit(r.row)}}},[e._v("编辑")]):e._e(),4!==r.row.status&&2!==r.row._status&&8!==r.row._status||1!==r.row.shipping_type||null!==r.row.pinkStatus&&2!==r.row.pinkStatus||1===r.row.is_del||r.row.refund.length?e._e():t("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(t){return e.sendOrder(r.row)}}},[e._v("发送货")]),4!==r.row._status||r.row.split.length?e._e():t("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(t){return e.delivery(r.row)}}},[e._v("配送信息")]),2==r.row.shipping_type&&0==r.row.status&&1==r.row.paid&&0===r.row.refund_status?t("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(t){return e.bindWrite(r.row)}}},[e._v("立即核销")]):e._e(),2===r.row._status&&1===r.row.shipping_type&&2===r.row.pinkStatus||r.row.split.length&&1!==r.row.is_del&&!r.row.refund.length?t("el-divider",{attrs:{direction:"vertical"}}):e._e(),4!==r.row.refund_type&&5!==r.row.refund_type&&(1===r.row._status||3===r.row._status||2===r.row._status&&!r.row.pinkStatus||4===r.row._status||2==r.row.shipping_type&&0==r.row.status&&1==r.row.paid&&0===r.row.refund_status)&&1!==r.row.is_del&&!r.row.refund.length?t("el-divider",{attrs:{direction:"vertical"}}):e._e(),[t("el-dropdown",{attrs:{size:"small",transfer:!0},on:{command:function(t){return e.changeMenu(r.row,t)}}},[t("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:1===r.row._status&&0===r.row.paid&&"offline"===r.row.pay_type&&1!==r.row.is_del,expression:"\n scope.row._status === 1 &&\n scope.row.paid === 0 &&\n scope.row.pay_type === 'offline' &&\n scope.row.is_del !== 1\n "}],attrs:{command:"1"}},[e._v("确认付款")]),t("el-dropdown-item",{attrs:{command:"2"}},[e._v("订单详情")]),t("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:3<=r.row._status&&r.row.express_dump,expression:"scope.row._status >= 3 && scope.row.express_dump"}],attrs:{command:"11"}},[e._v("电子面单打印")]),t("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:2<=r.row._status,expression:"scope.row._status >= 2"}],attrs:{command:"10"}},[e._v("小票打印")]),t("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:1!==r.row._status||3===r.row._status&&0<r.row.use_integral&&r.row.use_integral>=r.row.back_integral,expression:"\n scope.row._status !== 1 ||\n (scope.row._status === 3 &&\n scope.row.use_integral > 0 &&\n scope.row.use_integral >= scope.row.back_integral)\n "}],attrs:{command:"4"}},[e._v("订单备注")]),t("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:1==r.row.paid&&0==r.row.refund_status&&!r.row.refund.length,expression:"scope.row.paid == 1 && scope.row.refund_status == 0 && !scope.row.refund.length"}],attrs:{command:"5"}},[e._v("立即退款")]),t("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:4===r.row._status,expression:"scope.row._status === 4"}],attrs:{command:"8"}},[e._v("已收货")]),t("el-dropdown-item",{attrs:{command:"9"}},[e._v("删除订单")]),t("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:r.row.kuaidi_label,expression:"scope.row.kuaidi_label"}],attrs:{command:"12"}},[e._v("快递面单打印")]),t("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:r.row.paid,expression:"scope.row.paid"}],attrs:{command:"13"}},[e._v("配货单打印")])],1)],1)]]}}])})],1),t("div",{staticClass:"acea-row row-right page"},[e.total?t("pagination",{attrs:{total:e.total,page:e.page.page,limit:e.page.limit},on:{"update:page":function(t){return e.$set(e.page,"page",t)},"update:limit":function(t){return e.$set(e.page,"limit",t)},pagination:e.getList}}):e._e()],1),t("edit-from",{ref:"edits",attrs:{FromData:e.FromData},on:{submitFail:e.submitFail}}),t("details-from",{ref:"details",attrs:{orderDatalist:e.orderDatalist,orderId:e.orderId}}),t("order-remark",{ref:"remarks",attrs:{orderId:e.orderId},on:{submitFail:e.submitFail}}),t("order-shipment",{ref:"shipment",attrs:{orderId:e.orderId},on:{submitFail:e.submitFail}}),t("order-send",{ref:"send",attrs:{orderId:e.orderId,status:e.status,pay_type:e.pay_type,virtual_type:e.virtual_type},on:{submitFail:e.submitFail,clearId:function(){e.orderId=0,e.virtual_type=null}}}),t("order-refund",{ref:"refund",attrs:{orderId:e.orderId,status:e.status,pay_type:e.pay_type,virtual_type:e.virtual_type},on:{submitFail:e.submitFail,clearId:function(){e.orderId=0,e.virtual_type=null}}}),t("el-dialog",{staticClass:"paymentFooter",attrs:{visible:e.modals2,title:"订单核销","show-close":!0,width:"540px"},on:{"update:visible":function(t){e.modals2=t},closed:e.changeModal}},[t("el-form",{ref:"writeOffFrom",staticClass:"tabform",attrs:{model:e.writeOffFrom,rules:e.writeOffRules,"label-width":"80px","label-position":"right"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{prop:"code",label:"核销码:"}},[t("el-input",{staticStyle:{width:"414px"},attrs:{type:"text",placeholder:"请输入12位核销码"},model:{value:e.writeOffFrom.code,callback:function(t){e.$set(e.writeOffFrom,"code",e._n(t))},expression:"writeOffFrom.code"}})],1)],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:function(t){return e.ok("writeOffFrom")}}},[e._v("立即核销")]),t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(t){return e.del("writeOffFrom")}}},[e._v("取消")])],1)],1),t("el-dialog",{staticClass:"paymentFooter",attrs:{visible:e.batchShipmentModal,title:"批量发货","show-close":!0,width:"540px"},on:{"update:visible":function(t){e.batchShipmentModal=t},closed:e.changeModal}},[t("el-alert",{attrs:{type:"warning",closable:!1}},[t("p",[e._v("步骤一 导出发货单")]),t("p",[e._v("步骤二 发货单中填写物流单号")]),t("p",[e._v("步骤三 将发货单上传")])]),t("div",{staticClass:"acea-row row-middle mb10 mt10"},[t("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:e.exportDeliveryList}},[e._v("导出发货单")]),t("div",{staticClass:"pl20 tips"})],1),t("el-upload",{staticClass:"upload-demo",attrs:{accept:".doc,.docx,.xls,.xlsx",drag:"",action:e.expressUrl,headers:e.header,"on-success":e.upExpress,"before-upload":e.beforeUpload}},[t("i",{staticClass:"el-icon-upload"}),t("div",{staticClass:"el-upload__text"},[e._v("批量发货单,拖入上传或"),t("em",[e._v("点击上传")])])])],1)],1)}),[],!1,null,"1ef0fb12",null).exports,cardsData:n.a},data:function(){return{currentTab:"",cardLists:[]}},methods:{changeGetTabs:function(){this.$parent.getTabs()},getData:function(e){this.$refs.table.getList(e)},getCards:function(e){this.cardLists=e},handleResize:function(){this.$refs.ellipsis.forEach((function(e){return e.init()}))}},mounted:function(){}},r("9eee"),b={name:"list",components:{productListDetails:Object(d.a)(m,(function(){var e=this._self._c;return e("div",[e("el-card",{attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("table-form",{on:{getList:this.getData}})],1),e("el-card",{staticClass:"mt16",attrs:{bordered:!1,shadow:"never","body-style":{padding:"0 20px 20px"}}},[e("table-list",{ref:"table",on:{"on-changeCards":this.getCards,changeGetTabs:this.changeGetTabs}})],1)],1)}),[],!1,null,"21018278",null).exports},data:function(){var e;return{tabs:[{type:"",label:"全部订单",value:Number(null==(e=this.tablists)?void 0:e.all)||0,max:999999},{type:"1",label:"普通订单",value:Number(null==(e=this.tablists)?void 0:e.general)||0,max:999999},{type:"2",label:"拼团订单",value:Number(null==(e=this.tablists)?void 0:e.pink)||0,max:999999},{type:"3",label:"秒杀订单",value:Number(null==(e=this.tablists)?void 0:e.seckill)||0,max:999999},{type:"4",label:"砍价订单",value:Number(null==(e=this.tablists)?void 0:e.bargain)||0,max:999999},{type:"5",label:"预售订单",value:Number(null==(e=this.tablists)?void 0:e.advance)||0,max:999999}],spinShow:!1,currentTab:"",data:[],tablists:null}},created:function(){this.getOrderType(""),this.getOrderStatus(""),this.getOrderTime(""),this.getOrderNum(""),this.getfieldKey(""),this.getisDelIdListl(""),this.getIsDel(1)},beforeDestroy:function(){this.getOrderType(""),this.getOrderStatus(""),this.getOrderTime(""),this.getOrderNum(""),this.getfieldKey(""),this.getisDelIdListl(""),this.getIsDel(1)},mounted:function(){},methods:Object(i.a)({},Object(o.c)("order",["getOrderStatus","getOrderTime","getOrderNum","getfieldKey","getOrderType","getisDelIdListl","getIsDel"]))},r("aee1"),y=Object(d.a)(b,(function(){var e=this._self._c;return e("div",[(this.currentTab,e("product-list-details",{ref:"productlist"}))],1)}),[],!1,null,"3e625b9b",null);t.default=y.exports},"5e591":function(e,t,r){},"5e68":function(e,t,r){},6631:function(e,t,r){},"6bce":function(e,t,r){"use strict";r("5acf")},"8ba4":function(e,t,r){"use strict";r("23e7")({target:"Number",stat:!0},{isInteger:r("eac5")})},"9eee":function(e,t,r){"use strict";r("6631")},a584:function(e,t,r){"use strict";r("b0c0");var i={name:"cards",data:function(){return{colsize:{xl:4,lg:8,md:12}}},props:{cardLists:Array},methods:{},created:function(){switch(this.cardLists.length){case 1:this.colsize.xl=24,this.colsize.lg=24,this.colsize.md=24;break;case 2:this.colsize.xl=12,this.colsize.lg=12,this.colsize.md=12;break;case 3:this.colsize.xl=8,this.colsize.lg=8,this.colsize.md=8;break;case 4:this.colsize.xl=6,this.colsize.lg=6,this.colsize.md=12;break;case 5:this.colsize.xl=8,this.colsize.lg=8,this.colsize.md=12;break;default:this.colsize.xl=4,this.colsize.lg=8,this.colsize.md=12}4==this.cardLists.length?this.colsize.lg=6:4==this.cardLists.length&&(this.colsize.lg=8)}};r("dc1f"),r=r("2877"),r=Object(r.a)(i,(function(){var e=this,t=e._self._c;return t("div",[t("el-row",{staticClass:"ivu-mt",attrs:{align:"middle",gutter:24}},e._l(e.cardLists,(function(r,i){return t("el-col",{key:i,staticClass:"ivu-mb",attrs:{xl:r.col||e.colsize.xl,lg:e.colsize.lg,md:e.colsize.md,sm:24,xs:24}},[t("el-card",{staticClass:"card_cent",attrs:{shadow:"never"}},[t("div",{staticClass:"card_box"},[t("div",{staticClass:"card_box_cir",class:{one:i%5==0,two:i%5==1,three:i%5==2,four:i%5==3,five:i%5==4}},[t("div",{staticClass:"card_box_cir1",class:{one1:i%5==0,two1:i%5==1,three1:i%5==2,four1:i%5==3,five1:i%5==4}},[t("span",{staticClass:"iconfont",class:r.className})])]),t("div",{staticClass:"card_box_txt"},[t("span",{staticClass:"sp1",domProps:{textContent:e._s(r.count||0)}}),t("span",{staticClass:"sp2",domProps:{textContent:e._s(r.name)}})])])])],1)})),1)],1)}),[],!1,null,"50f2a66a",null);t.a=r.exports},add5:function(e,t,r){var i;window,i=function(){return t={"./src/index.js":
- /*!**********************!*\
- !*** ./src/index.js ***!
- \**********************/
- /*! exports provided: default */function(e,t,r){"use strict";r.r(t),r(/*! ./sass/index.scss */"./src/sass/index.scss"),r=r(/*! ./js/init */"./src/js/init.js").default.init,"undefined"!=typeof window&&(window.printJS=r),t.default=r},"./src/js/browser.js":
- /*!***************************!*\
- !*** ./src/js/browser.js ***!
- \***************************/
- /*! exports provided: default */function(e,t,r){"use strict";r.r(t);var i={isFirefox:function(){return"undefined"!=typeof InstallTrigger},isIE:function(){return-1!==navigator.userAgent.indexOf("MSIE")||!!document.documentMode},isEdge:function(){return!i.isIE()&&!!window.StyleMedia},isChrome:function(){return!!(0<arguments.length&&void 0!==arguments[0]?arguments[0]:window).chrome},isSafari:function(){return 0<Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")||-1!==navigator.userAgent.toLowerCase().indexOf("safari")},isIOSChrome:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("crios")}};t.default=i},"./src/js/functions.js":
- /*!*****************************!*\
- !*** ./src/js/functions.js ***!
- \*****************************/
- /*! exports provided: addWrapper, capitalizePrint, collectStyles, addHeader, cleanUp, isRawHTML */function(e,t,r){"use strict";r.r(t),r.d(t,"addWrapper",(function(){return a})),r.d(t,"capitalizePrint",(function(){return o})),r.d(t,"collectStyles",(function(){return l})),r.d(t,"addHeader",(function(){return c})),r.d(t,"cleanUp",(function(){return h})),r.d(t,"isRawHTML",(function(){return u}));var i=r(/*! ./modal */"./src/js/modal.js"),n=r(/*! ./browser */"./src/js/browser.js");function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){return'<div style="font-family:'+t.font+" !important; font-size: "+t.font_size+' !important; width:100%;">'+e+"</div>"}function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function l(e,t){for(var r="",i=(document.defaultView||window).getComputedStyle(e,""),n=0;n<i.length;n++)(-1!==t.targetStyles.indexOf("*")||-1!==t.targetStyle.indexOf(i[n])||function(e,t){for(var r=0;r<e.length;r++)if("object"===s(t)&&-1!==t.indexOf(e[r]))return 1}(t.targetStyles,i[n]))&&i.getPropertyValue(i[n])&&(r+=i[n]+":"+i.getPropertyValue(i[n])+";");return r+"max-width: "+t.maxWidth+"px !important; font-size: "+t.font_size+" !important;"}function c(e,t){var r,i,n=document.createElement("div");u(t.header)?n.innerHTML=t.header:(r=document.createElement("h1"),i=document.createTextNode(t.header),r.appendChild(i),r.setAttribute("style",t.headerStyle),n.appendChild(r)),e.insertBefore(n,e.childNodes[0])}function h(e){function t(){window.removeEventListener(r,t),e.onPrintDialogClose();var i=document.getElementById(e.frameId);i&&i.remove()}e.showModal&&i.default.close(),e.onLoadingEnd&&e.onLoadingEnd(),(e.showModal||e.onLoadingStart)&&window.URL.revokeObjectURL(e.printable);var r="mouseover";(n.default.isChrome()||n.default.isFirefox())&&(r="focus"),window.addEventListener(r,t)}function u(e){return new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>").test(e)}},"./src/js/html.js":
- /*!************************!*\
- !*** ./src/js/html.js ***!
- \************************/
- /*! exports provided: default */function(e,t,r){"use strict";r.r(t);var i=r(/*! ./functions */"./src/js/functions.js"),n=r(/*! ./print */"./src/js/print.js");function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default={print:function(e,t){var r="object"===s(r=e.printable)&&r&&(r instanceof HTMLElement||1===r.nodeType)?e.printable:document.getElementById(e.printable);r?(e.printableElement=function e(t,r){for(var n=t.cloneNode(),s=Array.prototype.slice.call(t.childNodes),a=0;a<s.length;a++){var o;-1===r.ignoreElements.indexOf(s[a].id)&&(o=e(s[a],r),n.appendChild(o))}switch(r.scanStyles&&1===t.nodeType&&n.setAttribute("style",Object(i.collectStyles)(t,r)),t.tagName){case"SELECT":n.value=t.value;break;case"CANVAS":n.getContext("2d").drawImage(t,0,0)}return n}(r,e),e.header&&Object(i.addHeader)(e.printableElement,e),n.default.send(e,t)):window.console.error("Invalid HTML element id: "+e.printable)}}},"./src/js/image.js":
- /*!*************************!*\
- !*** ./src/js/image.js ***!
- \*************************/
- /*! exports provided: default */function(e,t,r){"use strict";r.r(t);var i=r(/*! ./functions */"./src/js/functions.js"),n=r(/*! ./print */"./src/js/print.js"),s=r(/*! ./browser */"./src/js/browser.js");t.default={print:function(e,t){e.printable.constructor!==Array&&(e.printable=[e.printable]),e.printableElement=document.createElement("div"),e.printable.forEach((function(t){var r=document.createElement("img");r.setAttribute("style",e.imageStyle),r.src=t,s.default.isFirefox()&&(t=r.src,r.src=t),t=document.createElement("div");t.appendChild(r),e.printableElement.appendChild(t)})),e.header&&Object(i.addHeader)(e.printableElement,e),n.default.send(e,t)}}},"./src/js/init.js":
- /*!************************!*\
- !*** ./src/js/init.js ***!
- \************************/
- /*! exports provided: default */function(e,t,r){"use strict";r.r(t);var i=r(/*! ./browser */"./src/js/browser.js"),n=r(/*! ./modal */"./src/js/modal.js"),s=r(/*! ./pdf */"./src/js/pdf.js"),a=r(/*! ./html */"./src/js/html.js"),o=r(/*! ./raw-html */"./src/js/raw-html.js"),l=r(/*! ./image */"./src/js/image.js"),c=r(/*! ./json */"./src/js/json.js");function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=["pdf","html","image","json","raw-html"];t.default={init:function(){var e={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(e){throw e},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},t=arguments[0];if(void 0===t)throw new Error("printJS expects at least 1 attribute.");switch(h(t)){case"string":e.printable=encodeURI(t),e.fallbackPrintable=e.printable,e.type=arguments[1]||e.type;break;case"object":for(var r in e.printable=t.printable,e.fallbackPrintable=void 0!==t.fallbackPrintable?t.fallbackPrintable:e.printable,e.fallbackPrintable=e.base64?"data:application/pdf;base64,".concat(e.fallbackPrintable):e.fallbackPrintable,e)"printable"!==r&&"fallbackPrintable"!==r&&(e[r]=(void 0!==t[r]?t:e)[r]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+h(t))}if(!e.printable)throw new Error("Missing printable information.");if(!e.type||"string"!=typeof e.type||-1===u.indexOf(e.type.toLowerCase()))throw new Error("Invalid print type. Available types are: pdf, html, image and json.");e.showModal&&n.default.show(e),e.onLoadingStart&&e.onLoadingStart();var d=document.getElementById(e.frameId),f=(d&&d.parentNode.removeChild(d),document.createElement("iframe"));switch(i.default.isFirefox()?f.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):f.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),f.setAttribute("id",e.frameId),"pdf"!==e.type&&(f.srcdoc="<html><head><title>"+e.documentTitle+"</title>",e.css&&(Array.isArray(e.css)||(e.css=[e.css]),e.css.forEach((function(e){f.srcdoc+='<link rel="stylesheet" href="'+e+'">'}))),f.srcdoc+="</head><body></body></html>"),e.type){case"pdf":if(i.default.isIE())try{window.open(e.fallbackPrintable,"_blank").focus(),e.onIncompatibleBrowser()}catch(t){e.onError(t)}finally{e.showModal&&n.default.close(),e.onLoadingEnd&&e.onLoadingEnd()}else s.default.print(e,f);break;case"image":l.default.print(e,f);break;case"html":a.default.print(e,f);break;case"raw-html":o.default.print(e,f);break;case"json":c.default.print(e,f)}}}},"./src/js/json.js":
- /*!************************!*\
- !*** ./src/js/json.js ***!
- \************************/
- /*! exports provided: default */function(e,t,r){"use strict";r.r(t);var i=r(/*! ./functions */"./src/js/functions.js"),n=r(/*! ./print */"./src/js/print.js");function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default={print:function(e,t){if("object"!==s(e.printable))throw new Error("Invalid javascript data object (JSON).");if("boolean"!=typeof e.repeatTableHeader)throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!e.properties||!Array.isArray(e.properties))throw new Error("Invalid properties array for your JSON data.");e.properties=e.properties.map((function(t){return{field:"object"===s(t)?t.field:t,displayName:"object"===s(t)?t.displayName:t,columnSize:"object"===s(t)&&t.columnSize?t.columnSize+";":100/e.properties.length+"%;"}})),e.printableElement=document.createElement("div"),e.header&&Object(i.addHeader)(e.printableElement,e),e.printableElement.innerHTML+=function(e){var t=e.printable,r=e.properties,n='<table style="border-collapse: collapse; width: 100%;">';e.repeatTableHeader&&(n+="<thead>"),n+="<tr>";for(var s=0;s<r.length;s++)n+='<th style="width:'+r[s].columnSize+";"+e.gridHeaderStyle+'">'+Object(i.capitalizePrint)(r[s].displayName)+"</th>";n+="</tr>",e.repeatTableHeader&&(n+="</thead>"),n+="<tbody>";for(var a=0;a<t.length;a++){n+="<tr>";for(var o=0;o<r.length;o++){var l=t[a],c=r[o].field.split(".");if(1<c.length)for(var h=0;h<c.length;h++)l=l[c[h]];else l=l[r[o].field];n+='<td style="width:'+r[o].columnSize+e.gridStyle+'">'+l+"</td>"}n+="</tr>"}return n+"</tbody></table>"}(e),n.default.send(e,t)}}},"./src/js/modal.js":
- /*!*************************!*\
- !*** ./src/js/modal.js ***!
- \*************************/
- /*! exports provided: default */function(e,t,r){"use strict";r.r(t);var i={show:function(e){var t=document.createElement("div"),r=(t.setAttribute("style","font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;"),t.setAttribute("id","printJS-Modal"),document.createElement("div")),n=(r.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;"),document.createElement("div"));n.setAttribute("class","printClose"),n.setAttribute("id","printClose"),r.appendChild(n),n=document.createElement("span"),n.setAttribute("class","printSpinner"),r.appendChild(n),n=document.createTextNode(e.modalMessage);r.appendChild(n),t.appendChild(r),document.getElementsByTagName("body")[0].appendChild(t),document.getElementById("printClose").addEventListener("click",(function(){i.close()}))},close:function(){var e=document.getElementById("printJS-Modal");e&&e.parentNode.removeChild(e)}};t.default=i},"./src/js/pdf.js":
- /*!***********************!*\
- !*** ./src/js/pdf.js ***!
- \***********************/
- /*! exports provided: default */function(e,t,r){"use strict";r.r(t);var i=r(/*! ./print */"./src/js/print.js"),n=r(/*! ./functions */"./src/js/functions.js");function s(e,t,r){r=new window.Blob([r],{type:"application/pdf"}),r=window.URL.createObjectURL(r),t.setAttribute("src",r),i.default.send(e,t)}t.default={print:function(e,t){var r,i;e.base64?(r=Uint8Array.from(atob(e.printable),(function(e){return e.charCodeAt(0)})),s(e,t,r)):(e.printable=/^(blob|http|\/\/)/i.test(e.printable)?e.printable:window.location.origin+("/"!==e.printable.charAt(0)?"/"+e.printable:e.printable),(i=new window.XMLHttpRequest).responseType="arraybuffer",i.addEventListener("error",(function(){Object(n.cleanUp)(e),e.onError(i.statusText,i)})),i.addEventListener("load",(function(){-1===[200,201].indexOf(i.status)?(Object(n.cleanUp)(e),e.onError(i.statusText,i)):s(e,t,i.response)})),i.open("GET",e.printable,!0),i.send())}}},"./src/js/print.js":
- /*!*************************!*\
- !*** ./src/js/print.js ***!
- \*************************/
- /*! exports provided: default */function(e,t,r){"use strict";r.r(t);var i=r(/*! ./browser */"./src/js/browser.js"),n=r(/*! ./functions */"./src/js/functions.js");function s(t,r){try{if(t.focus(),i.default.isEdge()||i.default.isIE())try{t.contentWindow.document.execCommand("print",!1,null)}catch(e){t.contentWindow.print()}else t.contentWindow.print()}catch(e){r.onError(e)}finally{i.default.isFirefox()&&(t.style.visibility="hidden",t.style.left="-1px"),Object(n.cleanUp)(r)}}t.default={send:function(e,t){document.getElementsByTagName("body")[0].appendChild(t);var r=document.getElementById(e.frameId);r.onload=function(){var t,n;"pdf"===e.type?i.default.isFirefox()?setTimeout((function(){return s(r,e)}),1e3):s(r,e):((t=(t=r.contentWindow||r.contentDocument).document?t.document:t).body.appendChild(e.printableElement),"pdf"!==e.type&&e.style&&((n=document.createElement("style")).innerHTML=e.style,t.head.appendChild(n)),0<(n=t.getElementsByTagName("img")).length?function(e){return e=e.map((function(e){if(e.src&&e.src!==window.location.href)return t=e,new Promise((function(e){(function r(){t&&void 0!==t.naturalWidth&&0!==t.naturalWidth&&t.complete?e():setTimeout(r,500)})()}));var t})),Promise.all(e)}(Array.from(n)).then((function(){return s(r,e)})):s(r,e))}}}},"./src/js/raw-html.js":
- /*!****************************!*\
- !*** ./src/js/raw-html.js ***!
- \****************************/
- /*! exports provided: default */function(e,t,r){"use strict";r.r(t);var i=r(/*! ./print */"./src/js/print.js");t.default={print:function(e,t){e.printableElement=document.createElement("div"),e.printableElement.setAttribute("style","width:100%"),e.printableElement.innerHTML=e.printable,i.default.send(e,t)}}},"./src/sass/index.scss":
- /*!*****************************!*\
- !*** ./src/sass/index.scss ***!
- \*****************************/
- /*! no static exports found */function(e,t,r){},0:
- /*!****************************!*\
- !*** multi ./src/index.js ***!
- \****************************/
- /*! no static exports found */function(e,t,r){e.exports=r(/*! ./src/index.js */"./src/index.js")}},r={},e.m=t,e.c=r,e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:i})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var n in t)e.d(i,n,function(e){return t[e]}.bind(null,n));return i},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=0).default;function e(i){var n;return(r[i]||(n=r[i]={i:i,l:!1,exports:{}},t[i].call(n.exports,n,n.exports,e),n.l=!0,n)).exports}var t,r},e.exports=i()},aee1:function(e,t,r){"use strict";r("c228")},b271:function(e,t,r){"use strict";r("5e68")},b440:function(e,t,r){},b80c:function(e,t,r){"use strict";r("b440")},c228:function(e,t,r){},d597:function(e,t,r){"use strict";r("5e591")},dc1f:function(e,t,r){"use strict";r("34ce")},e8ae:function(e,t,r){(function(t){e.exports=function e(t,r,i){function n(a,o){if(!r[a]){if(!t[a]){if(s)return s(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}l=r[a]={exports:{}},t[a][0].call(l.exports,(function(e){return n(t[a][1][e]||e)}),l,l.exports,e,t,r,i)}return r[a].exports}for(var s=!1,a=0;a<i.length;a++)n(i[a]);return n}({1:[function(e,t,r){"use strict";const i=e("fs"),n=e("fast-csv"),s=e("dayjs/plugin/customParseFormat"),a=e("dayjs/plugin/utc"),o=e("dayjs").extend(s).extend(a),l=e("../utils/stream-buf"),{exists:c}=e("../utils/utils")["fs"],h={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};t.exports=class{constructor(e){this.workbook=e,this.worksheet=null}async readFile(e,t){var r;if(t=t||{},await c(e))return r=i.createReadStream(e),t=await this.read(r,t),r.close(),t;throw new Error("File not found: "+e)}read(e,t){return t=t||{},new Promise((r,i)=>{const s=this.workbook.addWorksheet(t.sheetName),a=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],l=t.map||function(e){var t,r;return""===e?null:(t=Number(e),Number.isNaN(t)||t===1/0?(r=a.reduce((t,r)=>t||((t=o(e,r,!0)).isValid()?t:null),null))?new Date(r.valueOf()):void 0!==(r=h[e])?r:e:t)},c=n.parse(t.parserOptions).on("data",e=>{s.addRow(e.map(l))}).on("end",()=>{c.emit("worksheet",s)});c.on("worksheet",r).on("error",i),e.pipe(c)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(e,t){return new Promise((r,i)=>{t=t||{};const s=this.workbook.getWorksheet(t.sheetName||t.sheetId),a=n.format(t.formatterOptions),{dateFormat:l,dateUTC:c}=(e.on("finish",()=>{r()}),a.on("error",i),a.pipe(e),t),h=t.map||(e=>{if(e){if(e.text||e.hyperlink)return e.hyperlink||e.text||"";if(e.formula||e.result)return e.result||"";if(e instanceof Date)return l?(c?o.utc(e):o(e)).format(l):(c?o.utc(e):o(e)).format();if(e.error)return e.error;if("object"==typeof e)return JSON.stringify(e)}return e}),u=void 0===t.includeEmptyRows||t.includeEmptyRows;let d=1;s&&s.eachRow((e,t)=>{if(u)for(;d++<t-1;)a.write([]);e=e.values,e.shift(),a.write(e.map(h)),d=t}),a.end()})}writeFile(e,t){var r={encoding:(t=t||{}).encoding||"utf8"};e=i.createWriteStream(e,r);return this.write(e,t)}async writeBuffer(e){var t=new l;return await this.write(t,e),t.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,t,r){"use strict";const i=e("../utils/col-cache");t.exports=class e{constructor(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;if(this.worksheet=e,t)if("string"==typeof t){const e=i.decodeAddress(t);this.nativeCol=e.col+r,this.nativeColOff=0,this.nativeRow=e.row+r,this.nativeRowOff=0}else void 0!==t.nativeCol?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):void 0!==t.col?(this.col=t.col+r,this.row=t.row+r):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(t){return t instanceof e||null==t?t:new e(t)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}},{"../utils/col-cache":19}],3:[function(e,t,r){"use strict";const i=e("../utils/col-cache"),n=e("../utils/under-dash"),s=e("./enums"),a=e("../utils/shared-formula")["slideFormula"],o=e("./note");class l{constructor(e,t,r){if(!e||!t)throw new Error("A Cell needs a Row");this._row=e,this._column=t,i.validateAddress(r),this._address=r,this._value=c.create(l.Types.Null,this),this.style=this._mergeStyle(e.style,t.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(e){this.style.numFmt=e}get font(){return this.style.font}set font(e){this.style.font=e}get alignment(){return this.style.alignment}set alignment(e){this.style.alignment=e}get border(){return this.style.border}set border(e){this.style.border=e}get fill(){return this.style.fill}set fill(e){this.style.fill=e}get protection(){return this.style.protection}set protection(e){this.style.protection=e}_mergeStyle(e,t,r){var i=e&&e.numFmt||t&&t.numFmt;i&&(r.numFmt=i),i=e&&e.font||t&&t.font,i&&(r.font=i),i=e&&e.alignment||t&&t.alignment,i&&(r.alignment=i),i=e&&e.border||t&&t.border,i&&(r.border=i),i=e&&e.fill||t&&t.fill,i&&(r.fill=i),i=e&&e.protection||t&&t.protection;return i&&(r.protection=i),r}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$`+this.row}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return 0<this._mergeCount||this.type===l.Types.Merge}merge(e,t){this._value.release(),this._value=c.create(l.Types.Merge,this,e),t||(this.style=e.style)}unmerge(){this.type===l.Types.Merge&&(this._value.release(),this._value=c.create(l.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(e){return this._value.type===l.Types.Merge&&this._value.isMergedTo(e)}get master(){return this.type===l.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===l.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(e){this.type!==l.Types.Merge?(this._value.release(),this._value=c.create(c.getType(e),this,e)):this._value.master.value=e}get note(){return this._comment&&this._comment.note}set note(e){this._comment=new o(e)}get text(){return this._value.toString()}get html(){return n.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(e){this.type===l.Types.String&&(this._value=c.create(l.Types.Hyperlink,this,{text:this._value.value,hyperlink:e}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){var e=this._row["worksheet"];return{sheetName:e.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(e){this.names=[e]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(e){const t=this.workbook["definedNames"];t.removeAllNames(this.fullAddress),e.forEach(e=>{t.addEx(this.fullAddress,e)})}addName(e){this.workbook.definedNames.addEx(this.fullAddress,e)}removeName(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(e){this._dataValidations.add(this.address,e)}get model(){var e=this._value["model"];return e.style=this.style,this._comment&&(e.comment=this._comment.model),e}set model(e){this._value.release(),this._value=c.create(e.type,this),(this._value.model=e).comment&&"note"===e.comment.type&&(this._comment=o.fromModel(e.comment)),e.style?this.style=e.style:this.style={}}}l.Types=s.ValueType;const c={getType:e=>null==e?l.Types.Null:e instanceof String||"string"==typeof e?l.Types.String:"number"==typeof e?l.Types.Number:"boolean"==typeof e?l.Types.Boolean:e instanceof Date?l.Types.Date:e.text&&e.hyperlink?l.Types.Hyperlink:e.formula||e.sharedFormula?l.Types.Formula:e.richText?l.Types.RichText:e.sharedString?l.Types.SharedString:e.error?l.Types.Error:l.Types.JSON,types:[{t:l.Types.Null,f:class{constructor(e){this.model={address:e.address,type:l.Types.Null}}get value(){return null}set value(e){}get type(){return l.Types.Null}get effectiveType(){return l.Types.Null}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){}toString(){return""}}},{t:l.Types.Number,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Number,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Number}get effectiveType(){return l.Types.Number}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.String,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:l.Types.Date,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Date,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Date}get effectiveType(){return l.Types.Date}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Hyperlink,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Hyperlink,text:t?t.text:void 0,hyperlink:t?t.hyperlink:void 0},t&&t.tooltip&&(this.model.tooltip=t.tooltip)}get value(){var e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e}set value(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}get text(){return this.model.text}set text(e){this.model.text=e}get hyperlink(){return this.model.hyperlink}set hyperlink(e){this.model.hyperlink=e}get type(){return l.Types.Hyperlink}get effectiveType(){return l.Types.Hyperlink}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:l.Types.Formula,f:class{constructor(e,t){this.cell=e,this.model={address:e.address,type:l.Types.Formula,shareType:t?t.shareType:void 0,ref:t?t.ref:void 0,formula:t?t.formula:void 0,sharedFormula:t?t.sharedFormula:void 0,result:t?t.result:void 0}}_copyModel(e){const t={},r=r=>{var i=e[r];i&&(t[r]=i)};return r("formula"),r("result"),r("ref"),r("shareType"),r("sharedFormula"),t}get value(){return this._copyModel(this.model)}set value(e){this.model=this._copyModel(e)}validate(e){switch(c.getType(e)){case l.Types.Null:case l.Types.String:case l.Types.Number:case l.Types.Date:break;case l.Types.Hyperlink:case l.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(e){this.model.formula=e}get formulaType(){return this.model.formula?s.FormulaType.Master:this.model.sharedFormula?s.FormulaType.Shared:s.FormulaType.None}get result(){return this.model.result}set result(e){this.model.result=e}get type(){return l.Types.Formula}get effectiveType(){var e=this.model.result;return null==e?s.ValueType.Null:e instanceof String||"string"==typeof e?s.ValueType.String:"number"==typeof e?s.ValueType.Number:e instanceof Date?s.ValueType.Date:e.text&&e.hyperlink?s.ValueType.Hyperlink:e.formula?s.ValueType.Formula:s.ValueType.Null}get address(){return this.model.address}set address(e){this.model.address=e}_getTranslatedFormula(){var e;return!this._translatedFormula&&this.model.sharedFormula&&(e=this.cell["worksheet"],e=e.findCell(this.model.sharedFormula),this._translatedFormula=e&&a(e.formula,e.address,this.model.address)),this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:l.Types.Merge,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Merge,master:t?t.address:void 0},(this._master=t)&&t.addMergeRef()}get value(){return this._master.value}set value(e){e instanceof l?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}isMergedTo(e){return e===this._master}get master(){return this._master}get type(){return l.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:l.Types.JSON,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.String,value:JSON.stringify(t),rawValue:t}}get value(){return this.model.rawValue}set value(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:l.Types.SharedString,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.SharedString,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.SharedString}get effectiveType(){return l.Types.SharedString}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.RichText,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}toString(){return this.model.value.richText.map(e=>e.text).join("")}get type(){return l.Types.RichText}get effectiveType(){return l.Types.RichText}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:l.Types.Boolean,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Boolean,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Boolean}get effectiveType(){return l.Types.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Error,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Error,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Error}get effectiveType(){return l.Types.Error}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((e,t)=>(e[t.t]=t.f,e),[]),create(e,t,r){var i=this.types[e];if(i)return new i(t,r);throw new Error("Could not create Value of type "+e)}};t.exports=l},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,t,r){"use strict";const i=e("../utils/under-dash"),n=e("./enums"),s=e("../utils/col-cache");t.exports=class e{constructor(e,t,r){this._worksheet=e,this._number=t,!1!==r&&(this.defn=r)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return s.n2l(this._number)}get isCustomWidth(){return void 0!==this.width&&9!==this.width}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=void 0!==e.width?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){void 0!==e?(this._header=e,this.headers.forEach((e,t)=>{this._worksheet.getCell(t+1,this.number).value=e})):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),(this._key=e)&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&i.isEqual(this.style,e.style)}get isDefault(){var e;return!this.isCustomWidth&&!this.hidden&&!(this.outlineLevel||(e=this.style)&&(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection))}get headerCount(){return this.headers.length}eachCell(e,t){const r=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,(e,i)=>{t(e.getCell(r),i)})}get values(){const e=[];return this.eachCell((t,r)=>{t&&t.type!==n.ValueType.Null&&(e[r]=t.value)}),e}set values(e){if(e){const t=this.number;let r=0;e.hasOwnProperty("0")&&(r=1),e.forEach((e,i)=>{this._worksheet.getCell(i+r,t).value=e})}}_applyStyle(e,t){return this.style[e]=t,this.eachCell(r=>{r[e]=t}),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const t=[];let r=null;return e&&e.forEach((e,i)=>{e.isDefault?r=r&&null:r&&e.equivalentTo(r)?r.max=i+1:(r={min:i+1,max:i+1,width:void 0!==e.width?e.width:9,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(r))}),t.length?t:void 0}static fromModel(t,r){var i=[];let n=1,s=0;for(r=(r=r||[]).sort((function(e,t){return e.min-t.min}));s<r.length;){for(var a=r[s++];n<a.min;)i.push(new e(t,n++));for(;n<=a.max;)i.push(new e(t,n++,a))}return i.length?i:null}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,t,r){"use strict";t.exports=class{constructor(e){this.model=e||{}}add(e,t){return this.model[e]=t}find(e){return this.model[e]}remove(e){this.model[e]=void 0}}},{}],6:[function(e,t,r){"use strict";const i=e("../utils/under-dash"),n=e("../utils/col-cache"),s=e("../utils/cell-matrix"),a=e("./range"),o=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;t.exports=class{constructor(){this.matrixMap={}}getMatrix(e){return this.matrixMap[e]||(this.matrixMap[e]=new s)}add(e,t){e=n.decodeEx(e),this.addEx(e,t)}addEx(e,t){var r=this.getMatrix(t);if(e.top)for(let s=e.left;s<=e.right;s++)for(let t=e.top;t<=e.bottom;t++){var i={sheetName:e.sheetName,address:n.n2l(s)+t,row:t,col:s};r.addCellEx(i)}else r.addCellEx(e)}remove(e,t){e=n.decodeEx(e),this.removeEx(e,t)}removeEx(e,t){this.getMatrix(t).removeCellEx(e)}removeAllNames(e){i.each(this.matrixMap,t=>{t.removeCellEx(e)})}forEach(e){i.each(this.matrixMap,(t,r)=>{t.forEach(t=>{e(r,t)})})}getNames(e){return this.getNamesEx(n.decodeEx(e))}getNamesEx(e){return i.map(this.matrixMap,(t,r)=>t.findCellEx(e)&&r).filter(Boolean)}_explore(e,t){t.mark=!1;const r=t["sheetName"],i=new a(t.row,t.col,t.row,t.col,r);let n,s;function o(n,s){var a=e.findCellAt(r,n,t.col);return a&&a.mark&&(i[s]=n,a.mark=!1,1)}for(s=t.row-1;o(s,"top");s--);for(s=t.row+1;o(s,"bottom");s++);function l(t,n){var a=[];for(s=i.top;s<=i.bottom;s++){const i=e.findCellAt(r,s,t);if(!i||!i.mark)return;a.push(i)}i[n]=t;for(let e=0;e<a.length;e++)a[e].mark=!1;return 1}for(n=t.col-1;l(n,"left");n--);for(n=t.col+1;l(n,"right");n++);return i}getRanges(e,t){return(t=t||this.matrixMap[e])?(t.forEach(e=>{e.mark=!0}),{name:e,ranges:t.map(e=>e.mark&&this._explore(t,e)).filter(Boolean).map(e=>e.$shortRange)}):{name:e,ranges:[]}}normaliseMatrix(e,t){e.forEachInSheet(t,(e,t,r)=>{!e||e.row===t&&e.col===r||(e.row=t,e.col=r,e.address=n.n2l(r)+t)})}spliceRows(e,t,r,n){i.each(this.matrixMap,i=>{i.spliceRows(e,t,r,n),this.normaliseMatrix(i,e)})}spliceColumns(e,t,r,n){i.each(this.matrixMap,i=>{i.spliceColumns(e,t,r,n),this.normaliseMatrix(i,e)})}get model(){return i.map(this.matrixMap,(e,t)=>this.getRanges(t,e)).filter(e=>e.ranges.length)}set model(e){const t=this.matrixMap={};e.forEach(e=>{const r=t[e.name]=new s;e.ranges.forEach(e=>{o.test(e.split("!").pop()||"")&&r.addCell(e)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,t,r){"use strict";t.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,t,r){"use strict";const i=e("../utils/col-cache"),n=e("./anchor");t.exports=class{constructor(e,t){this.worksheet=e,this.model=t}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(e){var{type:e,imageId:t,range:r,hyperlinks:s}=e;if(this.type=e,this.imageId=t,"image"===e)if("string"==typeof r){const e=i.decode(r);this.range={tl:new n(this.worksheet,{col:e.left,row:e.top},-1),br:new n(this.worksheet,{col:e.right,row:e.bottom},0),editAs:"oneCell"}}else this.range={tl:new n(this.worksheet,r.tl,0),br:r.br&&new n(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:s||r.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,r){"use strict";const i=e("../utils/under-dash");class n{constructor(e){this.note=e}get model(){let e=null;return e="string"==typeof this.note?{type:"note",note:{texts:[{text:this.note}]}}:{type:"note",note:this.note},i.deepMerge({},n.DEFAULT_CONFIGS,e)}set model(e){e=e["note"];var t=e["texts"];1===t.length&&1===Object.keys(t[0]).length?this.note=t[0].text:this.note=e}static fromModel(e){var t=new n;return t.model=e,t}}n.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},t.exports=n},{"../utils/under-dash":26}],10:[function(e,t,r){"use strict";const i=e("../utils/col-cache");t.exports=class e{constructor(){this.decode(arguments)}setTLBR(e,t,r,n,s){if(arguments.length<4){const n=i.decodeAddress(e),a=i.decodeAddress(t);this.model={top:Math.min(n.row,a.row),left:Math.min(n.col,a.col),bottom:Math.max(n.row,a.row),right:Math.max(n.col,a.col),sheetName:r},this.setTLBR(n.row,n.col,a.row,a.col,s)}else this.model={top:Math.min(e,r),left:Math.min(t,n),bottom:Math.max(e,r),right:Math.max(t,n),sheetName:s}}decode(t){switch(t.length){case 5:this.setTLBR(t[0],t[1],t[2],t[3],t[4]);break;case 4:this.setTLBR(t[0],t[1],t[2],t[3]);break;case 3:this.setTLBR(t[0],t[1],t[2]);break;case 2:this.setTLBR(t[0],t[1]);break;case 1:var r=t[0];if(r instanceof e)this.model={top:r.model.top,left:r.model.left,bottom:r.model.bottom,right:r.model.right,sheetName:r.sheetName};else if(r instanceof Array)this.decode(r);else if(r.top&&r.left&&r.bottom&&r.right)this.model={top:r.top,left:r.left,bottom:r.bottom,right:r.right,sheetName:r.sheetName};else{const e=i.decodeEx(r);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}break;case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+t.length)}}get top(){return this.model.top||1}set top(e){this.model.top=e}get left(){return this.model.left||1}set left(e){this.model.left=e}get bottom(){return this.model.bottom||1}set bottom(e){this.model.bottom=e}get right(){return this.model.right||1}set right(e){this.model.right=e}get sheetName(){return this.model.sheetName}set sheetName(e){this.model.sheetName=e}get _serialisedSheetName(){var e=this.model.sheetName;return e?/^[a-zA-Z0-9]*$/.test(e)?e+"!":`'${e}'!`:""}expand(e,t,r,i){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||r>this.bottom)&&(this.bottom=r),(!this.model.right||i>this.right)&&(this.right=i)}expandRow(e){var t;e&&(({dimensions:e,number:t}=e),e)&&this.expand(t,e.min,t,e.max)}expandToAddress(e){e=i.decodeEx(e),this.expand(e.row,e.col,e.row,e.col)}get tl(){return i.n2l(this.left)+this.top}get $t$l(){return`$${i.n2l(this.left)}$`+this.top}get br(){return i.n2l(this.right)+this.bottom}get $b$r(){return`$${i.n2l(this.right)}$`+this.bottom}get range(){return this._serialisedSheetName+this.tl+":"+this.br}get $range(){return this._serialisedSheetName+this.$t$l+":"+this.$b$r}get shortRange(){return 1<this.count?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return 1<this.count?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(e){return!(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName||e.bottom<this.top||e.top>this.bottom||e.right<this.left||e.left>this.right)}contains(e){return e=i.decodeEx(e),this.containsEx(e)}containsEx(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}forEachAddress(e){for(let t=this.left;t<=this.right;t++)for(let r=this.top;r<=this.bottom;r++)e(i.encodeAddress(r,t),r,t)}}},{"../utils/col-cache":19}],11:[function(e,t,r){"use strict";const i=e("../utils/under-dash"),n=e("./enums"),s=e("../utils/col-cache"),a=e("./cell");t.exports=class{constructor(e,t){this._worksheet=e,this._number=t,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let t=this._cells[e.col-1];var r;return t||(r=this._worksheet.getColumn(e.col),t=new a(this,r,e.address),this._cells[e.col-1]=t),t}getCell(e){var t;return"string"==typeof e&&(e=(t=this._worksheet.getColumnKey(e))?t.number:s.l2n(e)),this._cells[e-1]||this.getCellEx({address:s.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,t){for(var r=e+t,i=arguments.length,n=new Array(2<i?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];var a=n.length-t,o=this._cells.length;let l,c,h;if(a<0)for(l=e+n.length;l<=o;l++)h=this._cells[l-1],(c=this._cells[l-a-1])?((h=this.getCell(l)).value=c.value,h.style=c.style,h._comment=c._comment):h&&(h.value=null,h.style={},h._comment=void 0);else if(0<a)for(l=o;l>=r;l--)(c=this._cells[l-1])?((h=this.getCell(l+a)).value=c.value,h.style=c.style,h._comment=c._comment):this._cells[l+a-1]=void 0;for(l=0;l<n.length;l++)(h=this.getCell(e+l)).value=n[l],h.style={},h._comment=void 0}eachCell(e,t){if(t||(t=e,e=null),e&&e.includeEmpty){const e=this._cells.length;for(let r=1;r<=e;r++)t(this.getCell(r),r)}else this._cells.forEach((e,r)=>{e&&e.type!==n.ValueType.Null&&t(e,r+1)})}addPageBreak(e,t){var r=this._worksheet;e=Math.max(0,e-1)||0,t=Math.max(0,t-1)||16838,t={id:this._number,max:t,man:1};e&&(t.min=e),r.rowBreaks.push(t)}get values(){const e=[];return this._cells.forEach(t=>{t&&t.type!==n.ValueType.Null&&(e[t.col]=t.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let t=0;e.hasOwnProperty("0")&&(t=1),e.forEach((e,r)=>{void 0!==e&&(this.getCellEx({address:s.encodeAddress(this._number,r+t),row:this._number,col:r+t}).value=e)})}else this._worksheet.eachColumnKey((t,r)=>{void 0!==e[r]&&(this.getCellEx({address:s.encodeAddress(this._number,t.number),row:this._number,col:t.number}).value=e[r])})}get hasValues(){return i.some(this._cells,e=>e&&e.type!==n.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,t=0;return this._cells.forEach(r=>{r&&r.type!==n.ValueType.Null&&((!e||e>r.col)&&(e=r.col),t<r.col)&&(t=r.col)}),0<e?{min:e,max:t}:null}_applyStyle(e,t){return this.style[e]=t,this._cells.forEach(r=>{r&&(r[e]=t)}),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let t=0,r=0;return this._cells.forEach(i=>{var n;i&&(n=i.model)&&((!t||t>i.col)&&(t=i.col),r<i.col&&(r=i.col),e.push(n))}),this.height||e.length?{cells:e,number:this.number,min:t,max:r,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let t;this._cells=[],e.cells.forEach(e=>{switch(e.type){case a.Types.Merge:break;default:{let r;if(e.address)r=s.decodeAddress(e.address);else if(t){const e=t["row"],i=t.col+1;r={row:e,col:i,address:s.encodeAddress(e,i),$col$row:`$${s.n2l(i)}$`+e}}t=r,this.getCellEx(r).model=e;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,t,r){"use strict";const i=e("../utils/col-cache");class n{constructor(e,t,r){this.table=e,this.column=t,this.index=r}_set(e,t){this.table.cacheState(),this.column[e]=t}get name(){return this.column.name}set name(e){this._set("name",e)}get filterButton(){return this.column.filterButton}set filterButton(e){this.column.filterButton=e}get style(){return this.column.style}set style(e){this.column.style=e}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(e){this._set("totalsRowLabel",e)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(e){this._set("totalsRowFunction",e)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(e){this._set("totalsRowResult",e)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(e){this._set("totalsRowFormula",e)}}t.exports=class{constructor(e,t){this.worksheet=e,t&&(this.table=t,this.validate(),this.store())}getFormula(e){switch(e.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${e.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${e.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${e.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${e.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${e.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${e.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${e.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${e.name}])`;case"custom":return e.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+e.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const e=this["table"],t=(e,t,r)=>{void 0===e[t]&&(e[t]=r)},r=(t(e,"headerRow",!0),t(e,"totalsRow",!1),t(e,"style",{}),t(e.style,"theme","TableStyleMedium2"),t(e.style,"showFirstColumn",!1),t(e.style,"showLastColumn",!1),t(e.style,"showRowStripes",!1),t(e.style,"showColumnStripes",!1),(e,t)=>{if(!e)throw new Error(t)});r(e.ref,"Table must have ref"),r(e.columns,"Table must have column definitions"),r(e.rows,"Table must have row definitions"),e.tl=i.decodeAddress(e.ref);var{row:n,col:s}=e.tl,{width:a,filterHeight:o,tableHeight:l}=(r(0<n,"Table must be on valid row"),r(0<s,"Table must be on valid col"),this);e.autoFilterRef=i.encode(n,s,n+o-1,s+a-1),e.tableRef=i.encode(n,s,n+l-1,s+a-1),e.columns.forEach((e,i)=>{r(e.name,`Column ${i} must have a name`),0===i?t(e,"totalsRowLabel","Total"):(t(e,"totalsRowFunction","none"),e.totalsRowFormula=this.getFormula(e))})}store(){const e=(e,t)=>{t&&Object.keys(t).forEach(r=>{e[r]=t[r]})},{worksheet:t,table:r}=this,{row:i,col:n}=r.tl;let s=0;if(r.headerRow){const a=t.getRow(i+s++);r.columns.forEach((t,r)=>{var{style:t,name:i}=t;r=a.getCell(n+r);r.value=i,e(r,t)})}if(r.rows.forEach(a=>{const o=t.getRow(i+s++);a.forEach((t,i)=>{var s=o.getCell(n+i);s.value=t,e(s,r.columns[i].style)})}),r.totalsRow){const a=t.getRow(i+s++);r.columns.forEach((t,r)=>{var i=a.getCell(n+r);if(0===r)i.value=t.totalsRowLabel;else{const e=this.getFormula(t);i.value=e?{formula:t.totalsRowFormula,result:t.totalsRowResult}:null}e(i,t.style)})}}load(e){const t=this["table"],{row:r,col:i}=t.tl;let n=0;if(t.headerRow){const s=e.getRow(r+n++);t.columns.forEach((e,t)=>{s.getCell(i+t).value=e.name})}if(t.rows.forEach(t=>{const s=e.getRow(r+n++);t.forEach((e,t)=>{s.getCell(i+t).value=e})}),t.totalsRow){const s=e.getRow(r+n++);t.columns.forEach((e,t)=>{var r=s.getCell(i+t);0===t?r.value=e.totalsRowLabel:this.getFormula(e)&&(r.value={formula:e.totalsRowFormula,result:e.totalsRowResult})})}}get model(){return this.table}set model(e){this.table=e}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(this._cache){this.validate();var e=i.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let r=0;r<this._cache.tableHeight;r++){var t=this.worksheet.getRow(e.row+r);for(let r=0;r<this._cache.width;r++)t.getCell(e.col+r).value=null}else{for(let t=this.tableHeight;t<this._cache.tableHeight;t++){var r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)r.getCell(e.col+t).value=null}for(let t=0;t<this.tableHeight;t++){var n=this.worksheet.getRow(e.row+t);for(let t=this.width;t<this._cache.width;t++)n.getCell(e.col+t).value=null}}this.store()}}addRow(e,t){this.cacheState(),void 0===t?this.table.rows.push(e):this.table.rows.splice(t,0,e)}removeRows(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}getColumn(e){var t=this.table.columns[e];return new n(this,t,e)}addColumn(e,t,r){this.cacheState(),void 0===r?(this.table.columns.push(e),this.table.rows.forEach((e,r)=>{e.push(t[r])})):(this.table.columns.splice(r,0,e),this.table.rows.forEach((e,i)=>{e.splice(r,0,t[i])}))}removeColumns(e){let t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach(r=>{r.splice(e,t)})}_assign(e,t,r){this.cacheState(),e[t]=r}get ref(){return this.table.ref}set ref(e){this._assign(this.table,"ref",e)}get name(){return this.table.name}set name(e){this.table.name=e}get displayName(){return this.table.displyName||this.table.name}set displayNamename(e){this.table.displayName=e}get headerRow(){return this.table.headerRow}set headerRow(e){this._assign(this.table,"headerRow",e)}get totalsRow(){return this.table.totalsRow}set totalsRow(e){this._assign(this.table,"totalsRow",e)}get theme(){return this.table.style.name}set theme(e){this.table.style.name=e}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(e){this.table.style.showFirstColumn=e}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(e){this.table.style.showLastColumn=e}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(e){this.table.style.showRowStripes=e}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(e){this.table.style.showColumnStripes=e}}},{"../utils/col-cache":19}],13:[function(e,t,r){"use strict";const i=e("./worksheet"),n=e("./defined-names"),s=e("../xlsx/xlsx"),a=e("../csv/csv");t.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new n}get xlsx(){return this._xlsx||(this._xlsx=new s(this)),this._xlsx}get csv(){return this._csv||(this._csv=new a(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,t){var r=this.nextId,n=(t&&("string"==typeof t?t={properties:{tabColor:{argb:t}}}:(t.argb||t.theme||t.indexed)&&(t={properties:{tabColor:t}})),this._worksheets.reduce((e,t)=>(t&&t.orderNo)>e?t.orderNo:e,0));t=Object.assign({},t,{id:r,name:e,orderNo:n+1,workbook:this}),e=new i(t);return this._worksheets[r]=e}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){e=this.getWorksheet(e),e&&e.destroy()}getWorksheet(e){return void 0===e?this._worksheets.find(Boolean):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find(t=>t&&t.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,t)=>e.orderNo-t.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(t=>{e(t,t.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){var t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(t=>{const{id:r,name:n,state:s}=t,a=e.sheets&&e.sheets.findIndex(e=>e.id===r);(this._worksheets[r]=new i({id:r,name:n,orderNo:a,state:s,workbook:this})).model=t}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,t,r){"use strict";const i=e("../utils/under-dash"),n=e("../utils/col-cache"),s=e("./range"),a=e("./row"),o=e("./column"),l=e("./enums"),c=e("./image"),h=e("./table"),u=e("./data-validations"),d=e("../utils/encryptor"),f=e("../utils/copy-style")["copyStyle"];t.exports=class{constructor(e){this._workbook=(e=e||{}).workbook,this.id=e.id,this.orderNo=e.orderNo,this.name=e.name,this.state=e.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!e.pageSetup||!e.pageSetup.fitToWidth&&!e.pageSetup.fitToHeight||e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},e.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter),this.dataValidations=new u,this.views=e.views||[],this.autoFilter=e.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(e){if(void 0===e&&(e="sheet"+this.id),this._name!==e){if("string"!=typeof e)throw new Error("The name has to be a string.");if(""===e)throw new Error("The name can't be empty.");if("History"===e)throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(e))throw new Error(`Worksheet name ${e} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(e))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+e);if(e&&31<e.length&&(e=e.substring(0,31)),this._workbook._worksheets.find(t=>t&&t.name.toLowerCase()===e.toLowerCase()))throw new Error("Worksheet name already exists: "+e);this._name=e}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const e=new s;return this._rows.forEach(t=>{var r;t&&(r=t.dimensions)&&e.expand(t.number,r.min,t.number,r.max)}),e}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce((e,t)=>(t=(t.header?1:t.headers&&t.headers.length)||0,Math.max(e,t)),0);let t=1;const r=this._columns=[];e.forEach(e=>{var i=new o(this,t++,!1);r.push(i),i.defn=e})}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){i.each(this._keys,e)}getColumn(e){if("string"==typeof e){var t=this._keys[e];if(t)return t;e=n.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length){let t=this._columns.length+1;for(;t<=e;)this._columns.push(new o(this,t++))}return this._columns[e-1]}spliceColumns(e,t){const r=this._rows.length;for(var i=arguments.length,n=new Array(2<i?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];if(0<n.length)for(let c=0;c<r;c++){const r=[e,t],i=(n.forEach(e=>{r.push(e[c]||null)}),this.getRow(c+1));i.splice.apply(i,r)}else this._rows.forEach(r=>{r&&r.splice(e,t)});var a=n.length-t,o=e+t,l=this._columns.length;if(a<0)for(let c=e+n.length;c<=l;c++)this.getColumn(c).defn=this.getColumn(c-a).defn;else if(0<a)for(let c=l;c>=o;c--)this.getColumn(c+a).defn=this.getColumn(c).defn;for(let c=e;c<e+n.length;c++)this.getColumn(c).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,n.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let e=0;return this.eachRow(t=>{e=Math.max(e,t.cellCount)}),e}get actualColumnCount(){const e=[];let t=0;return this.eachRow(r=>{r.eachCell(r=>{r=r.col,e[r]||(e[r]=!0,t++)})}),t}_commitRow(){}get _lastRowNumber(){var e=this._rows;let t=e.length;for(;0<t&&void 0===e[t-1];)t--;return t}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(e){return this._rows[e-1]}findRows(e,t){return this._rows.slice(e-1,e-1+t)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let e=0;return this.eachRow(()=>{e++}),e}getRow(e){let t=this._rows[e-1];return t||(this._rows[e-1]=new a(this,e))}getRows(e,t){if(!(t<1)){var r=[];for(let i=e;i<e+t;i++)r.push(this.getRow(i));return r}}addRow(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"n",r=this._nextRow,i=this.getRow(r);return i.values=e,this._setStyleOption(r,"i"===t[0]?t:"n"),i}addRows(e){let t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"n";const r=[];return e.forEach(e=>{r.push(this.addRow(e,t))}),r}insertRow(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(e,0,t),this._setStyleOption(e,r),this.getRow(e)}insertRows(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows(e,0,...t),"n"!==r)for(let i=0;i<t.length;i++)"o"===r[0]&&void 0!==this.findRow(t.length+e+i)?this._copyStyle(t.length+e+i,e+i,"+"===r[1]):"i"===r[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e+i,"+"===r[1]);return this.getRows(e,t.length)}_setStyleOption(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"n";"o"===t[0]&&void 0!==this.findRow(e+1)?this._copyStyle(e+1,e,"+"===t[1]):"i"===t[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e,"+"===t[1])}_copyStyle(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];const i=this.getRow(e),n=this.getRow(t);n.style=f(i.style),i.eachCell({includeEmpty:r},(e,t)=>{n.getCell(t).style=f(e.style)}),n.height=i.height}duplicateRow(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=this._rows[e-1],n=new Array(t).fill(i.values);this.spliceRows(e+1,r?0:t,...n);for(let s=0;s<t;s++){const t=this._rows[e+s];t.style=i.style,t.height=i.height,i.eachCell({includeEmpty:!0},(e,r)=>{t.getCell(r).style=e.style})}}spliceRows(e,t){for(var r=e+t,i=arguments.length,n=new Array(2<i?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];const a=n.length,o=a-t,l=this._rows.length;let c,h;if(o<0)for(e===l&&(this._rows[l-1]=void 0),c=r;c<=l;c++)if(h=this._rows[c-1]){const e=this.getRow(c+o);e.values=h.values,e.style=h.style,e.height=h.height,h.eachCell({includeEmpty:!0},(t,r)=>{e.getCell(r).style=t.style}),this._rows[c-1]=void 0}else this._rows[c+o-1]=void 0;else if(0<o)for(c=l;c>=r;c--)if(h=this._rows[c-1]){const e=this.getRow(c+o);e.values=h.values,e.style=h.style,e.height=h.height,h.eachCell({includeEmpty:!0},(t,r)=>{if(e.getCell(r).style=t.style,"MergeValue"===t._value.constructor.name){const e=this.getRow(t._row._number+a).getCell(r),i=t._value._master,n=this.getRow(i._row._number+a).getCell(i._column._number);e.merge(n)}})}else this._rows[c+o-1]=void 0;for(c=0;c<a;c++){const t=this.getRow(e+c);t.style={},t.values=n[c]}this.workbook.definedNames.spliceRows(this.name,e,t,a)}eachRow(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty){const e=this._rows.length;for(let r=1;r<=e;r++)t(this.getRow(r),r)}else this._rows.forEach(e=>{e&&e.hasValues&&t(e,e.number)})}getSheetValues(){const e=[];return this._rows.forEach(t=>{t&&(e[t.number]=t.values)}),e}findCell(e,t){return e=n.getAddress(e,t),t=this._rows[e.row-1],t?t.findCell(e.col):void 0}getCell(e,t){return e=n.getAddress(e,t),this.getRow(e.row).getCellEx(e)}mergeCells(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=new s(t);this._mergeCellsInternal(i)}mergeCellsWithoutStyle(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=new s(t);this._mergeCellsInternal(i,!0)}_mergeCellsInternal(e,t){i.each(this._merges,t=>{if(t.intersects(e))throw new Error("Cannot merge already merged cells")});var r=this.getCell(e.top,e.left);for(let i=e.top;i<=e.bottom;i++)for(let n=e.left;n<=e.right;n++)(i>e.top||n>e.left)&&this.getCell(i,n).merge(r,t);this._merges[r.address]=e}_unMergeMaster(e){var t=this._merges[e.address];if(t){for(let e=t.top;e<=t.bottom;e++)for(let r=t.left;r<=t.right;r++)this.getCell(e,r).unmerge();delete this._merges[e.address]}}get hasMerges(){return i.some(this._merges,Boolean)}unMergeCells(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=new s(t);for(let n=i.top;n<=i.bottom;n++)for(let e=i.left;e<=i.right;e++){const t=this.findCell(n,e);t&&(t.type===l.ValueType.Merge?this._unMergeMaster(t.master):this._merges[t.address]&&this._unMergeMaster(t))}}fillFormula(e,t,r){var i,s=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"shared";const a=n.decode(e),{top:o,left:l,bottom:c,right:h}=a,u=h-l+1,d=n.encodeAddress(o,l),f="shared"===s;i="function"==typeof r?r:Array.isArray(r)?Array.isArray(r[0])?(e,t)=>r[e-o][t-l]:(e,t)=>r[(e-o)*u+(t-l)]:()=>{};let p=!0;for(let n=o;n<=c;n++)for(let r=l;r<=h;r++)p?(this.getCell(n,r).value={shareType:s,formula:t,ref:e,result:i(n,r)},p=!1):this.getCell(n,r).value=f?{sharedFormula:d,result:i(n,r)}:i(n,r)}addImage(e,t){e={type:"image",imageId:e,range:t},this._media.push(new c(this,e))}getImages(){return this._media.filter(e=>"image"===e.type)}addBackgroundImage(e){e={type:"background",imageId:e},this._media.push(new c(this,e))}getBackgroundImageId(){var e=this._media.find(e=>"background"===e.type);return e&&e.imageId}protect(e,t){return new Promise(r=>{this.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=d.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,this.sheetProtection.hashValue=d.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),t&&(this.sheetProtection=Object.assign(this.sheetProtection,t),!e)&&"spinCount"in t&&delete this.sheetProtection.spinCount,r()})}unprotect(){this.sheetProtection=null}addTable(e){var t=new h(this,e);return this.tables[e.name]=t}getTable(e){return this.tables[e]}removeTable(e){delete this.tables[e]}getTables(){return Object.values(this.tables)}addConditionalFormatting(e){this.conditionalFormattings.push(e)}removeConditionalFormatting(e){"number"==typeof e?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}get tabColor(){return this.properties.tabColor}set tabColor(e){this.properties.tabColor=e}get model(){const e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(e=>e.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(e=>e.model),conditionalFormattings:this.conditionalFormattings},t=(e.cols=o.toModel(this.columns),e.rows=[]),r=e.dimensions=new s;return this._rows.forEach(e=>{e=e&&e.model,e&&(r.expand(e.number,e.min,e.number,e.max),t.push(e))}),e.merges=[],i.each(this._merges,t=>{e.merges.push(t.range)}),e}_parseRows(e){this._rows=[],e.rows.forEach(e=>{var t=new a(this,e.number);(this._rows[t.number-1]=t).model=e})}_parseMergeCells(e){i.each(e.mergeCells,e=>{this.mergeCellsWithoutStyle(e)})}set model(e){this.name=e.name,this._columns=o.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new u(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map(e=>new c(this,e)),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce((e,t)=>{var r=new h;return e[(r.model=t).name]=r,e},{}),this.conditionalFormattings=e.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,r){"use strict";e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const i={Workbook:e("./doc/workbook")},n=e("./doc/enums");Object.keys(n).forEach(e=>{i[e]=n[e]}),t.exports=i},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,t,r){"use strict";const i="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");r.bufferToString=function(e){return"string"==typeof e?e:i?i.decode(e):e.toString()}},{}],17:[function(e,t,r){"use strict";const i="undefined"==typeof TextEncoder?null:new TextEncoder("utf-8"),n=e("buffer")["Buffer"];r.stringToBuffer=function(e){return"string"!=typeof e?e:i?n.from(i.encode(e).buffer):n.from(e)}},{buffer:220}],18:[function(e,t,r){"use strict";const i=e("./under-dash"),n=e("./col-cache");t.exports=class{constructor(e){this.template=e,this.sheets={}}addCell(e){this.addCellEx(n.decodeEx(e))}getCell(e){return this.findCellEx(n.decodeEx(e),!0)}findCell(e){return this.findCellEx(n.decodeEx(e),!1)}findCellAt(e,t,r){return e=this.sheets[e],e=e&&e[t],e&&e[r]}addCellEx(e){if(e.top)for(let t=e.top;t<=e.bottom;t++)for(let r=e.left;r<=e.right;r++)this.getCellAt(e.sheetName,t,r);else this.findCellEx(e,!0)}getCellEx(e){return this.findCellEx(e,!0)}findCellEx(e,t){var r=this.findSheet(e,t);r=this.findSheetRow(r,e,t);return this.findRowCell(r,e,t)}getCellAt(e,t,r){var i=this.sheets[e]||(this.sheets[e]=[]);i=i[t]||(i[t]=[]);return i[r]||(i[r]={sheetName:e,address:n.n2l(r)+t,row:t,col:r})}removeCellEx(e){var t=this.findSheet(e);t&&(t=this.findSheetRow(t,e))&&delete t[e.col]}forEachInSheet(e,t){e=this.sheets[e],e&&e.forEach((e,r)=>{e&&e.forEach((e,i)=>{e&&t(e,r,i)})})}forEach(e){i.each(this.sheets,(t,r)=>{this.forEachInSheet(r,e)})}map(e){const t=[];return this.forEach(r=>{t.push(e(r))}),t}findSheet(e,t){return e=e.sheetName,this.sheets[e]||(t?this.sheets[e]=[]:void 0)}findSheetRow(e,t,r){return t=t.row,e&&e[t]?e[t]:r?e[t]=[]:void 0}findRowCell(e,t,r){var i=t["col"];return e&&e[i]?e[i]:r?e[i]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}spliceRows(e,t,r,i){var n=this.sheets[e];if(n){const e=[];for(let t=0;t<i;t++)e.push([]);n.splice(t,r,...e)}}spliceColumns(e,t,r,n){var s=this.sheets[e];if(s){const e=[];for(let t=0;t<n;t++)e.push(null);i.each(s,i=>{i.splice(t,r,...e)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,t,r){"use strict";const i=/^[A-Z]+\d+$/,n={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:e=>e<=26?1:e<=676?2:3,_fill(e){let t,r,i,n,s,a=1;if(4<=e)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&1<=e){for(;a<=26;)t=this._dictionary[a-1],this._n2l[a]=t,this._l2n[t]=a,a++;this._l2nFill=1}if(this._l2nFill<2&&2<=e){for(a=27;a<=702;)r=a-27,i=r%26,n=Math.floor(r/26),t=this._dictionary[n]+this._dictionary[i],this._n2l[a]=t,this._l2n[t]=a,a++;this._l2nFill=2}if(this._l2nFill<3&&3<=e){for(a=703;a<=16384;)r=a-703,i=r%26,n=Math.floor(r/26)%26,s=Math.floor(r/676),t=this._dictionary[s]+this._dictionary[n]+this._dictionary[i],this._n2l[a]=t,this._l2n[t]=a,a++;this._l2nFill=3}},l2n(e){if(this._l2n[e]||this._fill(e.length),this._l2n[e])return this._l2n[e];throw new Error("Out of bounds. Invalid column letter: "+e)},n2l(e){if(e<1||16384<e)throw new Error(e+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress(e){if(i.test(e))return!0;throw new Error("Invalid Address: "+e)},decodeAddress(e){var t=e.length<5&&this._hash[e];if(t)return t;let r=!1,i="",n=0,s=!1,a="",o=0;for(let l,c=0;c<e.length;c++)if(l=e.charCodeAt(c),!s&&65<=l&&l<=90)r=!0,i+=e[c],n=26*n+l-64;else if(48<=l&&l<=57)s=!0,a+=e[c],o=10*o+l-48;else if(s&&r&&36!==l)break;if(r){if(16384<n)throw new Error("Out of bounds. Invalid column letter: "+i)}else n=void 0;return s||(o=void 0),t={address:e=i+a,col:n,row:o,$col$row:`$${i}$`+a},n<=100&&o<=100&&(this._hash[e]=t,this._hash[t.$col$row]=t),t},getAddress(e,t){return t?(t=this.n2l(t)+e,this.decodeAddress(t)):this.decodeAddress(e)},decode(e){var t=e.split(":");if(2!==t.length)return this.decodeAddress(e);{const e=this.decodeAddress(t[0]),r=this.decodeAddress(t[1]),i={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};return i.tl=this.n2l(i.left)+i.top,i.br=this.n2l(i.right)+i.bottom,i.dimensions=i.tl+":"+i.br,i}},decodeEx(e){const t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),r=t[1]||t[2],i=t[3],n=i.split(":");if(1<n.length){e=this.decodeAddress(n[0]);var s=this.decodeAddress(n[1]);const t=Math.min(e.row,s.row),i=Math.min(e.col,s.col),a=Math.max(e.row,s.row),o=Math.max(e.col,s.col);return e=this.n2l(i)+t,s=this.n2l(o)+a,{top:t,left:i,bottom:a,right:o,sheetName:r,tl:{address:e,col:i,row:t,$col$row:`$${this.n2l(i)}$`+t,sheetName:r},br:{address:s,col:o,row:a,$col$row:`$${this.n2l(o)}$`+a,sheetName:r},dimensions:e+":"+s}}if(i.startsWith("#"))return r?{sheetName:r,error:i}:{error:i};const a=this.decodeAddress(i);return r?{sheetName:r,...a}:a},encodeAddress:(e,t)=>n.n2l(t)+e,encode(){switch(arguments.length){case 2:return n.encodeAddress(arguments[0],arguments[1]);case 4:return n.encodeAddress(arguments[0],arguments[1])+":"+n.encodeAddress(arguments[2],arguments[3]);default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(e,t){var[e,r,,i,n]=e,[t,s]=t;return e<=t&&t<=i&&r<=s&&s<=n}};t.exports=n},{}],20:[function(e,t,r){"use strict";function i(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:[];e[r]&&(t[r]=n(e[r],i))}const n=(e,t)=>({...e,...t.reduce((t,r)=>(e[r]&&(t[r]={...e[r]}),t),{})});r.copyStyle=e=>{var t;return e&&(0===Object.keys(e).length?{}:(t={...e},i(e,t,"font",["color"]),i(e,t,"alignment"),i(e,t,"protection"),e.border&&(i(e,t,"border"),i(e.border,t.border,"top",["color"]),i(e.border,t.border,"left",["color"]),i(e.border,t.border,"bottom",["color"]),i(e.border,t.border,"right",["color"]),i(e.border,t.border,"diagonal",["color"])),e.fill&&(i(e,t,"fill",["fgColor","bgColor","center"]),e.fill.stops)&&(t.fill.stops=e.fill.stops.map(e=>n(e,["color"]))),t))}},{}],21:[function(e,t,r){(function(r){(function(){"use strict";const i=e("crypto"),n={hash(e){e=i.createHash(e);for(var t=arguments.length,n=new Array(1<t?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return e.update(r.concat(n)),e.digest()},convertPasswordToHash(e,t,n,s){if(t=t.toLowerCase(),i.getHashes().indexOf(t)<0)throw new Error(`Hash algorithm '${t}' not supported!`);e=r.from(e,"utf16le");let a=this.hash(t,r.from(n,"base64"),e);for(let i=0;i<s;i++){const e=r.alloc(4);e.writeUInt32LE(i,0),a=this.hash(t,a,e)}return a.toString("base64")},randomBytes:e=>i.randomBytes(e)};t.exports=n}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,t,r){"use strict";const i=e("saxes")["SaxesParser"],n=e("readable-stream")["PassThrough"],s=e("./browser-buffer-decode")["bufferToString"];t.exports=async function*(e){e.pipe&&!e[Symbol.asyncIterator]&&(e=e.pipe(new n));var t=new i;let r,a=(t.on("error",e=>{r=e}),[]);t.on("opentag",e=>a.push({eventType:"opentag",value:e})),t.on("text",e=>a.push({eventType:"text",value:e})),t.on("closetag",e=>a.push({eventType:"closetag",value:e}));for await(const i of e){if(t.write(s(i)),r)throw r;yield a,a=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,t,r){"use strict";const i=e("./col-cache"),n=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,s=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;t.exports={slideFormula:function(e,t,r){const a=i.decode(t),o=i.decode(r);return e.replace(n,(e,t,r,n,l)=>{if(!l){var c=s.exec(n);if(c){const r=c[1],n=c[2].toUpperCase(),s=c[3],l=c[4];if(3<n.length||3===n.length&&"XFD"<n)return e;let h=i.l2n(n),u=parseInt(l,10);return r||(h+=o.col-a.col),s||(u+=o.row-a.row),(t||"")+(r||"")+i.n2l(h)+(s||"")+u}}return e})}}},{"./col-cache":19}],24:[function(e,t,r){(function(r,i){(function(){"use strict";const n=e("readable-stream"),s=e("./utils"),a=e("./string-buf");class o{constructor(e,t){this._data=e,this._encoding=t}get length(){return this.toBuffer().length}copy(e,t,r,i){return this.toBuffer().copy(e,t,r,i)}toBuffer(){return this._buffer||(this._buffer=i.from(this._data,this._encoding)),this._buffer}}class l{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,i){return this._data._buf.copy(e,t,r,i)}toBuffer(){return this._data.toBuffer()}}class c{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,i){this._data.copy(e,t,r,i)}toBuffer(){return this._data}}class h{constructor(e){this.size=e,this.buffer=i.alloc(e),this.iRead=0,this.iWrite=0}toBuffer(){var e;return 0===this.iRead&&this.iWrite===this.size?this.buffer:(e=i.alloc(this.iWrite-this.iRead),this.buffer.copy(e,0,this.iRead,this.iWrite),e)}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(e){let t;return 0===e?null:(void 0===e||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite):(t=i.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e),t)}write(e,t,r){return r=Math.min(r,this.size-this.iWrite),e.copy(this.buffer,this.iWrite,t,t+r),this.iWrite+=r,r}}function u(e){this.bufSize=(e=e||{}).bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null}s.inherits(u,n.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return i.concat(this.buffers.map(e=>e.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const e=this.buffers[this.buffers.length-1];if(!e.full)return e}const e=new h(this.bufSize);return this.buffers.push(e),e},async _pipe(e){await Promise.all(this.pipes.map((function(t){return new Promise(r=>{t.write(e.toBuffer(),()=>{r()})})})))},_writeToBuffers(e){let t=0;for(var r=e.length;t<r;)t+=this._getWritableBuffer().write(e,t,r-t)},async write(e,t,n){let h;if(t instanceof Function&&(n=t,t="utf8"),n=n||s.nop,e instanceof a)h=new l(e);else if(e instanceof i)h=new c(e);else{if(!("string"==typeof e||e instanceof String||e instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");h=new o(e,t)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(h);!this.corked&&1<this.buffers.length;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(h),r.nextTick(n)):(await this._pipe(h),n());else this.paused||this.emit("data",h.toBuffer()),this._writeToBuffers(h),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(e,t,r){var i=e=>{e?r(e):(this._flush(),this.pipes.forEach(e=>{e.end()}),this.emit("finish"))};e?this.write(e,t,i):i()},read(e){let t;if(e)for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){const r=this.buffers[0],i=r.read(e);e-=i.length,t.push(i),r.eod&&r.full&&this.buffers.shift()}else t=this.buffers.map(e=>e.toBuffer()).filter(Boolean),this.buffers=[];return i.concat(t)},setEncoding(e){this.encoding=e},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe(e){this.pipes=this.pipes.filter(t=>t!==e)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),t.exports=u}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,t,r){(function(e){(function(){"use strict";t.exports=class{constructor(t){this._buf=e.alloc(t&&t.size||16384),this._encoding=t&&t.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(e){e=e||0,this._buffer=void 0,this._inPos=e}_grow(t){let r=2*this._buf.length;for(;r<t;)r*=2;var i=e.alloc(r);this._buf.copy(i,0),this._buf=i}addText(e){this._buffer=void 0;let t=this._inPos+this._buf.write(e,this._inPos,this._encoding);for(;t>=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}addStringBuf(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,t,r){"use strict";const i=Object.prototype["toString"],n=/["&<>]/,s={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach(r=>{t(e[r],r)}))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some(r=>t(e[r],r)))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every(r=>t(e[r],r)))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map(r=>t(e[r],r)):[]},keyBy:(e,t)=>e.reduce((e,r)=>(e[r[t]]=r,e),{}),isEqual:function(e,t){var r=typeof e,i=typeof t,n=Array.isArray(e),a=Array.isArray(t);if(r!=i)return!1;if("object"!=typeof e)return e===t;if(n||a)return!(!n||!a)&&e.length===t.length&&e.every((e,r)=>(r=t[r],s.isEqual(e,r)));if(null===e||null===t)return e===t;if(r=Object.keys(e),Object.keys(t).length!==r.length)return!1;for(const s of r)if(!t.hasOwnProperty(s))return!1;return s.every(e,(e,r)=>(r=t[r],s.isEqual(e,r)))},escapeHtml(e){var t=n.exec(e);if(!t)return e;let r="",i="",s=0,a=t.index;for(;a<e.length;a++){switch(e.charAt(a)){case'"':i=""";break;case"&":i="&";break;case"'":i="'";break;case"<":i="<";break;case">":i=">";break;default:continue}s!==a&&(r+=e.substring(s,a)),s=a+1,r+=i}return s!==a?r+e.substring(s,a):r},strcmp:(e,t)=>e<t?-1:t<e?1:0,isUndefined:e=>"[object Undefined]"===i.call(e),isObject:e=>"[object Object]"===i.call(e),deepMerge(){const e=arguments[0]||{},t=arguments["length"];let r,i,n;function a(t,a){r=e[a],n=Array.isArray(t),s.isObject(t)||n?(i=n?(n=!1,r&&Array.isArray(r)?r:[]):r&&s.isObject(r)?r:{},e[a]=s.deepMerge(i,t)):s.isUndefined(t)||(e[a]=t)}for(let o=0;o<t;o++)s.each(arguments[o],a);return e}};t.exports=s},{}],27:[function(e,r,i){(function(t,i){(function(){"use strict";const n=e("fs"),s=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,a={nop(){},promiseImmediate:e=>new Promise(r=>{t.setImmediate?i(()=>{r(e)}):setTimeout(()=>{r(e)},1)}),inherits:function(e,t,r,i){e.super_=t,i||(i=r,r=null),r&&Object.keys(r).forEach(t=>{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))});const n={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(e=>{n[e]=Object.getOwnPropertyDescriptor(i,e)}),e.prototype=Object.create(t.prototype,n)},dateToExcel:(e,t)=>25569+e.getTime()/864e5-(t?1462:0),excelToDate(e,t){return e=Math.round(24*(e-25569+(t?1462:0))*3600*1e3),new Date(e)},parsePath(e){var t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath(e){return e=a.parsePath(e),`${e.path}/_rels/${e.name}.rels`},xmlEncode(e){const t=s.exec(e);if(!t)return e;let r="",i="",n=0,a=t.index;for(;a<e.length;a++){const t=e.charCodeAt(a);switch(t){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;case 127:i="";break;default:if(!(t<=31&&(t<=8||11<=t&&13!==t)))continue;i=""}n!==a&&(r+=e.substring(n,a)),n=a+1,i&&(r+=i)}return n!==a?r+e.substring(n,a):r},xmlDecode:e=>e.replace(/&([a-z]*);/g,e=>{switch(e){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return e}}),validInt(e){return e=parseInt(e,10),Number.isNaN(e)?0:e},isDateFmt(e){return!!e&&null!==(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)},fs:{exists:e=>new Promise(t=>{n.access(e,n.constants.F_OK,e=>{t(!e)})})},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>!0===e||"true"===e||1===e||"1"===e};r.exports=a}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,t,r){"use strict";const i=e("./under-dash"),n=e("./utils");function s(e,t,r){e.push(` ${t}="${n.xmlEncode(r.toString())}"`)}function a(e,t){if(t){const r=[];i.each(t,(e,t)=>{void 0!==e&&s(r,t,e)}),e.push(r.join(""))}}class o{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(e){var t=this._xml;t.push("<?xml"),a(t,e),t.push("?>\n")}openNode(e,t){var r=this.tos,i=this._xml;r&&this.open&&i.push(">"),this._stack.push(e),i.push("<"),i.push(e),a(i,t),this.leaf=!0,this.open=!0}addAttribute(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==t&&s(this._xml,e,t)}addAttributes(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");a(this._xml,e)}writeText(e){var t=this._xml;this.open&&(t.push(">"),this.open=!1),this.leaf=!1,t.push(n.xmlEncode(e.toString()))}writeXml(e){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(e)}closeNode(){var e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("</"),t.push(e),t.push(">")),this.open=!1,this.leaf=!1}leafNode(e,t,r){this.openNode(e,t),void 0!==r&&this.writeText(r),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){var e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}get xml(){return this.closeAll(),this._xml.join("")}}o.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},t.exports=o},{"./under-dash":26,"./utils":27}],29:[function(e,t,r){(function(r){(function(){"use strict";const i=e("events"),n=e("jszip"),s=e("./stream-buf"),a=e("./browser-buffer-encode")["stringToBuffer"];class o extends i.EventEmitter{constructor(e){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e),this.zip=new n,this.stream=new s}append(e,t){t.hasOwnProperty("base64")&&t.base64?this.zip.file(t.name,e,{base64:!0}):(r.browser&&"string"==typeof e&&(e=a(e)),this.zip.file(t.name,e))}async finalize(){var e=await this.zip.generateAsync(this.options);this.stream.end(e),this.emit("finish")}read(e){return this.stream.read(e)}setEncoding(e){return this.stream.setEncoding(e)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(e,t){return this.stream.pipe(e,t)}unpipe(e){return this.stream.unpipe(e)}unshift(e){return this.stream.unshift(e)}wrap(e){return this.stream.wrap(e)}}t.exports={ZipWriter:o}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,t,r){"use strict";t.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,t,r){"use strict";t.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,t,r){"use strict";const i=e("../../utils/parse-sax"),n=e("../../utils/xml-stream");class s{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,t){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(e=>{e instanceof s?e.reset():e.xform&&e.xform.reset()})}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const t of e)for(const{eventType:e,value:r}of t)if("opentag"===e)this.parseOpen(r);else if("text"===e)this.parseText(r);else if("closetag"===e&&!this.parseClose(r.name))return this.model;return this.model}async parseStream(e){return this.parse(i(e))}get xml(){return this.toXml(this.model)}toXml(e){var t=new n;return this.render(t,e),t.xml}static toAttribute(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(r)return t}else if(r||e!==t)return e.toString()}static toStringAttribute(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return s.toAttribute(e,t,r)}static toStringValue(e,t){return void 0===e?t:e}static toBoolAttribute(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(r)return t}else if(r||e!==t)return e?"1":"0"}static toBoolValue(e,t){return void 0===e?t:"1"===e}static toIntAttribute(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return s.toAttribute(e,t,r)}static toIntValue(e,t){return void 0===e?t:parseInt(e,10)}static toFloatAttribute(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return s.toAttribute(e,t,r)}static toFloatValue(e,t){return void 0===e?t:parseFloat(e)}}t.exports=s},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("../../../utils/col-cache");function s(e){try{return n.decodeEx(e),!0}catch(e){return!1}}t.exports=class extends i{render(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(",")),e.closeNode()}parseOpen(e){return"definedName"===e.name&&(this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0)}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:function(e){const t=[];let r=!1,i="";return e.split(",").forEach(e=>{var n;e&&((n=(e.match(/'/g)||[]).length)?(n=n%2==0,!r&&n&&s(e)?t.push(e):r&&!n?(r=!1,s(i+e)&&t.push(i+e),i=""):(r=!0,i+=e+",")):r?i+=e+",":s(e)&&t.push(e))}),t}(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,t,r){"use strict";const i=e("../../../utils/utils"),n=e("../base-xform");t.exports=class extends n{render(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}parseOpen(e){return"sheet"===e.name&&(this.model={name:i.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{render(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}parseOpen(e){return"calcPr"===e.name&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{render(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(e){return"workbookPr"===e.name&&(this.model={date1904:"1"===e.attributes.date1904},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{render(e,t){var r={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&"visible"!==t.visibility&&(r.visibility=t.visibility),e.leafNode("workbookView",r)}parseOpen(e){if("workbookView"!==e.name)return!1;{const n=this.model={},s=function(e,t,r){t=void 0!==t?n[e]=parseInt(t,10):r,void 0!==t&&(n[e]=t)};s("x",e.attributes.xWindow,0),s("y",e.attributes.yWindow,0),s("width",e.attributes.windowWidth,25e3),s("height",e.attributes.windowHeight,1e4);var t="visibility",r=e.attributes.visibility,i="visible";return void 0!==(r=void 0!==r?n[t]=r:i)&&(n[t]=r),s("activeTab",e.attributes.activeTab,void 0),s("firstSheet",e.attributes.firstSheet,void 0),!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,t,r){"use strict";const i=e("../../../utils/under-dash"),n=e("../../../utils/col-cache"),s=e("../../../utils/xml-stream"),a=e("../base-xform"),o=e("../static-xform"),l=e("../list-xform"),c=e("./defined-name-xform"),h=e("./sheet-xform"),u=e("./workbook-view-xform"),d=e("./workbook-properties-xform"),f=e("./workbook-calc-properties-xform");class p extends a{constructor(){super(),this.map={fileVersion:p.STATIC_XFORMS.fileVersion,workbookPr:new d,bookViews:new l({tag:"bookViews",count:!1,childXform:new u}),sheets:new l({tag:"sheets",count:!1,childXform:new h}),definedNames:new l({tag:"definedNames",count:!1,childXform:new c}),calcPr:new f}}prepare(e){e.sheets=e.worksheets;const t=[];let r=0;e.sheets.forEach(e=>{if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split("&&").forEach(i=>{i=i.split(":"),i={name:"_xlnm.Print_Area",ranges:[`'${e.name}'!$${i[0]}:$`+i[1]],localSheetId:r},t.push(i)}),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){var i=[];if(e.pageSetup.printTitlesColumn){const t=e.pageSetup.printTitlesColumn.split(":");i.push(`'${e.name}'!$${t[0]}:$`+t[1])}if(e.pageSetup.printTitlesRow){const t=e.pageSetup.printTitlesRow.split(":");i.push(`'${e.name}'!$${t[0]}:$`+t[1])}i={name:"_xlnm.Print_Titles",ranges:i,localSheetId:r},t.push(i)}r++}),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach((e,t)=>{e.name=e.type+(t+1)})}render(e,t){e.openXml(s.StdDocAttributes),e.openNode("workbook",p.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,t.properties),this.map.bookViews.render(e,t.views),this.map.sheets.render(e,t.sheets),this.map.definedNames.render(e,t.definedNames),this.map.calcPr.render(e,t.calcProperties),e.closeNode()}parseOpen(e){return(this.parser||"workbook"!==e.name&&(this.parser=this.map[e.name],this.parser))&&this.parser.parseOpen(e),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"workbook"!==e||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}reconcile(e){const t=(e.workbookRels||[]).reduce((e,t)=>(e[t.Id]=t,e),{}),r=[];let s,a=0;(e.sheets||[]).forEach(i=>{var n=t[i.rId];n&&(s=e.worksheetHash["xl/"+n.Target.replace(/^(\s|\/xl\/)+/,"")])&&(s.name=i.name,s.id=i.id,s.state=i.state,r[a++]=s)});const o=[];i.each(e.definedNames,e=>{var t;if("_xlnm.Print_Area"===e.name)(s=r[e.localSheetId])&&(s.pageSetup||(s.pageSetup={}),t=n.decodeEx(e.ranges[0]),s.pageSetup.printArea=s.pageSetup.printArea?s.pageSetup.printArea+"&&"+t.dimensions:t.dimensions);else if("_xlnm.Print_Titles"===e.name){if(s=r[e.localSheetId]){s.pageSetup||(s.pageSetup={});const t=e.ranges.join(","),r=/\$/g,i=/\$\d+:\$\d+/,n=t.match(i);if(n&&n.length){const e=n[0];s.pageSetup.printTitlesRow=e.replace(r,"")}const a=/\$[A-Z]+:\$[A-Z]+/,o=t.match(a);if(o&&o.length){const e=o[0];s.pageSetup.printTitlesColumn=e.replace(r,"")}}}else o.push(e)}),e.definedNames=o,e.media.forEach((e,t)=>{e.index=t})}}p.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},p.STATIC_XFORMS={fileVersion:new o({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.exports=p},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,t,r){"use strict";const i=e("../strings/rich-text-xform"),n=e("../../../utils/utils"),s=e("../base-xform"),a=t.exports=function(e){this.model=e};n.inherits(a,s,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new i),this._richTextXform},render(e,t){t=t||this.model,e.openNode("comment",{ref:t.ref,authorId:0}),e.openNode("text"),t&&t.note&&t.note.texts&&t.note.texts.forEach(t=>{this.richTextXform.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),!(this.parser=void 0);default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,t,r){"use strict";const i=e("../../../utils/xml-stream"),n=e("../../../utils/utils"),s=e("../base-xform"),a=e("./comment-xform"),o=t.exports=function(){this.map={comment:new a}};n.inherits(o,s,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,t){t=t||this.model,e.openXml(i.StdDocAttributes),e.openNode("comments",o.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),t.comments.forEach(t=>{this.map.comment.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),!(this.parser=void 0);default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,t,r){"use strict";e=e("../../base-xform"),t.exports=class extends e{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t,r){(t===r[2]||"x:SizeWithCells"===this.tag&&t===r[1])&&e.leafNode(this.tag)}parseOpen(e){return e.name===this.tag&&(this.model={},this.model[this.tag]=!0)}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,t,r){"use strict";e=e("../../base-xform"),t.exports=class extends e{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(e){return e.name===this.tag&&!(this.text="")}parseText(e){this.text=e}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"x:Anchor"}getAnchorRect(e){var t=Math.floor(e.left),r=Math.floor(68*(e.left-t)),i=Math.floor(e.top),n=Math.floor(18*(e.top-i)),s=Math.floor(e.right),a=Math.floor(68*(e.right-s)),o=Math.floor(e.bottom);return[t,r,i,n,s,a,o,Math.floor(18*(e.bottom-o))]}getDefaultRect(e){var t=e.col;e=Math.max(e.row-2,0);return[t,6,e,14,t+2,2,e+4,16]}render(e,t){t=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress),e.leafNode("x:Anchor",null,t.join(", "))}parseOpen(e){return e.name===this.tag&&!(this.text="")}parseText(e){this.text=e}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("./vml-anchor-xform"),s=e("./style/vml-protection-xform"),a=e("./style/vml-position-xform"),o=["twoCells","oneCells","absolute"];t.exports=class extends i{constructor(){super(),this.map={"x:Anchor":new n,"x:Locked":new s({tag:"x:Locked"}),"x:LockText":new s({tag:"x:LockText"}),"x:SizeWithCells":new a({tag:"x:SizeWithCells"}),"x:MoveWithCells":new a({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,t){var{protection:r,editAs:i}=t.note;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,i,o),this.map["x:SizeWithCells"].render(e,i,o),this.map["x:Anchor"].render(e,t),this.map["x:Locked"].render(e,r.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,r.lockText),e.leafNode("x:Row",null,t.refAddress.row-1),e.leafNode("x:Column",null,t.refAddress.col-1),e.closeNode()}parseOpen(e){return e.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.normalizeModel(),!1)}normalizeModel(){var e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model);e=Object.keys(e).length;this.model.editAs=o[e],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,t,r){"use strict";const i=e("../../../utils/xml-stream"),n=e("../base-xform"),s=e("./vml-shape-xform");class a extends n{constructor(){super(),this.map={"v:shape":new s}}get tag(){return"xml"}render(e,t){e.openXml(i.StdDocAttributes),e.openNode(this.tag,a.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),t.comments.forEach((t,r)=>{this.map["v:shape"].render(e,t,r)}),e.closeNode()}parseOpen(e){return this.parser?this.parser.parseOpen(e):e.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}reconcile(e,t){e.anchors.forEach(e=>{(e.br?this.map["xdr:twoCellAnchor"]:this.map["xdr:oneCellAnchor"]).reconcile(e,t)})}}a.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},t.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("./vml-textbox-xform"),s=e("./vml-client-data-xform");class a extends i{constructor(){super(),this.map={"v:textbox":new n,"x:ClientData":new s}}get tag(){return"v:shape"}render(e,t,r){e.openNode("v:shape",a.V_SHAPE_ATTRIBUTES(t,r)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,t),this.map["x:ClientData"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?this.parser.parseOpen(e):e.name===this.tag?(this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1)}}a.V_SHAPE_ATTRIBUTES=(e,t)=>({id:"_x0000_s"+(1025+t),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}),t.exports=a},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"v:textbox"}conversionUnit(e,t,r){return""+parseFloat(e)*t.toFixed(2)+r}reverseConversionUnit(e){return(e||"").split(",").map(e=>Number(parseFloat(this.conversionUnit(parseFloat(e),.1,"")).toFixed(2)))}render(e,t){var r={style:"mso-direction-alt:auto"};if(t&&t.note){let e=(t.note&&t.note.margins)["inset"];(e=Array.isArray(e)?e.map(e=>this.conversionUnit(e,10,"mm")).join(","):e)&&(r.inset=e)}e.openNode("v:textbox",r),e.leafNode("div",{style:"text-align:left"}),e.closeNode()}parseOpen(e){return e.name===this.tag&&(this.model={inset:this.reverseConversionUnit(e.attributes.inset)}),!0}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],48:[function(e,t,r){"use strict";e=e("./base-xform"),t.exports=class extends e{createNewModel(e){return{}}parseOpen(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}onParserClose(e,t){this.model[e]=t.model}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}},{"./base-xform":32}],49:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{render(e,t){e.openNode("HeadingPairs"),e.openNode("vt:vector",{size:2,baseType:"variant"}),e.openNode("vt:variant"),e.leafNode("vt:lpstr",void 0,"Worksheets"),e.closeNode(),e.openNode("vt:variant"),e.leafNode("vt:i4",void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}parseOpen(e){return"HeadingPairs"===e.name}parseText(){}parseClose(e){return"HeadingPairs"!==e}}},{"../base-xform":32}],50:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{render(e,t){e.openNode("TitlesOfParts"),e.openNode("vt:vector",{size:t.length,baseType:"lpstr"}),t.forEach(t=>{e.leafNode("vt:lpstr",void 0,t.name)}),e.closeNode(),e.closeNode()}parseOpen(e){return"TitlesOfParts"===e.name}parseText(){}parseClose(e){return"TitlesOfParts"!==e}}},{"../base-xform":32}],51:[function(e,t,r){"use strict";const i=e("../../../utils/xml-stream"),n=e("../base-xform"),s=e("../simple/string-xform"),a=e("./app-heading-pairs-xform"),o=e("./app-titles-of-parts-xform");class l extends n{constructor(){super(),this.map={Company:new s({tag:"Company"}),Manager:new s({tag:"Manager"}),HeadingPairs:new a,TitleOfParts:new o}}render(e,t){e.openXml(i.StdDocAttributes),e.openNode("Properties",l.PROPERTY_ATTRIBUTES),e.leafNode("Application",void 0,"Microsoft Excel"),e.leafNode("DocSecurity",void 0,"0"),e.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(e,t.worksheets),this.map.TitleOfParts.render(e,t.worksheets),this.map.Company.render(e,t.company||""),this.map.Manager.render(e,t.manager),e.leafNode("LinksUpToDate",void 0,"false"),e.leafNode("SharedDoc",void 0,"false"),e.leafNode("HyperlinksChanged",void 0,"false"),e.leafNode("AppVersion",void 0,"16.0300"),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"Properties"===e.name||(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"Properties"!==e||!(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model})}}l.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,t,r){"use strict";const i=e("../../../utils/xml-stream"),n=e("../base-xform");class s extends n{render(e,t){e.openXml(i.StdDocAttributes),e.openNode("Types",s.PROPERTY_ATTRIBUTES);const r={};(t.media||[]).forEach(t=>{"image"===t.type&&(t=t.extension,r[t]||(r[t]=!0,e.leafNode("Default",{Extension:t,ContentType:"image/"+t})))}),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),t.worksheets.forEach(t=>{t=`/xl/worksheets/sheet${t.id}.xml`,e.leafNode("Override",{PartName:t,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),t.sharedStrings&&t.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),t.tables&&t.tables.forEach(t=>{e.leafNode("Override",{PartName:"/xl/tables/"+t.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),t.drawings&&t.drawings.forEach(t=>{e.leafNode("Override",{PartName:`/xl/drawings/${t.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),t.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),t.commentRefs.forEach(t=>{t=t.commentName,e.leafNode("Override",{PartName:`/xl/${t}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}s.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},t.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,t,r){"use strict";const i=e("../../../utils/xml-stream"),n=e("../base-xform"),s=e("../simple/date-xform"),a=e("../simple/string-xform"),o=e("../simple/integer-xform");class l extends n{constructor(){super(),this.map={"dc:creator":new a({tag:"dc:creator"}),"dc:title":new a({tag:"dc:title"}),"dc:subject":new a({tag:"dc:subject"}),"dc:description":new a({tag:"dc:description"}),"dc:identifier":new a({tag:"dc:identifier"}),"dc:language":new a({tag:"dc:language"}),"cp:keywords":new a({tag:"cp:keywords"}),"cp:category":new a({tag:"cp:category"}),"cp:lastModifiedBy":new a({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new s({tag:"cp:lastPrinted",format:l.DateFormat}),"cp:revision":new o({tag:"cp:revision"}),"cp:version":new a({tag:"cp:version"}),"cp:contentStatus":new a({tag:"cp:contentStatus"}),"cp:contentType":new a({tag:"cp:contentType"}),"dcterms:created":new s({tag:"dcterms:created",attrs:l.DateAttrs,format:l.DateFormat}),"dcterms:modified":new s({tag:"dcterms:modified",attrs:l.DateAttrs,format:l.DateFormat})}}render(e,t){e.openXml(i.StdDocAttributes),e.openNode("cp:coreProperties",l.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(e,t.creator),this.map["dc:title"].render(e,t.title),this.map["dc:subject"].render(e,t.subject),this.map["dc:description"].render(e,t.description),this.map["dc:identifier"].render(e,t.identifier),this.map["dc:language"].render(e,t.language),this.map["cp:keywords"].render(e,t.keywords),this.map["cp:category"].render(e,t.category),this.map["cp:lastModifiedBy"].render(e,t.lastModifiedBy),this.map["cp:lastPrinted"].render(e,t.lastPrinted),this.map["cp:revision"].render(e,t.revision),this.map["cp:version"].render(e,t.version),this.map["cp:contentStatus"].render(e,t.contentStatus),this.map["cp:contentType"].render(e,t.contentType),this.map["dcterms:created"].render(e,t.created),this.map["dcterms:modified"].render(e,t.modified),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"cp:coreProperties":case"coreProperties":return!(this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model});default:throw new Error("Unexpected xml node in parseClose: "+e)}}}l.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{render(e,t){e.leafNode("Relationship",t)}parseOpen(e){return"Relationship"===e.name&&(this.model=e.attributes,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,t,r){"use strict";const i=e("../../../utils/xml-stream"),n=e("../base-xform"),s=e("./relationship-xform");class a extends n{constructor(){super(),this.map={Relationship:new s}}render(e,t){t=t||this._values,e.openXml(i.StdDocAttributes),e.openNode("Relationships",a.RELATIONSHIPS_ATTRIBUTES),t.forEach(t=>{this.map.Relationship.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if("Relationships"===e.name)return this.model=[],!0;if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;if("Relationships"!==e)throw new Error("Unexpected xml node in parseClose: "+e);return!1}}a.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{parseOpen(e){return this.parser?this.parser.parseOpen(e):e.name===this.tag?(this.reset(),this.model={range:{editAs:e.attributes.editAs||"oneCell"}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}reconcilePicture(e,t){if(e&&e.rId){var r=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(r){const e=r[1],i=t.mediaIndex[e];return t.media[i]}}}}},{"../base-xform":32}],57:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("./blip-xform");t.exports=class extends i{constructor(){super(),this.map={"a:blip":new n}}get tag(){return"xdr:blipFill"}render(e,t){e.openNode(this.tag),this.map["a:blip"].render(e,t),e.openNode("a:stretch"),e.leafNode("a:fillRect"),e.closeNode(),e.closeNode()}parseOpen(e){return this.parser?this.parser.parseOpen(e):e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:blip"].model,!1)}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"a:blip"}render(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:embed"]}),!0}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],59:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"xdr:cNvPicPr"}render(e){e.openNode(this.tag),e.leafNode("a:picLocks",{noChangeAspect:"1"}),e.closeNode()}parseOpen(e){return e.name,this.tag,!0}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],60:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("./hlink-click-xform"),s=e("./ext-lst-xform");t.exports=class extends i{constructor(){super(),this.map={"a:hlinkClick":new n,"a:extLst":new s}}get tag(){return"xdr:cNvPr"}render(e,t){e.openNode(this.tag,{id:t.index,name:"Picture "+t.index}),this.map["a:hlinkClick"].render(e,t),this.map["a:extLst"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?this.parser.parseOpen(e):e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("../simple/integer-xform");t.exports=class extends i{constructor(e){super(),this.tag=e.tag,this.map={"xdr:col":new n({tag:"xdr:col",zero:!0}),"xdr:colOff":new n({tag:"xdr:colOff",zero:!0}),"xdr:row":new n({tag:"xdr:row",zero:!0}),"xdr:rowOff":new n({tag:"xdr:rowOff",zero:!0})}}render(e,t){e.openNode(this.tag),this.map["xdr:col"].render(e,t.nativeCol),this.map["xdr:colOff"].render(e,t.nativeColOff),this.map["xdr:row"].render(e,t.nativeRow),this.map["xdr:rowOff"].render(e,t.nativeRowOff),e.closeNode()}parseOpen(e){return this.parser?this.parser.parseOpen(e):e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||!(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model})}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,t,r){"use strict";const i=e("../../../utils/col-cache"),n=e("../../../utils/xml-stream"),s=e("../base-xform"),a=e("./two-cell-anchor-xform"),o=e("./one-cell-anchor-xform");class l extends s{constructor(){super(),this.map={"xdr:twoCellAnchor":new a,"xdr:oneCellAnchor":new o}}prepare(e){e.anchors.forEach((e,t)=>{var r;e.anchorType=("string"==typeof(r=e).range?i.decode(r.range):r.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor",this.map[e.anchorType].prepare(e,{index:t})})}get tag(){return"xdr:wsDr"}render(e,t){e.openXml(n.StdDocAttributes),e.openNode(this.tag,l.DRAWING_ATTRIBUTES),t.anchors.forEach(t=>{this.map[t.anchorType].render(e,t)}),e.closeNode()}parseOpen(e){return this.parser?this.parser.parseOpen(e):e.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}reconcile(e,t){e.anchors.forEach(e=>{(e.br?this.map["xdr:twoCellAnchor"]:this.map["xdr:oneCellAnchor"]).reconcile(e,t)})}}l.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},t.exports=l},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"a:extLst"}render(e){e.openNode(this.tag),e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),e.closeNode(),e.closeNode()}parseOpen(e){return e.name,this.tag,!0}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],64:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{constructor(e){super(),this.tag=e.tag,this.map={}}render(e,t){e.openNode(this.tag);var r=Math.floor(9525*t.width);t=Math.floor(9525*t.height);e.addAttribute("cx",r),e.addAttribute("cy",t),e.closeNode()}parseOpen(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||"0",10)/9525,height:parseInt(e.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"a:hlinkClick"}render(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}parseOpen(e){return e.name===this.tag&&(this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}}),!0}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("./c-nv-pr-xform"),s=e("./c-nv-pic-pr-xform");t.exports=class extends i{constructor(){super(),this.map={"xdr:cNvPr":new n,"xdr:cNvPicPr":new s}}get tag(){return"xdr:nvPicPr"}render(e,t){e.openNode(this.tag),this.map["xdr:cNvPr"].render(e,t),this.map["xdr:cNvPicPr"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?this.parser.parseOpen(e):e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,t,r){"use strict";const i=e("./base-cell-anchor-xform"),n=e("../static-xform"),s=e("./cell-position-xform"),a=e("./ext-xform"),o=e("./pic-xform");t.exports=class extends i{constructor(){super(),this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:ext":new a({tag:"xdr:ext"}),"xdr:pic":new o,"xdr:clientData":new n({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:ext"].render(e,t.range.ext),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("../static-xform"),s=e("./blip-fill-xform"),a=e("./nv-pic-pr-xform"),o=e("./sp-pr");t.exports=class extends i{constructor(){super(),this.map={"xdr:nvPicPr":new a,"xdr:blipFill":new s,"xdr:spPr":new n(o)}}get tag(){return"xdr:pic"}prepare(e,t){e.index=t.index+1}render(e,t){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,t),this.map["xdr:blipFill"].render(e,t),this.map["xdr:spPr"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?this.parser.parseOpen(e):e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):e!==this.tag}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,t,r){"use strict";t.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,t,r){"use strict";const i=e("./base-cell-anchor-xform"),n=e("../static-xform"),s=e("./cell-position-xform"),a=e("./pic-xform");t.exports=class extends i{constructor(){super(),this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:to":new s({tag:"xdr:to"}),"xdr:pic":new a,"xdr:clientData":new n({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:to"].render(e,t.range.br),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,t,r){"use strict";e=e("./base-xform"),t.exports=class extends e{constructor(e){super(),this.tag=e.tag,this.always=!!e.always,this.count=e.count,this.empty=e.empty,this.$count=e.$count||"count",this.$=e.$,this.childXform=e.childXform,this.maxItems=e.maxItems}prepare(e,t){const r=this["childXform"];e&&e.forEach((e,i)=>{t.index=i,r.prepare(e,t)})}render(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);const r=this["childXform"];(t||[]).forEach((t,i)=>{r.render(e,t,i)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name!==this.tag?!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0):(this.model=[],!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems)&&this.model.length>this.maxItems)throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(e,t){if(e){const r=this["childXform"];e.forEach(e=>{r.reconcile(e,t)})}}}},{"./base-xform":32}],72:[function(e,t,r){"use strict";const i=e("../../../utils/col-cache"),n=e("../base-xform");t.exports=class extends n{get tag(){return"autoFilter"}render(e,t){var r,n;t&&("string"==typeof t?e.leafNode("autoFilter",{ref:t}):(r=(n=function(e){return"string"==typeof e?e:i.getAddress(e.row,e.column).address})(t.from),n=n(t.to),r&&n&&e.leafNode("autoFilter",{ref:r+":"+n})))}parseOpen(e){"autoFilter"===e.name&&(this.model=e.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,t,r){"use strict";const i=e("../../../utils/utils"),n=e("../base-xform"),s=e("../../../doc/range"),a=e("../../../doc/enums"),o=e("../strings/rich-text-xform");function l(e){if(null==e)return a.ValueType.Null;if(e instanceof String||"string"==typeof e)return a.ValueType.String;if("number"==typeof e)return a.ValueType.Number;if("boolean"==typeof e)return a.ValueType.Boolean;if(e instanceof Date)return a.ValueType.Date;if(e.text&&e.hyperlink)return a.ValueType.Hyperlink;if(e.formula)return a.ValueType.Formula;if(e.error)return a.ValueType.Error;throw new Error("I could not understand type of value")}t.exports=class extends n{constructor(){super(),this.richTextXForm=new o}get tag(){return"c"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{},(i=e).type!==a.ValueType.Formula?i.type:l(i.result));var i;switch(r&&(e.styleId=r),e.comment&&t.comments.push({...e.comment,ref:e.address}),e.type){case a.ValueType.String:case a.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case a.ValueType.Date:t.date1904&&(e.date1904=!0);break;case a.ValueType.Hyperlink:t.sharedStrings&&void 0!==e.text&&null!==e.text&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case a.ValueType.Merge:t.merges.add(e);break;case a.ValueType.Formula:if(t.date1904&&(e.date1904=!0),"shared"===e.shareType&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){const r=t.formulae[e.sharedFormula];if(!r)throw new Error("Shared Formula master must exist above and or left of clone for cell "+e.address);void 0===r.si?(r.shareType="shared",r.si=t.siFormulae++,r.range=new s(r.address,e.address)):r.range&&r.range.expandToAddress(e.address),e.si=r.si}}}renderFormula(e,t){let r=null;switch(t.shareType){case"shared":r={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":r={t:"array",ref:t.ref};break;default:void 0!==t.si&&(r={t:"shared",si:t.si})}switch(l(t.result)){case a.ValueType.Null:e.leafNode("f",r,t.formula);break;case a.ValueType.String:e.addAttribute("t","str"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result);break;case a.ValueType.Number:e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result);break;case a.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result?1:0);break;case a.ValueType.Error:e.addAttribute("t","e"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result.error);break;case a.ValueType.Date:e.leafNode("f",r,t.formula),e.leafNode("v",null,i.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}render(e,t){if(t.type!==a.ValueType.Null||t.styleId){switch(e.openNode("c"),e.addAttribute("r",t.address),t.styleId&&e.addAttribute("s",t.styleId),t.type){case a.ValueType.Null:break;case a.ValueType.Number:e.leafNode("v",null,t.value);break;case a.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("v",null,t.value?"1":"0");break;case a.ValueType.Error:e.addAttribute("t","e"),e.leafNode("v",null,t.value.error);break;case a.ValueType.String:case a.ValueType.RichText:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):t.value&&t.value.richText?(e.addAttribute("t","inlineStr"),e.openNode("is"),t.value.richText.forEach(t=>{this.richTextXForm.render(e,t)}),e.closeNode("is")):(e.addAttribute("t","str"),e.leafNode("v",null,t.value));break;case a.ValueType.Date:e.leafNode("v",null,i.dateToExcel(t.value,t.date1904));break;case a.ValueType.Hyperlink:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):(e.addAttribute("t","str"),e.leafNode("v",null,t.text));break;case a.ValueType.Formula:this.renderFormula(e,t);break;case a.ValueType.Merge:}e.closeNode()}}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"c":return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e:this.model.value=this.model.value?this.model.value+e:e}}parseClose(e){switch(e){case"c":{const e=this["model"];if(e.formula||e.shareType)e.type=a.ValueType.Formula,e.value&&("str"===this.t?e.result=i.xmlDecode(e.value):"b"===this.t?e.result=0!==parseInt(e.value,10):"e"===this.t?e.result={error:e.value}:e.result=parseFloat(e.value),e.value=void 0);else if(void 0!==e.value)switch(this.t){case"s":e.type=a.ValueType.String,e.value=parseInt(e.value,10);break;case"str":e.type=a.ValueType.String,e.value=i.xmlDecode(e.value);break;case"inlineStr":e.type=a.ValueType.String;break;case"b":e.type=a.ValueType.Boolean,e.value=0!==parseInt(e.value,10);break;case"e":e.type=a.ValueType.Error,e.value={error:e.value};break;default:e.type=a.ValueType.Number,e.value=parseFloat(e.value)}else e.styleId?e.type=a.ValueType.Null:e.type=a.ValueType.Merge;return!1}case"f":case"v":case"is":return!(this.currentNode=void 0);case"t":return this.parser?this.parser.parseClose(e):this.currentNode=void 0,!0;case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,!(this.currentNode=void 0);default:return!!this.parser&&(this.parser.parseClose(e),!0)}}reconcile(e,t){var r=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(r&&(e.style=r),void 0!==e.styleId&&(e.styleId=void 0),e.type){case a.ValueType.String:"number"==typeof e.value&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=a.ValueType.RichText);break;case a.ValueType.Number:r&&i.isDateFmt(r.numFmt)&&(e.type=a.ValueType.Date,e.value=i.excelToDate(e.value,t.date1904));break;case a.ValueType.Formula:void 0!==e.result&&r&&i.isDateFmt(r.numFmt)&&(e.result=i.excelToDate(e.result,t.date1904)),"shared"===e.shareType&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}var n=t.hyperlinkMap[e.address];n&&(e.type===a.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=a.ValueType.Hyperlink,e.hyperlink=n),n=t.commentsMap&&t.commentsMap[e.address];n&&(e.comment=n)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,t,r){"use strict";const i=e("../../base-xform");t.exports=class extends i{get tag(){return"x14:cfIcon"}render(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}parseOpen(e){e=e.attributes,this.model={iconSet:e.iconSet,iconId:i.toIntValue(e.iconId)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],75:[function(e,t,r){"use strict";const i=e("uuid")["v4"],n=e("../../base-xform"),s=e("../../composite-xform"),a=e("./databar-ext-xform"),o=e("./icon-set-ext-xform"),l={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class c extends s{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new a,"x14:iconSet":this.iconSetXform=new o}}get tag(){return"x14:cfRule"}static isExt(e){return"dataBar"===e.type?a.isExt(e):!("iconSet"!==e.type||!e.custom&&!l[e.iconSet])}prepare(e){c.isExt(e)&&(e.x14Id=`{${i()}}`.toUpperCase())}render(e,t){if(c.isExt(t))switch(t.type){case"dataBar":this.renderDataBar(e,t);break;case"iconSet":this.renderIconSet(e,t)}}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}renderIconSet(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||`{${i()}}`}),this.iconSetXform.render(e,t),e.closeNode()}createNewModel(e){return e=e.attributes,{type:e.type,x14Id:e.id,priority:n.toIntValue(e.priority)}}onParserClose(e,t){Object.assign(this.model,t.model)}}t.exports=c},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,t,r){"use strict";const i=e("../../composite-xform"),n=e("./f-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"xm:f":this.fExtXform=new n}}get tag(){return"x14:cfvo"}render(e,t){e.openNode(this.tag,{type:t.type}),void 0!==t.value&&this.fExtXform.render(e,t.value),e.closeNode()}createNewModel(e){return{type:e.attributes.type}}onParserClose(e,t){"xm:f"===e&&(this.model.value=t.model?parseFloat(t.model):0)}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,t,r){"use strict";const i=e("../../composite-xform"),n=e("./sqref-ext-xform"),s=e("./cf-rule-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"xm:sqref":this.sqRef=new n,"x14:cfRule":this.cfRule=new s}}get tag(){return"x14:conditionalFormatting"}prepare(e,t){e.rules.forEach(e=>{this.cfRule.prepare(e,t)})}render(e,t){t.rules.some(s.isExt)&&(e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(s.isExt).forEach(t=>this.cfRule.render(e,t)),this.sqRef.render(e,t.ref),e.closeNode())}createNewModel(){return{rules:[]}}onParserClose(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,t,r){"use strict";const i=e("../../composite-xform"),n=e("./cf-rule-ext-xform"),s=e("./conditional-formatting-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new s}}get tag(){return"x14:conditionalFormattings"}hasContent(e){return void 0===e.hasExtContent&&(e.hasExtContent=e.some(e=>e.rules.some(n.isExt))),e.hasExtContent}prepare(e,t){e.forEach(e=>{this.cfXform.prepare(e,t)})}render(e,t){this.hasContent(t)&&(e.openNode(this.tag),t.forEach(t=>this.cfXform.render(e,t)),e.closeNode())}createNewModel(){return[]}onParserClose(e,t){this.model.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,t,r){"use strict";const i=e("../../base-xform"),n=e("../../composite-xform"),s=e("../../style/color-xform"),a=e("./cfvo-ext-xform");t.exports=class extends n{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"x14:borderColor":this.borderColorXform=new s("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new s("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new s("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new s("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,t){e.openNode(this.tag,{minLength:i.toIntAttribute(t.minLength,0,!0),maxLength:i.toIntAttribute(t.maxLength,100,!0),border:i.toBoolAttribute(t.border,!1),gradient:i.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:i.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:i.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:i.toAttribute(t.axisPosition,"auto"),direction:i.toAttribute(t.direction,"leftToRight")}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),this.borderColorXform.render(e,t.borderColor),this.negativeBorderColorXform.render(e,t.negativeBorderColor),this.negativeFillColorXform.render(e,t.negativeFillColor),this.axisColorXform.render(e,t.axisColor),e.closeNode()}createNewModel(e){return e=e.attributes,{cfvo:[],minLength:i.toIntValue(e.minLength,0),maxLength:i.toIntValue(e.maxLength,100),border:i.toBoolValue(e.border,!1),gradient:i.toBoolValue(e.gradient,!0),negativeBarColorSameAsPositive:i.toBoolValue(e.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:i.toBoolValue(e.negativeBarBorderColorSameAsPositive,!0),axisPosition:i.toStringValue(e.axisPosition,"auto"),direction:i.toStringValue(e.direction,"leftToRight")}}onParserClose(e,t){var[,e]=e.split(":");"cfvo"===e?this.model.cfvo.push(t.model):this.model[e]=t.model}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,t,r){"use strict";e=e("../../base-xform"),t.exports=class extends e{get tag(){return"xm:f"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],81:[function(e,t,r){"use strict";const i=e("../../base-xform"),n=e("../../composite-xform"),s=e("./cfvo-ext-xform"),a=e("./cf-icon-ext-xform");t.exports=class extends n{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new s,"x14:cfIcon":this.cfIconXform=new a}}get tag(){return"x14:iconSet"}render(e,t){e.openNode(this.tag,{iconSet:i.toStringAttribute(t.iconSet),reverse:i.toBoolAttribute(t.reverse,!1),showValue:i.toBoolAttribute(t.showValue,!0),custom:i.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),t.icons&&t.icons.forEach((t,r)=>{t.iconId=r,this.cfIconXform.render(e,t)}),e.closeNode()}createNewModel(e){return e=e.attributes,{cfvo:[],iconSet:i.toStringValue(e.iconSet,"3TrafficLights"),reverse:i.toBoolValue(e.reverse,!1),showValue:i.toBoolValue(e.showValue,!0)}}onParserClose(e,t){var[,r]=e.split(":");switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[r]=t.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,t,r){"use strict";e=e("../../base-xform"),t.exports=class extends e{get tag(){return"xm:sqref"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],83:[function(e,t,r){"use strict";const i=e("../../base-xform"),n=e("../../composite-xform"),s=e("../../../../doc/range"),a=e("./databar-xform"),o=e("./ext-lst-ref-xform"),l=e("./formula-xform"),c=e("./color-scale-xform"),h=e("./icon-set-xform"),u={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class d extends n{constructor(){super(),this.map={dataBar:this.databarXform=new a,extLst:this.extLstRefXform=new o,formula:this.formulaXform=new l,colorScale:this.colorScaleXform=new c,iconSet:this.iconSetXform=new h}}get tag(){return"cfRule"}static isPrimitive(e){return"iconSet"!==e.type||!e.custom&&!u[e.iconSet]}render(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t)}}renderExpression(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}renderCellIs(e,t){e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach(t=>{this.formulaXform.render(e,t)}),e.closeNode()}renderTop10(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:i.toBoolAttribute(t.percent,!1),bottom:i.toBoolAttribute(t.bottom,!1),rank:i.toIntValue(t.rank,10,!0)})}renderAboveAverage(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:i.toBoolAttribute(t.aboveAverage,!0)})}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}renderColorScale(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}renderIconSet(e,t){d.isPrimitive(t)&&(e.openNode(this.tag,{type:"iconSet",priority:t.priority}),this.iconSetXform.render(e,t),e.closeNode())}renderText(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:i.toStringAttribute(t.operator,"containsText")}),t=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new s(e.ref)["tl"];switch(e.operator){case"containsText":return`NOT(ISERROR(SEARCH("${e.text}",${t})))`;case"containsBlanks":return`LEN(TRIM(${t}))=0`;case"notContainsBlanks":return`LEN(TRIM(${t}))>0`;case"containsErrors":return`ISERROR(${t})`;case"notContainsErrors":return`NOT(ISERROR(${t}))`;default:return}})(t),t&&this.formulaXform.render(e,t),e.closeNode()}renderTimePeriod(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod}),t=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new s(e.ref)["tl"];switch(e.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${t},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${t},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${t},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${t},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${t},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${t},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${t},1)=TODAY()-1`;case"today":return`FLOOR(${t},1)=TODAY()`;case"tomorrow":return`FLOOR(${t},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${t},1)<=6,FLOOR(${t},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${t})=MONTH(EDATE(TODAY(),0-1)),YEAR(${t})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${t})=MONTH(TODAY()),YEAR(${t})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${t})=MONTH(EDATE(TODAY(),0+1)),YEAR(${t})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(t),t&&this.formulaXform.render(e,t),e.closeNode()}createNewModel(e){return e=e.attributes,{...(e=>{var{type:t,operator:r}=e;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:r}}})(e),dxfId:i.toIntValue(e.dxfId),priority:i.toIntValue(e.priority),timePeriod:e.timePeriod,percent:i.toBoolValue(e.percent),bottom:i.toBoolValue(e.bottom),rank:i.toIntValue(e.rank),aboveAverage:i.toBoolValue(e.aboveAverage)}}onParserClose(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}}t.exports=d},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,t,r){"use strict";const i=e("../../base-xform");t.exports=class extends i{get tag(){return"cfvo"}render(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}parseOpen(e){this.model={type:e.attributes.type,value:i.toFloatValue(e.attributes.val)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],85:[function(e,t,r){"use strict";const i=e("../../composite-xform"),n=e("../../style/color-xform"),s=e("./cfvo-xform");t.exports=class extends i{constructor(){super(),this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new n}}get tag(){return"colorScale"}render(e,t){e.openNode(this.tag),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),t.color.forEach(t=>{this.colorXform.render(e,t)}),e.closeNode()}createNewModel(e){return{cfvo:[],color:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,t,r){"use strict";const i=e("../../composite-xform"),n=e("./cf-rule-xform");t.exports=class extends i{constructor(){super(),this.map={cfRule:new n}}get tag(){return"conditionalFormatting"}render(e,t){t.rules.some(n.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}),t.rules.forEach(r=>{n.isPrimitive(r)&&(r.ref=t.ref,this.map.cfRule.render(e,r))}),e.closeNode())}createNewModel(e){return e=e.attributes,{ref:e.sqref,rules:[]}}onParserClose(e,t){this.model.rules.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,t,r){"use strict";const i=e("../../base-xform"),n=e("./conditional-formatting-xform");t.exports=class extends i{constructor(){super(),this.cfXform=new n}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(e,t){let r=e.reduce((e,t)=>Math.max(e,...t.rules.map(e=>e.priority||0)),1);e.forEach(e=>{e.rules.forEach(e=>{e.priority||(e.priority=r++),e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))})})}render(e,t){t.forEach(t=>{this.cfXform.render(e,t)})}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"conditionalFormatting"===e.name&&(this.parser=this.cfXform,this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!(!this.parser||!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,1))}reconcile(e,t){e.forEach(e=>{e.rules.forEach(e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,t,r){"use strict";const i=e("../../composite-xform"),n=e("../../style/color-xform"),s=e("./cfvo-xform");t.exports=class extends i{constructor(){super(),this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new n}}get tag(){return"dataBar"}render(e,t){e.openNode(this.tag),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),this.colorXform.render(e,t.color),e.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,t,r){"use strict";var i=e("../../base-xform");e=e("../../composite-xform");class n extends i{get tag(){return"x14:id"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class s extends e{constructor(){super(),this.map={"x14:id":this.idXform=new n}}get tag(){return"ext"}render(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,t.x14Id),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model.x14Id=t.model}}t.exports=class extends e{constructor(){super(),this.map={ext:new s}}get tag(){return"extLst"}render(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,t,r){"use strict";e=e("../../base-xform"),t.exports=class extends e{get tag(){return"formula"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],91:[function(e,t,r){"use strict";const i=e("../../base-xform"),n=e("../../composite-xform"),s=e("./cfvo-xform");t.exports=class extends n{constructor(){super(),this.map={cfvo:this.cfvoXform=new s}}get tag(){return"iconSet"}render(e,t){e.openNode(this.tag,{iconSet:i.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:i.toBoolAttribute(t.reverse,!1),showValue:i.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),e.closeNode()}createNewModel(e){return e=e.attributes,{iconSet:i.toStringValue(e.iconSet,"3TrafficLights"),reverse:i.toBoolValue(e.reverse),showValue:i.toBoolValue(e.showValue),cfvo:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,t,r){"use strict";const i=e("../../../utils/utils"),n=e("../base-xform");t.exports=class extends n{get tag(){return"col"}prepare(e,t){t=t.styles.addStyleModel(e.style||{}),t&&(e.styleId=t)}render(e,t){e.openNode("col"),e.addAttribute("min",t.min),e.addAttribute("max",t.max),t.width&&e.addAttribute("width",t.width),t.styleId&&e.addAttribute("style",t.styleId),t.hidden&&e.addAttribute("hidden","1"),t.bestFit&&e.addAttribute("bestFit","1"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1"),e.addAttribute("customWidth","1"),e.closeNode()}parseOpen(e){var t;return"col"===e.name&&(t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:void 0===e.attributes.width?void 0:parseFloat(e.attributes.width||"0")},e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),i.parseBoolean(e.attributes.hidden)&&(t.hidden=!0),i.parseBoolean(e.attributes.bestFit)&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),i.parseBoolean(e.attributes.collapsed)&&(t.collapsed=!0),!0)}parseText(){}parseClose(){return!1}reconcile(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,t,r){"use strict";const i=e("../../../utils/under-dash"),n=e("../../../utils/utils"),s=e("../../../utils/col-cache"),a=e("../base-xform"),o=e("../../../doc/range");function l(e,t,r,i){t=t[r],void 0!==t?e[r]=t:void 0!==i&&(e[r]=i)}function c(e,t,r,i){t=t[r],void 0!==t?e[r]=n.parseBoolean(t):void 0!==i&&(e[r]=i)}t.exports=class extends a{get tag(){return"dataValidations"}render(e,t){t=function(e){const t=i.map(e,(e,t)=>({address:t,dataValidation:e,marked:!1})).sort((e,t)=>i.strcmp(e.address,t.address)),r=i.keyBy(t,"address");return t.map(t=>{if(t.marked)return null;var n=s.decodeEx(t.address);if(n.dimensions)r[n.dimensions].marked=!0;else{let a=1,o=s.encodeAddress(n.row+a,n.col);for(;e[o]&&i.isEqual(t.dataValidation,e[o]);)a++,o=s.encodeAddress(n.row+a,n.col);let l=1;for(;((t,r,n)=>{for(let a=0;a<r;a++){const r=s.encodeAddress(t.row+a,n);if(!e[r]||!i.isEqual(e[t.address],e[r]))return!1}return!0})(n,a,n.col+l);)l++;for(let e=0;e<a;e++)for(let t=0;t<l;t++)o=s.encodeAddress(n.row+e,n.col+t),r[o].marked=!0;if(1<a||1<l){const e=n.row+(a-1),r=n.col+(l-1);return{...t.dataValidation,sqref:t.address+":"+s.encodeAddress(e,r)}}}return{...t.dataValidation,sqref:t.address}}).filter(Boolean)}(t),t.length&&(e.openNode("dataValidations",{count:t.length}),t.forEach(t=>{e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank)&&e.addAttribute("allowBlank","1"),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",t.sqref),(t.formulae||[]).forEach((r,i)=>{e.openNode("formula"+(i+1)),"date"===t.type?e.writeText(n.dateToExcel(new Date(r))):e.writeText(r),e.closeNode()}),e.closeNode()}),e.closeNode())}parseOpen(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":this._address=e.attributes.sqref;var t={type:e.attributes.type||"any",formulae:[]};switch(e.attributes.type&&c(t,e.attributes,"allowBlank"),c(t,e.attributes,"showInputMessage"),c(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom":break;default:l(t,e.attributes,"operator","between")}return l(t,e.attributes,"promptTitle"),l(t,e.attributes,"prompt"),l(t,e.attributes,"errorStyle"),l(t,e.attributes,"errorTitle"),l(t,e.attributes,"error"),this._dataValidation=t,!0;case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(e){this._formula&&this._formula.push(e)}parseClose(e){switch(e){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(e=>{e.includes(":")?new o(e).forEachAddress(e=>{this.model[e]=this._dataValidation}):this.model[e]=this._dataValidation}),!0;case"formula1":case"formula2":{let e=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":e=parseInt(e,10);break;case"decimal":e=parseFloat(e);break;case"date":e=n.excelToDate(parseFloat(e))}return this._dataValidation.formulae.push(e),!(this._formula=void 0)}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"dimension"}render(e,t){t&&e.leafNode("dimension",{ref:t})}parseOpen(e){return"dimension"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"drawing"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,t,r){"use strict";const i=e("../composite-xform"),n=e("./cf-ext/conditional-formattings-ext-xform");class s extends i{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new n}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}render(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,t.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model[e]=t.model}}t.exports=class extends i{constructor(){super(),this.map={ext:this.ext=new s}}get tag(){return"extLst"}prepare(e,t){this.ext.prepare(e,t)}hasContent(e){return this.ext.hasContent(e)}render(e,t){this.hasContent(t)&&(e.openNode("extLst"),this.ext.render(e,t),e.closeNode())}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"headerFooter"}render(e,t){if(t){e.addRollback();let r=!1;e.openNode("headerFooter"),t.differentFirst&&(e.addAttribute("differentFirst","1"),r=!0),t.differentOddEven&&(e.addAttribute("differentOddEven","1"),r=!0),t.oddHeader&&"string"==typeof t.oddHeader&&(e.leafNode("oddHeader",null,t.oddHeader),r=!0),t.oddFooter&&"string"==typeof t.oddFooter&&(e.leafNode("oddFooter",null,t.oddFooter),r=!0),t.evenHeader&&"string"==typeof t.evenHeader&&(e.leafNode("evenHeader",null,t.evenHeader),r=!0),t.evenFooter&&"string"==typeof t.evenFooter&&(e.leafNode("evenFooter",null,t.evenFooter),r=!0),t.firstHeader&&"string"==typeof t.firstHeader&&(e.leafNode("firstHeader",null,t.firstHeader),r=!0),t.firstFooter&&"string"==typeof t.firstFooter&&(e.leafNode("firstFooter",null,t.firstFooter),r=!0),r?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){switch(e.name){case"headerFooter":return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(e.attributes.differentFirst,0)),e.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(e.attributes.differentOddEven,0)),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return!(this.currentNode=void 0);default:return!1}}}},{"../base-xform":32}],98:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"hyperlink"}render(e,t){this.isInternalLink(t)?e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target}):e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}parseOpen(e){return"hyperlink"===e.name&&(this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip},e.attributes.location&&(this.model.target=e.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}},{"../base-xform":32}],99:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"mergeCell"}render(e,t){e.leafNode("mergeCell",{ref:t})}parseOpen(e){return"mergeCell"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,t,r){"use strict";const i=e("../../../utils/under-dash"),n=e("../../../doc/range"),s=e("../../../utils/col-cache"),a=e("../../../doc/enums");t.exports=class{constructor(){this.merges={}}add(e){var t;this.merges[e.master]?this.merges[e.master].expandToAddress(e.address):(t=e.master+":"+e.address,this.merges[e.master]=new n(t))}get mergeCells(){return i.map(this.merges,e=>e.range)}reconcile(e,t){i.each(e,e=>{var r=s.decode(e);for(let o=r.top;o<=r.bottom;o++){var i=t[o-1];for(let e=r.left;e<=r.right;e++){var n=i.cells[e-1];n?n.type===a.ValueType.Merge&&(n.master=r.tl):i.cells[e]={type:a.ValueType.Null,address:s.encodeAddress(o,e)}}}})}getMasterAddress(e){return e=this.hash[e],e&&e.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e=>void 0!==e;t.exports=class extends i{get tag(){return"outlinePr"}render(e,t){return!(!t||!n(t.summaryBelow)&&!n(t.summaryRight)||(e.leafNode(this.tag,{summaryBelow:n(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:n(t.summaryRight)?Number(t.summaryRight):void 0}),0))}parseOpen(e){return e.name===this.tag&&(this.model={summaryBelow:n(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):void 0,summaryRight:n(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"brk"}render(e,t){e.leafNode("brk",t)}parseOpen(e){return"brk"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,t,r){"use strict";const i=e("../../../utils/under-dash"),n=e("../base-xform");t.exports=class extends n{get tag(){return"pageMargins"}render(e,t){t&&(t={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer},i.some(t,e=>void 0!==e))&&e.leafNode(this.tag,t)}parseOpen(e){return e.name===this.tag&&(this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"pageSetUpPr"}render(e,t){return!(!t||!t.fitToPage||(e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),0))}parseOpen(e){return e.name===this.tag&&(this.model={fitToPage:"1"===e.attributes.fitToPage},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,t,r){"use strict";const i=e("../../../utils/under-dash"),n=e("../base-xform");function s(e){return e?"1":void 0}t.exports=class extends n{get tag(){return"pageSetup"}render(e,t){t&&(t={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:function(e){if("overThenDown"===e)return e}(t.pageOrder),blackAndWhite:s(t.blackAndWhite),draft:s(t.draft),cellComments:function(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return}}(t.cellComments),errors:function(e){switch(e){case"dash":case"blank":case"NA":return e;default:return}}(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:s(t.firstPageNumber),usePrinterDefaults:s(t.usePrinterDefaults),copies:t.copies},i.some(t,e=>void 0!==e))&&e.leafNode(this.tag,t)}parseOpen(e){return e.name===this.tag&&(this.model={paperSize:void 0!==(t=e.attributes.paperSize)?parseInt(t,10):void 0,orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===e.attributes.blackAndWhite,draft:"1"===e.attributes.draft,cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===e.attributes.useFirstPageNumber,usePrinterDefaults:"1"===e.attributes.usePrinterDefaults,copies:parseInt(e.attributes.copies||"1",10)},!0);var t}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"picture"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,t,r){"use strict";const i=e("../../../utils/under-dash"),n=e("../base-xform");function s(e){return e?"1":void 0}t.exports=class extends n{get tag(){return"printOptions"}render(e,t){t&&(t={headings:s(t.showRowColHeaders),gridLines:s(t.showGridLines),horizontalCentered:s(t.horizontalCentered),verticalCentered:s(t.verticalCentered)},i.some(t,e=>void 0!==e))&&e.leafNode(this.tag,t)}parseOpen(e){return e.name===this.tag&&(this.model={showRowColHeaders:"1"===e.attributes.headings,showGridLines:"1"===e.attributes.gridLines,horizontalCentered:"1"===e.attributes.horizontalCentered,verticalCentered:"1"===e.attributes.verticalCentered},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,t,r){"use strict";const i=e("./page-breaks-xform"),n=e("../list-xform");t.exports=class extends n{constructor(){super({tag:"rowBreaks",count:!0,childXform:new i})}render(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute("manualBreakCount",t.length));const r=this["childXform"];t.forEach(t=>{r.render(e,t)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("../../../utils/utils"),s=e("./cell-xform");t.exports=class extends i{constructor(e){super(),this.maxItems=e&&e.maxItems,this.map={c:new s}}get tag(){return"row"}prepare(e,t){var r=t.styles.addStyleModel(e.style);r&&(e.styleId=r);const i=this.map.c;e.cells.forEach(e=>{i.prepare(e,t)})}render(e,t,r){e.openNode("row"),e.addAttribute("r",t.number),t.height&&(e.addAttribute("ht",t.height),e.addAttribute("customHeight","1")),t.hidden&&e.addAttribute("hidden","1"),0<t.min&&0<t.max&&t.min<=t.max&&e.addAttribute("spans",t.min+":"+t.max),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");const i=this.map.c;t.cells.forEach(t=>{i.render(e,t,r)}),e.closeNode()}parseOpen(e){var t;return this.parser?(this.parser.parseOpen(e),!0):"row"===e.name?(this.numRowsSeen+=1,t=e.attributes.spans?e.attributes.spans.split(":").map(e=>parseInt(e,10)):[void 0,void 0],t=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]},e.attributes.s&&(t.styleId=parseInt(e.attributes.s,10)),n.parseBoolean(e.attributes.hidden)&&(t.hidden=!0),n.parseBoolean(e.attributes.bestFit)&&(t.bestFit=!0),e.attributes.ht&&(t.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),n.parseBoolean(e.attributes.collapsed)&&(t.collapsed=!0),!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);const r=this.map.c;e.cells.forEach(e=>{r.reconcile(e,t)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,t,r){"use strict";const i=e("../../../utils/under-dash"),n=e("../base-xform");t.exports=class extends n{get tag(){return"sheetFormatPr"}render(e,t){var r;t&&(r={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent},t.defaultColWidth&&(r.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&15===t.defaultRowHeight||(r.customHeight="1"),i.some(r,e=>void 0!==e))&&e.leafNode("sheetFormatPr",r)}parseOpen(e){return"sheetFormatPr"===e.name&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("../style/color-xform"),s=e("./page-setup-properties-xform"),a=e("./outline-properties-xform");t.exports=class extends i{constructor(){super(),this.map={tabColor:new n("tabColor"),pageSetUpPr:new s,outlinePr:new a}}get tag(){return"sheetPr"}render(e,t){var r;t&&(e.addRollback(),e.openNode("sheetPr"),r=!1,r=this.map.tabColor.render(e,t.tabColor)||!1,r=this.map.pageSetUpPr.render(e,t.pageSetup)||r,(r=this.map.outlinePr.render(e,t.outlineProperties)||r)?(e.closeNode(),e.commit()):e.rollback())}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,t,r){"use strict";const i=e("../../../utils/under-dash"),n=e("../base-xform");function s(e,t){return e?t:void 0}function a(e,t){return e===t||void 0}t.exports=class extends n{get tag(){return"sheetProtection"}render(e,t){var r;t&&(r={sheet:s(t.sheet,"1"),selectLockedCells:!1===t.selectLockedCells?"1":void 0,selectUnlockedCells:!1===t.selectUnlockedCells?"1":void 0,formatCells:s(t.formatCells,"0"),formatColumns:s(t.formatColumns,"0"),formatRows:s(t.formatRows,"0"),insertColumns:s(t.insertColumns,"0"),insertRows:s(t.insertRows,"0"),insertHyperlinks:s(t.insertHyperlinks,"0"),deleteColumns:s(t.deleteColumns,"0"),deleteRows:s(t.deleteRows,"0"),sort:s(t.sort,"0"),autoFilter:s(t.autoFilter,"0"),pivotTables:s(t.pivotTables,"0")},t.sheet&&(r.algorithmName=t.algorithmName,r.hashValue=t.hashValue,r.saltValue=t.saltValue,r.spinCount=t.spinCount,r.objects=s(!1===t.objects,"1"),r.scenarios=s(!1===t.scenarios,"1")),i.some(r,e=>void 0!==e))&&e.leafNode(this.tag,r)}parseOpen(e){return e.name===this.tag&&(this.model={sheet:a(e.attributes.sheet,"1"),objects:"1"!==e.attributes.objects&&void 0,scenarios:"1"!==e.attributes.scenarios&&void 0,selectLockedCells:"1"!==e.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==e.attributes.selectUnlockedCells&&void 0,formatCells:a(e.attributes.formatCells,"0"),formatColumns:a(e.attributes.formatColumns,"0"),formatRows:a(e.attributes.formatRows,"0"),insertColumns:a(e.attributes.insertColumns,"0"),insertRows:a(e.attributes.insertRows,"0"),insertHyperlinks:a(e.attributes.insertHyperlinks,"0"),deleteColumns:a(e.attributes.deleteColumns,"0"),deleteRows:a(e.attributes.deleteRows,"0"),sort:a(e.attributes.sort,"0"),autoFilter:a(e.attributes.autoFilter,"0"),pivotTables:a(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,t,r){"use strict";const i=e("../../../utils/col-cache"),n=e("../base-xform"),s={frozen:"frozen",frozenSplit:"frozen",split:"split"};t.exports=class extends n{get tag(){return"sheetView"}prepare(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal"}}render(e,t){function r(t,r,i){i&&e.addAttribute(t,r)}var n,s;switch(e.openNode("sheetView",{workbookViewId:t.workbookViewId||0}),r("rightToLeft","1",!0===t.rightToLeft),r("tabSelected","1",t.tabSelected),r("showRuler","0",!1===t.showRuler),r("showRowColHeaders","0",!1===t.showRowColHeaders),r("showGridLines","0",!1===t.showGridLines),r("zoomScale",t.zoomScale,t.zoomScale),r("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),r("view",t.style,t.style),t.state){case"frozen":s=t.xSplit||0,n=t.ySplit||0,n=t.topLeftCell||i.getAddress(n+1,s+1).address,s=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:n,activePane:s,state:"frozen"}),e.leafNode("selection",{pane:s,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":"topLeft"===t.activePane&&(t.activePane=void 0),e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}parseOpen(e){switch(e.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:"1"===e.attributes.rightToLeft,tabSelected:"1"===e.attributes.tabSelected,showRuler:!("0"===e.attributes.showRuler),showRowColHeaders:!("0"===e.attributes.showRowColHeaders),showGridLines:!("0"===e.attributes.showGridLines),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state},!0;case"selection":var t=e.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0;default:return!1}}parseText(){}parseClose(e){let t,r;return"sheetView"!==e||((r=this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:s[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},"split"===this.model.state&&(t.activePane=this.pane.activePane),this.selections[this.pane.activePane]):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.selections.topLeft))&&r.activeCell&&(t.activeCell=r.activeCell),this.sheetView.style&&(t.style=this.sheetView.style),!1)}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"tablePart"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,t,r){"use strict";const i=e("../../../utils/under-dash"),n=e("../../../utils/col-cache"),s=e("../../../utils/xml-stream"),a=e("../../rel-type"),o=e("./merges"),l=e("../base-xform"),c=e("../list-xform"),h=e("./row-xform"),u=e("./col-xform"),d=e("./dimension-xform"),f=e("./hyperlink-xform"),p=e("./merge-cell-xform"),m=e("./data-validations-xform"),b=e("./sheet-properties-xform"),g=e("./sheet-format-properties-xform"),y=e("./sheet-view-xform"),v=e("./sheet-protection-xform"),w=e("./page-margins-xform"),_=e("./page-setup-xform"),x=e("./print-options-xform"),k=e("./auto-filter-xform"),S=e("./picture-xform"),C=e("./drawing-xform"),T=e("./table-part-xform"),E=e("./row-breaks-xform"),M=e("./header-footer-xform"),A=e("./cf/conditional-formattings-xform"),O=e("./ext-lst-xform"),j=(e,t)=>{if(t&&t.length){if(!e||!e.length)return t;const r={},i={};e.forEach(e=>{(r[e.ref]=e).rules.forEach(e=>{var t=e["x14Id"];t&&(i[t]=e)})}),t.forEach(t=>{t.rules.forEach(n=>{var s,a,o=i[n.x14Id];o?(s=o,a=n,Object.keys(a).forEach(e=>{var t=s[e],r=a[e];void 0===t&&void 0!==r&&(s[e]=r)})):r[t.ref]?r[t.ref].rules.push(n):e.push({ref:t.ref,rules:[n]})})})}return e};class I extends l{constructor(e){super();var{maxRows:e,maxCols:t,ignoreNodes:r}=e||{};this.ignoreNodes=r||[],this.map={sheetPr:new b,dimension:new d,sheetViews:new c({tag:"sheetViews",count:!1,childXform:new y}),sheetFormatPr:new g,cols:new c({tag:"cols",count:!1,childXform:new u}),sheetData:new c({tag:"sheetData",count:!1,empty:!0,childXform:new h({maxItems:t}),maxItems:e}),autoFilter:new k,mergeCells:new c({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new E,hyperlinks:new c({tag:"hyperlinks",count:!1,childXform:new f}),pageMargins:new w,dataValidations:new m,pageSetup:new _,headerFooter:new M,printOptions:new x,picture:new S,drawing:new C,sheetProtection:new v,tableParts:new c({tag:"tableParts",count:!0,childXform:new T}),conditionalFormatting:new A,extLst:new O}}prepare(e,t){t.merges=new o,e.hyperlinks=t.hyperlinks=[],e.comments=t.comments=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),this.map.conditionalFormatting.prepare(e.conditionalFormattings,t),e.mergeCells=t.merges.mergeCells;const r=e.rels=[];function i(e){return"rId"+(e.length+1)}if(e.hyperlinks.forEach(e=>{var t=i(r);e.rId=t,r.push({Id:t,Type:a.Hyperlink,Target:e.target,TargetMode:"External"})}),0<e.comments.length){const s={Id:i(r),Type:a.Comments,Target:`../comments${e.id}.xml`},o=(r.push(s),{Id:i(r),Type:a.VmlDrawing,Target:`../drawings/vmlDrawing${e.id}.vml`});r.push(o),e.comments.forEach(e=>{e.refAddress=n.decodeAddress(e.ref)}),t.commentRefs.push({commentName:"comments"+e.id,vmlDrawing:"vmlDrawing"+e.id})}const s=[];let l;e.media.forEach(n=>{if("background"===n.type){const s=i(r);l=t.media[n.imageId],r.push({Id:s,Type:a.Image,Target:`../media/${l.name}.`+l.extension}),e.background={rId:s},e.image=t.media[n.imageId]}else if("image"===n.type){let c=e["drawing"],h=(l=t.media[n.imageId],c||(c=e.drawing={rId:i(r),name:"drawing"+ ++t.drawingsCount,anchors:[],rels:[]},t.drawings.push(c),r.push({Id:c.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${c.name}.xml`})),this.preImageId===n.imageId?s[n.imageId]:s[c.rels.length]);h||(h=i(c.rels),s[c.rels.length]=h,c.rels.push({Id:h,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${l.name}.`+l.extension}));var o={picture:{rId:h},range:n.range};if(n.hyperlinks&&n.hyperlinks.hyperlink){const e=i(c.rels);s[c.rels.length]=e,o.picture.hyperlinks={tooltip:n.hyperlinks.tooltip,rId:e},c.rels.push({Id:e,Type:a.Hyperlink,Target:n.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=n.imageId,c.anchors.push(o)}}),e.tables.forEach(e=>{var n=i(r);e.rId=n,r.push({Id:n,Type:a.Table,Target:"../tables/"+e.target}),e.columns.forEach(e=>{var r=e["style"];r&&(e.dxfId=t.styles.addDxfStyle(r))})}),this.map.extLst.prepare(e,t)}render(e,t){e.openXml(s.StdDocAttributes),e.openNode("worksheet",I.WORKSHEET_ATTRIBUTES);var r=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:void 0,i=(t.properties&&t.properties.defaultColWidth&&(r.defaultColWidth=t.properties.defaultColWidth),{outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:void 0}),n=t.pageSetup&&t.pageSetup.margins,o={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered},l=t.sheetProtection;this.map.sheetPr.render(e,i),this.map.dimension.render(e,t.dimensions),this.map.sheetViews.render(e,t.views),this.map.sheetFormatPr.render(e,r),this.map.cols.render(e,t.cols),this.map.sheetData.render(e,t.rows),this.map.sheetProtection.render(e,l),this.map.autoFilter.render(e,t.autoFilter),this.map.mergeCells.render(e,t.mergeCells),this.map.conditionalFormatting.render(e,t.conditionalFormattings),this.map.dataValidations.render(e,t.dataValidations),this.map.hyperlinks.render(e,t.hyperlinks),this.map.printOptions.render(e,o),this.map.pageMargins.render(e,n),this.map.pageSetup.render(e,t.pageSetup),this.map.headerFooter.render(e,t.headerFooter),this.map.rowBreaks.render(e,t.rowBreaks),this.map.drawing.render(e,t.drawing),this.map.picture.render(e,t.background),this.map.tableParts.render(e,t.tables),this.map.extLst.render(e,t),t.rels&&t.rels.forEach(t=>{t.Type===a.VmlDrawing&&e.leafNode("legacyDrawing",{"r:id":t.Id})}),e.closeNode()}parseOpen(e){return this.parser?this.parser.parseOpen(e):"worksheet"===e.name?i.each(this.map,e=>{e.reset()}):this.map[e.name]&&!this.ignoreNodes.includes(e.name)&&(this.parser=this.map[e.name],this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("worksheet"!==e)return!0;{const e=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(e.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(e.outlineProperties=this.map.sheetPr.model.outlineProperties);var t={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},r=(t=Object.assign(t,this.map.pageSetup.model,this.map.printOptions.model),j(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]));return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:e,views:this.map.sheetViews.model,pageSetup:t,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:r},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}}reconcile(e,t){const r=(e.relationships||[]).reduce((r,i)=>{if((r[i.Id]=i).Type===a.Comments&&(e.comments=t.comments[i.Target].comments),i.Type===a.VmlDrawing&&e.comments&&e.comments.length){const r=t.vmlDrawings[i.Target].comments;e.comments.forEach((e,t)=>{e.note=Object.assign({},e.note,r[t])})}return r},{});if(t.commentsMap=(e.comments||[]).reduce((e,t)=>(t.ref&&(e[t.ref]=t),e),{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce((e,t)=>(t.rId&&(e[t.address]=r[t.rId].Target),e),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach(e=>{e.cells=e.cells&&e.cells.filter(Boolean)||[]}),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){const i=r[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(i){const r=i[1];t.drawings[r].anchors.forEach(t=>{t.medium&&(t={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks},e.media.push(t))})}}const i=e.background&&r[e.background.rId];if(i){const r=i.Target.split("/media/")[1],n=t.mediaIndex&&t.mediaIndex[r];void 0!==n&&e.media.push({type:"background",imageId:n})}e.tables=(e.tables||[]).map(e=>(e=r[e.rId],t.tables[e.Target])),delete e.relationships,delete e.hyperlinks,delete e.comments}}I.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},t.exports=I},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{constructor(e){super(),this.tag=e.tag,this.attr=e.attr}render(e,t){t&&(e.openNode(this.tag),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this._format=e.format||function(e){try{return Number.isNaN(e.getTime())?"":e.toISOString()}catch(e){return""}},this._parse=e.parse||function(e){return new Date(e)}}render(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this.zero=e.zero}render(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs}render(e,t){void 0!==t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,t,r){"use strict";const i=e("./base-xform"),n=e("../../utils/xml-stream");t.exports=class extends i{constructor(e){super(),this._model=e}render(e){if(!this._xml){const e=new n;!function e(t,r){t.openNode(r.tag,r.$),r.c&&r.c.forEach(r=>{e(t,r)}),r.t&&t.writeText(r.t),t.closeNode()}(e,this._model),this._xml=e.xml}e.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(e){return e!==this._model.tag}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,t,r){"use strict";const i=e("./text-xform"),n=e("./rich-text-xform"),s=e("../base-xform");t.exports=class extends s{constructor(){super(),this.map={r:new n,t:new i}}get tag(){return"rPh"}render(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){const r=this.map["r"];t.richText.forEach(t=>{r.render(e,t)})}else t&&this.map.t.render(e,t.text);e.closeNode()}parseOpen(e){var t=e["name"];return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;(e=e||(this.model.richText=[])).push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,t,r){"use strict";const i=e("./text-xform"),n=e("../style/font-xform"),s=e("../base-xform");class a extends s{constructor(e){super(),this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new i)}get fontXform(){return this._fontXform||(this._fontXform=new n(a.FONT_OPTIONS))}render(e,t){t=t||this.model,e.openNode("r"),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,!(this.parser=void 0);case"rPr":return this.model.font=this.parser.model,!(this.parser=void 0);default:return this.parser&&this.parser.parseClose(e),!0}}}a.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},t.exports=a},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,t,r){"use strict";const i=e("./text-xform"),n=e("./rich-text-xform"),s=e("./phonetic-text-xform"),a=e("../base-xform");t.exports=class extends a{constructor(e){super(),this.model=e,this.map={r:new n,t:new i,rPh:new s}}get tag(){return"si"}render(e,t){e.openNode(this.tag),t&&t.hasOwnProperty("richText")&&t.richText?t.richText.length?t.richText.forEach(t=>{this.map.r.render(e,t)}):this.map.t.render(e,""):null!=t&&this.map.t.render(e,t),e.closeNode()}parseOpen(e){var t=e["name"];return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;(e=e||(this.model.richText=[])).push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,t,r){"use strict";const i=e("../../../utils/xml-stream"),n=e("../base-xform"),s=e("./shared-string-xform");t.exports=class extends n{constructor(e){super(),this.model=e||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new s)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(e){return this.model.values[e]}add(e){return e.richText?this.addRichText(e):this.addText(e)}addText(e){let t=this.hash[e];return void 0===t&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}addRichText(e){var t=this.sharedStringXform.toXml(e);let r=this.rich[t];return void 0===r&&(r=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,r}render(e,t){t=t||this._values,e.openXml(i.StdDocAttributes),e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const r=this.sharedStringXform;t.values.forEach(t=>{r.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if("sst"!==e)throw new Error("Unexpected xml node in parseClose: "+e);return!1}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"t"}render(e,t){e.openNode("t"),/^\s|\n|\s$/.test(t)&&e.addAttribute("xml:space","preserve"),e.writeText(t),e.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}parseOpen(e){return"t"===e.name&&(this._text=[],!0)}parseText(e){this._text.push(e)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,t,r){"use strict";const i=e("../../../doc/enums"),n=e("../../../utils/utils"),s=e("../base-xform"),a={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((e,t)=>(e[t]=!0,e),{}),horizontal(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((e,t)=>(e[t]=!0,e),{}),vertical(e){return"middle"===e?"center":this.verticalValues[e]?e:void 0},wrapText:e=>!!e||void 0,shrinkToFit:e=>!!e||void 0,textRotation(e){return"vertical"===e||-90<=(e=n.validInt(e))&&e<=90?e:void 0},indent:e=>(e=n.validInt(e),Math.max(0,e)),readingOrder(e){switch(e){case"ltr":return i.ReadingOrder.LeftToRight;case"rtl":return i.ReadingOrder.RightToLeft;default:return}}},o={toXml(e){if(e=a.textRotation(e))return"vertical"===e?255:0<=(e=Math.round(e))&&e<=90?e:e<0&&-90<=e?90-e:void 0},toModel(e){if(e=n.validInt(e),void 0!==e)return 255===e?"vertical":0<=e&&e<=90?e:90<e&&e<=180?90-e:void 0}};t.exports=class extends s{get tag(){return"alignment"}render(e,t){e.addRollback(),e.openNode("alignment");let r=!1;function i(t,i){i&&(e.addAttribute(t,i),r=!0)}i("horizontal",a.horizontal(t.horizontal)),i("vertical",a.vertical(t.vertical)),i("wrapText",!!a.wrapText(t.wrapText)&&"1"),i("shrinkToFit",!!a.shrinkToFit(t.shrinkToFit)&&"1"),i("indent",a.indent(t.indent)),i("textRotation",o.toXml(t.textRotation)),i("readingOrder",a.readingOrder(t.readingOrder)),e.closeNode(),r?e.commit():e.rollback()}parseOpen(e){const t={};let r=!1;function i(e,i,n){e&&(t[i]=n,r=!0)}i(e.attributes.horizontal,"horizontal",e.attributes.horizontal),i(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),i(e.attributes.wrapText,"wrapText",n.parseBoolean(e.attributes.wrapText)),i(e.attributes.shrinkToFit,"shrinkToFit",n.parseBoolean(e.attributes.shrinkToFit)),i(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),i(e.attributes.textRotation,"textRotation",o.toModel(e.attributes.textRotation)),i(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=r?t:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("../../../utils/utils"),s=e("./color-xform");class a extends i{constructor(e){super(),this.name=e,this.map={color:new s}}get tag(){return this.name}render(e,t,r){r=t&&t.color||r||this.defaultColor,e.openNode(this.name),t&&t.style&&(e.addAttribute("style",t.style),r)&&this.map.color.render(e,r),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:var t=e.attributes["style"];return this.model=t?{style:t}:void 0,!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(e){return a.validStyleValues[e]}}a.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((e,t)=>(e[t]=!0,e),{}),t.exports=class extends i{constructor(){super(),this.map={top:new a("top"),left:new a("left"),bottom:new a("bottom"),right:new a("right"),diagonal:new a("diagonal")}}render(e,t){const r=t["color"];function i(i,n){i&&!i.color&&t.color&&(i={...i,color:t.color}),n.render(e,i,r)}e.openNode("border"),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute("diagonalUp","1"),t.diagonal.down)&&e.addAttribute("diagonalDown","1"),i(t.left,this.map.left),i(t.right,this.map.right),i(t.top,this.map.top),i(t.bottom,this.map.bottom),i(t.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"border"!==e.name?(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)):(this.reset(),this.diagonalUp=n.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=n.parseBoolean(e.attributes.diagonalDown),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("border"===e){const e=this.model={},t=function(t,r,i){r&&(i&&Object.assign(r,i),e[t]=r)};t("left",this.map.left.model),t("right",this.map.right.model),t("top",this.map.top.model),t("bottom",this.map.bottom.model),t("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{constructor(e){super(),this.name=e||"color"}get tag(){return this.name}render(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute("rgb",t.argb):void 0!==t.theme?(e.addAttribute("theme",t.theme),void 0!==t.tint&&e.addAttribute("tint",t.tint)):void 0!==t.indexed?e.addAttribute("indexed",t.indexed):e.addAttribute("auto","1"),e.closeNode(),!0)}parseOpen(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("./alignment-xform"),s=e("./border-xform"),a=e("./fill-xform"),o=e("./font-xform"),l=e("./numfmt-xform"),c=e("./protection-xform");t.exports=class extends i{constructor(){super(),this.map={alignment:new n,border:new s,fill:new a,font:new o,numFmt:new l,protection:new c}}get tag(){return"dxf"}render(e,t){var r;e.openNode(this.tag),t.font&&this.map.font.render(e,t.font),t.numFmt&&t.numFmtId&&(r={id:t.numFmtId,formatCode:t.numFmt},this.map.numFmt.render(e,r)),t.fill&&this.map.fill.render(e,t.fill),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){return this.parser?this.parser.parseOpen(e):e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||!(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model})}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("./color-xform");class s extends i{constructor(){super(),this.map={color:new n}}get tag(){return"stop"}render(e,t){e.openNode("stop"),e.addAttribute("position",t.position),this.map.color.render(e,t.color),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"stop":return this.model={position:parseFloat(e.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(){}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class a extends i{constructor(){super(),this.map={fgColor:new n("fgColor"),bgColor:new n("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(e,t){e.openNode("patternFill"),e.addAttribute("patternType",t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"patternFill"!==e.name?(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)):(this.model={type:"pattern",pattern:e.attributes.patternType},!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}}class o extends i{constructor(){super(),this.map={stop:new s}}get name(){return"gradient"}get tag(){return"gradientFill"}render(e,t){switch(e.openNode("gradientFill"),t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path"),t.center.left&&(e.addAttribute("left",t.center.left),void 0===t.center.right)&&e.addAttribute("right",t.center.left),t.center.right&&e.addAttribute("right",t.center.right),t.center.top&&(e.addAttribute("top",t.center.top),void 0===t.center.bottom)&&e.addAttribute("bottom",t.center.top),t.center.bottom&&e.addAttribute("bottom",t.center.bottom)}const r=this.map.stop;t.stops.forEach(t=>{r.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"gradientFill":var t=this.model={stops:[]};return e.attributes.degree?(t.gradient="angle",t.degree=parseInt(e.attributes.degree,10)):"path"===e.attributes.type&&(t.gradient="path",t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top)&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0),!0;case"stop":return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class l extends i{constructor(){super(),this.map={patternFill:new a,gradientFill:new o}}get tag(){return"fill"}render(e,t){switch(e.addRollback(),e.openNode("fill"),t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:return void e.rollback()}e.closeNode(),e.commit()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"fill"!==e.name?(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)):(this.model={},!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(e){return l.validPatternValues[e]}}l.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((e,t)=>(e[t]=!0,e),{}),l.StopXform=s,l.PatternFillXform=a,l.GradientFillXform=o,t.exports=l},{"../base-xform":32,"./color-xform":128}],131:[function(e,t,r){"use strict";const i=e("./color-xform"),n=e("../simple/boolean-xform"),s=e("../simple/integer-xform"),a=e("../simple/string-xform"),o=e("./underline-xform"),l=e("../../../utils/under-dash"),c=e("../base-xform");class h extends c{constructor(e){super(),this.options=e||h.OPTIONS,this.map={b:{prop:"bold",xform:new n({tag:"b",attr:"val"})},i:{prop:"italic",xform:new n({tag:"i",attr:"val"})},u:{prop:"underline",xform:new o},charset:{prop:"charset",xform:new s({tag:"charset",attr:"val"})},color:{prop:"color",xform:new i},condense:{prop:"condense",xform:new n({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new n({tag:"extend",attr:"val"})},family:{prop:"family",xform:new s({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new n({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new a({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new a({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new n({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new n({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new s({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new a({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(e,t){const r=this["map"];e.openNode(this.options.tagName),l.each(this.map,(i,n)=>{r[n].xform.render(e,t[i.prop])}),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):this.map[e.name]?(this.parser=this.map[e.name].xform,this.parser.parseOpen(e)):e.name===this.options.tagName&&(this.model={},!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){var t;return this.parser&&!this.parser.parseClose(e)?(t=this.map[e],this.parser.model&&(this.model[t.prop]=this.parser.model),!(this.parser=void 0)):e!==this.options.tagName}}h.OPTIONS={tagName:"font",fontNameTag:"name"},t.exports=h},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,t,r){"use strict";const i=e("../../../utils/under-dash"),n=e("../../defaultnumformats"),s=e("../base-xform"),a=function(){const e={};return i.each(n,(t,r)=>{t.f&&(e[t.f]=parseInt(r,10))}),e}();class o extends s{constructor(e,t){super(),this.id=e,this.formatCode=t}get tag(){return"numFmt"}render(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}parseOpen(e){return"numFmt"===e.name&&(this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}parseText(){}parseClose(){return!1}}o.getDefaultFmtId=function(e){return a[e]},o.getDefaultFmtCode=function(e){return n[e]&&n[e].f},t.exports=o},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,t,r){"use strict";const i=e("../base-xform"),n={boolean:(e,t)=>void 0===e?t:e};t.exports=class extends i{get tag(){return"protection"}render(e,t){e.addRollback(),e.openNode("protection");let r=!1;function i(t,i){void 0!==i&&(e.addAttribute(t,i),r=!0)}i("locked",n.boolean(t.locked,!0)?void 0:"0"),i("hidden",n.boolean(t.hidden,!1)?"1":void 0),e.closeNode(),r?e.commit():e.rollback()}parseOpen(e){e={locked:!("0"===e.attributes.locked),hidden:"1"===e.attributes.hidden},this.model=!e.locked||e.hidden?e:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("./alignment-xform"),s=e("./protection-xform");t.exports=class extends i{constructor(e){super(),this.xfId=!(!e||!e.xfId),this.map={alignment:new n,protection:new s}}get tag(){return"xf"}render(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute("xfId",t.xfId||0),t.numFmtId&&e.addAttribute("applyNumberFormat","1"),t.fontId&&e.addAttribute("applyFont","1"),t.fillId&&e.addAttribute("applyFill","1"),t.borderId&&e.addAttribute("applyBorder","1"),t.alignment&&e.addAttribute("applyAlignment","1"),t.protection&&e.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"xf":return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==e}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,t,r){"use strict";const i=e("../../../doc/enums"),n=e("../../../utils/xml-stream"),s=e("../base-xform"),a=e("../static-xform"),o=e("../list-xform"),l=e("./font-xform"),c=e("./fill-xform"),h=e("./border-xform"),u=e("./numfmt-xform"),d=e("./style-xform"),f=e("./dxf-xform");class p extends s{constructor(e){super(),this.map={numFmts:new o({tag:"numFmts",count:!0,childXform:new u}),fonts:new o({tag:"fonts",count:!0,childXform:new l,$:{"x14ac:knownFonts":1}}),fills:new o({tag:"fills",count:!0,childXform:new c}),borders:new o({tag:"borders",count:!0,childXform:new h}),cellStyleXfs:new o({tag:"cellStyleXfs",count:!0,childXform:new d}),cellXfs:new o({tag:"cellXfs",count:!0,childXform:new d({xfId:!0})}),dxfs:new o({tag:"dxfs",always:!0,count:!0,childXform:new f}),numFmt:new u,font:new l,fill:new c,border:new h,style:new d({xfId:!0}),cellStyles:p.STATIC_XFORMS.cellStyles,tableStyles:p.STATIC_XFORMS.tableStyles,extLst:p.STATIC_XFORMS.extLst},e&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(e,t){t=t||this.model,e.openXml(n.StdDocAttributes),e.openNode("styleSheet",p.STYLESHEET_ATTRIBUTES),this.index?(t.numFmts&&t.numFmts.length&&(e.openNode("numFmts",{count:t.numFmts.length}),t.numFmts.forEach(t=>{e.writeXml(t)}),e.closeNode()),t.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),e.openNode("fonts",{count:t.fonts.length,"x14ac:knownFonts":1}),t.fonts.forEach(t=>{e.writeXml(t)}),e.closeNode(),e.openNode("fills",{count:t.fills.length}),t.fills.forEach(t=>{e.writeXml(t)}),e.closeNode(),e.openNode("borders",{count:t.borders.length}),t.borders.forEach(t=>{e.writeXml(t)}),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode("cellXfs",{count:t.styles.length}),t.styles.forEach(t=>{e.writeXml(t)}),e.closeNode()):(this.map.numFmts.render(e,t.numFmts),this.map.fonts.render(e,t.fonts),this.map.fills.render(e,t.fills),this.map.borders.render(e,t.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,t.styles)),p.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,t.dxfs),p.STATIC_XFORMS.tableStyles.render(e),p.STATIC_XFORMS.extLst.render(e),e.closeNode()}parseOpen(e){return this.parser?this.parser.parseOpen(e):"styleSheet"===e.name?this.initIndex():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("styleSheet"!==e)return!0;{this.model={};const e=(e,t)=>{t.model&&t.model.length&&(this.model[e]=t.model)};if(e("numFmts",this.map.numFmts),e("fonts",this.map.fonts),e("fills",this.map.fills),e("borders",this.map.borders),e("styles",this.map.cellXfs),e("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const e=this.index.numFmt;this.model.numFmts.forEach(t=>{e[t.id]=t.formatCode})}return!1}}addStyleModel(e,t){if(!e)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(e))return this.weakMap.get(e);var r={};if(t=t||i.ValueType.Number,e.numFmt)r.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case i.ValueType.Number:r.numFmtId=this._addNumFmtStr("General");break;case i.ValueType.Date:r.numFmtId=this._addNumFmtStr("mm-dd-yy")}return e.font&&(r.fontId=this._addFont(e.font)),e.border&&(r.borderId=this._addBorder(e.border)),e.fill&&(r.fillId=this._addFill(e.fill)),e.alignment&&(r.alignment=e.alignment),e.protection&&(r.protection=e.protection),t=this._addStyle(r),this.weakMap&&this.weakMap.set(e,t),t}getStyleModel(e){var t=this.model.styles[e];if(!t)return null;let r=this.index.model[e];if(!r){if(r=this.index.model[e]={},t.numFmtId){const e=this.index.numFmt[t.numFmtId]||u.getDefaultFmtCode(t.numFmtId);e&&(r.numFmt=e)}i("font",this.model.fonts,t.fontId),i("border",this.model.borders,t.borderId),i("fill",this.model.fills,t.fillId),t.alignment&&(r.alignment=t.alignment),t.protection&&(r.protection=t.protection)}return r;function i(e,t,i){(i||0===i)&&(t=t[i])&&(r[e]=t)}}addDxfStyle(e){return e.numFmt&&(e.numFmtId=this._addNumFmtStr(e.numFmt)),this.model.dxfs.push(e),this.model.dxfs.length-1}getDxfStyle(e){return this.model.dxfs[e]}_addStyle(e){e=this.map.style.toXml(e);let t=this.index.style[e];return void 0===t&&(t=this.index.style[e]=this.model.styles.length,this.model.styles.push(e)),t}_addNumFmtStr(e){var t=u.getDefaultFmtId(e);return void 0===t&&void 0===(t=this.index.numFmt[e])&&(t=this.index.numFmt[e]=164+this.model.numFmts.length,e=this.map.numFmt.toXml({id:t,formatCode:e}),this.model.numFmts.push(e)),t}_addFont(e){e=this.map.font.toXml(e);let t=this.index.font[e];return void 0===t&&(t=this.index.font[e]=this.model.fonts.length,this.model.fonts.push(e)),t}_addBorder(e){e=this.map.border.toXml(e);let t=this.index.border[e];return void 0===t&&(t=this.index.border[e]=this.model.borders.length,this.model.borders.push(e)),t}_addFill(e){e=this.map.fill.toXml(e);let t=this.index.fill[e];return void 0===t&&(t=this.index.fill[e]=this.model.fills.length,this.model.fills.push(e)),t}}p.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},p.STATIC_XFORMS={cellStyles:new a({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new a({tag:"dxfs",$:{count:0}}),tableStyles:new a({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new a({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},p.Mock=class extends p{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(e){return e.autodrain(),Promise.resolve()}addStyleModel(e,t){return t!==i.ValueType.Date?0:this.dateStyleId}get dateStyleId(){var e;return this._dateStyleId||(e={numFmtId:u.getDefaultFmtId("mm-dd-yy")},this._dateStyleId=this.model.styles.length,this.model.styles.push(e)),this._dateStyleId}getStyleModel(){return{}}},t.exports=p},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,t,r){"use strict";class i extends(e("../base-xform")){constructor(e){super(),this.model=e}get tag(){return"u"}render(e,t){!0===(t=t||this.model)?e.leafNode("u"):(t=i.Attributes[t])&&e.leafNode("u",t)}parseOpen(e){"u"===e.name&&(this.model=e.attributes.val||!0)}parseText(){}parseClose(){return!1}}i.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},t.exports=i},{"../base-xform":32}],137:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("./filter-column-xform");t.exports=class extends i{constructor(){super(),this.map={filterColumn:new n}}get tag(){return"autoFilter"}prepare(e){e.columns.forEach((e,t)=>{this.map.filterColumn.prepare(e,{index:t})})}render(e,t){return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach(t=>{this.map.filterColumn.render(e,t)}),e.closeNode(),!0}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(e!==this.tag)throw new Error("Unexpected xml node in parseClose: "+e);return!1}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"customFilter"}render(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val,operator:e.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,t,r){"use strict";const i=e("../base-xform"),n=e("../list-xform"),s=e("./custom-filter-xform"),a=e("./filter-xform");t.exports=class extends i{constructor(){super(),this.map={customFilters:new n({tag:"customFilters",count:!1,empty:!0,childXform:new s}),filters:new n({tag:"filters",count:!1,empty:!0,childXform:new a})}}get tag(){return"filterColumn"}prepare(e,t){e.colId=t.index.toString()}render(e,t){return t.customFilters?(e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),this.map.customFilters.render(e,t.customFilters),e.closeNode()):e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),!0}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;var t=e["attributes"];if(e.name===this.tag)return this.model={filterButton:"0"===t.hiddenButton},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"filter"}render(e,t){e.leafNode(this.tag,{val:t.val})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"tableColumn"}prepare(e,t){e.id=t.index+1}render(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}parseOpen(e){return e.name===this.tag&&(e=e["attributes"],this.model={name:e.name,totalsRowLabel:e.totalsRowLabel,totalsRowFunction:e.totalsRowFunction,dxfId:e.dxfId},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,t,r){"use strict";e=e("../base-xform"),t.exports=class extends e{get tag(){return"tableStyleInfo"}render(e,t){return e.leafNode(this.tag,{name:t.theme||void 0,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"}),!0}parseOpen(e){return e.name===this.tag&&(e=e["attributes"],this.model={theme:e.name||null,showFirstColumn:"1"===e.showFirstColumn,showLastColumn:"1"===e.showLastColumn,showRowStripes:"1"===e.showRowStripes,showColumnStripes:"1"===e.showColumnStripes},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,t,r){"use strict";const i=e("../../../utils/xml-stream"),n=e("../base-xform"),s=e("../list-xform"),a=e("./auto-filter-xform"),o=e("./table-column-xform"),l=e("./table-style-info-xform");class c extends n{constructor(){super(),this.map={autoFilter:new a,tableColumns:new s({tag:"tableColumns",count:!0,empty:!0,childXform:new o}),tableStyleInfo:new l}}prepare(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}get tag(){return"table"}render(e,t){e.openXml(i.StdDocAttributes),e.openNode(this.tag,{...c.TABLE_ATTRIBUTES,id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?"1":void 0,totalsRowShown:t.totalsRow?void 0:"1",headerRowCount:t.headerRow?"1":"0"}),this.map.autoFilter.render(e,t),this.map.tableColumns.render(e,t.columns),this.map.tableStyleInfo.render(e,t.style),e.closeNode()}parseOpen(e){var t,r;return this.parser?this.parser.parseOpen(e):(({name:t,attributes:r}=e),t===this.tag?(this.reset(),this.model={name:r.name,displayName:r.displayName||r.name,tableRef:r.ref,totalsRow:"1"===r.totalsRowCount,headerRow:"1"===r.headerRowCount}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e))),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((e,t)=>{this.model.columns[t].filterButton=e.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1)}reconcile(e,t){e.columns.forEach(e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId))})}}c.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},t.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,t,r){(function(r,i){(function(){"use strict";const n=e("fs"),s=e("jszip"),a=e("readable-stream")["PassThrough"],o=e("../utils/zip-stream"),l=e("../utils/stream-buf"),c=e("../utils/utils"),h=e("../utils/xml-stream"),u=e("../utils/browser-buffer-decode")["bufferToString"],d=e("./xform/style/styles-xform"),f=e("./xform/core/core-xform"),p=e("./xform/strings/shared-strings-xform"),m=e("./xform/core/relationships-xform"),b=e("./xform/core/content-types-xform"),g=e("./xform/core/app-xform"),y=e("./xform/book/workbook-xform"),v=e("./xform/sheet/worksheet-xform"),w=e("./xform/drawing/drawing-xform"),_=e("./xform/table/table-xform"),x=e("./xform/comment/comments-xform"),k=e("./xform/comment/vml-notes-xform"),S=e("./xml/theme1");class C{constructor(e){this.workbook=e}async readFile(e,t){if(!await c.fs.exists(e))throw new Error("File not found: "+e);var r=n.createReadStream(e);try{const e=await this.read(r,t);return r.close(),e}catch(e){throw r.close(),e}}parseRels(e){return(new m).parseStream(e)}parseWorkbook(e){return(new y).parseStream(e)}parseSharedStrings(e){return(new p).parseStream(e)}reconcile(e,t){const r=new y,i=new v(t),n=new w,s=new _,a=(r.reconcile(e),{media:e.media,mediaIndex:e.mediaIndex}),o=(Object.keys(e.drawings).forEach(t=>{var r=e.drawings[t];t=e.drawingRels[t];t&&(a.rels=t.reduce((e,t)=>(e[t.Id]=t,e),{}),(r.anchors||[]).forEach(e=>{e=e.picture&&e.picture.hyperlinks,e&&a.rels[e.rId]&&(e.hyperlink=a.rels[e.rId].Target,delete e.rId)}),n.reconcile(r,a))}),{styles:e.styles}),l=(Object.values(e.tables).forEach(e=>{s.reconcile(e,o)}),{styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings});e.worksheets.forEach(t=>{t.relationships=e.worksheetRels[t.sheetNo],i.reconcile(t,l)}),delete e.worksheetHash,delete e.worksheetRels,delete e.globalRels,delete e.sharedStrings,delete e.workbookRels,delete e.sheetDefs,delete e.styles,delete e.mediaIndex,delete e.drawings,delete e.drawingRels,delete e.vmlDrawings}async _processWorksheetEntry(e,t,r,i,n){i=await new v(i).parseStream(e),i.sheetNo=r,t.worksheetHash[n]=i,t.worksheets.push(i)}async _processCommentEntry(e,t,r){e=await(new x).parseStream(e),t.comments[`../${r}.xml`]=e}async _processTableEntry(e,t,r){e=await(new _).parseStream(e),t.tables[`../tables/${r}.xml`]=e}async _processWorksheetRelsEntry(e,t,r){e=await(new m).parseStream(e),t.worksheetRels[r]=e}async _processMediaEntry(e,t,r){var i=r.lastIndexOf(".");if(1<=i){const n=r.substr(i+1),s=r.substr(0,i);await new Promise((i,a)=>{const o=new l;o.on("finish",()=>{t.mediaIndex[r]=t.media.length,t.mediaIndex[s]=t.media.length;var e={type:"image",name:s,extension:n,buffer:o.toBuffer()};t.media.push(e),i()}),e.on("error",e=>{a(e)}),e.pipe(o)})}}async _processDrawingEntry(e,t,r){e=await(new w).parseStream(e),t.drawings[r]=e}async _processDrawingRelsEntry(e,t,r){e=await(new m).parseStream(e),t.drawingRels[r]=e}async _processVmlDrawingEntry(e,t,r){e=await(new k).parseStream(e),t.vmlDrawings[`../drawings/${r}.vml`]=e}async _processThemeEntry(e,t,r){await new Promise((i,n)=>{const s=new l;e.on("error",n),s.on("error",n),s.on("finish",()=>{t.themes[r]=s.read().toString(),i()}),e.pipe(s)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(e,t){var r=[];for await(const i of e=!e[Symbol.asyncIterator]&&e.pipe?e.pipe(new a):e)r.push(i);return this.load(i.concat(r),t)}async load(e,t){let n;n=t&&t.base64?i.from(e.toString(),"base64"):e;var o,l={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},c=await s.loadAsync(n);for(const i of Object.values(c.files))if(!i.dir){let e,n=i.name;if((n="/"===n[0]?n.substr(1):n).match(/xl\/media\//)||n.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))(e=new a).write(await i.async("nodebuffer"));else{e=new a({writableObjectMode:!0,readableObjectMode:!0}),o=r.browser?u(await i.async("nodebuffer")):await i.async("string");for(let t=0;t<o.length;t+=16384)e.write(o.substring(t,t+16384))}switch(e.end(),n){case"_rels/.rels":l.globalRels=await this.parseRels(e);break;case"xl/workbook.xml":{const t=await this.parseWorkbook(e);l.sheets=t.sheets,l.definedNames=t.definedNames,l.views=t.views,l.properties=t.properties,l.calcProperties=t.calcProperties;break}case"xl/_rels/workbook.xml.rels":l.workbookRels=await this.parseRels(e);break;case"xl/sharedStrings.xml":l.sharedStrings=new p,await l.sharedStrings.parseStream(e);break;case"xl/styles.xml":l.styles=new d,await l.styles.parseStream(e);break;case"docProps/app.xml":{const t=new g,r=await t.parseStream(e);l.company=r.company,l.manager=r.manager;break}case"docProps/core.xml":{const t=new f,r=await t.parseStream(e);Object.assign(l,r);break}default:var h=n.match(/xl\/worksheets\/sheet(\d+)[.]xml/);h?await this._processWorksheetEntry(e,l,h[1],t,n):(h=n.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/))?await this._processWorksheetRelsEntry(e,l,h[1]):(h=n.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))?await this._processThemeEntry(e,l,h[1]):(h=n.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/))?await this._processMediaEntry(e,l,h[1]):(h=n.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/))?await this._processDrawingEntry(e,l,h[1]):(h=n.match(/xl\/(comments\d+)[.]xml/))?await this._processCommentEntry(e,l,h[1]):(h=n.match(/xl\/tables\/(table\d+)[.]xml/))?await this._processTableEntry(e,l,h[1]):(h=n.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/))?await this._processDrawingRelsEntry(e,l,h[1]):(h=n.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/))&&await this._processVmlDrawingEntry(e,l,h[1])}}return this.reconcile(l,t),this.workbook.model=l,this.workbook}async addMedia(e,t){await Promise.all(t.media.map(async t=>{if("image"===t.type){var r,i=`xl/media/${t.name}.`+t.extension;if(t.filename)return s=t.filename,r=await new Promise((e,t)=>{n.readFile(s,void 0,(r,i)=>{r?t(r):e(i)})}),e.append(r,{name:i});if(t.buffer)return e.append(t.buffer,{name:i});if(t.base64){const r=t.base64,n=r.substring(r.indexOf(",")+1);return e.append(n,{name:i,base64:!0})}}var s;throw new Error("Unsupported media")}))}addDrawings(e,t){const r=new w,i=new m;t.worksheets.forEach(t=>{var n;t=t["drawing"];t&&(r.prepare(t,{}),n=r.toXml(t),e.append(n,{name:`xl/drawings/${t.name}.xml`}),n=i.toXml(t.rels),e.append(n,{name:`xl/drawings/_rels/${t.name}.xml.rels`}))})}addTables(e,t){const r=new _;t.worksheets.forEach(t=>{t=t.tables,t.forEach(t=>{r.prepare(t,{});var i=r.toXml(t);e.append(i,{name:"xl/tables/"+t.target})})})}async addContentTypes(e,t){t=(new b).toXml(t),e.append(t,{name:"[Content_Types].xml"})}async addApp(e,t){t=(new g).toXml(t),e.append(t,{name:"docProps/app.xml"})}async addCore(e,t){var r=new f;e.append(r.toXml(t),{name:"docProps/core.xml"})}async addThemes(e,t){const r=t.themes||{theme1:S};Object.keys(r).forEach(t=>{var i=r[t];e.append(i,{name:`xl/theme/${t}.xml`})})}async addOfficeRels(e){var t=(new m).toXml([{Id:"rId1",Type:C.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:C.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:C.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);e.append(t,{name:"_rels/.rels"})}async addWorkbookRels(e,t){let r=1;const i=[{Id:"rId"+r++,Type:C.RelType.Styles,Target:"styles.xml"},{Id:"rId"+r++,Type:C.RelType.Theme,Target:"theme/theme1.xml"}];t.sharedStrings.count&&i.push({Id:"rId"+r++,Type:C.RelType.SharedStrings,Target:"sharedStrings.xml"}),t.worksheets.forEach(e=>{e.rId="rId"+r++,i.push({Id:e.rId,Type:C.RelType.Worksheet,Target:`worksheets/sheet${e.id}.xml`})}),t=(new m).toXml(i),e.append(t,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(e,t){t.sharedStrings&&t.sharedStrings.count&&e.append(t.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(e,t){t=t.styles.xml,t&&e.append(t,{name:"xl/styles.xml"})}async addWorkbook(e,t){var r=new y;e.append(r.toXml(t),{name:"xl/workbook.xml"})}async addWorksheets(e,t){const r=new v,i=new m,n=new x,s=new k;t.worksheets.forEach(t=>{let a=new h;r.render(a,t),e.append(a.xml,{name:`xl/worksheets/sheet${t.id}.xml`}),t.rels&&t.rels.length&&(a=new h,i.render(a,t.rels),e.append(a.xml,{name:`xl/worksheets/_rels/sheet${t.id}.xml.rels`})),0<t.comments.length&&(a=new h,n.render(a,t),e.append(a.xml,{name:`xl/comments${t.id}.xml`}),a=new h,s.render(a,t),e.append(a.xml,{name:`xl/drawings/vmlDrawing${t.id}.vml`}))})}_finalize(e){return new Promise((t,r)=>{e.on("finish",()=>{t(this)}),e.on("error",r),e.finalize()})}prepareModel(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new p,e.styles=e.useStyles?new d(!0):new d.Mock;const r=new y,i=new v,n=(r.prepare(e),{sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media});n.drawings=e.drawings=[],n.commentRefs=e.commentRefs=[];let s=0;e.tables=[],e.worksheets.forEach(t=>{t.tables.forEach(t=>{s++,t.target=`table${s}.xml`,t.id=s,e.tables.push(t)}),i.prepare(t,n)})}async write(e,t){t=t||{};var r=this.workbook["model"],i=new o.ZipWriter(t.zip);return i.pipe(e),this.prepareModel(r,t),await this.addContentTypes(i,r),await this.addOfficeRels(i,r),await this.addWorkbookRels(i,r),await this.addWorksheets(i,r),await this.addSharedStrings(i,r),await this.addDrawings(i,r),await this.addTables(i,r),await Promise.all([this.addThemes(i,r),this.addStyles(i,r)]),await this.addMedia(i,r),await Promise.all([this.addApp(i,r),this.addCore(i,r)]),await this.addWorkbook(i,r),this._finalize(i)}writeFile(e,t){const r=n.createWriteStream(e);return new Promise((e,i)=>{r.on("finish",()=>{e()}),r.on("error",e=>{i(e)}),this.write(r,t).then(()=>{r.end()}).catch(e=>{i(e)})})}async writeBuffer(e){var t=new l;return await this.write(t,e),t.read()}}C.RelType=e("./rel-type"),t.exports=C}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,t,r){"use strict";t.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'},{}],146:[function(e,t,r){(function(t){(function(){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CsvFormatterStream=void 0;const i=e("stream"),n=e("./formatter");class s extends i.Transform{constructor(e){super({writableObjectMode:e.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=e,this.rowFormatter=new n.RowFormatter(e),this.hasWrittenBOM=!e.writeBOM}transform(e){return this.rowFormatter.rowTransform=e,this}_transform(e,r,i){let n=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,(e,r)=>e?(n=!0,i(e)):(r&&r.forEach(e=>{this.push(t.from(e,"utf8"))}),n=!0,i()))}catch(e){if(n)throw e;i(e)}}_flush(e){this.rowFormatter.finish((r,i)=>r?e(r):(i&&i.forEach(e=>{this.push(t.from(e,"utf8"))}),e()))}}r.CsvFormatterStream=s}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FormatterOptions=void 0,r.FormatterOptions=class{constructor(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\ufeff",this.alwaysWriteHeaders=!1,Object.assign(this,e||{}),void 0===(null==e?void 0:e.quoteHeaders)&&(this.quoteHeaders=this.quoteColumns),!0===(null==e?void 0:e.quote)?this.quote='"':!1===(null==e?void 0:e.quote)&&(this.quote=""),"string"!=typeof(null==e?void 0:e.escape)&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null==(e=e.writeHeaders)||e),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=""+this.escape+this.quote}}},{}],148:[function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0}),r.FieldFormatter=void 0;const n=i(e("lodash.isboolean")),s=i(e("lodash.isnil")),a=i(e("lodash.escaperegexp"));r.FieldFormatter=class{constructor(e){(this._headers=null)!==(this.formatterOptions=e).headers&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g"),e=`[${e.delimiter}${a.default(e.rowDelimiter)}|\r|\n]`,this.ESCAPE_REGEXP=new RegExp(e)}set headers(e){this._headers=e}shouldQuote(e,t){return t=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns,n.default(t)?t:Array.isArray(t)?t[e]:null!==this._headers&&t[this._headers[e]]}format(e,t,r){e=(""+(s.default(e)?"":e)).replace(/\0/g,"");var i=this["formatterOptions"];return""!==i.quote&&-1!==e.indexOf(i.quote)?this.quoteField(e.replace(this.REPLACE_REGEXP,i.escapedQuote)):-1!==e.search(this.ESCAPE_REGEXP)||this.shouldQuote(t,r)?this.quoteField(e):e}quoteField(e){var t=this.formatterOptions["quote"];return""+t+e+t}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0}),r.RowFormatter=void 0;const n=i(e("lodash.isfunction")),s=i(e("lodash.isequal")),a=e("./FieldFormatter"),o=e("../types");class l{constructor(e){this.rowCount=0,this.formatterOptions=e,this.fieldFormatter=new a.FieldFormatter(e),this.headers=e.headers,this.shouldWriteHeaders=e.shouldWriteHeaders,this.hasWrittenHeaders=!1,null!==this.headers&&(this.fieldFormatter.headers=this.headers),e.transform&&(this.rowTransform=e.transform)}static isRowHashArray(e){return!!Array.isArray(e)&&Array.isArray(e[0])&&2===e[0].length}static isRowArray(e){return Array.isArray(e)&&!this.isRowHashArray(e)}static gatherHeaders(e){return l.isRowHashArray(e)?e.map(e=>e[0]):Array.isArray(e)?e:Object.keys(e)}static createTransform(e){return o.isSyncTransform(e)?(t,r)=>{let i=null;try{i=e(t)}catch(t){return r(t)}return r(null,i)}:(t,r)=>{e(t,r)}}set rowTransform(e){if(!n.default(e))throw new TypeError("The transform should be a function");this._rowTransform=l.createTransform(e)}format(e,t){this.callTransformer(e,(r,i)=>{if(r)return t(r);if(!e)return t(null);if(r=[],i){const{shouldFormatColumns:e,headers:t}=this.checkHeaders(i);if(this.shouldWriteHeaders&&t&&!this.hasWrittenHeaders&&(r.push(this.formatColumns(t,!0)),this.hasWrittenHeaders=!0),e){const e=this.gatherColumns(i);r.push(this.formatColumns(e,!1))}}return t(null,r)})}finish(e){var t=[];if(this.formatterOptions.alwaysWriteHeaders&&0===this.rowCount){if(!this.headers)return e(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));t.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&t.push(this.formatterOptions.rowDelimiter),e(null,t)}checkHeaders(e){var t;return this.headers?{shouldFormatColumns:!0,headers:this.headers}:(t=l.gatherHeaders(e),this.headers=t,this.fieldFormatter.headers=t,this.shouldWriteHeaders?{shouldFormatColumns:!s.default(t,e),headers:t}:{shouldFormatColumns:!0,headers:null})}gatherColumns(e){if(null===this.headers)throw new Error("Headers is currently null");return Array.isArray(e)?l.isRowHashArray(e)?this.headers.map((t,r)=>(r=e[r],r?r[1]:"")):l.isRowArray(e)&&!this.shouldWriteHeaders?e:this.headers.map((t,r)=>e[r]):this.headers.map(t=>e[t])}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}formatColumns(e,t){e=e.map((e,r)=>this.fieldFormatter.format(e,r,t)).join(this.formatterOptions.delimiter);var r=this["rowCount"];return this.rowCount+=1,r?[this.formatterOptions.rowDelimiter,e].join(""):e}}r.RowFormatter=l},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FieldFormatter=r.RowFormatter=void 0;var i=e("./RowFormatter"),n=(Object.defineProperty(r,"RowFormatter",{enumerable:!0,get:function(){return i.RowFormatter}}),e("./FieldFormatter"));Object.defineProperty(r,"FieldFormatter",{enumerable:!0,get:function(){return n.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,t,r){(function(t){(function(){"use strict";var i=Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){e[i=void 0===i?r:i]=t[r]},n=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(r,"__esModule",{value:!0}),r.writeToPath=r.writeToString=r.writeToBuffer=r.writeToStream=r.write=r.format=r.FormatterOptions=r.CsvFormatterStream=void 0;const s=e("util"),a=e("stream"),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t}(e("fs")),l=e("./FormatterOptions"),c=e("./CsvFormatterStream");var h,u=e("./types"),d=r;for(h in u)"default"===h||Object.prototype.hasOwnProperty.call(d,h)||i(d,u,h);var f=e("./CsvFormatterStream"),p=(Object.defineProperty(r,"CsvFormatterStream",{enumerable:!0,get:function(){return f.CsvFormatterStream}}),e("./FormatterOptions"));Object.defineProperty(r,"FormatterOptions",{enumerable:!0,get:function(){return p.FormatterOptions}}),r.format=e=>new c.CsvFormatterStream(new l.FormatterOptions(e)),r.write=(e,t)=>{const i=r.format(t),n=s.promisify((e,t)=>{i.write(e,void 0,t)});return e.reduce((e,t)=>e.then(()=>n(t)),Promise.resolve()).then(()=>i.end()).catch(e=>{i.emit("error",e)}),i},r.writeToStream=(e,t,i)=>r.write(t,i).pipe(e),r.writeToBuffer=function(e){let i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};const n=[],s=new a.Writable({write(e,t,r){n.push(e),r()}});return new Promise((a,o)=>{s.on("error",o).on("finish",()=>a(t.concat(n))),r.write(e,i).pipe(s)})},r.writeToString=(e,t)=>r.writeToBuffer(e,t).then(e=>e.toString()),r.writeToPath=(e,t,i)=>(e=o.createWriteStream(e,{encoding:"utf8"}),r.write(t,i).pipe(e))}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isSyncTransform=void 0,r.isSyncTransform=e=>1===e.length},{}],153:[function(e,t,r){(function(t){(function(){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CsvParserStream=void 0;const i=e("string_decoder"),n=e("stream"),s=e("./transforms"),a=e("./parser");class o extends n.Transform{constructor(e){super({objectMode:e.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=e,this.parser=new a.Parser(e),this.headerTransformer=new s.HeaderTransformer(e),this.decoder=new i.StringDecoder(e.encoding),this.rowTransformerValidator=new s.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(e){return this.rowTransformerValidator.rowTransform=e,this}validate(e){return this.rowTransformerValidator.rowValidator=e,this}emit(e){if("end"===e)return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var t=arguments.length,r=new Array(1<t?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return super.emit(e,...r)}_transform(e,t,r){if(this.hasHitRowLimit)return r();var i=o.wrapDoneCallback(r);try{const t=this["lines"],r=t+this.decoder.write(e),n=this.parse(r,!0);return this.processRows(n,i)}catch(e){return i(e)}}_flush(e){var t=o.wrapDoneCallback(e);if(this.hasHitRowLimit)return t();try{const e=this.lines+this.decoder.end(),r=this.parse(e,!1);return this.processRows(r,t)}catch(e){return t(e)}}parse(e,t){return e?(({line:e,rows:t}=this.parser.parse(e,t)),this.lines=e,t):[]}processRows(e,r){const i=e.length,n=s=>{const a=e=>e?r(e):s%100!=0?n(s+1):void t(()=>n(s+1));if(this.checkAndEmitHeaders(),s>=i||this.hasHitRowLimit)return r();if(this.parsedLineCount+=1,this.shouldSkipLine)return a();var o=e[s];this.rowCount+=1,this.parsedRowCount+=1;const l=this.rowCount;return this.transformRow(o,(e,t)=>{if(e)return--this.rowCount,a(e);if(!t)return a(new Error("expected transform result"));if(t.isValid){if(t.row)return this.pushRow(t.row,a)}else this.emit("data-invalid",t.row,l,t.reason);return a()})};n(0)}transformRow(e,t){try{this.headerTransformer.transform(e,(r,i)=>r?t(r):i?i.isValid?i.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(i.row,t):this.skipRow(t):(--this.rowCount,--this.parsedRowCount,t(null,{row:null,isValid:!0})):this.shouldEmitRows?t(null,{isValid:!1,row:e}):this.skipRow(t):t(new Error("Expected result from header transform")))}catch(e){t(e)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(e){return--this.rowCount,e(null,{row:null,isValid:!0})}pushRow(e,t){try{this.parserOptions.objectMode?this.push(e):this.push(JSON.stringify(e)),t()}catch(e){t(e)}}static wrapDoneCallback(e){let t=!1;return function(r){if(r){if(t)throw r;t=!0,e(r)}else{for(var i=arguments.length,n=new Array(1<i?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];e(...n)}}}}r.CsvParserStream=o}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0}),r.ParserOptions=void 0;const n=i(e("lodash.escaperegexp")),s=i(e("lodash.isnil"));r.ParserOptions=class{constructor(e){if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,e||{}),1<this.delimiter.length)throw new Error("delimiter option must be one character long");this.escapedDelimiter=n.default(this.delimiter),this.escapeChar=null!=(e=this.escape)?e:this.quote,this.supportsComments=!s.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),0<this.maxRows&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,t,r){"use strict";var i=Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){e[i=void 0===i?r:i]=t[r]},n=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(r,"__esModule",{value:!0}),r.parseString=r.parseFile=r.parseStream=r.parse=r.ParserOptions=r.CsvParserStream=void 0;const s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t}(e("fs")),a=e("stream"),o=e("./ParserOptions"),l=e("./CsvParserStream");var c,h=e("./types"),u=r;for(c in h)"default"===c||Object.prototype.hasOwnProperty.call(u,c)||i(u,h,c);var d=e("./CsvParserStream"),f=(Object.defineProperty(r,"CsvParserStream",{enumerable:!0,get:function(){return d.CsvParserStream}}),e("./ParserOptions"));Object.defineProperty(r,"ParserOptions",{enumerable:!0,get:function(){return f.ParserOptions}}),r.parse=e=>new l.CsvParserStream(new o.ParserOptions(e)),r.parseStream=(e,t)=>e.pipe(new l.CsvParserStream(new o.ParserOptions(t))),r.parseFile=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return s.createReadStream(e).pipe(new l.CsvParserStream(new o.ParserOptions(t)))},r.parseString=(e,t)=>{var r=new a.Readable;return r.push(e),r.push(null),r.pipe(new l.CsvParserStream(new o.ParserOptions(t)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Parser=void 0;const i=e("./Scanner"),n=e("./RowParser"),s=e("./Token");class a{constructor(e){this.parserOptions=e,this.rowParser=new n.RowParser(this.parserOptions)}static removeBOM(e){return e&&65279===e.charCodeAt(0)?e.slice(1):e}parse(e,t){return e=new i.Scanner({line:a.removeBOM(e),parserOptions:this.parserOptions,hasMoreData:t}),this.parserOptions.supportsComments?this.parseWithComments(e):this.parseWithoutComments(e)}parseWithoutComments(e){var t=[];let r=!0;for(;r;)r=this.parseRow(e,t);return{line:e.line,rows:t}}parseWithComments(e){var t=this["parserOptions"],r=[];for(let i=e.nextCharacterToken;null!==i;i=e.nextCharacterToken)if(s.Token.isTokenComment(i,t)){if(null===e.advancePastLine())return{line:e.lineFromCursor,rows:r};if(!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:r};e.truncateToCursor()}else if(!this.parseRow(e,r))break;return{line:e.line,rows:r}}parseRow(e,t){return!!e.nextNonSpaceToken&&null!==(e=this.rowParser.parse(e))&&(this.parserOptions.ignoreEmpty&&n.RowParser.isEmptyRow(e)||t.push(e),!0)}}r.Parser=a},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RowParser=void 0;const i=e("./column"),n=e("./Token");r.RowParser=class{constructor(e){this.parserOptions=e,this.columnParser=new i.ColumnParser(e)}static isEmptyRow(e){return""===e.join("").replace(/\s+/g,"")}parse(e){var t=this["parserOptions"],r=e["hasMoreData"],i=e,s=[];let a=this.getStartToken(i,s);for(;a;){if(n.Token.isTokenRowDelimiter(a))return i.advancePastToken(a),!i.hasMoreCharacters&&n.Token.isTokenCarriageReturn(a,t)&&r?null:(i.truncateToCursor(),s);if(!this.shouldSkipColumnParse(i,a,s)){const e=this.columnParser.parse(i);if(null===e)return null;s.push(e)}a=i.nextNonSpaceToken}return r?null:(i.truncateToCursor(),s)}getStartToken(e,t){var r=e.nextNonSpaceToken;return null!==r&&n.Token.isTokenDelimiter(r,this.parserOptions)?(t.push(""),e.nextNonSpaceToken):r}shouldSkipColumnParse(e,t,r){var i=this["parserOptions"];if(n.Token.isTokenDelimiter(t,i)){if(e.advancePastToken(t),t=e.nextCharacterToken,!e.hasMoreCharacters||null!==t&&n.Token.isTokenRowDelimiter(t))return r.push(""),!0;if(null!==t&&n.Token.isTokenDelimiter(t,i))return r.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Scanner=void 0;const i=e("./Token"),n=/((?:\r\n)|\n|\r)/;r.Scanner=class{constructor(e){this.cursor=0,this.line=e.line,this.lineLength=this.line.length,this.parserOptions=e.parserOptions,this.hasMoreData=e.hasMoreData,this.cursor=e.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){var e=this["lineFromCursor"],t=this.parserOptions.NEXT_TOKEN_REGEXP;return-1===e.search(t)||null==(t=t.exec(e))?null:(e=t[1],t=this.cursor+(t.index||0),new i.Token({token:e,startCursor:t,endCursor:t+e.length-1}))}get nextCharacterToken(){var{cursor:e,lineLength:t}=this;return t<=e?null:new i.Token({token:this.line[e],startCursor:e,endCursor:e})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){var e=n.exec(this.lineFromCursor);return e?(this.cursor+=(e.index||0)+e[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(e){return this.cursor=e,this}advanceToToken(e){return this.cursor=e.startCursor,this}advancePastToken(e){return this.cursor=e.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Token=void 0,r.Token=class{constructor(e){this.token=e.token,this.startCursor=e.startCursor,this.endCursor=e.endCursor}static isTokenRowDelimiter(e){return e=e.token,"\r"===e||"\n"===e||"\r\n"===e}static isTokenCarriageReturn(e,t){return e.token===t.carriageReturn}static isTokenComment(e,t){return t.supportsComments&&!!e&&e.token===t.comment}static isTokenEscapeCharacter(e,t){return e.token===t.escapeChar}static isTokenQuote(e,t){return e.token===t.quote}static isTokenDelimiter(e,t){return e.token===t.delimiter}}},{}],160:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ColumnFormatter=void 0,r.ColumnFormatter=class{constructor(e){e.trim?this.format=e=>e.trim():e.ltrim?this.format=e=>e.trimLeft():e.rtrim?this.format=e=>e.trimRight():this.format=e=>e}}},{}],161:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ColumnParser=void 0;const i=e("./NonQuotedColumnParser"),n=e("./QuotedColumnParser"),s=e("../Token");r.ColumnParser=class{constructor(e){this.parserOptions=e,this.quotedColumnParser=new n.QuotedColumnParser(e),this.nonQuotedColumnParser=new i.NonQuotedColumnParser(e)}parse(e){var t=e["nextNonSpaceToken"];return(null!==t&&s.Token.isTokenQuote(t,this.parserOptions)?(e.advanceToToken(t),this.quotedColumnParser):this.nonQuotedColumnParser).parse(e)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.NonQuotedColumnParser=void 0;const i=e("./ColumnFormatter"),n=e("../Token");r.NonQuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new i.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;var t=this["parserOptions"],r=[];let i=e.nextCharacterToken;for(;i&&!n.Token.isTokenDelimiter(i,t)&&!n.Token.isTokenRowDelimiter(i);i=e.nextCharacterToken)r.push(i.token),e.advancePastToken(i);return this.columnFormatter.format(r.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.QuotedColumnParser=void 0;const i=e("./ColumnFormatter"),n=e("../Token");r.QuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new i.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;var t=e.cursor,{foundClosingQuote:r,col:i}=this.gatherDataBetweenQuotes(e);if(r)return this.checkForMalformedColumn(e),i;if(e.advanceTo(t),e.hasMoreData)return null;throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${e.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`)}gatherDataBetweenQuotes(e){var t=this["parserOptions"];let r=!1,i=!1;var s=[];let a=e.nextCharacterToken;for(;!i&&null!==a;a=e.nextCharacterToken){var o=n.Token.isTokenQuote(a,t);if(!r&&o)r=!0;else if(r)if(n.Token.isTokenEscapeCharacter(a,t)){e.advancePastToken(a);const r=e.nextCharacterToken;null!==r&&(n.Token.isTokenQuote(r,t)||n.Token.isTokenEscapeCharacter(r,t))?(s.push(r.token),a=r):o?i=!0:s.push(a.token)}else o?i=!0:s.push(a.token);e.advancePastToken(a)}return{col:this.columnFormatter.format(s.join("")),foundClosingQuote:i}}checkForMalformedColumn(e){var t=this["parserOptions"],r=e["nextNonSpaceToken"];if(r){var i=n.Token.isTokenDelimiter(r,t),s=n.Token.isTokenRowDelimiter(r);if(!i&&!s)throw i=e.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'"),new Error(`Parse Error: expected: '${t.escapedDelimiter}' OR new line got: '${r.token}'. at '`+i);e.advanceToToken(r)}else e.hasMoreData||e.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ColumnFormatter=r.QuotedColumnParser=r.NonQuotedColumnParser=r.ColumnParser=void 0;var i=e("./ColumnParser"),n=(Object.defineProperty(r,"ColumnParser",{enumerable:!0,get:function(){return i.ColumnParser}}),e("./NonQuotedColumnParser")),s=(Object.defineProperty(r,"NonQuotedColumnParser",{enumerable:!0,get:function(){return n.NonQuotedColumnParser}}),e("./QuotedColumnParser")),a=(Object.defineProperty(r,"QuotedColumnParser",{enumerable:!0,get:function(){return s.QuotedColumnParser}}),e("./ColumnFormatter"));Object.defineProperty(r,"ColumnFormatter",{enumerable:!0,get:function(){return a.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.QuotedColumnParser=r.NonQuotedColumnParser=r.ColumnParser=r.Token=r.Scanner=r.RowParser=r.Parser=void 0;var i=e("./Parser"),n=(Object.defineProperty(r,"Parser",{enumerable:!0,get:function(){return i.Parser}}),e("./RowParser")),s=(Object.defineProperty(r,"RowParser",{enumerable:!0,get:function(){return n.RowParser}}),e("./Scanner")),a=(Object.defineProperty(r,"Scanner",{enumerable:!0,get:function(){return s.Scanner}}),e("./Token")),o=(Object.defineProperty(r,"Token",{enumerable:!0,get:function(){return a.Token}}),e("./column"));Object.defineProperty(r,"ColumnParser",{enumerable:!0,get:function(){return o.ColumnParser}}),Object.defineProperty(r,"NonQuotedColumnParser",{enumerable:!0,get:function(){return o.NonQuotedColumnParser}}),Object.defineProperty(r,"QuotedColumnParser",{enumerable:!0,get:function(){return o.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0}),r.HeaderTransformer=void 0;const n=i(e("lodash.isundefined")),s=i(e("lodash.isfunction")),a=i(e("lodash.uniq")),o=i(e("lodash.groupby"));r.HeaderTransformer=class{constructor(e){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,!(this.headersLength=0)===(this.parserOptions=e).headers?this.shouldUseFirstRow=!0:Array.isArray(e.headers)?this.setHeaders(e.headers):s.default(e.headers)&&(this.headersTransform=e.headers)}transform(e,t){return this.shouldMapRow(e)?t(null,this.processRow(e)):t(null,{row:null,isValid:!0})}shouldMapRow(e){var t=this["parserOptions"];if(!this.headersTransform&&t.renameHeaders&&!this.processedFirstRow){if(this.receivedHeaders)return!(this.processedFirstRow=!0);throw new Error("Error renaming headers: new headers must be provided in an array")}if(this.receivedHeaders||!Array.isArray(e))return!0;if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}processRow(e){if(!this.headers)return{row:e,isValid:!0};var t=this["parserOptions"];if(!t.discardUnmappedColumns&&e.length>this.headersLength){if(t.strictColumnHandling)return{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: `+e.length};throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: `+e.length)}return t.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: `+e.length}:{row:this.mapHeaders(e),isValid:!0}}mapHeaders(e){const t={},{headers:r,headersLength:i}=this;for(let s=0;s<i;s+=1){const i=r[s];if(!n.default(i)){const r=e[s];n.default(r)?t[i]="":t[i]=r}}return t}setHeaders(e){var t,r=e.filter(e=>!!e);if(a.default(r).length!==r.length){const e=o.default(r),t=Object.keys(e).filter(t=>1<e[t].length);throw new Error("Duplicate headers found "+JSON.stringify(t))}this.headers=e,this.receivedHeaders=!0,this.headersLength=(null==(t=this.headers)?void 0:t.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,t,r){"use strict";var i;Object.defineProperty(r,"__esModule",{value:!0}),r.RowTransformerValidator=void 0;const n=(i=e("lodash.isfunction"))&&i.__esModule?i:{default:i},s=e("../types");class a{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(e){return s.isSyncTransform(e)?(t,r)=>{let i=null;try{i=e(t)}catch(t){return r(t)}return r(null,i)}:e}static createValidator(e){return s.isSyncValidate(e)?(t,r)=>{r(null,{row:t,isValid:e(t)})}:(t,r)=>{e(t,(e,i,n)=>e?r(e):r(null,i?{row:t,isValid:i,reason:n}:{row:t,isValid:!1,reason:n}))}}set rowTransform(e){if(!n.default(e))throw new TypeError("The transform should be a function");this._rowTransform=a.createTransform(e)}set rowValidator(e){if(!n.default(e))throw new TypeError("The validate should be a function");this._rowValidator=a.createValidator(e)}transformAndValidate(e,t){return this.callTransformer(e,(e,r)=>e?t(e):r?this.callValidator(r,(e,i)=>e?t(e):i&&!i.isValid?t(null,{row:r,isValid:!1,reason:i.reason}):t(null,{row:r,isValid:!0})):t(null,{row:null,isValid:!0}))}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}callValidator(e,t){return this._rowValidator?this._rowValidator(e,t):t(null,{row:e,isValid:!0})}}r.RowTransformerValidator=a},{"../types":169,"lodash.isfunction":446}],168:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HeaderTransformer=r.RowTransformerValidator=void 0;var i=e("./RowTransformerValidator"),n=(Object.defineProperty(r,"RowTransformerValidator",{enumerable:!0,get:function(){return i.RowTransformerValidator}}),e("./HeaderTransformer"));Object.defineProperty(r,"HeaderTransformer",{enumerable:!0,get:function(){return n.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isSyncValidate=r.isSyncTransform=void 0,r.isSyncTransform=e=>1===e.length,r.isSyncValidate=e=>1===e.length},{}],170:[function(e,t,r){"use strict";r.bignum=e("bn.js"),r.define=e("./asn1/api").define,r.base=e("./asn1/base"),r.constants=e("./asn1/constants"),r.decoders=e("./asn1/decoders"),r.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,t,r){"use strict";const i=e("./encoders"),n=e("./decoders"),s=e("inherits");function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){const t=this.name;function r(e){this._initNamed(e,t)}return s(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},a.prototype._getDecoder=function(e){return this.decoders.hasOwnProperty(e=e||"der")||(this.decoders[e]=this._createNamed(n[e])),this.decoders[e]},a.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},a.prototype._getEncoder=function(e){return this.encoders.hasOwnProperty(e=e||"der")||(this.encoders[e]=this._createNamed(i[e])),this.encoders[e]},a.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,t,r){"use strict";const i=e("inherits"),n=e("../base/reporter").Reporter,s=e("safer-buffer").Buffer;function a(e,t){n.call(this,t),s.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function o(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return o.isEncoderBuffer(e)||(e=new o(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=s.byteLength(e);else{if(!s.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}i(a,n),(r.DecoderBuffer=a).isDecoderBuffer=function(e){return e instanceof a||"object"==typeof e&&s.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},a.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,n.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){var r;return this.offset+e<=this.length?((r=new a(this.base))._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r):this.error(t||"DecoderBuffer overrun")},a.prototype.raw=function(e){return this.base.slice((e||this).offset,this.length)},(r.EncoderBuffer=o).isEncoderBuffer=function(e){return e instanceof o||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},o.prototype.join=function(e,t){return e=e||s.alloc(this.length),t=t||0,0!==this.length&&(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):s.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,t,r){"use strict";r.Reporter=e("./reporter").Reporter,r.DecoderBuffer=e("./buffer").DecoderBuffer,r.EncoderBuffer=e("./buffer").EncoderBuffer,r.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,t,r){"use strict";const i=e("../base/reporter").Reporter,n=e("../base/buffer").EncoderBuffer,s=e("../base/buffer").DecoderBuffer,a=e("minimalistic-assert"),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function c(e,t,r){var i={};(this._baseState=i).name=r,i.enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=c;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};h.forEach((function(r){t[r]=e[r]}));var r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){const e=this._baseState;l.forEach((function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},c.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(a(null===t.children),(t.children=r).forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);var i=e[r];t[i]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),o.forEach((function(e){c.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}})),c.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));let i,n=r.default,a=!0,o=null;if(null!==r.key&&(o=e.enterKey(r.key)),r.optional){let i=null;if(null!==r.explicit?i=r.explicit:null!==r.implicit?i=r.implicit:null!==r.tag&&(i=r.tag),null!==i||r.any){if(a=this._peekTag(e,i,r.any),e.isError(a))return a}else{const i=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(i)}}if(r.obj&&a&&(i=e.enterObject()),a){if(null!==r.explicit){const t=this._decodeTag(e,r.explicit);if(e.isError(t))return t;e=t}const i=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const i=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(i))return i;r.any?n=e.raw(t):e=i}if(t&&t.track&&null!==r.tag&&t.track(e.path(),i,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(n=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(n))return n;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const i=new s(n);n=this._getUse(r.contains,e._reporterState.obj)._decode(i,t)}}return r.obj&&a&&(n=e.leaveObject(i)),null===r.key||null===n&&!0!==a?null!==o&&e.exitKey(o):e.leaveKey(o,r.key,n),n},c.prototype._decodeGeneric=function(e,t,r){var i=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,i.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&i.args?this._decodeObjid(t,i.args[0],i.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,i.args&&i.args[0],r):null!==i.use?this._getUse(i.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){const r=this._baseState;let i=null,n=!1;return Object.keys(r.choice).some((function(s){var a=e.save(),o=r.choice[s];try{const r=o._decode(e,t);if(e.isError(r))return!1;i={type:s,value:r},n=!0}catch(s){return e.restore(a),!1}return!0}),this),n?i:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},c.prototype._encode=function(e,t,r){var i=this._baseState;return null!==i.default&&i.default===e||void 0===(i=this._encodeValue(e,t,r))||this._skipDefault(i,t,r)?void 0:i},c.prototype._encodeValue=function(e,t,r){var n=this._baseState;if(null===n.parent)return n.children[0]._encode(e,t||new i);let s=null;if(this.reporter=t,n.optional&&void 0===e){if(null===n.default)return;e=n.default}let a=null,o=!1;if(n.any)s=this._createEncoderBuffer(e);else if(n.choice)s=this._encodeChoice(e,t);else if(n.contains)a=this._getUse(n.contains,r)._encode(e,t),o=!0;else if(n.children)a=n.children.map((function(r){var i;return"null_"===r._baseState.tag?r._encode(null,t,e):null===r._baseState.key?t.error("Child should have a key"):(i=t.enterKey(r._baseState.key),"object"!=typeof e?t.error("Child expected, but input is not object"):(r=r._encode(e[r._baseState.key],t,e),t.leaveKey(i),r))}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return t.error("Too many args for : "+n.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const r=this.clone();r._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(r){var i=this._baseState;return this._getUse(i.args[0],e)._encode(r,t)}),r))}else null!==n.use?s=this._getUse(n.use,r)._encode(e,t):(a=this._encodePrimitive(n.tag,e),o=!0);if(!n.any&&null===n.choice){const e=null!==n.implicit?n.implicit:n.tag,r=null===n.implicit?"universal":"context";null===e?null===n.use&&t.error("Tag could be omitted only for .use()"):null===n.use&&(s=this._encodeComposite(e,o,r,a))}return null!==n.explicit?this._encodeComposite(n.explicit,!1,"context",s):s},c.prototype._encodeChoice=function(e,t){var r=this._baseState,i=r.choice[e.type];return i||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),i._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,t,r){"use strict";function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function n(e,t){this.path=e,this.rethrow(t)}e=e("inherits"),(r.Reporter=i).prototype.isError=function(e){return e instanceof n},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var i=this._reporterState;this.exitKey(e),null!==i.obj&&(i.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t=this._reporterState,r=e instanceof n;e=r?e:new n(t.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack);if(t.options.partial)return r||t.errors.push(e),e;throw e},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},e(n,Error),n.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:440}],176:[function(e,t,r){"use strict";function i(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var i=e[r];t[i]=r})),t}r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=i(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=i(r.tag)},{}],177:[function(e,t,r){"use strict";r._reverse=function(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var i=e[r];t[i]=r})),t},r.der=e("./der")},{"./der":176}],178:[function(e,t,r){"use strict";const i=e("inherits"),n=e("bn.js"),s=e("../base/buffer").DecoderBuffer,a=e("../base/node"),o=e("../constants/der");function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,"der",e)}function h(e,t){let r=e.readUInt8(t);if(e.isError(r))return r;var i=o.tagClass[r>>6],n=0==(32&r);if(31==(31&r)){let i=r;for(r=0;128==(128&i);){if(i=e.readUInt8(t),e.isError(i))return i;r=(r<<=7)|127&i}}else r&=31;return{cls:i,primitive:n,tag:r,tagStr:o.tag[r]}}function u(e,t,r){let i=e.readUInt8(r);if(!e.isError(i)){if(!t&&128===i)return null;if(0!=(128&i)){var n=127&i;if(4<n)return e.error("length octect is too long");for(let t=i=0;t<n;t++){i<<=8;const t=e.readUInt8(r);if(e.isError(t))return t;i|=t}}}return i}(t.exports=l).prototype.decode=function(e,t){return s.isDecoderBuffer(e)||(e=new s(e,t)),this.tree._decode(e,t)},i(c,a),c.prototype._peekTag=function(e,t,r){var i,n;return!e.isEmpty()&&(i=e.save(),n=h(e,'Failed to peek tag: "'+t+'"'),e.isError(n)?n:(e.restore(i),n.tag===t||n.tagStr===t||n.tagStr+"of"===t||r))},c.prototype._decodeTag=function(e,t,r){var i,n=h(e,'Failed to decode tag of "'+t+'"');return e.isError(n)?n:(i=u(e,n.primitive,'Failed to get length of "'+t+'"'),e.isError(i)?i:r||n.tag===t||n.tagStr===t||n.tagStr+"of"===t?n.primitive||null!==i?e.skip(i,'Failed to match body of: "'+t+'"'):(r=e.save(),n=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"'),e.isError(n)?n:(i=e.offset-r.offset,e.restore(r),e.skip(i,'Failed to match body of: "'+t+'"'))):e.error('Failed to match tag: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r=h(e,t);if(e.isError(r))return r;var i=u(e,r.primitive,t);if(e.isError(i))return i;if(i=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,i){for(var n=[];!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;var s=r.decode(e,"der",i);if(e.isError(s)&&t)break;n.push(s)}return n},c.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let r="";for(let e=0;e<t.length/2;e++)r+=String.fromCharCode(t.readUInt16BE(2*e));return r}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"!==t)return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported");{const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}},c.prototype._decodeObjid=function(e,t,r){let i;var n=[];let s=0,a=0;for(;!e.isEmpty();)a=e.readUInt8(),s=(s<<=7)|127&a,0==(128&a)&&(n.push(s),s=0);if(128&a&&n.push(s),i=r?n:[n[0]/40|0,n[0]%40].concat(n.slice(1)),t){let e=t[i.join(" ")];void 0!==(e=void 0===e?t[i.join(".")]:e)&&(i=e)}return i},c.prototype._decodeTime=function(e,t){var r=e.raw().toString();let i,n,s,a,o,l;if("gentime"===t)i=0|r.slice(0,4),n=0|r.slice(4,6),s=0|r.slice(6,8),a=0|r.slice(8,10),o=0|r.slice(10,12),l=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");i=0|r.slice(0,2),n=0|r.slice(2,4),s=0|r.slice(4,6),a=0|r.slice(6,8),o=0|r.slice(8,10),l=0|r.slice(10,12),i=i<70?2e3+i:1900+i}return Date.UTC(i,n-1,s,a,o,l,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){e=e.raw();let r=new n(e);return t&&t[r.toString(10)]||r},c.prototype._use=function(e,t){return(e="function"==typeof e?e(t):e)._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,t,r){"use strict";r.der=e("./der"),r.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,t,r){"use strict";const i=e("inherits"),n=e("safer-buffer").Buffer,s=e("./der");function a(e){s.call(this,e),this.enc="pem"}i(a,s),(t.exports=a).prototype.decode=function(e,t){var r=e.toString().split(/[\r\n]+/g),i=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let o=-1,l=-1;for(let n=0;n<r.length;n++){const e=r[n].match(a);if(null!==e&&e[2]===i){if(-1!==o){if("END"!==e[1])break;l=n;break}if("BEGIN"!==e[1])break;o=n}}if(-1===o||-1===l)throw new Error("PEM section not found for: "+i);return e=r.slice(o+1,l).join(""),e.replace(/[^a-z0-9+/=]+/gi,""),e=n.from(e,"base64"),s.prototype.decode.call(this,e,t)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,t,r){"use strict";const i=e("inherits"),n=e("safer-buffer").Buffer,s=e("../base/node"),a=e("../constants/der");function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){s.call(this,"der",e)}function c(e){return e<10?"0"+e:e}(t.exports=o).prototype.encode=function(e,t){return this.tree._encode(e,t).join()},i(l,s),l.prototype._encodeComposite=function(e,t,r,i){if(t=function(e,t,r,i){let n;if("seqof"===e?e="seq":"setof"===e&&(e="set"),a.tagByName.hasOwnProperty(e))n=a.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return i.error("Unknown tag: "+e);n=e}return 31<=n?i.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=a.tagClassByName[r||"universal"]<<6)}(e,t,r,this.reporter),i.length<128){const e=n.alloc(2);return e[0]=t,e[1]=i.length,this._createEncoderBuffer([e,i])}let s=1;for(let n=i.length;256<=n;n>>=8)s++;var o=n.alloc(2+s);o[0]=t,o[1]=128|s;for(let n=1+s,a=i.length;0<a;n--,a>>=8)o[n]=255&a;return this._createEncoderBuffer([o,i])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==t)return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported");{const t=n.alloc(2*e.length);for(let r=0;r<e.length;r++)t.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(t)}},l.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(40<=e[1])return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let i=0;for(let n=0;n<e.length;n++){let t=e[n];for(i++;128<=t;t>>=7)i++}var s=n.alloc(i);let a=s.length-1;for(let n=e.length-1;0<=n;n--){let t=e[n];for(s[a--]=127&t;0<(t>>=7);)s[a--]=128|127&t}return this._createEncoderBuffer(s)},l.prototype._encodeTime=function(e,t){let r;return e=new Date(e),"gentime"===t?r=[c(e.getUTCFullYear()),c(e.getUTCMonth()+1),c(e.getUTCDate()),c(e.getUTCHours()),c(e.getUTCMinutes()),c(e.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(e.getUTCFullYear()%100),c(e.getUTCMonth()+1),c(e.getUTCDate()),c(e.getUTCHours()),c(e.getUTCMinutes()),c(e.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!n.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=n.from(t)}if(n.isBuffer(e)){let t=e.length;0===e.length&&t++;const r=n.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let n=e;256<=n;n>>=8)r++;var i=new Array(r);for(let n=i.length-1;0<=n;n--)i[n]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(n.from(i))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return(e="function"==typeof e?e(t):e)._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,r){var i=this._baseState;let n;if(null===i.default)return!1;var s=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),s.length!==i.defaultBuffer.length)return!1;for(n=0;n<s.length;n++)if(s[n]!==i.defaultBuffer[n])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,t,r){"use strict";r.der=e("./der"),r.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,t,r){"use strict";const i=e("inherits"),n=e("./der");function s(e){n.call(this,e),this.enc="pem"}i(s,n),(t.exports=s).prototype.encode=function(e,t){var r=n.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"];for(let n=0;n<r.length;n+=64)i.push(r.slice(n,n+64));return i.push("-----END "+t.label+"-----"),i.join("\n")}},{"./der":181,inherits:440}],184:[function(e,t,r){"use strict";var i;t=void 0===t||t;function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function s(e,t){function r(){}e.super_=t,r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof t?t.exports=a:(void 0).BN=a,(a.BN=a).wordSize=26;try{i=("undefined"!=typeof window&&void 0!==window.Buffer?window:e("buffer")).Buffer}catch(e){}function o(e,t){return e=e.charCodeAt(t),65<=e&&e<=70?e-55:97<=e&&e<=102?e-87:e-48&15}function l(e,t,r){var i=o(e,r);return t<=r-1&&(i|=o(e,r-1)<<4),i}function c(e,t,r,i){for(var n=0,s=Math.min(e.length,r),a=t;a<s;a++){var o=e.charCodeAt(a)-48;n=n*i+(49<=o?o-49+10:17<=o?o-17+10:o)}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return 0<e.cmp(t)?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);n((t="hex"===t?16:t)===(0|t)&&2<=t&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var s,a,o=0;if("be"===r)for(i=e.length-1,s=0;0<=i;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,26<=(o+=24)&&(o-=26,s++);else if("le"===r)for(s=i=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,26<=(o+=24)&&(o-=26,s++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,s=0,a=0;if("be"===r)for(i=e.length-1;t<=i;i-=2)n=l(e,t,i)<<s,this.words[a]|=67108863&n,18<=s?(s-=18,this.words[a+=1]|=n>>>26):s+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=l(e,t,i)<<s,this.words[a]|=67108863&n,18<=s?(s-=18,this.words[a+=1]|=n>>>26):s+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0];for(var i=0,n=this.length=1;n<=67108863;n*=t)i++;n=n/t|0;for(var s=e.length-r,a=s%--i,o=Math.min(s,s-a)+r,l=0,h=r;h<o;h+=i)l=c(e,h,h+i,t),this.imuln(n),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!=a){var u=1;for(l=c(e,h,e.length,t),h=0;h<a;h++)u*=t;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0,n=(i=(r.length=i)-1|0,(0|e.words[0])*(0|t.words[0])),s=n/67108864|0;r.words[0]=67108863&n;for(var a=1;a<i;a++){for(var o=s>>>26,l=67108863&s,c=Math.min(a,t.length-1),h=Math.max(0,a-e.length+1);h<=c;h++)o+=(n=(0|e.words[a-h|0])*(0|t.words[h])+l)/67108864|0,l=67108863&n;r.words[a]=0|l,s=0|o}return 0!==s?r.words[a]=0|s:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){l="";for(var r=0,i=0,s=0;s<this.length;s++){var a=this.words[s],o=(16777215&(a<<r|i)).toString(16),l=0!=(i=a>>>24-r&16777215)||s!==this.length-1?h[6-o.length]+o+l:o+l;26<=(r+=2)&&(r-=26,s--)}for(0!==i&&(l=i.toString(16)+l);l.length%t!=0;)l="0"+l;return 0!==this.negative?"-"+l:l}if(e===(0|e)&&2<=e&&e<=36){var c=u[e],f=d[e],p=(l="",this.clone());for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);l=(p=p.idivn(f)).isZero()?m+l:h[c-m.length]+m+l}for(this.isZero()&&(l="0"+l);l.length%t!=0;)l="0"+l;return 0!==this.negative?"-"+l:l}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2<this.length&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return n(void 0!==i),this.toArrayLike(i,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(0<s,"Requested array length <= 0"),this.strip();r="le"===t;var a,o,l=new e(s),c=this.clone();if(r){for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),l[o]=a;for(;o<s;o++)l[o]=0}else{for(o=0;o<s-i;o++)l[o]=0;for(o=0;!c.isZero();o++)a=c.andln(255),c.iushrn(8),l[s-o-1]=a}return l},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=0;return 4096<=e&&(t+=13,e>>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},a.prototype._zeroBits=function(e){var t;return 0===e?26:((t=0)==(8191&(e=e))&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t)},a.prototype.bitLength=function(){var e=this.words[this.length-1];e=this._countBits(e);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){for(var t,r=this.length>e.length?(t=this,e):(t=e,this),i=0;i<r.length;i++)this.words[i]=t.words[i]^r.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26);e%=26;this._expand(t),0<e&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return 0<e&&(this.words[r]=~this.words[r]&67108863>>26-e),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&0<=e);var r=e/26|0;e%=26;return this._expand(1+r),this.words[r]=t?this.words[r]|1<<e:this.words[r]&~(1<<e),this.strip()},a.prototype.iadd=function(e){var t,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();for(var i=this.length>e.length?(r=this,e):(r=e,this),n=0,s=0;s<i.length;s++)t=(0|r.words[s])+(0|i.words[s])+n,this.words[s]=67108863&t,n=t>>>26;for(;0!==n&&s<r.length;s++)t=(0|r.words[s])+n,this.words[s]=67108863&t,n=t>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){var t;if(0!==e.negative)return e.negative=0,t=this.iadd(e),e.negative=1,t._normSign();if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0<i?(r=this,e):(r=e,this),s=0,a=0;a<n.length;a++)s=(t=(0|r.words[a])-(0|n.words[a])+s)>>26,this.words[a]=67108863&t;for(;0!==s&&a<r.length;a++)s=(t=(0|r.words[a])+s)>>26,this.words[a]=67108863&t;if(0===s&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var i=e.words,n=t.words,s=r.words,a=0|i[0],o=8191&a,l=(a=a>>>13,0|i[1]),c=8191&l,h=(l=l>>>13,0|i[2]),u=8191&h,d=(h=h>>>13,0|i[3]),f=8191&d,p=(d=d>>>13,0|i[4]),m=8191&p,b=(p=p>>>13,0|i[5]),g=8191&b,y=(b=b>>>13,0|i[6]),v=8191&y,w=(y=y>>>13,0|i[7]),_=8191&w,x=(w=w>>>13,0|i[8]),k=8191&x,S=(x=x>>>13,i=0|i[9],8191&i),C=(i=i>>>13,0|n[0]),T=8191&C,E=(C=C>>>13,0|n[1]),M=8191&E,A=(E=E>>>13,0|n[2]),O=8191&A,j=(A=A>>>13,0|n[3]),I=8191&j,R=(j=j>>>13,0|n[4]),N=8191&R,P=(R=R>>>13,0|n[5]),D=8191&P,B=(P=P>>>13,0|n[6]),F=8191&B,L=(B=B>>>13,0|n[7]),z=8191&L,$=(L=L>>>13,0|n[8]),U=8191&$,H=($=$>>>13,n=0|n[9],8191&n),V=(n=n>>>13,r.negative=e.negative^t.negative,r.length=19,(0+(e=Math.imul(o,T))|0)+((8191&(t=Math.imul(o,C)+Math.imul(a,T)|0))<<13)|0),q=(Math.imul(a,C)+(t>>>13)|0)+(V>>>26)|0,W=(e=(V&=67108863,Math.imul(c,T)),t=Math.imul(c,C)+Math.imul(l,T)|0,Math.imul(l,C)),X=(q+(e=e+Math.imul(o,M)|0)|0)+((8191&(t=(t+Math.imul(o,E)|0)+Math.imul(a,M)|0))<<13)|0,K=(q=((W+Math.imul(a,E)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,e=Math.imul(u,T),t=Math.imul(u,C)+Math.imul(h,T)|0,W=Math.imul(h,C),e=e+Math.imul(c,M)|0,t=(t+Math.imul(c,E)|0)+Math.imul(l,M)|0,W=W+Math.imul(l,E)|0,(q+(e=e+Math.imul(o,O)|0)|0)+((8191&(t=(t+Math.imul(o,A)|0)+Math.imul(a,O)|0))<<13)|0),Y=(q=((W+Math.imul(a,A)|0)+(t>>>13)|0)+(K>>>26)|0,K&=67108863,e=Math.imul(f,T),t=Math.imul(f,C)+Math.imul(d,T)|0,W=Math.imul(d,C),e=e+Math.imul(u,M)|0,t=(t+Math.imul(u,E)|0)+Math.imul(h,M)|0,W=W+Math.imul(h,E)|0,e=e+Math.imul(c,O)|0,t=(t+Math.imul(c,A)|0)+Math.imul(l,O)|0,W=W+Math.imul(l,A)|0,(q+(e=e+Math.imul(o,I)|0)|0)+((8191&(t=(t+Math.imul(o,j)|0)+Math.imul(a,I)|0))<<13)|0),Z=(q=((W+Math.imul(a,j)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,e=Math.imul(m,T),t=Math.imul(m,C)+Math.imul(p,T)|0,W=Math.imul(p,C),e=e+Math.imul(f,M)|0,t=(t+Math.imul(f,E)|0)+Math.imul(d,M)|0,W=W+Math.imul(d,E)|0,e=e+Math.imul(u,O)|0,t=(t+Math.imul(u,A)|0)+Math.imul(h,O)|0,W=W+Math.imul(h,A)|0,e=e+Math.imul(c,I)|0,t=(t+Math.imul(c,j)|0)+Math.imul(l,I)|0,W=W+Math.imul(l,j)|0,(q+(e=e+Math.imul(o,N)|0)|0)+((8191&(t=(t+Math.imul(o,R)|0)+Math.imul(a,N)|0))<<13)|0),G=(q=((W+Math.imul(a,R)|0)+(t>>>13)|0)+(Z>>>26)|0,Z&=67108863,e=Math.imul(g,T),t=Math.imul(g,C)+Math.imul(b,T)|0,W=Math.imul(b,C),e=e+Math.imul(m,M)|0,t=(t+Math.imul(m,E)|0)+Math.imul(p,M)|0,W=W+Math.imul(p,E)|0,e=e+Math.imul(f,O)|0,t=(t+Math.imul(f,A)|0)+Math.imul(d,O)|0,W=W+Math.imul(d,A)|0,e=e+Math.imul(u,I)|0,t=(t+Math.imul(u,j)|0)+Math.imul(h,I)|0,W=W+Math.imul(h,j)|0,e=e+Math.imul(c,N)|0,t=(t+Math.imul(c,R)|0)+Math.imul(l,N)|0,W=W+Math.imul(l,R)|0,(q+(e=e+Math.imul(o,D)|0)|0)+((8191&(t=(t+Math.imul(o,P)|0)+Math.imul(a,D)|0))<<13)|0),J=(q=((W+Math.imul(a,P)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,e=Math.imul(v,T),t=Math.imul(v,C)+Math.imul(y,T)|0,W=Math.imul(y,C),e=e+Math.imul(g,M)|0,t=(t+Math.imul(g,E)|0)+Math.imul(b,M)|0,W=W+Math.imul(b,E)|0,e=e+Math.imul(m,O)|0,t=(t+Math.imul(m,A)|0)+Math.imul(p,O)|0,W=W+Math.imul(p,A)|0,e=e+Math.imul(f,I)|0,t=(t+Math.imul(f,j)|0)+Math.imul(d,I)|0,W=W+Math.imul(d,j)|0,e=e+Math.imul(u,N)|0,t=(t+Math.imul(u,R)|0)+Math.imul(h,N)|0,W=W+Math.imul(h,R)|0,e=e+Math.imul(c,D)|0,t=(t+Math.imul(c,P)|0)+Math.imul(l,D)|0,W=W+Math.imul(l,P)|0,(q+(e=e+Math.imul(o,F)|0)|0)+((8191&(t=(t+Math.imul(o,B)|0)+Math.imul(a,F)|0))<<13)|0),Q=(q=((W+Math.imul(a,B)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,e=Math.imul(_,T),t=Math.imul(_,C)+Math.imul(w,T)|0,W=Math.imul(w,C),e=e+Math.imul(v,M)|0,t=(t+Math.imul(v,E)|0)+Math.imul(y,M)|0,W=W+Math.imul(y,E)|0,e=e+Math.imul(g,O)|0,t=(t+Math.imul(g,A)|0)+Math.imul(b,O)|0,W=W+Math.imul(b,A)|0,e=e+Math.imul(m,I)|0,t=(t+Math.imul(m,j)|0)+Math.imul(p,I)|0,W=W+Math.imul(p,j)|0,e=e+Math.imul(f,N)|0,t=(t+Math.imul(f,R)|0)+Math.imul(d,N)|0,W=W+Math.imul(d,R)|0,e=e+Math.imul(u,D)|0,t=(t+Math.imul(u,P)|0)+Math.imul(h,D)|0,W=W+Math.imul(h,P)|0,e=e+Math.imul(c,F)|0,t=(t+Math.imul(c,B)|0)+Math.imul(l,F)|0,W=W+Math.imul(l,B)|0,(q+(e=e+Math.imul(o,z)|0)|0)+((8191&(t=(t+Math.imul(o,L)|0)+Math.imul(a,z)|0))<<13)|0),ee=(q=((W+Math.imul(a,L)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,e=Math.imul(k,T),t=Math.imul(k,C)+Math.imul(x,T)|0,W=Math.imul(x,C),e=e+Math.imul(_,M)|0,t=(t+Math.imul(_,E)|0)+Math.imul(w,M)|0,W=W+Math.imul(w,E)|0,e=e+Math.imul(v,O)|0,t=(t+Math.imul(v,A)|0)+Math.imul(y,O)|0,W=W+Math.imul(y,A)|0,e=e+Math.imul(g,I)|0,t=(t+Math.imul(g,j)|0)+Math.imul(b,I)|0,W=W+Math.imul(b,j)|0,e=e+Math.imul(m,N)|0,t=(t+Math.imul(m,R)|0)+Math.imul(p,N)|0,W=W+Math.imul(p,R)|0,e=e+Math.imul(f,D)|0,t=(t+Math.imul(f,P)|0)+Math.imul(d,D)|0,W=W+Math.imul(d,P)|0,e=e+Math.imul(u,F)|0,t=(t+Math.imul(u,B)|0)+Math.imul(h,F)|0,W=W+Math.imul(h,B)|0,e=e+Math.imul(c,z)|0,t=(t+Math.imul(c,L)|0)+Math.imul(l,z)|0,W=W+Math.imul(l,L)|0,(q+(e=e+Math.imul(o,U)|0)|0)+((8191&(t=(t+Math.imul(o,$)|0)+Math.imul(a,U)|0))<<13)|0);q=((W+Math.imul(a,$)|0)+(t>>>13)|0)+(ee>>>26)|0,ee&=67108863,e=Math.imul(S,T),t=Math.imul(S,C)+Math.imul(i,T)|0,W=Math.imul(i,C),e=e+Math.imul(k,M)|0,t=(t+Math.imul(k,E)|0)+Math.imul(x,M)|0,W=W+Math.imul(x,E)|0,e=e+Math.imul(_,O)|0,t=(t+Math.imul(_,A)|0)+Math.imul(w,O)|0,W=W+Math.imul(w,A)|0,e=e+Math.imul(v,I)|0,t=(t+Math.imul(v,j)|0)+Math.imul(y,I)|0,W=W+Math.imul(y,j)|0,e=e+Math.imul(g,N)|0,t=(t+Math.imul(g,R)|0)+Math.imul(b,N)|0,W=W+Math.imul(b,R)|0,e=e+Math.imul(m,D)|0,t=(t+Math.imul(m,P)|0)+Math.imul(p,D)|0,W=W+Math.imul(p,P)|0,e=e+Math.imul(f,F)|0,t=(t+Math.imul(f,B)|0)+Math.imul(d,F)|0,W=W+Math.imul(d,B)|0,e=e+Math.imul(u,z)|0,t=(t+Math.imul(u,L)|0)+Math.imul(h,z)|0,W=W+Math.imul(h,L)|0,e=e+Math.imul(c,U)|0,t=(t+Math.imul(c,$)|0)+Math.imul(l,U)|0,W=W+Math.imul(l,$)|0,T=(q+(e=e+Math.imul(o,H)|0)|0)+((8191&(t=(t+Math.imul(o,n)|0)+Math.imul(a,H)|0))<<13)|0,q=((W+Math.imul(a,n)|0)+(t>>>13)|0)+(T>>>26)|0,T&=67108863,e=Math.imul(S,M),t=Math.imul(S,E)+Math.imul(i,M)|0,W=Math.imul(i,E),e=e+Math.imul(k,O)|0,t=(t+Math.imul(k,A)|0)+Math.imul(x,O)|0,W=W+Math.imul(x,A)|0,e=e+Math.imul(_,I)|0,t=(t+Math.imul(_,j)|0)+Math.imul(w,I)|0,W=W+Math.imul(w,j)|0,e=e+Math.imul(v,N)|0,t=(t+Math.imul(v,R)|0)+Math.imul(y,N)|0,W=W+Math.imul(y,R)|0,e=e+Math.imul(g,D)|0,t=(t+Math.imul(g,P)|0)+Math.imul(b,D)|0,W=W+Math.imul(b,P)|0,e=e+Math.imul(m,F)|0,t=(t+Math.imul(m,B)|0)+Math.imul(p,F)|0,W=W+Math.imul(p,B)|0,e=e+Math.imul(f,z)|0,t=(t+Math.imul(f,L)|0)+Math.imul(d,z)|0,W=W+Math.imul(d,L)|0,e=e+Math.imul(u,U)|0,t=(t+Math.imul(u,$)|0)+Math.imul(h,U)|0,W=W+Math.imul(h,$)|0,C=(q+(e=e+Math.imul(c,H)|0)|0)+((8191&(t=(t+Math.imul(c,n)|0)+Math.imul(l,H)|0))<<13)|0,q=((W+Math.imul(l,n)|0)+(t>>>13)|0)+(C>>>26)|0,C&=67108863,e=Math.imul(S,O),t=Math.imul(S,A)+Math.imul(i,O)|0,W=Math.imul(i,A),e=e+Math.imul(k,I)|0,t=(t+Math.imul(k,j)|0)+Math.imul(x,I)|0,W=W+Math.imul(x,j)|0,e=e+Math.imul(_,N)|0,t=(t+Math.imul(_,R)|0)+Math.imul(w,N)|0,W=W+Math.imul(w,R)|0,e=e+Math.imul(v,D)|0,t=(t+Math.imul(v,P)|0)+Math.imul(y,D)|0,W=W+Math.imul(y,P)|0,e=e+Math.imul(g,F)|0,t=(t+Math.imul(g,B)|0)+Math.imul(b,F)|0,W=W+Math.imul(b,B)|0,e=e+Math.imul(m,z)|0,t=(t+Math.imul(m,L)|0)+Math.imul(p,z)|0,W=W+Math.imul(p,L)|0,e=e+Math.imul(f,U)|0,t=(t+Math.imul(f,$)|0)+Math.imul(d,U)|0,W=W+Math.imul(d,$)|0,o=(q+(e=e+Math.imul(u,H)|0)|0)+((8191&(t=(t+Math.imul(u,n)|0)+Math.imul(h,H)|0))<<13)|0,q=((W+Math.imul(h,n)|0)+(t>>>13)|0)+(o>>>26)|0,o&=67108863,e=Math.imul(S,I),t=Math.imul(S,j)+Math.imul(i,I)|0,W=Math.imul(i,j),e=e+Math.imul(k,N)|0,t=(t+Math.imul(k,R)|0)+Math.imul(x,N)|0,W=W+Math.imul(x,R)|0,e=e+Math.imul(_,D)|0,t=(t+Math.imul(_,P)|0)+Math.imul(w,D)|0,W=W+Math.imul(w,P)|0,e=e+Math.imul(v,F)|0,t=(t+Math.imul(v,B)|0)+Math.imul(y,F)|0,W=W+Math.imul(y,B)|0,e=e+Math.imul(g,z)|0,t=(t+Math.imul(g,L)|0)+Math.imul(b,z)|0,W=W+Math.imul(b,L)|0,e=e+Math.imul(m,U)|0,t=(t+Math.imul(m,$)|0)+Math.imul(p,U)|0,W=W+Math.imul(p,$)|0,a=(q+(e=e+Math.imul(f,H)|0)|0)+((8191&(t=(t+Math.imul(f,n)|0)+Math.imul(d,H)|0))<<13)|0,q=((W+Math.imul(d,n)|0)+(t>>>13)|0)+(a>>>26)|0,a&=67108863,e=Math.imul(S,N),t=Math.imul(S,R)+Math.imul(i,N)|0,W=Math.imul(i,R),e=e+Math.imul(k,D)|0,t=(t+Math.imul(k,P)|0)+Math.imul(x,D)|0,W=W+Math.imul(x,P)|0,e=e+Math.imul(_,F)|0,t=(t+Math.imul(_,B)|0)+Math.imul(w,F)|0,W=W+Math.imul(w,B)|0,e=e+Math.imul(v,z)|0,t=(t+Math.imul(v,L)|0)+Math.imul(y,z)|0,W=W+Math.imul(y,L)|0,e=e+Math.imul(g,U)|0,t=(t+Math.imul(g,$)|0)+Math.imul(b,U)|0,W=W+Math.imul(b,$)|0,M=(q+(e=e+Math.imul(m,H)|0)|0)+((8191&(t=(t+Math.imul(m,n)|0)+Math.imul(p,H)|0))<<13)|0,q=((W+Math.imul(p,n)|0)+(t>>>13)|0)+(M>>>26)|0,M&=67108863,e=Math.imul(S,D),t=Math.imul(S,P)+Math.imul(i,D)|0,W=Math.imul(i,P),e=e+Math.imul(k,F)|0,t=(t+Math.imul(k,B)|0)+Math.imul(x,F)|0,W=W+Math.imul(x,B)|0,e=e+Math.imul(_,z)|0,t=(t+Math.imul(_,L)|0)+Math.imul(w,z)|0,W=W+Math.imul(w,L)|0,e=e+Math.imul(v,U)|0,t=(t+Math.imul(v,$)|0)+Math.imul(y,U)|0,W=W+Math.imul(y,$)|0,E=(q+(e=e+Math.imul(g,H)|0)|0)+((8191&(t=(t+Math.imul(g,n)|0)+Math.imul(b,H)|0))<<13)|0,q=((W+Math.imul(b,n)|0)+(t>>>13)|0)+(E>>>26)|0,E&=67108863,e=Math.imul(S,F),t=Math.imul(S,B)+Math.imul(i,F)|0,W=Math.imul(i,B),e=e+Math.imul(k,z)|0,t=(t+Math.imul(k,L)|0)+Math.imul(x,z)|0,W=W+Math.imul(x,L)|0,e=e+Math.imul(_,U)|0,t=(t+Math.imul(_,$)|0)+Math.imul(w,U)|0,W=W+Math.imul(w,$)|0,c=(q+(e=e+Math.imul(v,H)|0)|0)+((8191&(t=(t+Math.imul(v,n)|0)+Math.imul(y,H)|0))<<13)|0,q=((W+Math.imul(y,n)|0)+(t>>>13)|0)+(c>>>26)|0,c&=67108863,e=Math.imul(S,z),t=Math.imul(S,L)+Math.imul(i,z)|0,W=Math.imul(i,L),e=e+Math.imul(k,U)|0,t=(t+Math.imul(k,$)|0)+Math.imul(x,U)|0,W=W+Math.imul(x,$)|0,l=(q+(e=e+Math.imul(_,H)|0)|0)+((8191&(t=(t+Math.imul(_,n)|0)+Math.imul(w,H)|0))<<13)|0,q=((W+Math.imul(w,n)|0)+(t>>>13)|0)+(l>>>26)|0,l&=67108863,e=Math.imul(S,U),t=Math.imul(S,$)+Math.imul(i,U)|0,W=Math.imul(i,$),O=(q+(e=e+Math.imul(k,H)|0)|0)+((8191&(t=(t+Math.imul(k,n)|0)+Math.imul(x,H)|0))<<13)|0,q=((W+Math.imul(x,n)|0)+(t>>>13)|0)+(O>>>26)|0,O&=67108863,A=(q+(e=Math.imul(S,H))|0)+((8191&(t=Math.imul(S,n)+Math.imul(i,H)|0))<<13)|0;return q=(Math.imul(i,n)+(t>>>13)|0)+(A>>>26)|0,A&=67108863,s[0]=V,s[1]=X,s[2]=K,s[3]=Y,s[4]=Z,s[5]=G,s[6]=J,s[7]=Q,s[8]=ee,s[9]=T,s[10]=C,s[11]=o,s[12]=a,s[13]=M,s[14]=E,s[15]=c,s[16]=l,s[17]=O,s[18]=A,0!=q&&(s[19]=q,r.length++),r};function m(e,t,r){return(new b).mulp(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(p=f),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return(10===this.length&&10===e.length?p:r<63?f:r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,s=0;s<r.length-1;s++){for(var a=n,o=(n=0,67108863&i),l=Math.min(s,t.length-1),c=Math.max(0,s-e.length+1);c<=l;c++){var h,u=(0|e.words[s-c])*(0|t.words[c]);o=67108863&(h=(67108863&u)+o|0);n+=(a=(a=a+(u/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[s]=o,i=a,a=n}return 0!==i?r.words[s]=i:r.length--,r.strip()}:m)(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var i=0,n=0;n<t;n++)i|=(1&e)<<t-n-1,e>>=1;return i},b.prototype.permute=function(e,t,r,i,n,s){for(var a=0;a<s;a++)i[a]=t[e[a]],n[a]=r[e[a]]},b.prototype.transform=function(e,t,r,i,n,s){this.permute(s,e,t,r,i,n);for(var a=1;a<n;a<<=1)for(var o=a<<1,l=Math.cos(2*Math.PI/o),c=Math.sin(2*Math.PI/o),h=0;h<n;h+=o)for(var u=l,d=c,f=0;f<a;f++){var p=r[h+f],m=i[h+f],b=r[h+f+a],g=u*b-d*(y=i[h+f+a]),y=u*y+d*b;r[h+f]=p+(b=g),i[h+f]=m+y,r[h+f+a]=p-b,i[h+f+a]=m-y,f!==o&&(g=l*u-c*d,d=l*d+c*u,u=g)}},b.prototype.guessLen13b=function(e,t){t=1&(i=1|Math.max(t,e));for(var r=0,i=i/2|0;i;i>>>=1)r++;return 1<<r+1+t},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=e[i];e[i]=e[r-i-1],e[r-i-1]=n,n=t[i],t[i]=-t[r-i-1],t[r-i-1]=-n}},b.prototype.normalize13b=function(e,t){for(var r=0,i=0;i<t/2;i++){var n=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+r;e[i]=67108863&n,r=n<67108864?0:n/67108864|0}return e},b.prototype.convert13b=function(e,t,r,i){for(var s=0,a=0;a<t;a++)s+=0|e[a],r[2*a]=8191&s,r[2*a+1]=8191&(s>>>=13),s>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===s),n(0==(-8192&s))},b.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var i=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(i),s=this.stub(i),a=new Array(i),o=new Array(i),l=new Array(i),c=new Array(i),h=new Array(i),u=new Array(i),d=r.words;d.length=i,this.convert13b(e.words,e.length,a,i),this.convert13b(t.words,t.length,c,i),this.transform(a,s,o,l,i,n),this.transform(c,s,h,u,i,n);for(var f=0;f<i;f++){var p=o[f]*h[f]-l[f]*u[f];l[f]=o[f]*u[f]+l[f]*h[f],o[f]=p}return this.conjugate(o,l,i),this.transform(o,l,d,s,i,n),this.conjugate(d,s,i),this.normalize13b(d,i),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),m(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,s=(67108863&i)+(67108863&t);t=(t>>=26)+(i/67108864|0)+(s>>>26);this.words[r]=67108863&s}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var i=r%26;t[r]=(e.words[r/26|0]&1<<i)>>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i<t.length&&0===t[i];i++,r=r.sqr());if(++i<t.length)for(var n=r.sqr();i<t.length;i++,n=n.sqr())0!==t[i]&&(r=r.mul(n));return r},a.prototype.iushln=function(e){n("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26,i=67108863>>>26-t<<26-t;if(0!=t){for(var s=0,a=0;a<this.length;a++){var o=this.words[a]&i,l=(0|this.words[a])-o<<t;this.words[a]=l|s,s=o>>>26-t}s&&(this.words[a]=s,this.length++)}if(0!=r){for(a=this.length-1;0<=a;a--)this.words[a+r]=this.words[a];for(a=0;a<r;a++)this.words[a]=0;this.length+=r}return this.strip()},a.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){n("number"==typeof e&&0<=e),i=t?(t-t%26)/26:0;var i,s=e%26,a=Math.min((e-s)/26,this.length),o=67108863^67108863>>>s<<s,l=r;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0!==a)if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var h=0;for(c=this.length-1;0<=c&&(0!==h||i<=c);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&o}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&0<=e);var t=e%26;e=(e-t)/26;return!(this.length<=e||!(this.words[e]&1<<t))},a.prototype.imaskn=function(e){n("number"==typeof e&&0<=e);var t=e%26;e=(e-t)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=e?this:(0!=t&&e++,this.length=Math.min(e,this.length),0!=t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this.strip())},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){for(var i=e.length+r,s=(this._expand(i),0),a=0;a<e.length;a++){var o=(0|this.words[a+r])+s,l=(0|e.words[a])*t;s=((o-=67108863&l)>>26)-(l/67108864|0);this.words[a+r]=67108863&o}for(;a<this.length-r;a++)s=(o=(0|this.words[a+r])+s)>>26,this.words[a+r]=67108863&o;if(0!==s){for(n(-1===s),a=s=0;a<this.length;a++)s=(o=-(0|this.words[a])+s)>>26,this.words[a]=67108863&o;this.negative=1}return this.strip()},a.prototype._wordDiv=function(e,t){this.length,e.length;var r=this.clone(),i=e,n=0|i.words[i.length-1];0!=(e=26-this._countBits(n))&&(i=i.ushln(e),r.iushln(e),n=0|i.words[i.length-1]);var s,o=r.length-i.length;if("mod"!==t){(s=new a(null)).length=1+o,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone()._ishlnsubmul(i,1,o);0===c.negative&&(r=c,s)&&(s.words[o]=1);for(var h=o-1;0<=h;h--){var u=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);u=Math.min(u/n|0,67108863);for(r._ishlnsubmul(i,u,h);0!==r.negative;)u--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=u)}return s&&s.strip(),r.strip(),"div"!==t&&0!=e&&r.iushrn(e),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r)&&0!==s.negative&&s.iadd(e),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),{div:i="mod"!==t?o.div.neg():i,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r)&&0!==s.negative&&s.isub(e),{div:o.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,s,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t,r,i=this.divmod(e);return i.mod.isZero()||(r=0!==i.div.negative?i.mod.isub(e):i.mod,t=e.ushrn(1),e=e.andln(1),(r=r.cmp(t))<0)||1===e&&0===r?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},a.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;0<=i;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;0<=r;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());for(var t=this,r=e.clone(),i=(t=0!==t.negative?t.umod(e):t.clone(),new a(1)),s=new a(0),o=new a(0),l=new a(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var h=r.clone(),u=t.clone();!t.isZero();){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(0<d)for(t.iushrn(d);0<d--;)(i.isOdd()||s.isOdd())&&(i.iadd(h),s.isub(u)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(0<p)for(r.iushrn(p);0<p--;)(o.isOdd()||l.isOdd())&&(o.iadd(h),l.isub(u)),o.iushrn(1),l.iushrn(1);0<=t.cmp(r)?(t.isub(r),i.isub(o),s.isub(l)):(r.isub(t),o.isub(i),l.isub(s))}return{a:o,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());for(var t,r=this,i=e.clone(),s=(r=0!==r.negative?r.umod(e):r.clone(),new a(1)),o=new a(0),l=i.clone();0<r.cmpn(1)&&0<i.cmpn(1);){for(var c=0,h=1;0==(r.words[0]&h)&&c<26;++c,h<<=1);if(0<c)for(r.iushrn(c);0<c--;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(0<u)for(i.iushrn(u);0<u--;)o.isOdd()&&o.iadd(l),o.iushrn(1);0<=r.cmp(i)?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return(t=0===r.cmpn(1)?s:o).cmpn(0)<0&&t.iadd(e),t},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0;for(var i=r.negative=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var s=t;t=r,r=s}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26;e=(e-t)/26,t=1<<t;if(this.length<=e)this._expand(1+e),this.words[e]|=t;else{for(var r=t,i=e;0!==r&&i<this.length;i++){var s=0|this.words[i];r=(s+=r)>>>26;s&=67108863,this.words[i]=s}0!==r&&(this.words[i]=r,this.length++)}return this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t=e<0;return 0===this.negative||t?0===this.negative&&t?1:(this.strip(),t=1<this.length?1:(n((e=t?-e:e)<=67108863,"Number is too big"),(t=0|this.words[0])===e?0:t<e?-1:1),0!==this.negative?0|-t:t):-1},a.prototype.cmp=function(e){return 0!==this.negative&&0===e.negative?-1:0===this.negative&&0!==e.negative?1:(e=this.ucmp(e),0!==this.negative?0|-e:e)},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;0<=r;r--){var i=0|this.words[r],n=0|e.words[r];if(i!=n){i<n?t=-1:n<i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return 0<=this.cmpn(e)},a.prototype.gte=function(e){return 0<=this.cmp(e)},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){var t;"string"==typeof e?(t=a._prime(e),this.m=t.p,this.prime=t):(n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null)}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){for(var t,r=e;this.split(r,this.tmp),(t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength())>this.n;);return e=t<this.n?-1:r.ucmp(this.p),0===e?(r.words[0]=0,r.length=1):0<e?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},s(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)e.words[0]=0,e.length=1;else{var n=e.words[9];for(t.words[t.length++]=4194303&n,i=10;i<e.length;i++){var s=0|e.words[i];e.words[i-10]=(4194303&s)<<4|n>>>22,n=s}0===(e.words[i-10]=n>>>=22)&&10<e.length?e.length-=10:e.length-=9}},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var i=0|e.words[r];t+=977*i,e.words[r]=67108863&t,t=64*i+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1])&&e.length--,e},s(w,y),s(_,y),s(x,y),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var i=19*(0|e.words[r])+t,n=67108863&i;i>>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return g[e]=t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return(this.prime?this.prime.ireduce(e):e.umod(this.m))._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){return this._verify2(e,t),e=e.add(t),0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},k.prototype.iadd=function(e,t){return this._verify2(e,t),e=e.iadd(t),0<=e.cmp(this.m)&&e.isub(this.m),e},k.prototype.sub=function(e,t){return this._verify2(e,t),e=e.sub(t),e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},k.prototype.isub=function(e,t){return this._verify2(e,t),e=e.isub(t),e.cmpn(0)<0&&e.iadd(this.m),e},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t)return t=this.m.add(new a(1)).iushrn(2),this.pow(e,t);for(var r=this.m.subn(1),i=0;!r.isZero()&&0===r.andln(1);)i++,r.iushrn(1);n(!r.isZero());for(var s=new a(1).toRed(this),o=s.redNeg(),l=this.m.subn(1).iushrn(1),c=new a(2*(c=this.m.bitLength())*c).toRed(this);0!==this.pow(c,l).cmp(o);)c.redIAdd(o);for(var h=this.pow(c,r),u=this.pow(e,r.addn(1).iushrn(1)),d=this.pow(e,r),f=i;0!==d.cmp(s);){for(var p=d,m=0;0!==p.cmp(s);m++)p=p.redSqr();n(m<f);var b=this.pow(h,new a(1).iushln(f-m-1));u=u.redMul(b),h=b.redSqr(),d=d.redMul(h),f=m}return u},k.prototype.invm=function(e){return e=e._invmp(this.m),0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=e;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],e);var n=r[0],s=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;0<=i;i--){for(var c=t.words[i],h=l-1;0<=h;h--){var u=c>>h&1;n!==r[0]&&(n=this.sqr(n)),0!=u||0!==s?(s=s<<1|u,(4==++o||0===i&&0===h)&&(n=this.mul(n,r[s]),s=o=0)):o=0}l=26}return n},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){return e=e.clone(),e.red=null,e},a.mont=function(e){return new S(e)},s(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){return e=this.imod(e.mul(this.rinv)),e.red=null,e},S.prototype.imul=function(e,t){return e.isZero()||t.isZero()?(e.words[0]=0,e.length=1,e):(t=(e=e.imul(t)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(t=e=e.isub(t).iushrn(this.shift)).cmp(this.m)?t=e.isub(this.m):e.cmpn(0)<0&&(t=e.iadd(this.m)),t._forceRed(this))},S.prototype.mul=function(e,t){return(e.isZero()||t.isZero()?new a(0):(t=(e=e.mul(t)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(t=e=e.isub(t).iushrn(this.shift)).cmp(this.m)?t=e.isub(this.m):e.cmpn(0)<0&&(t=e.iadd(this.m)),t))._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}},{buffer:188}],185:[function(e,t,r){"use strict";r.byteLength=function(e){e=c(e);var t=e[0];e=e[1];return 3*(t+e)/4-e},r.toByteArray=function(e){for(var t,r=c(e),i=r[0],a=(r=r[1],new s(3*(i+r)/4-r)),o=0,l=0<r?i-4:i,h=0;h<l;h+=4)t=n[e.charCodeAt(h)]<<18|n[e.charCodeAt(h+1)]<<12|n[e.charCodeAt(h+2)]<<6|n[e.charCodeAt(h+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=255&t;return 2===r&&(t=n[e.charCodeAt(h)]<<2|n[e.charCodeAt(h+1)]>>4,a[o++]=255&t),1===r&&(t=n[e.charCodeAt(h)]<<10|n[e.charCodeAt(h+1)]<<4|n[e.charCodeAt(h+2)]>>2,a[o++]=t>>8&255,a[o++]=255&t),a},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,s=[],a=0,o=r-n;a<o;a+=16383)s.push(function(e,t,r){for(var n,s=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(i[(n=n)>>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return s.join("")}(e,a,o<a+16383?o:a+16383));return 1==n?(t=e[r-1],s.push(i[t>>2]+i[t<<4&63]+"==")):2==n&&(t=(e[r-2]<<8)+e[r-1],s.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),s.join("")};for(var i=[],n=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=a.length;o<l;++o)i[o]=a[o],n[a.charCodeAt(o)]=o;function c(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");return e=e.indexOf("="),[e=-1===e?t:e,e===t?0:4-e%4]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},{}],186:[function(e,t,r){"use strict";var i;t=void 0===t||t;function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function s(e,t){function r(){}e.super_=t,r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof t?t.exports=a:(void 0).BN=a,(a.BN=a).wordSize=26;try{i=("undefined"!=typeof window&&void 0!==window.Buffer?window:e("buffer")).Buffer}catch(e){}function o(e,t){return t=e.charCodeAt(t),48<=t&&t<=57?t-48:65<=t&&t<=70?t-55:97<=t&&t<=102?t-87:void n(!1,"Invalid character in "+e)}function l(e,t,r){var i=o(e,r);return t<=r-1&&(i|=o(e,r-1)<<4),i}function c(e,t,r,i){for(var s,a=0,o=Math.min(e.length,r),l=t;l<o;l++){var c=e.charCodeAt(l)-48;a*=i,s=49<=c?c-49+10:17<=c?c-17+10:c,n(0<=c&&s<i,"Invalid character"),a+=s}return a}function h(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return 0<e.cmp(t)?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);n((t="hex"===t?16:t)===(0|t)&&2<=t&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var s,a,o=0;if("be"===r)for(i=e.length-1,s=0;0<=i;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,26<=(o+=24)&&(o-=26,s++);else if("le"===r)for(s=i=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,26<=(o+=24)&&(o-=26,s++);return this._strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,s=0,a=0;if("be"===r)for(i=e.length-1;t<=i;i-=2)n=l(e,t,i)<<s,this.words[a]|=67108863&n,18<=s?(s-=18,this.words[a+=1]|=n>>>26):s+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=l(e,t,i)<<s,this.words[a]|=67108863&n,18<=s?(s-=18,this.words[a+=1]|=n>>>26):s+=8;this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0];for(var i=0,n=this.length=1;n<=67108863;n*=t)i++;n=n/t|0;for(var s=e.length-r,a=s%--i,o=Math.min(s,s-a)+r,l=0,h=r;h<o;h+=i)l=c(e,h,h+i,t),this.imuln(n),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!=a){var u=1;for(l=c(e,h,e.length,t),h=0;h<a;h++)u*=t;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype._move=function(e){h(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){a.prototype.inspect=u}else a.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0,n=(i=(r.length=i)-1|0,(0|e.words[0])*(0|t.words[0])),s=n/67108864|0;r.words[0]=67108863&n;for(var a=1;a<i;a++){for(var o=s>>>26,l=67108863&s,c=Math.min(a,t.length-1),h=Math.max(0,a-e.length+1);h<=c;h++)o+=(n=(0|e.words[a-h|0])*(0|t.words[h])+l)/67108864|0,l=67108863&n;r.words[a]=0|l,s=0|o}return 0!==s?r.words[a]=0|s:r.length--,r._strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,s=0,a=0;a<this.length;a++){var o=this.words[a],l=(16777215&(o<<i|s)).toString(16);s=o>>>24-i&16777215;26<=(i+=2)&&(i-=26,a--),r=0!==s||a!==this.length-1?d[6-l.length]+l+r:l+r}for(0!==s&&(r=s.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative?"-"+r:r}if(e===(0|e)&&2<=e&&e<=36){var c=f[e],h=p[e],u=(r="",this.clone());for(u.negative=0;!u.isZero();){var m=u.modrn(h).toString(e);r=(u=u.idivn(h)).isZero()?m+r:d[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative?"-"+r:r}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2<this.length&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},i&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength();r=r||Math.max(1,i),n(i<=r,"byte array longer than desired length"),n(0<r,"Requested array length <= 0"),r=r,e=(e=e).allocUnsafe?e.allocUnsafe(r):new e(r);return this["_toArrayLike"+("le"===t?"LE":"BE")](e,i),e},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,i=0,n=0,s=0;n<this.length;n++){var a=this.words[n]<<s|i;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===s?(r<e.length&&(e[r++]=a>>24&255),s=i=0):(i=a>>>24,s+=2)}if(r<e.length)for(e[r++]=i;r<e.length;)e[r++]=0},a.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,i=0,n=0,s=0;n<this.length;n++){var a=this.words[n]<<s|i;e[r--]=255&a,0<=r&&(e[r--]=a>>8&255),0<=r&&(e[r--]=a>>16&255),6===s?(0<=r&&(e[r--]=a>>24&255),s=i=0):(i=a>>>24,s+=2)}if(0<=r)for(e[r--]=i;0<=r;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=0;return 4096<=e&&(t+=13,e>>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},a.prototype._zeroBits=function(e){var t;return 0===e?26:((t=0)==(8191&(e=e))&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t)},a.prototype.bitLength=function(){var e=this.words[this.length-1];e=this._countBits(e);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},a.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){for(var t=this.length>e.length?e:this,r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){for(var t,r=this.length>e.length?(t=this,e):(t=e,this),i=0;i<r.length;i++)this.words[i]=t.words[i]^r.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26);e%=26;this._expand(t),0<e&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return 0<e&&(this.words[r]=~this.words[r]&67108863>>26-e),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&0<=e);var r=e/26|0;e%=26;return this._expand(1+r),this.words[r]=t?this.words[r]|1<<e:this.words[r]&~(1<<e),this._strip()},a.prototype.iadd=function(e){var t,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();for(var i=this.length>e.length?(r=this,e):(r=e,this),n=0,s=0;s<i.length;s++)t=(0|r.words[s])+(0|i.words[s])+n,this.words[s]=67108863&t,n=t>>>26;for(;0!==n&&s<r.length;s++)t=(0|r.words[s])+n,this.words[s]=67108863&t,n=t>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){var t;if(0!==e.negative)return e.negative=0,t=this.iadd(e),e.negative=1,t._normSign();if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0<i?(r=this,e):(r=e,this),s=0,a=0;a<n.length;a++)s=(t=(0|r.words[a])-(0|n.words[a])+s)>>26,this.words[a]=67108863&t;for(;0!==s&&a<r.length;a++)s=(t=(0|r.words[a])+s)>>26,this.words[a]=67108863&t;if(0===s&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,t,r){var i=e.words,n=t.words,s=r.words,a=0|i[0],o=8191&a,l=(a=a>>>13,0|i[1]),c=8191&l,h=(l=l>>>13,0|i[2]),u=8191&h,d=(h=h>>>13,0|i[3]),f=8191&d,p=(d=d>>>13,0|i[4]),m=8191&p,b=(p=p>>>13,0|i[5]),g=8191&b,y=(b=b>>>13,0|i[6]),v=8191&y,w=(y=y>>>13,0|i[7]),_=8191&w,x=(w=w>>>13,0|i[8]),k=8191&x,S=(x=x>>>13,i=0|i[9],8191&i),C=(i=i>>>13,0|n[0]),T=8191&C,E=(C=C>>>13,0|n[1]),M=8191&E,A=(E=E>>>13,0|n[2]),O=8191&A,j=(A=A>>>13,0|n[3]),I=8191&j,R=(j=j>>>13,0|n[4]),N=8191&R,P=(R=R>>>13,0|n[5]),D=8191&P,B=(P=P>>>13,0|n[6]),F=8191&B,L=(B=B>>>13,0|n[7]),z=8191&L,$=(L=L>>>13,0|n[8]),U=8191&$,H=($=$>>>13,n=0|n[9],8191&n),V=(n=n>>>13,r.negative=e.negative^t.negative,r.length=19,(0+(e=Math.imul(o,T))|0)+((8191&(t=Math.imul(o,C)+Math.imul(a,T)|0))<<13)|0),q=(Math.imul(a,C)+(t>>>13)|0)+(V>>>26)|0,W=(e=(V&=67108863,Math.imul(c,T)),t=Math.imul(c,C)+Math.imul(l,T)|0,Math.imul(l,C)),X=(q+(e=e+Math.imul(o,M)|0)|0)+((8191&(t=(t+Math.imul(o,E)|0)+Math.imul(a,M)|0))<<13)|0,K=(q=((W+Math.imul(a,E)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,e=Math.imul(u,T),t=Math.imul(u,C)+Math.imul(h,T)|0,W=Math.imul(h,C),e=e+Math.imul(c,M)|0,t=(t+Math.imul(c,E)|0)+Math.imul(l,M)|0,W=W+Math.imul(l,E)|0,(q+(e=e+Math.imul(o,O)|0)|0)+((8191&(t=(t+Math.imul(o,A)|0)+Math.imul(a,O)|0))<<13)|0),Y=(q=((W+Math.imul(a,A)|0)+(t>>>13)|0)+(K>>>26)|0,K&=67108863,e=Math.imul(f,T),t=Math.imul(f,C)+Math.imul(d,T)|0,W=Math.imul(d,C),e=e+Math.imul(u,M)|0,t=(t+Math.imul(u,E)|0)+Math.imul(h,M)|0,W=W+Math.imul(h,E)|0,e=e+Math.imul(c,O)|0,t=(t+Math.imul(c,A)|0)+Math.imul(l,O)|0,W=W+Math.imul(l,A)|0,(q+(e=e+Math.imul(o,I)|0)|0)+((8191&(t=(t+Math.imul(o,j)|0)+Math.imul(a,I)|0))<<13)|0),Z=(q=((W+Math.imul(a,j)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,e=Math.imul(m,T),t=Math.imul(m,C)+Math.imul(p,T)|0,W=Math.imul(p,C),e=e+Math.imul(f,M)|0,t=(t+Math.imul(f,E)|0)+Math.imul(d,M)|0,W=W+Math.imul(d,E)|0,e=e+Math.imul(u,O)|0,t=(t+Math.imul(u,A)|0)+Math.imul(h,O)|0,W=W+Math.imul(h,A)|0,e=e+Math.imul(c,I)|0,t=(t+Math.imul(c,j)|0)+Math.imul(l,I)|0,W=W+Math.imul(l,j)|0,(q+(e=e+Math.imul(o,N)|0)|0)+((8191&(t=(t+Math.imul(o,R)|0)+Math.imul(a,N)|0))<<13)|0),G=(q=((W+Math.imul(a,R)|0)+(t>>>13)|0)+(Z>>>26)|0,Z&=67108863,e=Math.imul(g,T),t=Math.imul(g,C)+Math.imul(b,T)|0,W=Math.imul(b,C),e=e+Math.imul(m,M)|0,t=(t+Math.imul(m,E)|0)+Math.imul(p,M)|0,W=W+Math.imul(p,E)|0,e=e+Math.imul(f,O)|0,t=(t+Math.imul(f,A)|0)+Math.imul(d,O)|0,W=W+Math.imul(d,A)|0,e=e+Math.imul(u,I)|0,t=(t+Math.imul(u,j)|0)+Math.imul(h,I)|0,W=W+Math.imul(h,j)|0,e=e+Math.imul(c,N)|0,t=(t+Math.imul(c,R)|0)+Math.imul(l,N)|0,W=W+Math.imul(l,R)|0,(q+(e=e+Math.imul(o,D)|0)|0)+((8191&(t=(t+Math.imul(o,P)|0)+Math.imul(a,D)|0))<<13)|0),J=(q=((W+Math.imul(a,P)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,e=Math.imul(v,T),t=Math.imul(v,C)+Math.imul(y,T)|0,W=Math.imul(y,C),e=e+Math.imul(g,M)|0,t=(t+Math.imul(g,E)|0)+Math.imul(b,M)|0,W=W+Math.imul(b,E)|0,e=e+Math.imul(m,O)|0,t=(t+Math.imul(m,A)|0)+Math.imul(p,O)|0,W=W+Math.imul(p,A)|0,e=e+Math.imul(f,I)|0,t=(t+Math.imul(f,j)|0)+Math.imul(d,I)|0,W=W+Math.imul(d,j)|0,e=e+Math.imul(u,N)|0,t=(t+Math.imul(u,R)|0)+Math.imul(h,N)|0,W=W+Math.imul(h,R)|0,e=e+Math.imul(c,D)|0,t=(t+Math.imul(c,P)|0)+Math.imul(l,D)|0,W=W+Math.imul(l,P)|0,(q+(e=e+Math.imul(o,F)|0)|0)+((8191&(t=(t+Math.imul(o,B)|0)+Math.imul(a,F)|0))<<13)|0),Q=(q=((W+Math.imul(a,B)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,e=Math.imul(_,T),t=Math.imul(_,C)+Math.imul(w,T)|0,W=Math.imul(w,C),e=e+Math.imul(v,M)|0,t=(t+Math.imul(v,E)|0)+Math.imul(y,M)|0,W=W+Math.imul(y,E)|0,e=e+Math.imul(g,O)|0,t=(t+Math.imul(g,A)|0)+Math.imul(b,O)|0,W=W+Math.imul(b,A)|0,e=e+Math.imul(m,I)|0,t=(t+Math.imul(m,j)|0)+Math.imul(p,I)|0,W=W+Math.imul(p,j)|0,e=e+Math.imul(f,N)|0,t=(t+Math.imul(f,R)|0)+Math.imul(d,N)|0,W=W+Math.imul(d,R)|0,e=e+Math.imul(u,D)|0,t=(t+Math.imul(u,P)|0)+Math.imul(h,D)|0,W=W+Math.imul(h,P)|0,e=e+Math.imul(c,F)|0,t=(t+Math.imul(c,B)|0)+Math.imul(l,F)|0,W=W+Math.imul(l,B)|0,(q+(e=e+Math.imul(o,z)|0)|0)+((8191&(t=(t+Math.imul(o,L)|0)+Math.imul(a,z)|0))<<13)|0),ee=(q=((W+Math.imul(a,L)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,e=Math.imul(k,T),t=Math.imul(k,C)+Math.imul(x,T)|0,W=Math.imul(x,C),e=e+Math.imul(_,M)|0,t=(t+Math.imul(_,E)|0)+Math.imul(w,M)|0,W=W+Math.imul(w,E)|0,e=e+Math.imul(v,O)|0,t=(t+Math.imul(v,A)|0)+Math.imul(y,O)|0,W=W+Math.imul(y,A)|0,e=e+Math.imul(g,I)|0,t=(t+Math.imul(g,j)|0)+Math.imul(b,I)|0,W=W+Math.imul(b,j)|0,e=e+Math.imul(m,N)|0,t=(t+Math.imul(m,R)|0)+Math.imul(p,N)|0,W=W+Math.imul(p,R)|0,e=e+Math.imul(f,D)|0,t=(t+Math.imul(f,P)|0)+Math.imul(d,D)|0,W=W+Math.imul(d,P)|0,e=e+Math.imul(u,F)|0,t=(t+Math.imul(u,B)|0)+Math.imul(h,F)|0,W=W+Math.imul(h,B)|0,e=e+Math.imul(c,z)|0,t=(t+Math.imul(c,L)|0)+Math.imul(l,z)|0,W=W+Math.imul(l,L)|0,(q+(e=e+Math.imul(o,U)|0)|0)+((8191&(t=(t+Math.imul(o,$)|0)+Math.imul(a,U)|0))<<13)|0);q=((W+Math.imul(a,$)|0)+(t>>>13)|0)+(ee>>>26)|0,ee&=67108863,e=Math.imul(S,T),t=Math.imul(S,C)+Math.imul(i,T)|0,W=Math.imul(i,C),e=e+Math.imul(k,M)|0,t=(t+Math.imul(k,E)|0)+Math.imul(x,M)|0,W=W+Math.imul(x,E)|0,e=e+Math.imul(_,O)|0,t=(t+Math.imul(_,A)|0)+Math.imul(w,O)|0,W=W+Math.imul(w,A)|0,e=e+Math.imul(v,I)|0,t=(t+Math.imul(v,j)|0)+Math.imul(y,I)|0,W=W+Math.imul(y,j)|0,e=e+Math.imul(g,N)|0,t=(t+Math.imul(g,R)|0)+Math.imul(b,N)|0,W=W+Math.imul(b,R)|0,e=e+Math.imul(m,D)|0,t=(t+Math.imul(m,P)|0)+Math.imul(p,D)|0,W=W+Math.imul(p,P)|0,e=e+Math.imul(f,F)|0,t=(t+Math.imul(f,B)|0)+Math.imul(d,F)|0,W=W+Math.imul(d,B)|0,e=e+Math.imul(u,z)|0,t=(t+Math.imul(u,L)|0)+Math.imul(h,z)|0,W=W+Math.imul(h,L)|0,e=e+Math.imul(c,U)|0,t=(t+Math.imul(c,$)|0)+Math.imul(l,U)|0,W=W+Math.imul(l,$)|0,T=(q+(e=e+Math.imul(o,H)|0)|0)+((8191&(t=(t+Math.imul(o,n)|0)+Math.imul(a,H)|0))<<13)|0,q=((W+Math.imul(a,n)|0)+(t>>>13)|0)+(T>>>26)|0,T&=67108863,e=Math.imul(S,M),t=Math.imul(S,E)+Math.imul(i,M)|0,W=Math.imul(i,E),e=e+Math.imul(k,O)|0,t=(t+Math.imul(k,A)|0)+Math.imul(x,O)|0,W=W+Math.imul(x,A)|0,e=e+Math.imul(_,I)|0,t=(t+Math.imul(_,j)|0)+Math.imul(w,I)|0,W=W+Math.imul(w,j)|0,e=e+Math.imul(v,N)|0,t=(t+Math.imul(v,R)|0)+Math.imul(y,N)|0,W=W+Math.imul(y,R)|0,e=e+Math.imul(g,D)|0,t=(t+Math.imul(g,P)|0)+Math.imul(b,D)|0,W=W+Math.imul(b,P)|0,e=e+Math.imul(m,F)|0,t=(t+Math.imul(m,B)|0)+Math.imul(p,F)|0,W=W+Math.imul(p,B)|0,e=e+Math.imul(f,z)|0,t=(t+Math.imul(f,L)|0)+Math.imul(d,z)|0,W=W+Math.imul(d,L)|0,e=e+Math.imul(u,U)|0,t=(t+Math.imul(u,$)|0)+Math.imul(h,U)|0,W=W+Math.imul(h,$)|0,C=(q+(e=e+Math.imul(c,H)|0)|0)+((8191&(t=(t+Math.imul(c,n)|0)+Math.imul(l,H)|0))<<13)|0,q=((W+Math.imul(l,n)|0)+(t>>>13)|0)+(C>>>26)|0,C&=67108863,e=Math.imul(S,O),t=Math.imul(S,A)+Math.imul(i,O)|0,W=Math.imul(i,A),e=e+Math.imul(k,I)|0,t=(t+Math.imul(k,j)|0)+Math.imul(x,I)|0,W=W+Math.imul(x,j)|0,e=e+Math.imul(_,N)|0,t=(t+Math.imul(_,R)|0)+Math.imul(w,N)|0,W=W+Math.imul(w,R)|0,e=e+Math.imul(v,D)|0,t=(t+Math.imul(v,P)|0)+Math.imul(y,D)|0,W=W+Math.imul(y,P)|0,e=e+Math.imul(g,F)|0,t=(t+Math.imul(g,B)|0)+Math.imul(b,F)|0,W=W+Math.imul(b,B)|0,e=e+Math.imul(m,z)|0,t=(t+Math.imul(m,L)|0)+Math.imul(p,z)|0,W=W+Math.imul(p,L)|0,e=e+Math.imul(f,U)|0,t=(t+Math.imul(f,$)|0)+Math.imul(d,U)|0,W=W+Math.imul(d,$)|0,o=(q+(e=e+Math.imul(u,H)|0)|0)+((8191&(t=(t+Math.imul(u,n)|0)+Math.imul(h,H)|0))<<13)|0,q=((W+Math.imul(h,n)|0)+(t>>>13)|0)+(o>>>26)|0,o&=67108863,e=Math.imul(S,I),t=Math.imul(S,j)+Math.imul(i,I)|0,W=Math.imul(i,j),e=e+Math.imul(k,N)|0,t=(t+Math.imul(k,R)|0)+Math.imul(x,N)|0,W=W+Math.imul(x,R)|0,e=e+Math.imul(_,D)|0,t=(t+Math.imul(_,P)|0)+Math.imul(w,D)|0,W=W+Math.imul(w,P)|0,e=e+Math.imul(v,F)|0,t=(t+Math.imul(v,B)|0)+Math.imul(y,F)|0,W=W+Math.imul(y,B)|0,e=e+Math.imul(g,z)|0,t=(t+Math.imul(g,L)|0)+Math.imul(b,z)|0,W=W+Math.imul(b,L)|0,e=e+Math.imul(m,U)|0,t=(t+Math.imul(m,$)|0)+Math.imul(p,U)|0,W=W+Math.imul(p,$)|0,a=(q+(e=e+Math.imul(f,H)|0)|0)+((8191&(t=(t+Math.imul(f,n)|0)+Math.imul(d,H)|0))<<13)|0,q=((W+Math.imul(d,n)|0)+(t>>>13)|0)+(a>>>26)|0,a&=67108863,e=Math.imul(S,N),t=Math.imul(S,R)+Math.imul(i,N)|0,W=Math.imul(i,R),e=e+Math.imul(k,D)|0,t=(t+Math.imul(k,P)|0)+Math.imul(x,D)|0,W=W+Math.imul(x,P)|0,e=e+Math.imul(_,F)|0,t=(t+Math.imul(_,B)|0)+Math.imul(w,F)|0,W=W+Math.imul(w,B)|0,e=e+Math.imul(v,z)|0,t=(t+Math.imul(v,L)|0)+Math.imul(y,z)|0,W=W+Math.imul(y,L)|0,e=e+Math.imul(g,U)|0,t=(t+Math.imul(g,$)|0)+Math.imul(b,U)|0,W=W+Math.imul(b,$)|0,M=(q+(e=e+Math.imul(m,H)|0)|0)+((8191&(t=(t+Math.imul(m,n)|0)+Math.imul(p,H)|0))<<13)|0,q=((W+Math.imul(p,n)|0)+(t>>>13)|0)+(M>>>26)|0,M&=67108863,e=Math.imul(S,D),t=Math.imul(S,P)+Math.imul(i,D)|0,W=Math.imul(i,P),e=e+Math.imul(k,F)|0,t=(t+Math.imul(k,B)|0)+Math.imul(x,F)|0,W=W+Math.imul(x,B)|0,e=e+Math.imul(_,z)|0,t=(t+Math.imul(_,L)|0)+Math.imul(w,z)|0,W=W+Math.imul(w,L)|0,e=e+Math.imul(v,U)|0,t=(t+Math.imul(v,$)|0)+Math.imul(y,U)|0,W=W+Math.imul(y,$)|0,E=(q+(e=e+Math.imul(g,H)|0)|0)+((8191&(t=(t+Math.imul(g,n)|0)+Math.imul(b,H)|0))<<13)|0,q=((W+Math.imul(b,n)|0)+(t>>>13)|0)+(E>>>26)|0,E&=67108863,e=Math.imul(S,F),t=Math.imul(S,B)+Math.imul(i,F)|0,W=Math.imul(i,B),e=e+Math.imul(k,z)|0,t=(t+Math.imul(k,L)|0)+Math.imul(x,z)|0,W=W+Math.imul(x,L)|0,e=e+Math.imul(_,U)|0,t=(t+Math.imul(_,$)|0)+Math.imul(w,U)|0,W=W+Math.imul(w,$)|0,c=(q+(e=e+Math.imul(v,H)|0)|0)+((8191&(t=(t+Math.imul(v,n)|0)+Math.imul(y,H)|0))<<13)|0,q=((W+Math.imul(y,n)|0)+(t>>>13)|0)+(c>>>26)|0,c&=67108863,e=Math.imul(S,z),t=Math.imul(S,L)+Math.imul(i,z)|0,W=Math.imul(i,L),e=e+Math.imul(k,U)|0,t=(t+Math.imul(k,$)|0)+Math.imul(x,U)|0,W=W+Math.imul(x,$)|0,l=(q+(e=e+Math.imul(_,H)|0)|0)+((8191&(t=(t+Math.imul(_,n)|0)+Math.imul(w,H)|0))<<13)|0,q=((W+Math.imul(w,n)|0)+(t>>>13)|0)+(l>>>26)|0,l&=67108863,e=Math.imul(S,U),t=Math.imul(S,$)+Math.imul(i,U)|0,W=Math.imul(i,$),O=(q+(e=e+Math.imul(k,H)|0)|0)+((8191&(t=(t+Math.imul(k,n)|0)+Math.imul(x,H)|0))<<13)|0,q=((W+Math.imul(x,n)|0)+(t>>>13)|0)+(O>>>26)|0,O&=67108863,A=(q+(e=Math.imul(S,H))|0)+((8191&(t=Math.imul(S,n)+Math.imul(i,H)|0))<<13)|0;return q=(Math.imul(i,n)+(t>>>13)|0)+(A>>>26)|0,A&=67108863,s[0]=V,s[1]=X,s[2]=K,s[3]=Y,s[4]=Z,s[5]=G,s[6]=J,s[7]=Q,s[8]=ee,s[9]=T,s[10]=C,s[11]=o,s[12]=a,s[13]=M,s[14]=E,s[15]=c,s[16]=l,s[17]=O,s[18]=A,0!=q&&(s[19]=q,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,s=0;s<r.length-1;s++){for(var a=n,o=(n=0,67108863&i),l=Math.min(s,t.length-1),c=Math.max(0,s-e.length+1);c<=l;c++){var h,u=(0|e.words[s-c])*(0|t.words[c]);o=67108863&(h=(67108863&u)+o|0);n+=(a=(a=a+(u/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[s]=o,i=a,a=n}return 0!==i?r.words[s]=i:r.length--,r._strip()}function y(e,t,r){return g(e,t,r)}Math.imul||(b=m),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return(10===this.length&&10===e.length?b:r<63?m:r<1024?g:y)(this,e,t)},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),y(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;n("number"==typeof(e=t?-e:e)),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var s=(0|this.words[i])*e,a=(67108863&s)+(67108863&r);r=(r>>=26)+(s/67108864|0)+(a>>>26);this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++)t[r]=e.words[r/26|0]>>>r%26&1;return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i<t.length&&0===t[i];i++,r=r.sqr());if(++i<t.length)for(var n=r.sqr();i<t.length;i++,n=n.sqr())0!==t[i]&&(r=r.mul(n));return r},a.prototype.iushln=function(e){n("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26,i=67108863>>>26-t<<26-t;if(0!=t){for(var s=0,a=0;a<this.length;a++){var o=this.words[a]&i,l=(0|this.words[a])-o<<t;this.words[a]=l|s,s=o>>>26-t}s&&(this.words[a]=s,this.length++)}if(0!=r){for(a=this.length-1;0<=a;a--)this.words[a+r]=this.words[a];for(a=0;a<r;a++)this.words[a]=0;this.length+=r}return this._strip()},a.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){n("number"==typeof e&&0<=e),i=t?(t-t%26)/26:0;var i,s=e%26,a=Math.min((e-s)/26,this.length),o=67108863^67108863>>>s<<s,l=r;if(i-=a,i=Math.max(0,i),l){for(var c=0;c<a;c++)l.words[c]=this.words[c];l.length=a}if(0!==a)if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var h=0;for(c=this.length-1;0<=c&&(0!==h||i<=c);c--){var u=0|this.words[c];this.words[c]=h<<26-s|u>>>s,h=u&o}return l&&0!==h&&(l.words[l.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"==typeof e&&0<=e);var t=e%26;e=(e-t)/26;return!(this.length<=e||!(this.words[e]&1<<t))},a.prototype.imaskn=function(e){n("number"==typeof e&&0<=e);var t=e%26;e=(e-t)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=e?this:(0!=t&&e++,this.length=Math.min(e,this.length),0!=t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this._strip())},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,--this.words[t+1];return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){for(var i=e.length+r,s=(this._expand(i),0),a=0;a<e.length;a++){var o=(0|this.words[a+r])+s,l=(0|e.words[a])*t;s=((o-=67108863&l)>>26)-(l/67108864|0);this.words[a+r]=67108863&o}for(;a<this.length-r;a++)s=(o=(0|this.words[a+r])+s)>>26,this.words[a+r]=67108863&o;if(0!==s){for(n(-1===s),a=s=0;a<this.length;a++)s=(o=-(0|this.words[a])+s)>>26,this.words[a]=67108863&o;this.negative=1}return this._strip()},a.prototype._wordDiv=function(e,t){this.length,e.length;var r=this.clone(),i=e,n=0|i.words[i.length-1];0!=(e=26-this._countBits(n))&&(i=i.ushln(e),r.iushln(e),n=0|i.words[i.length-1]);var s,o=r.length-i.length;if("mod"!==t){(s=new a(null)).length=1+o,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone()._ishlnsubmul(i,1,o);0===c.negative&&(r=c,s)&&(s.words[o]=1);for(var h=o-1;0<=h;h--){var u=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);u=Math.min(u/n|0,67108863);for(r._ishlnsubmul(i,u,h);0!==r.negative;)u--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=u)}return s&&s._strip(),r._strip(),"div"!==t&&0!=e&&r.iushrn(e),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r)&&0!==s.negative&&s.iadd(e),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),{div:i="mod"!==t?o.div.neg():i,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r)&&0!==s.negative&&s.isub(e),{div:o.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,s,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t,r,i=this.divmod(e);return i.mod.isZero()||(r=0!==i.div.negative?i.mod.isub(e):i.mod,t=e.ushrn(1),e=e.andln(1),(r=r.cmp(t))<0)||1===e&&0===r?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;n((e=t?-e:e)<=67108863);for(var r=(1<<26)%e,i=0,s=this.length-1;0<=s;s--)i=(r*i+(0|this.words[s]))%e;return t?-i:i},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;n((e=t?-e:e)<=67108863);for(var r=0,i=this.length-1;0<=i;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/e|0,r=s%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());for(var t=this,r=e.clone(),i=(t=0!==t.negative?t.umod(e):t.clone(),new a(1)),s=new a(0),o=new a(0),l=new a(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var h=r.clone(),u=t.clone();!t.isZero();){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(0<d)for(t.iushrn(d);0<d--;)(i.isOdd()||s.isOdd())&&(i.iadd(h),s.isub(u)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(0<p)for(r.iushrn(p);0<p--;)(o.isOdd()||l.isOdd())&&(o.iadd(h),l.isub(u)),o.iushrn(1),l.iushrn(1);0<=t.cmp(r)?(t.isub(r),i.isub(o),s.isub(l)):(r.isub(t),o.isub(i),l.isub(s))}return{a:o,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());for(var t,r=this,i=e.clone(),s=(r=0!==r.negative?r.umod(e):r.clone(),new a(1)),o=new a(0),l=i.clone();0<r.cmpn(1)&&0<i.cmpn(1);){for(var c=0,h=1;0==(r.words[0]&h)&&c<26;++c,h<<=1);if(0<c)for(r.iushrn(c);0<c--;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(0<u)for(i.iushrn(u);0<u--;)o.isOdd()&&o.iadd(l),o.iushrn(1);0<=r.cmp(i)?(r.isub(i),s.isub(o)):(i.isub(r),o.isub(s))}return(t=0===r.cmpn(1)?s:o).cmpn(0)<0&&t.iadd(e),t},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0;for(var i=r.negative=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var s=t;t=r,r=s}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"==typeof e);var t=e%26;e=(e-t)/26,t=1<<t;if(this.length<=e)this._expand(1+e),this.words[e]|=t;else{for(var r=t,i=e;0!==r&&i<this.length;i++){var s=0|this.words[i];r=(s+=r)>>>26;s&=67108863,this.words[i]=s}0!==r&&(this.words[i]=r,this.length++)}return this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t=e<0;return 0===this.negative||t?0===this.negative&&t?1:(this._strip(),t=1<this.length?1:(n((e=t?-e:e)<=67108863,"Number is too big"),(t=0|this.words[0])===e?0:t<e?-1:1),0!==this.negative?0|-t:t):-1},a.prototype.cmp=function(e){return 0!==this.negative&&0===e.negative?-1:0===this.negative&&0!==e.negative?1:(e=this.ucmp(e),0!==this.negative?0|-e:e)},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;0<=r;r--){var i=0|this.words[r],n=0|e.words[r];if(i!=n){i<n?t=-1:n<i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return 0<=this.cmpn(e)},a.prototype.gte=function(e){return 0<=this.cmp(e)},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new C(e)},a.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){var t;"string"==typeof e?(t=a._prime(e),this.m=t.p,this.prime=t):(n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null)}function T(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){for(var t,r=e;this.split(r,this.tmp),(t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength())>this.n;);return e=t<this.n?-1:r.ucmp(this.p),0===e?(r.words[0]=0,r.length=1):0<e?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},s(_,w),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)e.words[0]=0,e.length=1;else{var n=e.words[9];for(t.words[t.length++]=4194303&n,i=10;i<e.length;i++){var s=0|e.words[i];e.words[i-10]=(4194303&s)<<4|n>>>22,n=s}0===(e.words[i-10]=n>>>=22)&&10<e.length?e.length-=10:e.length-=9}},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var i=0|e.words[r];t+=977*i,e.words[r]=67108863&t,t=64*i+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1])&&e.length--,e},s(x,w),s(k,w),s(S,w),S.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var i=19*(0|e.words[r])+t,n=67108863&i;i>>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new x;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return v[e]=t},C.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(h(e,e.umod(this.m)._forceRed(this)),e)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){return this._verify2(e,t),e=e.add(t),0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},C.prototype.iadd=function(e,t){return this._verify2(e,t),e=e.iadd(t),0<=e.cmp(this.m)&&e.isub(this.m),e},C.prototype.sub=function(e,t){return this._verify2(e,t),e=e.sub(t),e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},C.prototype.isub=function(e,t){return this._verify2(e,t),e=e.isub(t),e.cmpn(0)<0&&e.iadd(this.m),e},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t)return t=this.m.add(new a(1)).iushrn(2),this.pow(e,t);for(var r=this.m.subn(1),i=0;!r.isZero()&&0===r.andln(1);)i++,r.iushrn(1);n(!r.isZero());for(var s=new a(1).toRed(this),o=s.redNeg(),l=this.m.subn(1).iushrn(1),c=new a(2*(c=this.m.bitLength())*c).toRed(this);0!==this.pow(c,l).cmp(o);)c.redIAdd(o);for(var h=this.pow(c,r),u=this.pow(e,r.addn(1).iushrn(1)),d=this.pow(e,r),f=i;0!==d.cmp(s);){for(var p=d,m=0;0!==p.cmp(s);m++)p=p.redSqr();n(m<f);var b=this.pow(h,new a(1).iushln(f-m-1));u=u.redMul(b),h=b.redSqr(),d=d.redMul(h),f=m}return u},C.prototype.invm=function(e){return e=e._invmp(this.m),0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},C.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=e;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],e);var n=r[0],s=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;0<=i;i--){for(var c=t.words[i],h=l-1;0<=h;h--){var u=c>>h&1;n!==r[0]&&(n=this.sqr(n)),0!=u||0!==s?(s=s<<1|u,(4==++o||0===i&&0===h)&&(n=this.mul(n,r[s]),s=o=0)):o=0}l=26}return n},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){return e=e.clone(),e.red=null,e},a.mont=function(e){return new T(e)},s(T,C),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){return e=this.imod(e.mul(this.rinv)),e.red=null,e},T.prototype.imul=function(e,t){return e.isZero()||t.isZero()?(e.words[0]=0,e.length=1,e):(t=(e=e.imul(t)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(t=e=e.isub(t).iushrn(this.shift)).cmp(this.m)?t=e.isub(this.m):e.cmpn(0)<0&&(t=e.iadd(this.m)),t._forceRed(this))},T.prototype.mul=function(e,t){return(e.isZero()||t.isZero()?new a(0):(t=(e=e.mul(t)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(t=e=e.isub(t).iushrn(this.shift)).cmp(this.m)?t=e.isub(this.m):e.cmpn(0)<0&&(t=e.iadd(this.m)),t))._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}},{buffer:188}],187:[function(e,t,r){"use strict";var i;function n(e){this.rand=e}if(t.exports=function(e){return(i=i||new n(null)).generate(e)},(t.exports.Rand=n).prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(e){return e=new Uint8Array(e),self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(e){return e=new Uint8Array(e),self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(n.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var s=e("crypto");if("function"!=typeof s.randomBytes)throw new Error("Not supported");n.prototype._rand=function(e){return s.randomBytes(e)}}catch(e){}},{crypto:188}],188:[function(e,t,r){},{}],189:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer;function n(e){for(var t=(e=i.isBuffer(e)?e:i.from(e)).length/4|0,r=new Array(t),n=0;n<t;n++)r[n]=e.readUInt32BE(4*n);return r}function s(e){for(;0<e.length;e++)e[0]=0}function a(e,t,r,i,n){for(var s,a,o,l,c=r[0],h=r[1],u=r[2],d=r[3],f=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],b=e[3]^t[3],g=4,y=1;y<n;y++)s=c[f>>>24]^h[p>>>16&255]^u[m>>>8&255]^d[255&b]^t[g++],a=c[p>>>24]^h[m>>>16&255]^u[b>>>8&255]^d[255&f]^t[g++],o=c[m>>>24]^h[b>>>16&255]^u[f>>>8&255]^d[255&p]^t[g++],l=c[b>>>24]^h[f>>>16&255]^u[p>>>8&255]^d[255&m]^t[g++],f=s,p=a,m=o,b=l;return s=(i[f>>>24]<<24|i[p>>>16&255]<<16|i[m>>>8&255]<<8|i[255&b])^t[g++],a=(i[p>>>24]<<24|i[m>>>16&255]<<16|i[b>>>8&255]<<8|i[255&f])^t[g++],o=(i[m>>>24]<<24|i[b>>>16&255]<<16|i[f>>>8&255]<<8|i[255&p])^t[g++],l=(i[b>>>24]<<24|i[f>>>16&255]<<16|i[p>>>8&255]<<8|i[255&m])^t[g++],[s>>>=0,a>>>=0,o>>>=0,l>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],s=[[],[],[],[]],a=0,o=0,l=0;l<256;++l){var c=o^o<<1^o<<2^o<<3^o<<4,h=(r[a]=c=c>>>8^255&c^99,e[i[c]=a]),u=e[h],d=e[u],f=257*e[c]^16843008*c;n[0][a]=f<<24|f>>>8,n[1][a]=f<<16|f>>>16,n[2][a]=f<<8|f>>>24,n[3][a]=f,s[0][c]=(f=16843009*d^65537*u^257*h^16843008*a)<<24|f>>>8,s[1][c]=f<<16|f>>>16,s[2][c]=f<<8|f>>>24,s[3][c]=f,0===a?a=o=1:(a=h^e[e[e[d^h]]],o^=e[e[o]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:s}}();function c(e){this._key=n(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=4*(r+1),n=[],s=0;s<t;s++)n[s]=e[s];for(s=t;s<i;s++){var a=n[s-1];s%t==0?(a=l.SBOX[(a=a<<8|a>>>24)>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a],a^=o[s/t|0]<<24):6<t&&s%t==4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),n[s]=n[s-t]^a}for(var c=[],h=0;h<i;h++){var u=i-h,d=n[u-(h%4?0:4)];c[h]=h<4||u<=4?d:l.INV_SUB_MIX[0][l.SBOX[d>>>24]]^l.INV_SUB_MIX[1][l.SBOX[d>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[d>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&d]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=n(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){e=this.encryptBlockRaw(e);var t=i.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t},c.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t,t=a(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),e=i.allocUnsafe(16);return e.writeUInt32BE(t[0],0),e.writeUInt32BE(t[3],4),e.writeUInt32BE(t[2],8),e.writeUInt32BE(t[1],12),e},c.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},t.exports.AES=c},{"safe-buffer":494}],190:[function(e,t,r){"use strict";var i=e("./aes"),n=e("safe-buffer").Buffer,s=e("cipher-base"),a=e("inherits"),o=e("./ghash"),l=e("buffer-xor"),c=e("./incr32");function h(e,t,r,a){s.call(this);var l,h,u,d=n.alloc(4,0);this._cipher=new i.AES(t),t=this._cipher.encryptBlock(d);this._ghash=new o(t),d=this,t=t,r=12===(l=r).length?(d._finID=n.concat([l,n.from([0,0,0,1])]),n.concat([l,n.from([0,0,0,2])])):(t=new o(t),h=(u=l.length)%16,t.update(l),h&&t.update(n.alloc(h=16-h,0)),t.update(n.alloc(8,0)),l=8*u,(h=n.alloc(8)).writeUIntBE(l,0,8),t.update(h),d._finID=t.state,u=n.from(d._finID),c(u),u),this._prev=n.from(r),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(h,s),h.prototype._update=function(e){!this._called&&this._alen&&(t=16-this._alen%16)<16&&(t=n.alloc(t,0),this._ghash.update(t)),this._called=!0;var t=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(t),this._len+=e.length,t},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var i=Math.min(e.length,t.length),n=0;n<i;++n)r+=e[n]^t[n];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},h.prototype.getAuthTag=function(){if(this._decrypt||!n.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},h.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},h.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=h},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,t,r){"use strict";var i=e("./encrypter"),n=e("./decrypter"),s=e("./modes/list.json");r.createCipher=r.Cipher=i.createCipher,r.createCipheriv=r.Cipheriv=i.createCipheriv,r.createDecipher=r.Decipher=n.createDecipher,r.createDecipheriv=r.Decipheriv=n.createDecipheriv,r.listCiphers=r.getCiphers=function(){return Object.keys(s)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,t,r){"use strict";var i=e("./authCipher"),n=e("safe-buffer").Buffer,s=e("./modes"),a=e("./streamCipher"),o=e("cipher-base"),l=e("./aes"),c=e("evp_bytestokey");function h(e,t,r){o.call(this),this._cache=new u,this._last=void 0,this._cipher=new l.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}function u(){this.cache=n.allocUnsafe(0)}function d(e,t,r){if(e=s[e.toLowerCase()],!e)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==e.mode&&r.length!==e.iv)throw new TypeError("invalid iv length "+r.length);if((t="string"==typeof t?n.from(t):t).length!==e.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===e.type?new a(e.module,t,r,!0):"auth"===e.type?new i(e.module,t,r,!0):new h(e.module,t,r)}e("inherits")(h,o),h.prototype._update=function(e){var t;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,t),r.push(t);return n.concat(r)},h.prototype._final=function(){var e=this._cache.flush();if(this._autopadding){var t=this._mode.decrypt(this,e),r=t[15];if(r<1||16<r)throw new Error("unable to decrypt data");for(var i=-1;++i<r;)if(t[i+(16-r)]!==r)throw new Error("unable to decrypt data");if(16!==r)return t.slice(0,16-r)}else if(e)throw new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},u.prototype.add=function(e){this.cache=n.concat([this.cache,e])},u.prototype.get=function(e){var t;if(e){if(16<this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(16<=this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=s[e.toLowerCase()];if(r)return d(e,(e=c(t,!1,r.key,r.iv)).key,e.iv);throw new TypeError("invalid suite type")},r.createDecipheriv=d},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,t,r){"use strict";var i=e("./modes"),n=e("./authCipher"),s=e("safe-buffer").Buffer,a=e("./streamCipher"),o=e("cipher-base"),l=e("./aes"),c=e("evp_bytestokey");function h(e,t,r){o.call(this),this._cache=new d,this._cipher=new l.AES(t),this._prev=s.from(r),this._mode=e,this._autopadding=!0}e("inherits")(h,o),h.prototype._update=function(e){var t;this._cache.add(e);for(var r=[];t=this._cache.get();)t=this._mode.encrypt(this,t),r.push(t);return s.concat(r)};var u=s.alloc(16,16);function d(){this.cache=s.allocUnsafe(0)}function f(e,t,r){if(e=i[e.toLowerCase()],!e)throw new TypeError("invalid suite type");if((t="string"==typeof t?s.from(t):t).length!==e.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=s.from(r)),"GCM"!==e.mode&&r.length!==e.iv)throw new TypeError("invalid iv length "+r.length);return new("stream"===e.type?a:"auth"===e.type?n:h)(e.module,t,r)}h.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=s.concat([this.cache,e])},d.prototype.get=function(){var e;return 15<this.cache.length?(e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e):null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=s.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return s.concat([this.cache,t])},r.createCipheriv=f,r.createCipher=function(e,t){var r=i[e.toLowerCase()];if(r)return f(e,(e=c(t,!1,r.key,r.iv)).key,e.iv);throw new TypeError("invalid suite type")}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,n=i.alloc(16,0);function s(e){var t=i.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,r,i=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],n=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(n[0]^=i[0],n[1]^=i[1],n[2]^=i[2],n[3]^=i[3]),r=0!=(1&i[3]),t=3;0<t;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=i[0]^225<<24)}this.state=s(n)},a.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);16<=this.cache.length;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(s([0,e,0,t])),this.state},t.exports=a},{"safe-buffer":494}],195:[function(e,t,r){"use strict";t.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},{}],196:[function(e,t,r){"use strict";var i=e("buffer-xor");r.encrypt=function(e,t){return t=i(t,e._prev),e._prev=e._cipher.encryptBlock(t),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t,e=e._cipher.decryptBlock(t);return i(e,r)}},{"buffer-xor":219}],197:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,n=e("buffer-xor");function s(e,t,r){var s=t.length,a=n(t,e._cache);return e._cache=e._cache.slice(s),e._prev=i.concat([e._prev,r?t:a]),a}r.encrypt=function(e,t,r){for(var n,a=i.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=i.allocUnsafe(0)),!(e._cache.length<=t.length)){a=i.concat([a,s(e,t,r)]);break}n=e._cache.length,a=i.concat([a,s(e,t.slice(0,n),r)]),t=t.slice(n)}return a}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer;function n(e,t,r){for(var n,s,a=-1,o=0;++a<8;)n=t&1<<7-a?128:0,o+=(128&(s=e._cipher.encryptBlock(e._prev)[0]^n))>>a%8,e._prev=function(e,t){var r=e.length,n=-1,s=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++n<r;)s[n]=e[n]<<1|e[n+1]>>7;return s}(e._prev,r?n:s);return o}r.encrypt=function(e,t,r){for(var s=t.length,a=i.allocUnsafe(s),o=-1;++o<s;)a[o]=n(e,t[o],r);return a}},{"safe-buffer":494}],199:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer;r.encrypt=function(e,t,r){for(var n,s,a,o,l=t.length,c=i.allocUnsafe(l),h=-1;++h<l;)c[h]=(n=e,s=t[h],a=r,o=void 0,o=n._cipher.encryptBlock(n._prev)[0]^s,n._prev=i.concat([n._prev.slice(1),i.from([a?s:o])]),o);return c}},{"safe-buffer":494}],200:[function(e,t,r){"use strict";var i=e("buffer-xor"),n=e("safe-buffer").Buffer,s=e("../incr32");r.encrypt=function(e,t){var r=Math.ceil(t.length/16),a=e._cache.length;e._cache=n.concat([e._cache,n.allocUnsafe(16*r)]);for(var o=0;o<r;o++){c=void 0,c=(l=e)._cipher.encryptBlockRaw(l._prev),s(l._prev);var l=c,c=a+16*o;e._cache.writeUInt32BE(l[0],c+0),e._cache.writeUInt32BE(l[1],c+4),e._cache.writeUInt32BE(l[2],c+8),e._cache.writeUInt32BE(l[3],c+12)}var h=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),i(t,h)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,t,r){"use strict";r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],202:[function(e,t,r){"use strict";var i,n={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},s=e("./list.json");for(i in s)s[i].module=n[s[i].mode];t.exports=s},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,t,r){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(e,t,r){(function(t){(function(){"use strict";var i=e("buffer-xor");r.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,((n=e)._prev=n._cipher.encryptBlock(n._prev),n._prev)]);var n,s=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),i(r,s)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,t,r){"use strict";var i=e("./aes"),n=e("safe-buffer").Buffer,s=e("cipher-base");function a(e,t,r,a){s.call(this),this._cipher=new i.AES(t),this._prev=n.from(r),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=a,this._mode=e}e("inherits")(a,s),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,t,r){"use strict";var i=e("browserify-des"),n=e("browserify-aes/browser"),s=e("browserify-aes/modes"),a=e("browserify-des/modes"),o=e("evp_bytestokey");function l(e,t,r){if(e=e.toLowerCase(),s[e])return n.createCipheriv(e,t,r);if(a[e])return new i({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),s[e])return n.createDecipheriv(e,t,r);if(a[e])return new i({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}r.createCipher=r.Cipher=function(e,t){var r,i;if(e=e.toLowerCase(),s[e])r=s[e].key,i=s[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,i=a[e].iv}return t=o(t,!1,r,i),l(e,t.key,t.iv)},r.createCipheriv=r.Cipheriv=l,r.createDecipher=r.Decipher=function(e,t){var r,i;if(e=e.toLowerCase(),s[e])r=s[e].key,i=s[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,i=a[e].iv}return t=o(t,!1,r,i),c(e,t.key,t.iv)},r.createDecipheriv=r.Decipheriv=c,r.listCiphers=r.getCiphers=function(){return Object.keys(a).concat(n.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,t,r){"use strict";var i=e("cipher-base"),n=e("des.js"),s=e("inherits"),a=e("safe-buffer").Buffer,o={"des-ede3-cbc":n.CBC.instantiate(n.EDE),"des-ede3":n.EDE,"des-ede-cbc":n.CBC.instantiate(n.EDE),"des-ede":n.EDE,"des-cbc":n.CBC.instantiate(n.DES),"des-ecb":n.DES};function l(e){i.call(this);var t=e.mode.toLowerCase(),r=o[t],n=e.decrypt?"decrypt":"encrypt",s=e.key;a.isBuffer(s)||(s=a.from(s)),"des-ede"!==t&&"des-ede-cbc"!==t||(s=a.concat([s,s.slice(0,8)])),t=e.iv;a.isBuffer(t)||(t=a.from(t)),this._des=r.create({key:s,iv:t,type:n})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],s(t.exports=l,i),l.prototype._update=function(e){return a.from(this._des.update(e))},l.prototype._final=function(){return a.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,t,r){"use strict";r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],209:[function(e,t,r){(function(r){(function(){"use strict";var i=e("bn.js"),n=e("randombytes");function s(e){for(var t,r=e.modulus.byteLength();0<=(t=new i(n(r))).cmp(e.modulus)||!t.umod(e.prime1)||!t.umod(e.prime2););return t}function a(e,t){var n={blinder:(n=s(a=t)).toRed(i.mont(a.modulus)).redPow(new i(a.publicExponent)).fromRed(),unblinder:n.invm(a.modulus)},a=t.modulus.byteLength(),o=(e=new i(e).mul(n.blinder).umod(t.modulus),e.toRed(i.mont(t.prime1))),l=(e=e.toRed(i.mont(t.prime2)),t.coefficient),c=t.prime1,h=t.prime2;o=o.redPow(t.exponent1).fromRed(),e=e.redPow(t.exponent2).fromRed(),o=o.isub(e).imul(l).umod(c).imul(h);return e.iadd(o).imul(n.unblinder).umod(t.modulus).toArrayLike(r,"be",a)}a.getr=s,t.exports=a}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,t,r){"use strict";t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,t,r){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,t,r){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,n=e("create-hash"),s=e("readable-stream"),a=e("inherits"),o=e("./sign"),l=e("./verify"),c=e("./algorithms.json");function h(e){if(s.Writable.call(this),e=c[e],!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=n(e.hash),this._tag=e.id,this._signType=e.sign}function u(e){if(s.Writable.call(this),e=c[e],!e)throw new Error("Unknown message digest");this._hash=n(e.hash),this._tag=e.id,this._signType=e.sign}function d(e){return new h(e)}function f(e){return new u(e)}Object.keys(c).forEach((function(e){c[e].id=i.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),a(h,s.Writable),h.prototype._write=function(e,t,r){this._hash.update(e),r()},h.prototype.update=function(e,t){return"string"==typeof e&&(e=i.from(e,t)),this._hash.update(e),this},h.prototype.sign=function(e,t){this.end();var r=this._hash.digest();r=o(r,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(u,s.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=i.from(e,t)),this._hash.update(e),this},u.prototype.verify=function(e,t,r){return"string"==typeof t&&(t=i.from(t,r)),this.end(),r=this._hash.digest(),l(t,r,e,this._signType,this._tag)},t.exports={Sign:d,Verify:f,createSign:d,createVerify:f}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,n=e("create-hmac"),s=e("browserify-rsa"),a=e("elliptic").ec,o=e("bn.js"),l=e("parse-asn1"),c=e("./curves.json");function h(e,t,r,s){(e=i.from(e.toArray())).length<t.byteLength()&&(a=i.alloc(t.byteLength()-e.length),e=i.concat([a,e]));var a=r.length,o=(t=function(e,t){return e=(e=u(r,t)).mod(t),e=i.from(e.toArray()),e.length<t.byteLength()&&(t=i.alloc(t.byteLength()-e.length),e=i.concat([t,e])),e}(r,t),a=((o=i.alloc(a)).fill(1),i.alloc(a)),a=n(s,a).update(o).update(i.from([0])).update(e).update(t).digest(),n(s,a).update(o).digest());return{k:a=n(s,a).update(o).update(i.from([1])).update(e).update(t).digest(),v:o=n(s,a).update(o).digest()}}function u(e,t){var r=new o(e);e=(e.length<<3)-t.bitLength();return 0<e&&r.ishrn(e),r}function d(e,t,r){var s,a;do{for(s=i.alloc(0);8*s.length<e.bitLength();)t.v=n(r,t.k).update(t.v).digest(),s=i.concat([s,t.v])}while(a=u(s,e),t.k=n(r,t.k).update(t.v).update(i.from([0])).digest(),t.v=n(r,t.k).update(t.v).digest(),-1!==a.cmp(e));return a}t.exports=function(e,t,r,n,f){if(t=l(t),t.curve){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");var p=e,m=t,b=c[m.curve.join(".")];if(b)return b=new a(b).keyFromPrivate(m.privateKey).sign(p),i.from(b.toDER());throw new Error("unknown curve "+m.curve.join("."))}if("dsa"===t.type){if("dsa"!==n)throw new Error("wrong private key type");p=e;for(var g,y,v,w=r,_=t.params.priv_key,x=t.params.p,k=t.params.q,S=t.params.g,C=new o(0),T=u(p,k).mod(k),E=!1,M=h(_,k,p,w);!1===E;)g=d(k,M,w),y=g,v=k,C=S.toRed(o.mont(x)).redPow(y).fromRed().mod(v),0===(E=g.invm(k).imul(T.add(_.mul(C))).mod(k)).cmpn(0)&&(E=!1,C=new o(0));return p=E,b=(b=C).toArray(),p=p.toArray(),128&b[0]&&(b=[0].concat(b)),128&p[0]&&(p=[0].concat(p)),m=(m=[48,b.length+p.length+4,2,b.length]).concat(b,[2,p.length],p),i.from(m)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");e=i.concat([f,e]);for(var A=t.modulus.byteLength(),O=[0,1];e.length+O.length+1<A;)O.push(255);O.push(0);for(var j=-1;++j<e.length;)O.push(e[j]);return s(O,t)},t.exports.getKey=h,t.exports.makeKey=d},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,n=e("bn.js"),s=e("elliptic").ec,a=e("parse-asn1"),o=e("./curves.json");function l(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,r,c,h){var u,d;r=a(r);if("ec"===r.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");var f,p=e,m=t,b=r,g=o[b.data.algorithm.curve.join(".")];if(g)return g=new s(g),f=b.data.subjectPrivateKey.data,g.verify(m,p,f);throw new Error("unknown curve "+b.data.algorithm.curve.join("."))}if("dsa"===r.type){if("dsa"!==c)throw new Error("wrong public key type");return g=e,m=t,p=r.data.p,f=r.data.q,b=r.data.g,x=r.data.pub_key,g=a.signature.decode(g,"der"),u=g.s,g=g.r,l(u,f),l(g,f),d=n.mont(p),u=u.invm(f),0===b.toRed(d).redPow(new n(m).mul(u).mod(f)).fromRed().mul(x.toRed(d).redPow(g.mul(u).mod(f)).fromRed()).mod(p).mod(f).cmp(g)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=i.concat([h,t]);for(var y=r.modulus.byteLength(),v=[1],w=0;t.length+v.length+2<y;)v.push(255),w++;v.push(0);for(var _=-1;++_<t.length;)v.push(t[_]);v=i.from(v);var x=n.mont(r.modulus),k=(e=(e=new n(e).toRed(x)).redPow(new n(r.publicExponent)),e=i.from(e.fromRed().toArray()),w<8?1:0);y=Math.min(e.length,v.length);for(e.length!==v.length&&(k=1),_=-1;++_<y;)k|=e[_]^v[_];return 0===k}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,t,r){},{}],217:[function(e,t,r){"use strict";var i=e("buffer"),n=i.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(s(i,r),r.Buffer=a),s(n,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");return e=n(e),void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},{buffer:220}],218:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"==typeof t||i.isEncoding!==n&&n(e))return t||e;throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=h,this.end=u,t=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t,r=this.lastTotal-this.lastNeed,i=(t=this,128!=(192&(i=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<i.length?128!=(192&i[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<i.length&&128!=(192&i[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);if(t=e.toString("utf16le",t),t){var r=t.charCodeAt(t.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function c(e){var t;e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function h(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u(e){return e=e&&e.length?this.write(e):"",this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}(r.StringDecoder=s).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=function(e){return e=e&&e.length?this.write(e):"",this.lastNeed?e+"�":e},s.prototype.text=function(e,t){r=this,s=t;var r,i,n,s=(n=(o=e).length-1)<s?0:0<=(i=a(o[n]))?(0<i&&(r.lastNeed=i-1),i):--n<s||-2===i?0:0<=(i=a(o[n]))?(0<i&&(r.lastNeed=i-2),i):!(--n<s||-2===i)&&0<=(i=a(o[n]))?(0<i&&(2===i?i=0:r.lastNeed=i-3),i):0;if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=s;var o=e.length-(s-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":217}],219:[function(e,t,r){(function(e){(function(){"use strict";t.exports=function(t,r){for(var i=Math.min(t.length,r.length),n=new e(i),s=0;s<i;++s)n[s]=t[s]^r[s];return n}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,t,r){(function(t){(function(){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <https://feross.org>
- * @license MIT
- */
- "use strict";var t=e("base64-js"),i=e("ieee754");function n(e){if(2147483647<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');return e=new Uint8Array(e),e.__proto__=s.prototype,e}function s(e,t,r){if("number"!=typeof e)return a(e,t,r);if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}function a(e,t,r){if("string"==typeof e){var i=e,a=t;if(s.isEncoding(a="string"==typeof a&&""!==a?a:"utf8"))return(i=(l=n(o=0|u(i,a))).write(i,a))!==o?l.slice(0,i):l;throw new TypeError("Unknown encoding: "+a)}if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(E(e,ArrayBuffer)||e&&E(e.buffer,ArrayBuffer)){var o=e,l=(i=t,r);if(i<0||o.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<i+(l||0))throw new RangeError('"length" is outside of buffer bounds');return(o=void 0===i&&void 0===l?new Uint8Array(o):void 0===l?new Uint8Array(o,i):new Uint8Array(o,i,l)).__proto__=s.prototype,o}if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');if(a=e.valueOf&&e.valueOf(),null!=a&&a!==e)return s.from(a,t,r);var d,f,p=s.isBuffer(d=e)?(0!==(f=n(p=0|h(d.length))).length&&d.copy(f,0,0,p),f):void 0!==d.length?"number"!=typeof d.length||M(d.length)?n(0):c(d):"Buffer"===d.type&&Array.isArray(d.data)?c(d.data):void 0;if(p)return p;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return o(e),n(e<0?0:0|h(e))}function c(e){for(var t=e.length<0?0:0|h(e.length),r=n(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function h(e){if(2147483647<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function u(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||E(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=2<arguments.length&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return C(e).length;default:if(n)return i?-1:S(e).length;t=(""+t).toLowerCase(),n=!0}}function d(e,r,i){var n,s=!1;if((r=void 0===r||r<0?0:r)>this.length)return"";if((i=void 0===i||i>this.length?this.length:i)<=0)return"";if((i>>>=0)<=(r>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":var a=this,o=r,l=i,c=a.length;(!l||l<0||c<l)&&(l=c);for(var h="",u=o=!o||o<0?0:o;u<l;++u)h+=function(e){return e<16?"0"+e.toString(16):e.toString(16)}(a[u]);return h;case"utf8":case"utf-8":return g(this,r,i);case"ascii":var d=this,f=(c=r,i),p="";f=Math.min(d.length,f);for(var m=c;m<f;++m)p+=String.fromCharCode(127&d[m]);return p;case"latin1":case"binary":var b=this,y=(o=r,i),v="";y=Math.min(b.length,y);for(var w=o;w<y;++w)v+=String.fromCharCode(b[w]);return v;case"base64":return _=this,n=i,0===(x=r)&&n===_.length?t.fromByteArray(_):t.fromByteArray(_.slice(x,n));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var _=r,x=i,k=this.slice(_,x),S="",C=0;C<k.length;C+=2)S+=String.fromCharCode(k[C]+256*k[C+1]);return S;default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function f(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function p(e,t,r,i,n){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),(r=(r=M(r=+r)?n?0:e.length-1:r)<0?e.length+r:r)>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=s.from(t,i)),s.isBuffer(t))return 0===t.length?-1:m(e,t,r,i,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?(n?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,r):m(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,i,n){var s=1,a=e.length,o=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a/=s=2,o/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n)for(var c=-1,h=r;h<a;h++)if(l(e,h)===l(t,-1===c?0:h-c)){if(h-(c=-1===c?h:c)+1===o)return c*s}else-1!==c&&(h-=h-c),c=-1;else for(h=r=a<r+o?a-o:r;0<=h;h--){for(var u=!0,d=0;d<o;d++)if(l(e,h+d)!==l(t,d)){u=!1;break}if(u)return h}return-1}function b(e,t,r,i){return T(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function g(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var s,a,o,l,c=e[n],h=null,u=239<c?4:223<c?3:191<c?2:1;if(n+u<=r)switch(u){case 1:c<128&&(h=c);break;case 2:128==(192&(s=e[n+1]))&&127<(l=(31&c)<<6|63&s)&&(h=l);break;case 3:s=e[n+1],a=e[n+2],128==(192&s)&&128==(192&a)&&2047<(l=(15&c)<<12|(63&s)<<6|63&a)&&(l<55296||57343<l)&&(h=l);break;case 4:s=e[n+1],a=e[n+2],o=e[n+3],128==(192&s)&&128==(192&a)&&128==(192&o)&&65535<(l=(15&c)<<18|(63&s)<<12|(63&a)<<6|63&o)&&l<1114112&&(h=l)}null===h?(h=65533,u=1):65535<h&&(i.push((h-=65536)>>>10&1023|55296),h=56320|1023&h),i.push(h),n+=u}var d=i,f=d.length;if(f<=4096)return String.fromCharCode.apply(String,d);for(var p="",m=0;m<f;)p+=String.fromCharCode.apply(String,d.slice(m,m+=4096));return p}function y(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function v(e,t,r,i,n,a){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n<t||t<a)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function w(e,t,r,i){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _(e,t,r,n,s){return t=+t,r>>>=0,s||w(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,s){return t=+t,r>>>=0,s||w(e,0,r,8),i.write(e,t,r,n,52,8),r+8}r.Buffer=s,r.SlowBuffer=function(e){return s.alloc(+(e=+e!=e?0:e))},r.INSPECT_MAX_BYTES=50,r.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=a,s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(e,t,r){return t=t,r=r,o(e=e),e<=0||void 0===t?n(e):"string"==typeof r?n(e).fill(t,r):n(e).fill(t)},s.allocUnsafe=l,s.allocUnsafeSlow=l,s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(E(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),E(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=t=0;n<e.length;++n)t+=e[n].length;for(var r=s.allocUnsafe(t),i=0,n=0;n<e.length;++n){var a=e[n];if(E(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},s.byteLength=u,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},s.prototype.toLocaleString=s.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?g(this,0,e):d.apply(this,arguments)},s.prototype.equals=function(e){if(s.isBuffer(e))return this===e||0===s.compare(this,e);throw new TypeError("Argument must be a Buffer")},s.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim();return this.length>t&&(e+=" ... "),"<Buffer "+e+">"},s.prototype.compare=function(e,t,r,i,n){if(E(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),(t=void 0===t?0:t)<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(n<=i&&r<=t)return 0;if(n<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var a=(n>>>=0)-(i>>>=0),o=(r>>>=0)-(t>>>=0),l=Math.min(a,o),c=this.slice(i,n),h=e.slice(t,r),u=0;u<l;++u)if(c[u]!==h[u]){a=c[u],o=h[u];break}return a<o?-1:o<a?1:0},s.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},s.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var n=this.length-t;if((void 0===r||n<r)&&(r=n),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var s,a,o,l,c,h=!1;;)switch(i){case"hex":var u=this,d=e,f=t,p=r,m=(f=Number(f)||0,u.length-f);(!p||(p=Number(p))>m)&&(p=m),(m=d.length)/2<p&&(p=m/2);for(var g=0;g<p;++g){var y=parseInt(d.substr(2*g,2),16);if(M(y))return g;u[f+g]=y}return g;case"utf8":case"utf-8":return m=t,c=r,T(S(e,(l=this).length-m),l,m,c);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return b(this,e,t,r);case"base64":return l=this,c=t,o=r,T(C(e),l,c,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o=t,a=r,T(function(e,t){for(var r,i,n=[],s=0;s<e.length&&!((t-=2)<0);++s)i=(r=e.charCodeAt(s))>>8,n.push(r%256),n.push(i);return n}(e,(s=this).length-o),s,o,a);default:if(h)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e),r=this.subarray(e,t);return r.__proto__=s.prototype,r},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var i=this[e],n=1,s=0;++s<t&&(n*=256);)i+=this[e+s]*n;return i},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var i=this[e+--t],n=1;0<t&&(n*=256);)i+=this[e+--t]*n;return i},s.prototype.readUInt8=function(e,t){return e>>>=0,t||y(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var i=this[e],n=1,s=0;++s<t&&(n*=256);)i+=this[e+s]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||y(e,t,this.length);for(var i=t,n=1,s=this[e+--i];0<i&&(n*=256);)s+=this[e+--i]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},s.prototype.readInt8=function(e,t){return e>>>=0,t||y(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){return e>>>=0,t||y(e,2,this.length),t=this[e]|this[e+1]<<8,32768&t?4294901760|t:t},s.prototype.readInt16BE=function(e,t){return e>>>=0,t||y(e,2,this.length),t=this[e+1]|this[e]<<8,32768&t?4294901760|t:t},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||v(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,s=0;for(this[t]=255&e;++s<r&&(n*=256);)this[t+s]=e/n&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,i){e=+e,t>>>=0,r>>>=0,i||v(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,s=1;for(this[t+n]=255&e;0<=--n&&(s*=256);)this[t+n]=e/s&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,i){e=+e,t>>>=0,i||v(this,e,t,r,(i=Math.pow(2,8*r-1))-1,-i);var n=0,s=1,a=0;for(this[t]=255&e;++n<r&&(s*=256);)e<0&&0===a&&0!==this[t+n-1]&&(a=1),this[t+n]=(e/s>>0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,i){e=+e,t>>>=0,i||v(this,e,t,r,(i=Math.pow(2,8*r-1))-1,-i);var n=r-1,s=1,a=0;for(this[t+n]=255&e;0<=--n&&(s*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/s>>0)-a&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,1,127,-128),this[t]=255&(e=e<0?255+e+1:e),t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,2147483647,-2147483648),this[t]=(e=e<0?4294967295+e+1:e)>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,i){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r=r||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),(i=0<i&&i<r?r:i)===r)return 0;if(0===e.length||0===this.length)return 0;if((t=t||0)<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length);var n=(i=e.length-t<i-r?e.length-t+r:i)-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var a=n-1;0<=a;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},s.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!s.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var n;1===e.length&&(n=e.charCodeAt(0),"utf8"===i&&n<128||"latin1"===i)&&(e=n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");var a;if(!(r<=t))if(t>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(a=t;a<r;++a)this[a]=e;else{var o=s.isBuffer(e)?e:s.from(e,i),l=o.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=o[a%l]}return this};var k=/[^+/0-9A-Za-z-_]/g;function S(e,t){var r;t=t||1/0;for(var i=e.length,n=null,s=[],a=0;a<i;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!n){if(56319<r){-1<(t-=3)&&s.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&s.push(239,191,189);continue}n=r;continue}if(r<56320){-1<(t-=3)&&s.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&-1<(t-=3)&&s.push(239,191,189);if(n=null,r<128){if(--t<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function C(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function E(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function M(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,n=e("stream").Transform,s=e("string_decoder").StringDecoder;function a(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(a,n),a.prototype.update=function(e,t,r){return"string"==typeof e&&(e=i.from(e,t)),t=this._update(e),this.hashMode?this:t=r?this._toString(t,r):t},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e?this._toString(t,e,!0):t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new s(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");return t=this._decoder.write(e),r&&(t+=this._decoder.end()),t},t.exports=a},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,t,r){"use strict";var i=e("../internals/is-callable"),n=e("../internals/try-to-string"),s=TypeError;t.exports=function(e){if(i(e))return e;throw new s(n(e)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,t,r){"use strict";var i=e("../internals/is-constructor"),n=e("../internals/try-to-string"),s=TypeError;t.exports=function(e){if(i(e))return e;throw new s(n(e)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,t,r){"use strict";var i=e("../internals/is-callable"),n=String,s=TypeError;t.exports=function(e){if("object"==typeof e||i(e))return e;throw new s("Can't set "+n(e)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,t,r){"use strict";var i=e("../internals/well-known-symbol"),n=e("../internals/object-create"),s=(e=e("../internals/object-define-property").f,i("unscopables")),a=Array.prototype;void 0===a[s]&&e(a,s,{configurable:!0,value:n(null)}),t.exports=function(e){a[s][e]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,t,r){"use strict";var i=e("../internals/object-is-prototype-of"),n=TypeError;t.exports=function(e,t){if(i(t,e))return e;throw new n("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,t,r){"use strict";var i=e("../internals/is-object"),n=String,s=TypeError;t.exports=function(e){if(i(e))return e;throw new s(n(e)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,t,r){"use strict";function i(e){return function(t,r,i){var o,l=n(t),c=a(l),h=s(i,c);if(e&&r!=r){for(;h<c;)if((o=l[h++])!=o)return!0}else for(;h<c;h++)if((e||h in l)&&l[h]===r)return e||h||0;return!e&&-1}}var n=e("../internals/to-indexed-object"),s=e("../internals/to-absolute-index"),a=e("../internals/length-of-array-like");t.exports={includes:i(!0),indexOf:i(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,t,r){"use strict";function i(e){var t=1===e,r=2===e,i=3===e,s=4===e,u=6===e,d=7===e,f=5===e||u;return function(p,m,b,g){for(var y,v,w=o(p),_=a(w),x=n(m,b),k=l(_),S=0,C=(m=g||c,t?m(p,k):r||d?m(p,0):void 0);S<k;S++)if((f||S in _)&&(v=x(y=_[S],S,w),e))if(t)C[S]=v;else if(v)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:h(C,y)}else switch(e){case 4:return!1;case 7:h(C,y)}return u?-1:i||s?s:C}}var n=e("../internals/function-bind-context"),s=e("../internals/function-uncurry-this"),a=e("../internals/indexed-object"),o=e("../internals/to-object"),l=e("../internals/length-of-array-like"),c=e("../internals/array-species-create"),h=s([].push);t.exports={forEach:i(0),map:i(1),filter:i(2),some:i(3),every:i(4),find:i(5),findIndex:i(6),filterReject:i(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,t,r){"use strict";var i=e("../internals/to-absolute-index"),n=e("../internals/length-of-array-like"),s=e("../internals/create-property"),a=Array,o=Math.max;t.exports=function(e,t,r){for(var l=n(e),c=i(t,l),h=i(void 0===r?l:r,l),u=a(o(h-c,0)),d=0;c<h;c++,d++)s(u,d,e[c]);return u.length=d,u}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,t,r){"use strict";e=e("../internals/function-uncurry-this"),t.exports=e([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,t,r){"use strict";var i=e("../internals/is-array"),n=e("../internals/is-constructor"),s=e("../internals/is-object"),a=e("../internals/well-known-symbol")("species"),o=Array;t.exports=function(e){var t;return void 0===(t=i(e)&&(t=e.constructor,n(t)&&(t===o||i(t.prototype))||s(t)&&null===(t=t[a]))?void 0:t)?o:t}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,t,r){"use strict";var i=e("../internals/array-species-constructor");t.exports=function(e,t){return new(i(e))(0===t?0:t)}},{"../internals/array-species-constructor":232}],234:[function(e,t,r){"use strict";var i=e("../internals/well-known-symbol")("iterator"),n=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){n=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}t.exports=function(e,t){try{if(!t&&!n)return!1}catch(e){return!1}var r=!1;try{var s={};s[i]=function(){return{next:function(){return{done:r=!0}}}},e(s)}catch(e){}return r}},{"../internals/well-known-symbol":357}],235:[function(e,t,r){"use strict";e=e("../internals/function-uncurry-this");var i=e({}.toString),n=e("".slice);t.exports=function(e){return n(i(e),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,t,r){"use strict";var i=e("../internals/to-string-tag-support"),n=e("../internals/is-callable"),s=e("../internals/classof-raw"),a=e("../internals/well-known-symbol")("toStringTag"),o=Object,l="Arguments"===s(function(){return arguments}());t.exports=i?s:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=o(e),a))?t:l?s(e):"Object"===(t=s(e))&&n(e.callee)?"Arguments":t}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,t,r){"use strict";var i=e("../internals/has-own-property"),n=e("../internals/own-keys"),s=e("../internals/object-get-own-property-descriptor"),a=e("../internals/object-define-property");t.exports=function(e,t,r){for(var o=n(t),l=a.f,c=s.f,h=0;h<o.length;h++){var u=o[h];i(e,u)||r&&i(r,u)||l(e,u,c(t,u))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,t,r){"use strict";var i=e("../internals/well-known-symbol")("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[i]=!1,"/./"[t](r)}catch(t){}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,t,r){"use strict";e=e("../internals/fails"),t.exports=!e((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":260}],240:[function(e,t,r){"use strict";t.exports=function(e,t){return{value:e,done:t}}},{}],241:[function(e,t,r){"use strict";var i=e("../internals/descriptors"),n=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");t.exports=i?function(e,t,r){return n.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,t,r){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],243:[function(e,t,r){"use strict";var i=e("../internals/to-property-key"),n=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");t.exports=function(e,t,r){t=i(t),t in e?n.f(e,t,s(0,r)):e[t]=r}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,t,r){"use strict";var i=e("../internals/make-built-in"),n=e("../internals/object-define-property");t.exports=function(e,t,r){return r.get&&i(r.get,t,{getter:!0}),r.set&&i(r.set,t,{setter:!0}),n.f(e,t,r)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,t,r){"use strict";var i=e("../internals/is-callable"),n=e("../internals/object-define-property"),s=e("../internals/make-built-in"),a=e("../internals/define-global-property");t.exports=function(e,t,r,o){var l=(o=o||{}).enumerable,c=void 0!==o.name?o.name:t;if(i(r)&&s(r,c,o),o.global)l?e[t]=r:a(t,r);else{try{o.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:n.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,t,r){"use strict";var i=e("../internals/global"),n=Object.defineProperty;t.exports=function(t,r){try{n(i,t,{value:r,configurable:!0,writable:!0})}catch(e){i[t]=r}return r}},{"../internals/global":274}],247:[function(e,t,r){"use strict";e=e("../internals/fails"),t.exports=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":260}],248:[function(e,t,r){"use strict";var i="object"==typeof document&&document.all;t.exports={all:i,IS_HTMLDDA:void 0===i&&void 0!==i}},{}],249:[function(e,t,r){"use strict";var i=e("../internals/global"),n=(e=e("../internals/is-object"),i.document),s=e(n)&&e(n.createElement);t.exports=function(e){return s?n.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,t,r){"use strict";var i=e("../internals/engine-is-deno");e=e("../internals/engine-is-node");t.exports=!i&&!e&&"object"==typeof window&&"object"==typeof document},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,t,r){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},{}],252:[function(e,t,r){"use strict";e=e("../internals/engine-user-agent"),t.exports=/ipad|iphone|ipod/i.test(e)&&"undefined"!=typeof Pebble},{"../internals/engine-user-agent":256}],253:[function(e,t,r){"use strict";e=e("../internals/engine-user-agent"),t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},{"../internals/engine-user-agent":256}],254:[function(e,t,r){"use strict";var i=e("../internals/global");e=e("../internals/classof-raw");t.exports="process"===e(i.process)},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,t,r){"use strict";e=e("../internals/engine-user-agent"),t.exports=/web0s(?!.*chrome)/i.test(e)},{"../internals/engine-user-agent":256}],256:[function(e,t,r){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},{}],257:[function(e,t,r){"use strict";var i,n,s=e("../internals/global"),a=(e=e("../internals/engine-user-agent"),s.process);s=s.Deno,a=a&&a.versions||s&&s.version,s=a&&a.v8;!(n=s?0<(i=s.split("."))[0]&&i[0]<4?1:+(i[0]+i[1]):n)&&e&&(!(i=e.match(/Edge\/(\d+)/))||74<=i[1])&&(i=e.match(/Chrome\/(\d+)/))&&(n=+i[1]),t.exports=n},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,t,r){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,t,r){"use strict";var i=e("../internals/global"),n=e("../internals/object-get-own-property-descriptor").f,s=e("../internals/create-non-enumerable-property"),a=e("../internals/define-built-in"),o=e("../internals/define-global-property"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var r,h,u,d,f=e.target,p=e.global,m=e.stat;if(r=p?i:m?i[f]||o(f,{}):(i[f]||{}).prototype)for(h in t){if(u=t[h],d=e.dontCallGetSet?(d=n(r,h))&&d.value:r[h],!c(p?h:f+(m?".":"#")+h,e.forced)&&void 0!==d){if(typeof u==typeof d)continue;l(u,d)}(e.sham||d&&d.sham)&&s(u,"sham",!0),a(r,h,u,e)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,t,r){"use strict";t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],261:[function(e,t,r){"use strict";e=e("../internals/function-bind-native");var i=Function.prototype,n=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(e?s.bind(n):function(){return s.apply(n,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,t,r){"use strict";var i=e("../internals/function-uncurry-this-clause"),n=e("../internals/a-callable"),s=e("../internals/function-bind-native"),a=i(i.bind);t.exports=function(e,t){return n(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,t,r){"use strict";e=e("../internals/fails"),t.exports=!e((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},{"../internals/fails":260}],264:[function(e,t,r){"use strict";e=e("../internals/function-bind-native");var i=Function.prototype.call;t.exports=e?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,t,r){"use strict";var i=e("../internals/descriptors"),n=(e=e("../internals/has-own-property"),Function.prototype),s=i&&Object.getOwnPropertyDescriptor,a=(e=e(n,"name"),e&&"something"===function(){}.name);i=e&&(!i||s(n,"name").configurable);t.exports={EXISTS:e,PROPER:a,CONFIGURABLE:i}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,t,r){"use strict";var i=e("../internals/function-uncurry-this"),n=e("../internals/a-callable");t.exports=function(e,t,r){try{return i(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,t,r){"use strict";var i=e("../internals/classof-raw"),n=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===i(e))return n(e)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,t,r){"use strict";e=e("../internals/function-bind-native");var i=Function.prototype,n=i.call;i=e&&i.bind.bind(n,n);t.exports=e?i:function(e){return function(){return n.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,t,r){"use strict";var i=e("../internals/global"),n=e("../internals/is-callable");t.exports=function(e,t){return arguments.length<2?(r=i[e],n(r)?r:void 0):i[e]&&i[e][t];var r}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,t,r){"use strict";var i=e("../internals/classof"),n=e("../internals/get-method"),s=e("../internals/is-null-or-undefined"),a=e("../internals/iterators"),o=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(!s(e))return n(e,o)||n(e,"@@iterator")||a[i(e)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,t,r){"use strict";var i=e("../internals/function-call"),n=e("../internals/a-callable"),s=e("../internals/an-object"),a=e("../internals/try-to-string"),o=e("../internals/get-iterator-method"),l=TypeError;t.exports=function(e,t){if(t=arguments.length<2?o(e):t,n(t))return s(i(t,e));throw new l(a(e)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,t,r){"use strict";var i=e("../internals/function-uncurry-this"),n=e("../internals/is-array"),s=e("../internals/is-callable"),a=e("../internals/classof-raw"),o=e("../internals/to-string"),l=i([].push);t.exports=function(e){if(s(e))return e;if(n(e)){for(var t=e.length,r=[],i=0;i<t;i++){var c=e[i];"string"==typeof c?l(r,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(r,o(c))}var h=r.length,u=!0;return function(e,t){if(u)return u=!1,t;if(n(this))return t;for(var i=0;i<h;i++)if(r[i]===e)return t}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,t,r){"use strict";var i=e("../internals/a-callable"),n=e("../internals/is-null-or-undefined");t.exports=function(e,t){return e=e[t],n(e)?void 0:i(e)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,r,i){(function(e){(function(){"use strict";function t(e){return e&&e.Math===Math&&e}r.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],275:[function(e,t,r){"use strict";var i=e("../internals/function-uncurry-this"),n=e("../internals/to-object"),s=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return s(n(e),t)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,t,r){"use strict";t.exports={}},{}],277:[function(e,t,r){"use strict";t.exports=function(e,t){}},{}],278:[function(e,t,r){"use strict";e=e("../internals/get-built-in"),t.exports=e("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,t,r){"use strict";var i=e("../internals/descriptors"),n=e("../internals/fails"),s=e("../internals/document-create-element");t.exports=!i&&!n((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,t,r){"use strict";var i=e("../internals/function-uncurry-this"),n=e("../internals/fails"),s=e("../internals/classof-raw"),a=Object,o=i("".split);t.exports=n((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===s(e)?o(e,""):a(e)}:a},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,t,r){"use strict";var i=e("../internals/function-uncurry-this"),n=e("../internals/is-callable"),s=(e=e("../internals/shared-store"),i(Function.toString));n(e.inspectSource)||(e.inspectSource=function(e){return s(e)}),t.exports=e.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,t,r){"use strict";var i,n,s,a,o=e("../internals/weak-map-basic-detection"),l=e("../internals/global"),c=e("../internals/is-object"),h=e("../internals/create-non-enumerable-property"),u=e("../internals/has-own-property"),d=e("../internals/shared-store"),f=e("../internals/shared-key"),p=(e=e("../internals/hidden-keys"),l.TypeError),m=(l=l.WeakMap,o||d.state?((s=d.state||(d.state=new l)).get=s.get,s.has=s.has,s.set=s.set,i=function(e,t){if(s.has(e))throw new p("Object already initialized");return t.facade=e,s.set(e,t),t},n=function(e){return s.get(e)||{}},function(e){return s.has(e)}):(e[a=f("state")]=!0,i=function(e,t){if(u(e,a))throw new p("Object already initialized");return t.facade=e,h(e,a,t),t},n=function(e){return u(e,a)?e[a]:{}},function(e){return u(e,a)}));t.exports={set:i,get:n,has:m,enforce:function(e){return m(e)?n(e):i(e,{})},getterFor:function(e){return function(t){if(c(t)&&(t=n(t)).type===e)return t;throw new p("Incompatible receiver, "+e+" required")}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,t,r){"use strict";var i=e("../internals/well-known-symbol"),n=e("../internals/iterators"),s=i("iterator"),a=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||a[s]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,t,r){"use strict";var i=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"===i(e)}},{"../internals/classof-raw":235}],285:[function(e,t,r){"use strict";e=e("../internals/document-all");var i=e.all;t.exports=e.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},{"../internals/document-all":248}],286:[function(e,t,r){"use strict";function i(){}function n(e){if(!l(e))return!1;try{return f(i,d,e),!0}catch(e){return!1}}function s(e){if(!l(e))return!1;switch(c(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return b||!!m(p,u(e))}catch(e){return!0}}var a=e("../internals/function-uncurry-this"),o=e("../internals/fails"),l=e("../internals/is-callable"),c=e("../internals/classof"),h=e("../internals/get-built-in"),u=e("../internals/inspect-source"),d=[],f=h("Reflect","construct"),p=/^\s*(?:class|function)\b/,m=a(p.exec),b=!p.test(i);s.sham=!0,t.exports=!f||o((function(){var e;return n(n.call)||!n(Object)||!n((function(){e=!0}))||e}))?s:n},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,t,r){"use strict";function i(e,t){return(e=l[o(e)])===h||e!==c&&(s(t)?n(t):!!t)}var n=e("../internals/fails"),s=e("../internals/is-callable"),a=/#|\.prototype\./,o=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=i.data={},c=i.NATIVE="N",h=i.POLYFILL="P";t.exports=i},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,t,r){"use strict";t.exports=function(e){return null==e}},{}],289:[function(e,t,r){"use strict";var i=e("../internals/is-callable"),n=(e=e("../internals/document-all"),e.all);t.exports=e.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===n}:function(e){return"object"==typeof e?null!==e:i(e)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,t,r){"use strict";t.exports=!1},{}],291:[function(e,t,r){"use strict";var i=e("../internals/is-object"),n=e("../internals/classof-raw"),s=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return i(e)&&(void 0!==(t=e[s])?!!t:"RegExp"===n(e))}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,t,r){"use strict";var i=e("../internals/get-built-in"),n=e("../internals/is-callable"),s=e("../internals/object-is-prototype-of"),a=(e=e("../internals/use-symbol-as-uid"),Object);t.exports=e?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return n(t)&&s(t.prototype,a(e))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,t,r){"use strict";function i(e,t){this.stopped=e,this.result=t}var n=e("../internals/function-bind-context"),s=e("../internals/function-call"),a=e("../internals/an-object"),o=e("../internals/try-to-string"),l=e("../internals/is-array-iterator-method"),c=e("../internals/length-of-array-like"),h=e("../internals/object-is-prototype-of"),u=e("../internals/get-iterator"),d=e("../internals/get-iterator-method"),f=e("../internals/iterator-close"),p=TypeError,m=i.prototype;t.exports=function(e,t,r){function b(e){return y&&f(y,"normal",e),new i(!0,e)}function g(e){return C?(a(e),M?A(e[0],e[1],b):A(e[0],e[1])):M?A(e,b):A(e)}var y,v,w,_,x,k,S=r&&r.that,C=!(!r||!r.AS_ENTRIES),T=!(!r||!r.IS_RECORD),E=!(!r||!r.IS_ITERATOR),M=!(!r||!r.INTERRUPTED),A=n(t,S);if(T)y=e.iterator;else if(E)y=e;else{if(!(r=d(e)))throw new p(o(e)+" is not iterable");if(l(r)){for(v=0,w=c(e);v<w;v++)if((_=g(e[v]))&&h(m,_))return _;return new i(!1)}y=u(e,r)}for(x=(T?e:y).next;!(k=s(x,y)).done;){try{_=g(k.value)}catch(e){f(y,"throw",e)}if("object"==typeof _&&_&&h(m,_))return _}return new i(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,t,r){"use strict";var i=e("../internals/function-call"),n=e("../internals/an-object"),s=e("../internals/get-method");t.exports=function(e,t,r){var a,o;n(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw r;return r}a=i(a,e)}catch(e){o=!0,a=e}if("throw"===t)throw r;if(o)throw a;return n(a),r}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,t,r){"use strict";function i(){return this}var n=e("../internals/iterators-core").IteratorPrototype,s=e("../internals/object-create"),a=e("../internals/create-property-descriptor"),o=e("../internals/set-to-string-tag"),l=e("../internals/iterators");t.exports=function(e,t,r,c){return t+=" Iterator",e.prototype=s(n,{next:a(+!c,r)}),o(e,t,!1,!0),l[t]=i,e}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,t,r){"use strict";function i(){return this}var n=e("../internals/export"),s=e("../internals/function-call"),a=e("../internals/is-pure"),o=e("../internals/function-name"),l=e("../internals/is-callable"),c=e("../internals/iterator-create-constructor"),h=e("../internals/object-get-prototype-of"),u=e("../internals/object-set-prototype-of"),d=e("../internals/set-to-string-tag"),f=e("../internals/create-non-enumerable-property"),p=e("../internals/define-built-in"),m=e("../internals/well-known-symbol"),b=e("../internals/iterators"),g=(e=e("../internals/iterators-core"),o.PROPER),y=o.CONFIGURABLE,v=e.IteratorPrototype,w=e.BUGGY_SAFARI_ITERATORS,_=m("iterator");t.exports=function(e,t,r,o,m,x,k){function S(e){if(e===m&&O)return O;if(!w&&e&&e in M)return M[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}}c(r,t,o);o=t+" Iterator";var C,T,E=!1,M=e.prototype,A=M[_]||M["@@iterator"]||m&&M[m],O=!w&&A||S(m),j="Array"===t&&M.entries||A;if(j&&(j=h(j.call(new e)))!==Object.prototype&&j.next&&(a||h(j)===v||(u?u(j,v):l(j[_])||p(j,_,i)),d(j,o,!0,!0),a)&&(b[o]=i),g&&"values"===m&&A&&"values"!==A.name&&(!a&&y?f(M,"name","values"):(E=!0,O=function(){return s(A,this)})),m)if(C={values:S("values"),keys:x?O:S("keys"),entries:S("entries")},k)for(T in C)!w&&!E&&T in M||p(M,T,C[T]);else n({target:t,proto:!0,forced:w||E},C);return a&&!k||M[_]===O||p(M,_,O,{name:m}),b[t]=O,C}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,t,r){"use strict";var i,n,s=e("../internals/fails"),a=e("../internals/is-callable"),o=e("../internals/is-object"),l=e("../internals/object-create"),c=e("../internals/object-get-prototype-of"),h=e("../internals/define-built-in"),u=e("../internals/well-known-symbol"),d=(e=e("../internals/is-pure"),u("iterator"));u=!1;[].keys&&("next"in(n=[].keys())?(c=c(c(n)))!==Object.prototype&&(i=c):u=!0),!o(i)||s((function(){var e={};return i[d].call(e)!==e}))?i={}:e&&(i=l(i)),a(i[d])||h(i,d,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:u}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,t,r){arguments[4][276][0].apply(r,arguments)},{dup:276}],299:[function(e,t,r){"use strict";var i=e("../internals/to-length");t.exports=function(e){return i(e.length)}},{"../internals/to-length":343}],300:[function(e,t,r){"use strict";var i=e("../internals/function-uncurry-this"),n=e("../internals/fails"),s=e("../internals/is-callable"),a=e("../internals/has-own-property"),o=e("../internals/descriptors"),l=e("../internals/function-name").CONFIGURABLE,c=e("../internals/inspect-source"),h=(e=e("../internals/internal-state"),e.enforce),u=e.get,d=String,f=Object.defineProperty,p=i("".slice),m=i("".replace),b=i([].join),g=o&&!n((function(){return 8!==f((function(){}),"length",{value:8}).length})),y=String(String).split("String");e=t.exports=function(e,t,r){"Symbol("===p(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(o?f(e,"name",{value:t,configurable:!0}):e.name=t),g&&r&&a(r,"arity")&&e.length!==r.arity&&f(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}return r=h(e),a(r,"source")||(r.source=b(y,"string"==typeof t?t:"")),e};Function.prototype.toString=e((function(){return s(this)&&u(this).source||c(this)}),"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,t,r){"use strict";var i=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){return e=+e,(0<e?n:i)(e)}},{}],302:[function(e,t,r){"use strict";var i,n,s,a,o,l,c=e("../internals/global"),h=e("../internals/function-bind-context"),u=e("../internals/object-get-own-property-descriptor").f,d=e("../internals/task").set,f=e("../internals/queue"),p=e("../internals/engine-is-ios"),m=e("../internals/engine-is-ios-pebble"),b=e("../internals/engine-is-webos-webkit"),g=e("../internals/engine-is-node"),y=(e=c.MutationObserver||c.WebKitMutationObserver,c.document),v=c.process,w=c.Promise;u=u(c,"queueMicrotask"),u=u&&u.value;u||(a=new f,o=function(){var e,t;for(g&&(e=v.domain)&&e.exit();t=a.get();)try{t()}catch(e){throw a.head&&l(),e}e&&e.enter()},l=p||g||b||!e||!y?!m&&w&&w.resolve?((f=w.resolve(void 0)).constructor=w,s=h(f.then,f),function(){s(o)}):g?function(){v.nextTick(o)}:(d=h(d,c),function(){d(o)}):(i=!0,n=y.createTextNode(""),new e(o).observe(n,{characterData:!0}),function(){n.data=i=!i}),u=function(e){a.head||l(),a.add(e)}),t.exports=u},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,t,r){"use strict";function i(e){var t,r;this.promise=new e((function(e,i){if(void 0!==t||void 0!==r)throw new s("Bad Promise constructor");t=e,r=i})),this.resolve=n(t),this.reject=n(r)}var n=e("../internals/a-callable"),s=TypeError;t.exports.f=function(e){return new i(e)}},{"../internals/a-callable":222}],304:[function(e,t,r){"use strict";var i=e("../internals/is-regexp"),n=TypeError;t.exports=function(e){if(i(e))throw new n("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":291}],305:[function(e,t,r){"use strict";var i=e("../internals/descriptors"),n=e("../internals/function-uncurry-this"),s=e("../internals/function-call"),a=e("../internals/fails"),o=e("../internals/object-keys"),l=e("../internals/object-get-own-property-symbols"),c=e("../internals/object-property-is-enumerable"),h=e("../internals/to-object"),u=e("../internals/indexed-object"),d=Object.assign,f=Object.defineProperty,p=n([].concat);t.exports=!d||a((function(){var e,t,r;return!(!i||1===d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},(e={})[r=Symbol("assign detection")]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==d({},e)[r])||"abcdefghijklmnopqrst"!==o(d({},t)).join("")}))?function(e,t){for(var r=h(e),n=arguments.length,a=1,d=l.f,f=c.f;a<n;)for(var m,b=u(arguments[a++]),g=d?p(o(b),d(b)):o(b),y=g.length,v=0;v<y;)m=g[v++],i&&!s(f,b,m)||(r[m]=b[m]);return r}:d},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,t,r){"use strict";function i(){}function n(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}var s,a=e("../internals/an-object"),o=e("../internals/object-define-properties"),l=e("../internals/enum-bug-keys"),c=e("../internals/hidden-keys"),h=e("../internals/html"),u=e("../internals/document-create-element"),d=e("../internals/shared-key")("IE_PROTO"),f=function(e){return"<script>"+e+"<\/script>"},p=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"==typeof document||document.domain&&s?n(s):((t=u("iframe")).style.display="none",h.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var r=l.length;r--;)delete p.prototype[l[r]];return p()};c[d]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(i.prototype=a(e),r=new i,i.prototype=null,r[d]=e):r=p(),void 0===t?r:o.f(r,t)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,t,r){"use strict";var i=e("../internals/descriptors"),n=e("../internals/v8-prototype-define-bug"),s=e("../internals/object-define-property"),a=e("../internals/an-object"),o=e("../internals/to-indexed-object"),l=e("../internals/object-keys");r.f=i&&!n?Object.defineProperties:function(e,t){a(e);for(var r,i=o(t),n=l(t),c=n.length,h=0;h<c;)s.f(e,r=n[h++],i[r]);return e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,t,r){"use strict";var i=e("../internals/descriptors"),n=e("../internals/ie8-dom-define"),s=e("../internals/v8-prototype-define-bug"),a=e("../internals/an-object"),o=e("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor;r.f=i?s?function(e,t,r){var i;return a(e),t=o(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(i=h(e,t))&&i.writable&&(e[t]=r.value,r={configurable:("configurable"in r?r:i).configurable,enumerable:("enumerable"in r?r:i).enumerable,writable:!1}),c(e,t,r)}:c:function(e,t,r){if(a(e),t=o(t),a(r),n)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,t,r){"use strict";var i=e("../internals/descriptors"),n=e("../internals/function-call"),s=e("../internals/object-property-is-enumerable"),a=e("../internals/create-property-descriptor"),o=e("../internals/to-indexed-object"),l=e("../internals/to-property-key"),c=e("../internals/has-own-property"),h=e("../internals/ie8-dom-define"),u=Object.getOwnPropertyDescriptor;r.f=i?u:function(e,t){if(e=o(e),t=l(t),h)try{return u(e,t)}catch(e){}if(c(e,t))return a(!n(s.f,e,t),e[t])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,t,r){"use strict";var i=e("../internals/classof-raw"),n=e("../internals/to-indexed-object"),s=e("../internals/object-get-own-property-names").f,a=e("../internals/array-slice-simple"),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){if(!o||"Window"!==i(e))return s(n(e));var t=e;try{return s(t)}catch(t){return a(o)}}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,t,r){"use strict";var i=e("../internals/object-keys-internal"),n=e("../internals/enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return i(e,n)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,t,r){"use strict";r.f=Object.getOwnPropertySymbols},{}],313:[function(e,t,r){"use strict";var i=e("../internals/has-own-property"),n=e("../internals/is-callable"),s=e("../internals/to-object"),a=e("../internals/shared-key"),o=(e=e("../internals/correct-prototype-getter"),a("IE_PROTO")),l=Object,c=l.prototype;t.exports=e?l.getPrototypeOf:function(e){var t;e=s(e);return i(e,o)?e[o]:(t=e.constructor,n(t)&&e instanceof t?t.prototype:e instanceof l?c:null)}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,t,r){"use strict";e=e("../internals/function-uncurry-this"),t.exports=e({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,t,r){"use strict";var i=e("../internals/function-uncurry-this"),n=e("../internals/has-own-property"),s=e("../internals/to-indexed-object"),a=e("../internals/array-includes").indexOf,o=e("../internals/hidden-keys"),l=i([].push);t.exports=function(e,t){var r,i=s(e),c=0,h=[];for(r in i)!n(o,r)&&n(i,r)&&l(h,r);for(;t.length>c;)!n(i,r=t[c++])||~a(h,r)||l(h,r);return h}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,t,r){"use strict";var i=e("../internals/object-keys-internal"),n=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return i(e,n)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,t,r){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!i.call({1:2},1);r.f=s?function(e){return e=n(this,e),!!e&&e.enumerable}:i},{}],318:[function(e,t,r){"use strict";var i=e("../internals/function-uncurry-this-accessor"),n=e("../internals/an-object"),s=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=i(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return n(r),s(i),t?e(r,i):r.__proto__=i,r}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,t,r){"use strict";function i(e){return function(t){for(var r,i=c(t),s=l(i),a=d&&null===o(i),f=s.length,p=0,m=[];p<f;)r=s[p++],n&&!(a?r in i:h(i,r))||u(m,e?[r,i[r]]:i[r]);return m}}var n=e("../internals/descriptors"),s=e("../internals/fails"),a=e("../internals/function-uncurry-this"),o=e("../internals/object-get-prototype-of"),l=e("../internals/object-keys"),c=e("../internals/to-indexed-object"),h=a(e("../internals/object-property-is-enumerable").f),u=a([].push),d=n&&s((function(){var e=Object.create(null);return e[2]=2,!h(e,2)}));t.exports={entries:i(!0),values:i(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,t,r){"use strict";var i=e("../internals/function-call"),n=e("../internals/is-callable"),s=e("../internals/is-object"),a=TypeError;t.exports=function(e,t){var r,o;if("string"===t&&n(r=e.toString)&&!s(o=i(r,e)))return o;if(n(r=e.valueOf)&&!s(o=i(r,e)))return o;if("string"!==t&&n(r=e.toString)&&!s(o=i(r,e)))return o;throw new a("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,t,r){"use strict";var i=e("../internals/get-built-in"),n=e("../internals/function-uncurry-this"),s=e("../internals/object-get-own-property-names"),a=e("../internals/object-get-own-property-symbols"),o=e("../internals/an-object"),l=n([].concat);t.exports=i("Reflect","ownKeys")||function(e){var t=s.f(o(e)),r=a.f;return r?l(t,r(e)):t}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,t,r){"use strict";e=e("../internals/global"),t.exports=e},{"../internals/global":274}],323:[function(e,t,r){"use strict";t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},{}],324:[function(e,t,r){"use strict";var i=e("../internals/global"),n=e("../internals/promise-native-constructor"),s=e("../internals/is-callable"),a=e("../internals/is-forced"),o=e("../internals/inspect-source"),l=e("../internals/well-known-symbol"),c=e("../internals/engine-is-browser"),h=e("../internals/engine-is-deno"),u=e("../internals/is-pure"),d=e("../internals/engine-v8-version"),f=n&&n.prototype,p=l("species"),m=!1,b=s(i.PromiseRejectionEvent);e=a("Promise",(function(){var e=o(n),t=e!==String(n);if(!t&&66===d)return!0;if(u&&(!f.catch||!f.finally))return!0;if(!d||d<51||!/native code/.test(e)){e=new n((function(e){e(1)}));var r=function(e){e((function(){}),(function(){}))};if((e.constructor={})[p]=r,!(m=e.then((function(){}))instanceof r))return!0}return!t&&(c||h)&&!b}));t.exports={CONSTRUCTOR:e,REJECTION_EVENT:b,SUBCLASSING:m}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,t,r){"use strict";e=e("../internals/global"),t.exports=e.Promise},{"../internals/global":274}],326:[function(e,t,r){"use strict";var i=e("../internals/an-object"),n=e("../internals/is-object"),s=e("../internals/new-promise-capability");t.exports=function(e,t){return i(e),n(t)&&t.constructor===e?t:((0,(e=s.f(e)).resolve)(t),e.promise)}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,t,r){"use strict";var i=e("../internals/promise-native-constructor"),n=e("../internals/check-correctness-of-iteration");e=e("../internals/promise-constructor-detection").CONSTRUCTOR;t.exports=e||!n((function(e){i.all(e).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,t,r){"use strict";function i(){this.head=null,this.tail=null}i.prototype={add:function(e){e={item:e,next:null};var t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},t.exports=i},{}],329:[function(e,t,r){"use strict";var i=e("../internals/is-null-or-undefined"),n=TypeError;t.exports=function(e){if(i(e))throw new n("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":288}],330:[function(e,t,r){"use strict";var i=e("../internals/get-built-in"),n=e("../internals/define-built-in-accessor"),s=e("../internals/well-known-symbol"),a=e("../internals/descriptors"),o=s("species");t.exports=function(e){e=i(e),a&&e&&!e[o]&&n(e,o,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,t,r){"use strict";var i=e("../internals/object-define-property").f,n=e("../internals/has-own-property"),s=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,r){(e=e&&!r?e.prototype:e)&&!n(e,s)&&i(e,s,{configurable:!0,value:t})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,t,r){"use strict";var i=e("../internals/shared"),n=e("../internals/uid"),s=i("keys");t.exports=function(e){return s[e]||(s[e]=n(e))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,t,r){"use strict";var i=e("../internals/global");e=e("../internals/define-global-property"),i=i["__core-js_shared__"]||e("__core-js_shared__",{});t.exports=i},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,t,r){"use strict";var i=e("../internals/is-pure"),n=e("../internals/shared-store");(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,t,r){"use strict";var i=e("../internals/an-object"),n=e("../internals/a-constructor"),s=e("../internals/is-null-or-undefined"),a=e("../internals/well-known-symbol")("species");t.exports=function(e,t){e=i(e).constructor;return void 0===e||s(e=i(e)[a])?t:n(e)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,t,r){"use strict";var i=e("../internals/engine-v8-version"),n=e("../internals/fails"),s=e("../internals/global").String;t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,t,r){"use strict";var i=e("../internals/function-call"),n=e("../internals/get-built-in"),s=e("../internals/well-known-symbol"),a=e("../internals/define-built-in");t.exports=function(){var e=n("Symbol"),t=(e=e&&e.prototype,e&&e.valueOf),r=s("toPrimitive");e&&!e[r]&&a(e,r,(function(e){return i(t,this)}),{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,t,r){"use strict";e=e("../internals/symbol-constructor-detection"),t.exports=e&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,t,r){"use strict";function i(e){return function(){M(e)}}function n(e){M(e.data)}function s(e){l.postMessage(C(e),a.protocol+"//"+a.host)}var a,o,l=e("../internals/global"),c=e("../internals/function-apply"),h=e("../internals/function-bind-context"),u=e("../internals/is-callable"),d=e("../internals/has-own-property"),f=e("../internals/fails"),p=e("../internals/html"),m=e("../internals/array-slice"),b=e("../internals/document-create-element"),g=e("../internals/validate-arguments-length"),y=e("../internals/engine-is-ios"),v=(e=e("../internals/engine-is-node"),l.setImmediate),w=l.clearImmediate,_=l.process,x=l.Dispatch,k=l.Function,S=l.MessageChannel,C=l.String,T=0,E={},M=(f((function(){a=l.location})),function(e){var t;d(E,e)&&(t=E[e],delete E[e],t())});v&&w||(v=function(e){g(arguments.length,1);var t=u(e)?e:k(e),r=m(arguments,1);return E[++T]=function(){c(t,void 0,r)},o(T),T},w=function(e){delete E[e]},e?o=function(e){_.nextTick(i(e))}:x&&x.now?o=function(e){x.now(i(e))}:S&&!y?(y=(e=new S).port2,e.port1.onmessage=n,o=h(y.postMessage,y)):l.addEventListener&&u(l.postMessage)&&!l.importScripts&&a&&"file:"!==a.protocol&&!f(s)?(o=s,l.addEventListener("message",n,!1)):o="onreadystatechange"in b("script")?function(e){p.appendChild(b("script")).onreadystatechange=function(){p.removeChild(this),M(e)}}:function(e){setTimeout(i(e),0)}),t.exports={set:v,clear:w}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,t,r){"use strict";var i=e("../internals/to-integer-or-infinity"),n=Math.max,s=Math.min;t.exports=function(e,t){return e=i(e),e<0?n(e+t,0):s(e,t)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,t,r){"use strict";var i=e("../internals/indexed-object"),n=e("../internals/require-object-coercible");t.exports=function(e){return i(n(e))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,t,r){"use strict";var i=e("../internals/math-trunc");t.exports=function(e){return e=+e,e!=e||0==e?0:i(e)}},{"../internals/math-trunc":301}],343:[function(e,t,r){"use strict";var i=e("../internals/to-integer-or-infinity"),n=Math.min;t.exports=function(e){return 0<e?n(i(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,t,r){"use strict";var i=e("../internals/require-object-coercible"),n=Object;t.exports=function(e){return n(i(e))}},{"../internals/require-object-coercible":329}],345:[function(e,t,r){"use strict";var i=e("../internals/function-call"),n=e("../internals/is-object"),s=e("../internals/is-symbol"),a=e("../internals/get-method"),o=e("../internals/ordinary-to-primitive"),l=(e=e("../internals/well-known-symbol"),TypeError),c=e("toPrimitive");t.exports=function(e,t){if(!n(e)||s(e))return e;var r=a(e,c);if(r){if(r=i(r,e,t=void 0===t?"default":t),!n(r)||s(r))return r;throw new l("Can't convert object to primitive value")}return o(e,t=void 0===t?"number":t)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,t,r){"use strict";var i=e("../internals/to-primitive"),n=e("../internals/is-symbol");t.exports=function(e){return e=i(e,"string"),n(e)?e:e+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,t,r){"use strict";var i={};i[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(i)},{"../internals/well-known-symbol":357}],348:[function(e,t,r){"use strict";var i=e("../internals/classof"),n=String;t.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},{"../internals/classof":236}],349:[function(e,t,r){"use strict";var i=String;t.exports=function(e){try{return i(e)}catch(e){return"Object"}}},{}],350:[function(e,t,r){"use strict";e=e("../internals/function-uncurry-this");var i=0,n=Math.random(),s=e(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+n,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,t,r){"use strict";e=e("../internals/symbol-constructor-detection"),t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":336}],352:[function(e,t,r){"use strict";var i=e("../internals/descriptors");e=e("../internals/fails");t.exports=i&&e((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,t,r){"use strict";var i=TypeError;t.exports=function(e,t){if(e<t)throw new i("Not enough arguments");return e}},{}],354:[function(e,t,r){"use strict";var i=e("../internals/global");e=e("../internals/is-callable"),i=i.WeakMap;t.exports=e(i)&&/native code/.test(String(i))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,t,r){"use strict";var i=e("../internals/path"),n=e("../internals/has-own-property"),s=e("../internals/well-known-symbol-wrapped"),a=e("../internals/object-define-property").f;t.exports=function(e){var t=i.Symbol||(i.Symbol={});n(t,e)||a(t,e,{value:s.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,t,r){"use strict";e=e("../internals/well-known-symbol"),r.f=e},{"../internals/well-known-symbol":357}],357:[function(e,t,r){"use strict";var i=e("../internals/global"),n=e("../internals/shared"),s=e("../internals/has-own-property"),a=e("../internals/uid"),o=e("../internals/symbol-constructor-detection"),l=(e=e("../internals/use-symbol-as-uid"),i.Symbol),c=n("wks"),h=e?l.for||l:l&&l.withoutSetter||a;t.exports=function(e){return s(c,e)||(c[e]=o&&s(l,e)?l[e]:h("Symbol."+e)),c[e]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/array-iteration").findIndex,s=(e=e("../internals/add-to-unscopables"),!0);"findIndex"in[]&&Array(1).findIndex((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{findIndex:function(e){return n(this,e,1<arguments.length?arguments[1]:void 0)}}),e("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/array-iteration").find,s=(e=e("../internals/add-to-unscopables"),!0);"find"in[]&&Array(1).find((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{find:function(e){return n(this,e,1<arguments.length?arguments[1]:void 0)}}),e("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/array-includes").includes,s=e("../internals/fails");e=e("../internals/add-to-unscopables");i({target:"Array",proto:!0,forced:s((function(){return!Array(1).includes()}))},{includes:function(e){return n(this,e,1<arguments.length?arguments[1]:void 0)}}),e("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,t,r){"use strict";var i=e("../internals/to-indexed-object"),n=e("../internals/add-to-unscopables"),s=e("../internals/iterators"),a=e("../internals/internal-state"),o=e("../internals/object-define-property").f,l=e("../internals/iterator-define"),c=e("../internals/create-iter-result-object"),h=e("../internals/is-pure"),u=e("../internals/descriptors"),d=a.set,f=a.getterFor("Array Iterator");t.exports=l(Array,"Array",(function(e,t){d(this,{type:"Array Iterator",target:i(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.kind,i=e.index++;if(!t||i>=t.length)return e.target=void 0,c(void 0,!0);switch(r){case"keys":return c(i,!1);case"values":return c(t[i],!1)}return c([i,t[i]],!1)}),"values"),a=s.Arguments=s.Array;if(n("keys"),n("values"),n("entries"),!h&&u&&"values"!==a.name)try{o(a,"name",{value:"values"})}catch(e){}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,t,r){"use strict";function i(e,t){var r=f(arguments),i=p(t);if(u(i)||void 0!==e&&!d(e))return r[1]=function(e,t){if(u(i)&&(t=l(i,this,m(e),t)),!d(t))return t},o(b,null,r)}function n(e,t,r){var i=y(r,t-1);r=y(r,t+1);return g(k,e)&&!g(S,r)||g(S,e)&&!g(k,i)?"\\u"+_(v(e,0),16):e}var s=e("../internals/export"),a=e("../internals/get-built-in"),o=e("../internals/function-apply"),l=e("../internals/function-call"),c=e("../internals/function-uncurry-this"),h=e("../internals/fails"),u=e("../internals/is-callable"),d=e("../internals/is-symbol"),f=e("../internals/array-slice"),p=e("../internals/get-json-replacer-function"),m=(e=e("../internals/symbol-constructor-detection"),String),b=a("JSON","stringify"),g=c(/./.exec),y=c("".charAt),v=c("".charCodeAt),w=c("".replace),_=c(1..toString),x=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,C=!e||h((function(){var e=a("Symbol")("stringify detection");return"[null]"!==b([e])||"{}"!==b({a:e})||"{}"!==b(Object(e))})),T=h((function(){return'"\\udf06\\ud834"'!==b("\udf06\ud834")||'"\\udead"'!==b("\udead")}));b&&s({target:"JSON",stat:!0,arity:3,forced:C||T},{stringify:function(e,t,r){var s=f(arguments);s=o(C?i:b,null,s);return T&&"string"==typeof s?w(s,x,n):s}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,t,r){"use strict";e("../internals/export")({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},{"../internals/export":259}],364:[function(e,t,r){"use strict";var i=e("../internals/export");e=e("../internals/object-assign");i({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/symbol-constructor-detection"),s=e("../internals/fails"),a=e("../internals/object-get-own-property-symbols"),o=e("../internals/to-object");i({target:"Object",stat:!0,forced:!n||s((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(o(e)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/to-object"),s=e("../internals/object-keys");i({target:"Object",stat:!0,forced:e("../internals/fails")((function(){s(1)}))},{keys:function(e){return s(n(e))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/object-to-array").values;i({target:"Object",stat:!0},{values:function(e){return n(e)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/function-call"),s=e("../internals/a-callable"),a=e("../internals/new-promise-capability"),o=e("../internals/perform"),l=e("../internals/iterate");i({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var t=this,r=a.f(t),i=r.resolve,c=r.reject,h=o((function(){var r=s(t.resolve),a=[],o=0,h=1;l(e,(function(e){var s=o++,l=!1;h++,n(r,t,e).then((function(e){l||(l=!0,a[s]=e,--h)||i(a)}),c)})),--h||i(a)}));return h.error&&c(h.value),r.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/is-pure"),s=e("../internals/promise-constructor-detection").CONSTRUCTOR,a=e("../internals/promise-native-constructor"),o=e("../internals/get-built-in"),l=e("../internals/is-callable"),c=(e=e("../internals/define-built-in"),a&&a.prototype);i({target:"Promise",proto:!0,forced:s,real:!0},{catch:function(e){return this.then(void 0,e)}}),!n&&l(a)&&(i=o("Promise").prototype.catch,c.catch!==i)&&e(c,"catch",i,{unsafe:!0})},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,t,r){"use strict";function i(e,t){var r,i,n,s,a=t.value,o=1===t.state,l=o?e.ok:e.fail,d=e.resolve,f=e.reject,p=e.domain;try{l?(o||(2===t.rejection&&(s=t,u(_,h,(function(){var e=s.facade;c?F.emit("rejectionHandled",e):V("rejectionhandled",e,s.value)}))),t.rejection=1),!0===l?r=a:(p&&p.enter(),r=l(a),p&&(p.exit(),n=!0)),r===e.promise?f(new D("Promise-chain cycle")):(i=U(r))?u(i,r,d,f):d(r)):f(a)}catch(e){p&&!n&&p.exit(),f(e)}}var n,s,a,o=e("../internals/export"),l=e("../internals/is-pure"),c=e("../internals/engine-is-node"),h=e("../internals/global"),u=e("../internals/function-call"),d=e("../internals/define-built-in"),f=e("../internals/object-set-prototype-of"),p=e("../internals/set-to-string-tag"),m=e("../internals/set-species"),b=e("../internals/a-callable"),g=e("../internals/is-callable"),y=e("../internals/is-object"),v=e("../internals/an-instance"),w=e("../internals/species-constructor"),_=e("../internals/task").set,x=e("../internals/microtask"),k=e("../internals/host-report-errors"),S=e("../internals/perform"),C=e("../internals/queue"),T=e("../internals/internal-state"),E=e("../internals/promise-native-constructor"),M=e("../internals/promise-constructor-detection"),A=e("../internals/new-promise-capability"),O=M.CONSTRUCTOR,j=M.REJECTION_EVENT,I=(M=M.SUBCLASSING,T.getterFor("Promise")),R=T.set,N=(T=E&&E.prototype,E),P=T,D=h.TypeError,B=h.document,F=h.process,L=A.f,z=L,$=!!(B&&B.createEvent&&h.dispatchEvent),U=function(e){var t;return!(!y(e)||!g(t=e.then))&&t},H=function(e,t){e.notified||(e.notified=!0,x((function(){for(var r,n,s=e.reactions;r=s.get();)i(r,e);e.notified=!1,t&&!e.rejection&&(n=e,u(_,h,(function(){var e,t=n.facade,r=n.value;if(q(n)&&(e=S((function(){c?F.emit("unhandledRejection",r,t):V("unhandledrejection",t,r)})),n.rejection=c||q(n)?2:1,e.error))throw e.value})))})))},V=function(e,t,r){var i;$?((i=B.createEvent("Event")).promise=t,i.reason=r,i.initEvent(e,!1,!0),h.dispatchEvent(i)):i={promise:t,reason:r},!j&&(t=h["on"+e])?t(i):"unhandledrejection"===e&&k("Unhandled promise rejection",r)},q=function(e){return 1!==e.rejection&&!e.parent},W=function(e,t,r){return function(i){e(t,i,r)}},X=function(e,t,r){e.done||(e.done=!0,(e=r||e).value=t,e.state=2,H(e,!0))},K=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new D("Promise can't be resolved itself");var i=U(t);i?x((function(){var r={done:!1};try{u(i,t,W(K,r,e),W(X,r,e))}catch(t){X(r,t,e)}})):(e.value=t,e.state=1,H(e,!1))}catch(t){X({done:!1},t,e)}}};if(O&&(P=(N=function(e){v(this,P),b(e),u(n,this);var t=I(this);try{e(W(K,t),W(X,t))}catch(e){X(t,e)}}).prototype,(n=function(e){R(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:void 0})}).prototype=d(P,"then",(function(e,t){var r=I(this),n=L(w(this,N));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=c?F.domain:void 0,0===r.state?r.reactions.add(n):x((function(){i(n,r)})),n.promise})),s=function(){var e=new n,t=I(e);this.promise=e,this.resolve=W(K,t),this.reject=W(X,t)},A.f=L=function(e){return e===N||void 0===e?new s:z(e)},!l)&&g(E)&&T!==Object.prototype){a=T.then,M||d(T,"then",(function(e,t){var r=this;return new N((function(e,t){u(a,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete T.constructor}catch(e){}f&&f(T,P)}o({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:N}),p(N,"Promise",!1,!0),m("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/is-pure"),s=e("../internals/promise-native-constructor"),a=e("../internals/fails"),o=e("../internals/get-built-in"),l=e("../internals/is-callable"),c=e("../internals/species-constructor"),h=e("../internals/promise-resolve"),u=(e=e("../internals/define-built-in"),s&&s.prototype);i({target:"Promise",proto:!0,real:!0,forced:!!s&&a((function(){u.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,o("Promise")),r=l(e);return this.then(r?function(r){return h(t,e()).then((function(){return r}))}:e,r?function(r){return h(t,e()).then((function(){throw r}))}:e)}}),!n&&l(s)&&(i=o("Promise").prototype.finally,u.finally!==i)&&e(u,"finally",i,{unsafe:!0})},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,t,r){"use strict";e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/function-call"),s=e("../internals/a-callable"),a=e("../internals/new-promise-capability"),o=e("../internals/perform"),l=e("../internals/iterate");i({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var t=this,r=a.f(t),i=r.reject,c=o((function(){var a=s(t.resolve);l(e,(function(e){n(a,t,e).then(r.resolve,i)}))}));return c.error&&i(c.value),r.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/function-call"),s=e("../internals/new-promise-capability");i({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=s.f(this);return n(t.reject,void 0,e),t.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/get-built-in"),s=e("../internals/is-pure"),a=e("../internals/promise-native-constructor"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR,l=e("../internals/promise-resolve"),c=n("Promise"),h=s&&!o;i({target:"Promise",stat:!0,forced:s||o},{resolve:function(e){return l(h&&this===c?a:this,e)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/function-uncurry-this"),s=e("../internals/to-absolute-index"),a=RangeError,o=String.fromCharCode,l=(e=String.fromCodePoint,n([].join));i({target:"String",stat:!0,arity:1,forced:!!e&&1!==e.length},{fromCodePoint:function(e){for(var t,r=[],i=arguments.length,n=0;n<i;){if(t=+arguments[n++],s(t,1114111)!==t)throw new a(t+" is not a valid code point");r[n]=t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320)}return l(r,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/function-uncurry-this"),s=e("../internals/not-a-regexp"),a=e("../internals/require-object-coercible"),o=e("../internals/to-string"),l=(e=e("../internals/correct-is-regexp-logic"),n("".indexOf));i({target:"String",proto:!0,forced:!e("includes")},{includes:function(e){return!!~l(o(a(this)),o(s(e)),1<arguments.length?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,t,r){"use strict";e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,t,r){"use strict";function i(e,t,r){var i=te(G,t);i&&delete G[t],re(e,t,r),i&&e!==G&&re(G,t,i)}function n(e,t){var r=ae[e]=T(J);return Y(r,{type:"Symbol",tag:e,description:t}),b||(r.description=t),r}function s(e,t,r){return e===G&&s(oe,t,r),_(e),t=k(t),_(r),(v(ae,t)?(r.enumerable?(v(e,K)&&e[K][t]&&(e[K][t]=!1),r=T(r,{enumerable:C(0,!1)})):(v(e,K)||re(e,K,C(1,{})),e[K][t]=!0),ce):re)(e,t,r)}function a(e,t){_(e);var r=x(t);t=E(r).concat(h(r));return X(t,(function(t){b&&!f(o,r,t)||s(e,t,r[t])})),e}function o(e){e=k(e);var t=f(ne,this,e);return!(this===G&&v(ae,e)&&!v(oe,e))&&(!(t||!v(this,e)||!v(ae,e)||v(this,K)&&this[K][e])||t)}function l(e,t){var r;e=x(e),t=k(t);if(e!==G||!v(ae,t)||v(oe,t))return!(r=te(e,t))||!v(ae,t)||v(e,K)&&e[K][t]||(r.enumerable=!0),r}function c(e){e=ie(x(e));var t=[];return X(e,(function(e){v(ae,e)||v(L,e)||se(t,e)})),t}function h(e){var t=e===G,r=(e=ie(t?oe:x(e)),[]);return X(e,(function(e){!v(ae,e)||t&&!v(G,e)||se(r,ae[e])})),r}var u=e("../internals/export"),d=e("../internals/global"),f=e("../internals/function-call"),p=e("../internals/function-uncurry-this"),m=e("../internals/is-pure"),b=e("../internals/descriptors"),g=e("../internals/symbol-constructor-detection"),y=e("../internals/fails"),v=e("../internals/has-own-property"),w=e("../internals/object-is-prototype-of"),_=e("../internals/an-object"),x=e("../internals/to-indexed-object"),k=e("../internals/to-property-key"),S=e("../internals/to-string"),C=e("../internals/create-property-descriptor"),T=e("../internals/object-create"),E=e("../internals/object-keys"),M=e("../internals/object-get-own-property-names"),A=e("../internals/object-get-own-property-names-external"),O=e("../internals/object-get-own-property-symbols"),j=e("../internals/object-get-own-property-descriptor"),I=e("../internals/object-define-property"),R=e("../internals/object-define-properties"),N=e("../internals/object-property-is-enumerable"),P=e("../internals/define-built-in"),D=e("../internals/define-built-in-accessor"),B=e("../internals/shared"),F=e("../internals/shared-key"),L=e("../internals/hidden-keys"),z=e("../internals/uid"),$=e("../internals/well-known-symbol"),U=e("../internals/well-known-symbol-wrapped"),H=e("../internals/well-known-symbol-define"),V=e("../internals/symbol-define-to-primitive"),q=e("../internals/set-to-string-tag"),W=e("../internals/internal-state"),X=e("../internals/array-iteration").forEach,K=F("hidden"),Y=W.set,Z=W.getterFor("Symbol"),G=Object.prototype,J=(e=d.Symbol,e&&e.prototype),Q=d.RangeError,ee=d.TypeError,te=(F=d.QObject,j.f),re=I.f,ie=A.f,ne=N.f,se=p([].push),ae=B("symbols"),oe=B("op-symbols"),le=(W=B("wks"),!F||!F.prototype||!F.prototype.findChild),ce=b&&y((function(){return 7!==T(re({},"a",{get:function(){return re(this,"a",{value:7}).a}})).a}))?i:re;g||(P(J=(e=function(){if(w(J,this))throw new ee("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?S(arguments[0]):void 0,t=z(e),r=function(e){this===G&&f(r,oe,e),v(this,K)&&v(this[K],t)&&(this[K][t]=!1);var n=C(1,e);try{ce(this,t,n)}catch(e){if(!(e instanceof Q))throw e;i(this,t,n)}};return b&&le&&ce(G,t,{configurable:!0,set:r}),n(t,e)}).prototype,"toString",(function(){return Z(this).tag})),P(e,"withoutSetter",(function(e){return n(z(e),e)})),N.f=o,I.f=s,R.f=a,j.f=l,M.f=A.f=c,O.f=h,U.f=function(e){return n($(e),e)},b&&(D(J,"description",{configurable:!0,get:function(){return Z(this).description}}),m||P(G,"propertyIsEnumerable",o,{unsafe:!0}))),u({global:!0,constructor:!0,wrap:!0,forced:!g,sham:!g},{Symbol:e}),X(E(W),(function(e){H(e)})),u({target:"Symbol",stat:!0,forced:!g},{useSetter:function(){le=!0},useSimple:function(){le=!1}}),u({target:"Object",stat:!0,forced:!g,sham:!b},{create:function(e,t){return void 0===t?T(e):a(T(e),t)},defineProperty:s,defineProperties:a,getOwnPropertyDescriptor:l}),u({target:"Object",stat:!0,forced:!g},{getOwnPropertyNames:c}),V(),q(e,"Symbol"),L[K]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/get-built-in"),s=e("../internals/has-own-property"),a=e("../internals/to-string"),o=e("../internals/shared"),l=(e=e("../internals/symbol-registry-detection"),o("string-to-symbol-registry")),c=o("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!e},{for:function(e){var t;e=a(e);return s(l,e)?l[e]:(t=n("Symbol")(e),l[e]=t,c[t]=e,t)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,t,r){"use strict";e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,t,r){"use strict";var i=e("../internals/export"),n=e("../internals/has-own-property"),s=e("../internals/is-symbol"),a=e("../internals/try-to-string"),o=e("../internals/shared"),l=(e=e("../internals/symbol-registry-detection"),o("symbol-to-string-registry"));i({target:"Symbol",stat:!0,forced:!e},{keyFor:function(e){if(!s(e))throw new TypeError(a(e)+" is not a symbol");if(n(l,e))return l[e]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,t,r){"use strict";function i(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===i(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e},r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===i(e)},r.isObject=function(e){return"object"==typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===i(e)},r.isError=function(e){return"[object Error]"===i(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,t,r){(function(r){(function(){"use strict";var i=e("elliptic"),n=e("bn.js"),s=(t.exports=function(e){return new a(e)},{secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}});function a(e){this.curveType=s[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function o(e,t,i){return Array.isArray(e)||(e=e.toArray()),e=new r(e),i&&e.length<i&&((i=new r(i-e.length)).fill(0),e=r.concat([i,e])),t?e.toString(t):e}s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,t,i){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),o(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),i,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),o(r,e)},a.prototype.getPrivateKey=function(e){return o(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),t=(t=new n(e)).toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(t),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],386:[function(e,t,r){"use strict";var i=e("inherits"),n=e("md5.js"),s=e("ripemd160"),a=e("sha.js"),o=e("cipher-base");function l(e){o.call(this,"digest"),this._hash=e}i(l,o),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new n:"rmd160"===e||"ripemd160"===e?new s:new l(a(e))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,t,r){"use strict";var i=e("md5.js");t.exports=function(e){return(new i).update(e).digest()}},{"md5.js":450}],388:[function(e,t,r){"use strict";var i=e("inherits"),n=e("./legacy"),s=e("cipher-base"),a=e("safe-buffer").Buffer,o=e("create-hash/md5"),l=e("ripemd160"),c=e("sha.js"),h=a.alloc(128);function u(e,t){s.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,(this._key=t).length>r?t=("rmd160"===e?new l:c(e)).update(t).digest():t.length<r&&(t=a.concat([t,h],r));for(var i=this._ipad=a.allocUnsafe(r),n=this._opad=a.allocUnsafe(r),o=0;o<r;o++)i[o]=54^t[o],n[o]=92^t[o];this._hash="rmd160"===e?new l:c(e),this._hash.update(i)}i(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new u("rmd160",t):"md5"===e?new n(o,t):new u(e,t)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,t,r){"use strict";var i=e("inherits"),n=e("safe-buffer").Buffer,s=e("cipher-base"),a=n.alloc(128);function o(e,t){s.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,64<(this._key=t).length?t=e(t):t.length<64&&(t=n.concat([t,a],64));for(var r=this._ipad=n.allocUnsafe(64),i=this._opad=n.allocUnsafe(64),o=0;o<64;o++)r[o]=54^t[o],i[o]=92^t[o];this._hash=[r]}i(o,s),o.prototype._update=function(e){this._hash.push(e)},o.prototype._final=function(){var e=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,e]))},t.exports=o},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,t,r){"use strict";r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=e("randombytes"),r.createHash=r.Hash=e("create-hash"),r.createHmac=r.Hmac=e("create-hmac");var i=e("browserify-sign/algos"),n=(i=Object.keys(i),["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i));r.getHashes=function(){return n},i=e("pbkdf2"),r.pbkdf2=i.pbkdf2,r.pbkdf2Sync=i.pbkdf2Sync,i=e("browserify-cipher"),r.Cipher=i.Cipher,r.createCipher=i.createCipher,r.Cipheriv=i.Cipheriv,r.createCipheriv=i.createCipheriv,r.Decipher=i.Decipher,r.createDecipher=i.createDecipher,r.Decipheriv=i.Decipheriv,r.createDecipheriv=i.createDecipheriv,r.getCiphers=i.getCiphers,r.listCiphers=i.listCiphers,i=e("diffie-hellman"),r.DiffieHellmanGroup=i.DiffieHellmanGroup,r.createDiffieHellmanGroup=i.createDiffieHellmanGroup,r.getDiffieHellman=i.getDiffieHellman,r.createDiffieHellman=i.createDiffieHellman,r.DiffieHellman=i.DiffieHellman,i=e("browserify-sign"),r.createSign=i.createSign,r.Sign=i.Sign,r.createVerify=i.createVerify,r.Verify=i.Verify,r.createECDH=e("create-ecdh"),i=e("public-encrypt"),r.publicEncrypt=i.publicEncrypt,r.privateEncrypt=i.privateEncrypt,r.publicDecrypt=i.publicDecrypt,r.privateDecrypt=i.privateDecrypt,i=e("randomfill");r.randomFill=i.randomFill,r.randomFillSync=i.randomFillSync,r.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},r.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,t,r){"use strict";var i;i=function(){function e(e,t,r){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(r)+e}function t(e){return e instanceof x||!(!e||!e[w])}function r(e,t,i){var n;if(!e)return y;if("string"==typeof e){var s=e.toLowerCase();t=(v[s]&&(n=s),t&&(v[s]=t,n=s),e.split("-"));if(!n&&1<t.length)return r(t[0])}else s=e.name,v[s]=e,n=s;return!i&&n&&(y=n),n||!i&&y}function i(e,r){return t(e)?e.clone():((r="object"==typeof r?r:{}).date=e,r.args=arguments,new x(r))}var n="millisecond",s="second",a="minute",o="hour",l="day",c="week",h="month",u="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},g={s:e,z:function(t){t=-t.utcOffset();var r=Math.abs(t),i=Math.floor(r/60);r%=60;return(t<=0?"+":"-")+e(i,2,"0")+":"+e(r,2,"0")},m:function e(t,r){var i,n,s;return t.date()<r.date()?-e(r,t):(i=12*(r.year()-t.year())+(r.month()-t.month()),s=r-(n=t.clone().add(i,h))<0,t=t.clone().add(i+(s?-1:1),h),+(-(i+(r-n)/(s?n-t:t-n))||0))},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:h,y:u,w:c,d:l,D:d,h:o,m:a,s:s,ms:n,Q:"quarter"}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",v={},w=(v[y]=b,"$isDayjsObject"),_=g,x=(_.l=r,_.i=t,_.w=function(e,t){return i(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},(b=S.prototype).parse=function(e){this.$d=function(){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(!(t instanceof Date||"string"!=typeof t||/Z$/i.test(t))){var i,n,s=t.match(p);if(s)return i=s[2]-1||0,n=(s[7]||"0").substring(0,3),r?new Date(Date.UTC(s[1],i,s[3]||1,s[4]||0,s[5]||0,s[6]||0,n)):new Date(s[1],i,s[3]||1,s[4]||0,s[5]||0,s[6]||0,n)}return new Date(t)}(),this.init()},b.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},b.$utils=function(){return _},b.isValid=function(){return!(this.$d.toString()===f)},b.isSame=function(e,t){return e=i(e),this.startOf(t)<=e&&e<=this.endOf(t)},b.isAfter=function(e,t){return i(e)<this.startOf(t)},b.isBefore=function(e,t){return this.endOf(t)<i(e)},b.$g=function(e,t,r){return _.u(e)?this[t]:this.set(r,e)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(e,t){function r(e,t){return t=_.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n),f?t:t.endOf(l)}function i(e,t){return _.w(n.toDate()[e].apply(n.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(t)),n)}var n=this,f=!!_.u(t)||t,p=(t=_.p(e),this.$W),m=this.$M,b=this.$D,g="set"+(this.$u?"UTC":"");switch(t){case u:return f?r(1,0):r(31,11);case h:return f?r(1,m):r(0,m+1);case c:var y=this.$locale().weekStart||0;y=(p<y?p+7:p)-y;return r(f?b-y:b+(6-y),m);case l:case d:return i(g+"Hours",0);case o:return i(g+"Minutes",1);case a:return i(g+"Seconds",2);case s:return i(g+"Milliseconds",3);default:return this.clone()}},b.endOf=function(e){return this.startOf(e,!1)},b.$set=function(e,t){e=_.p(e);var r="set"+(this.$u?"UTC":""),i=(r=((i={}).day=r+"Date",i.date=r+"Date",i[h]=r+"Month",i.year=r+"FullYear",i.hour=r+"Hours",i[a]=r+"Minutes",i[s]=r+"Seconds",i[n]=r+"Milliseconds",i[e]),e===l?this.$D+(t-this.$W):t);return e===h||e===u?((t=this.clone().set(d,1)).$d[r](i),t.init(),this.$d=t.set(d,Math.min(this.$D,t.daysInMonth())).$d):r&&this.$d[r](i),this.init(),this},b.set=function(e,t){return this.clone().$set(e,t)},b.get=function(e){return this[_.p(e)]()},b.add=function(e,t){function r(t){var r=i(n);return _.w(r.date(r.date()+Math.round(t*e)),n)}var n=this;e=Number(e),t=_.p(t);return t===h?this.set(h,this.$M+e):t===u?this.set(u,this.$y+e):t===l?r(1):t===c?r(7):(t={minute:6e4,hour:36e5,second:1e3}[t]||1,t=this.$d.getTime()+e*t,_.w(t,this))},b.subtract=function(e,t){return this.add(-1*e,t)},b.format=function(e){var t,r,i,n,s,a,o,l,c,h,u=this,d=this.$locale();return this.isValid()?(t=e||"YYYY-MM-DDTHH:mm:ssZ",r=_.z(this),i=this.$H,n=this.$m,s=this.$M,a=d.weekdays,o=d.months,e=d.meridiem,l=function(e,r,i,n){return e&&(e[r]||e(u,t))||i[r].slice(0,n)},c=function(e){return _.s(i%12||12,e,"0")},h=e||function(e,t,r){return e=e<12?"AM":"PM",r?e.toLowerCase():e},t.replace(m,(function(e,t){return t||function(){switch(e){case"YY":return String(u.$y).slice(-2);case"YYYY":return _.s(u.$y,4,"0");case"M":return s+1;case"MM":return _.s(s+1,2,"0");case"MMM":return l(d.monthsShort,s,o,3);case"MMMM":return l(o,s);case"D":return u.$D;case"DD":return _.s(u.$D,2,"0");case"d":return String(u.$W);case"dd":return l(d.weekdaysMin,u.$W,a,2);case"ddd":return l(d.weekdaysShort,u.$W,a,3);case"dddd":return a[u.$W];case"H":return String(i);case"HH":return _.s(i,2,"0");case"h":return c(1);case"hh":return c(2);case"a":return h(i,n,!0);case"A":return h(i,n,!1);case"m":return String(n);case"mm":return _.s(n,2,"0");case"s":return String(u.$s);case"ss":return _.s(u.$s,2,"0");case"SSS":return _.s(u.$ms,3,"0");case"Z":return r}return null}()||r.replace(":","")}))):d.invalidDate||f},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(e,t,r){function n(){return _.m(f,p)}var d,f=this,p=(t=_.p(t),i(e)),m=6e4*(p.utcOffset()-this.utcOffset()),b=this-p;switch(t){case u:d=n()/12;break;case h:d=n();break;case"quarter":d=n()/3;break;case c:d=(b-m)/6048e5;break;case l:d=(b-m)/864e5;break;case o:d=b/36e5;break;case a:d=b/6e4;break;case s:d=b/1e3;break;default:d=b}return r?d:_.a(d)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return v[this.$L]},b.locale=function(e,t){var i;return e?(i=this.clone(),(e=r(e,t,!0))&&(i.$L=e),i):this.$L},b.clone=function(){return _.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},S),k=x.prototype;function S(e){this.$L=r(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}return i.prototype=k,[["$ms",n],["$s",s],["$m",a],["$H",o],["$W",l],["$M",h],["$y",u],["$D",d]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),i.extend=function(e,t){return e.$i||(e(t,x,i),e.$i=!0),i},i.locale=r,i.isDayjs=t,i.unix=function(e){return i(1e3*e)},i.en=v[y],i.Ls=v,i.p={},i},"object"==typeof r&&void 0!==t?t.exports=i():("undefined"!=typeof globalThis?globalThis:self).dayjs=i()},{}],392:[function(e,t,r){"use strict";var i;i=function(){function e(e){return function(t){this[e]=+t}}function t(e){return(e=l[e])&&(e.indexOf?e:e.s.concat(e.f))}function r(e,t){var r,i=l.meridiem;if(i){for(var n=1;n<=24;n+=1)if(-1<e.indexOf(i(n,0,t))){r=12<n;break}}else r=e===(t?"pm":"PM");return r}var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d\d/,a=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,l={},c=function(e){return(e=+e)+(68<e?1900:2e3)},h=[/[+-]\d\d:?(\d\d)?|Z/,function(e){var t;(this.zone||(this.zone={})).offset=e&&"Z"!==e&&0!==(t=60*(e=e.match(/([+-]|\d\d)/g))[1]+(+e[2]||0))?"+"===e[0]?-t:t:0}],u={A:[o,function(e){this.afternoon=r(e,!1)}],a:[o,function(e){this.afternoon=r(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[s,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,e("seconds")],ss:[a,e("seconds")],m:[a,e("minutes")],mm:[a,e("minutes")],H:[a,e("hours")],h:[a,e("hours")],HH:[a,e("hours")],hh:[a,e("hours")],D:[a,e("day")],DD:[s,e("day")],Do:[o,function(e){var t=l.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var i=1;i<=31;i+=1)t(i).replace(/\[|\]/g,"")===e&&(this.day=i)}],M:[a,e("month")],MM:[s,e("month")],MMM:[o,function(e){var r=t("months");r=(t("monthsShort")||r.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[o,function(e){if(e=t("months").indexOf(e)+1,e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,e("year")],YY:[s,function(e){this.year=c(e)}],YYYY:[/\d{4}/,e("year")],Z:h,ZZ:h};function d(e){for(var t=e,r=l&&l.formats,s=(e=t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,t,n){var s=n&&n.toUpperCase();return t||r[n]||i[n]||r[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))).match(n),a=s.length,o=0;o<a;o+=1){var c=s[o],h=u[c],d=h&&h[0];h=h&&h[1];s[o]=h?{regex:d,parser:h}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t,r,i,n={},o=0,l=0;o<a;o+=1){var c,h,u=s[o];"string"==typeof u?l+=u.length:(h=u.regex,u=u.parser,c=e.slice(l),h=h.exec(c)[0],u.call(n,h),e=e.replace(h,""))}return void 0!==(i=(t=n).afternoon)&&(r=t.hours,i?r<12&&(t.hours+=12):12===r&&(t.hours=0),delete t.afternoon),n}}return function(e,t,r){r.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(c=e.parseTwoDigitYear);e=t.prototype;var i=e.parse;e.parse=function(e){var t=e.date,n=e.utc,s=e.args,a=(this.$u=n,s[1]);if("string"==typeof a){var o=!0===s[2],c=!0===s[3],h=o||c,u=s[2];c&&(u=s[2]),l=this.$locale(),!o&&u&&(l=r.Ls[u]),this.$d=function(e,t,r){try{var i,n,s,a,o,l,c,h,u,f,p,m,b,g,y,v,w;return-1<["x","X"].indexOf(t)?new Date(("X"===t?1e3:1)*e):(n=(i=d(t)(e)).year,s=i.month,a=i.day,o=i.hours,l=i.minutes,c=i.seconds,h=i.milliseconds,u=i.zone,f=new Date,p=a||(n||s?1:f.getDate()),m=n||f.getFullYear(),b=0,n&&!s||(b=0<s?s-1:f.getMonth()),g=o||0,y=l||0,v=c||0,w=h||0,u?new Date(Date.UTC(m,b,p,g,y,v,w+60*u.offset*1e3)):r?new Date(Date.UTC(m,b,p,g,y,v,w)):new Date(m,b,p,g,y,v,w))}catch(e){return new Date("")}}(t,a,n),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),h&&t!=this.format(a)&&(this.$d=new Date("")),l={}}else if(a instanceof Array)for(var f=a.length,p=1;p<=f;p+=1){s[1]=a[p-1];var m=r.apply(this,s);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===f&&(this.$d=new Date(""))}else i.call(this,e)}}},"object"==typeof r&&void 0!==t?t.exports=i():("undefined"!=typeof globalThis?globalThis:self).dayjs_plugin_customParseFormat=i()},{}],393:[function(e,t,r){"use strict";var i;i=function(){var e=/[+-]\d\d(?::?\d\d)?/g,t=/([+-]|\d\d)/g;return function(r,i,n){var s=i.prototype,a=(n.utc=function(e){return new i({date:e,utc:!0,args:arguments})},s.utc=function(e){var t=n(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),"minute"):t},s.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})},s.parse),o=(s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)},s.init),l=(s.init=function(){var e;this.$u?(e=this.$d,this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()):o.call(this)},s.utcOffset),c=(s.utcOffset=function(r,i){var n,s=this.$utils().u;return s(r)?this.$u?0:s(this.$offset)?l.call(this):this.$offset:"string"==typeof r&&null===(r=(s=(void 0===r?"":r).match(e))?(n=(s=(""+s[0]).match(t)||["-",0,0])[0],0==(s=60*+s[1]+ +s[2])?0:"+"===n?s:-s):null)?this:(n=Math.abs(r)<=16?60*r:r,s=this,i?(s.$offset=n,s.$u=0===r):0!==r?(i=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset(),(s=this.local().add(n+i,"minute")).$offset=n,s.$x.$localOffset=i):s=this.utc(),s)},s.format),h=(s.format=function(e){return e=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""),c.call(this,e)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()},s.toDate),u=(s.toDate=function(e){return"s"===e&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)},s.diff);s.diff=function(e,t,r){var i;return e&&this.$u===e.$u?u.call(this,e,t,r):(i=this.local(),e=n(e).local(),u.call(i,e,t,r))}}},"object"==typeof r&&void 0!==t?t.exports=i():("undefined"!=typeof globalThis?globalThis:self).dayjs_plugin_utc=i()},{}],394:[function(e,t,r){"use strict";r.utils=e("./des/utils"),r.Cipher=e("./des/cipher"),r.DES=e("./des/des"),r.CBC=e("./des/cbc"),r.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,t,r){"use strict";var i=e("minimalistic-assert"),n=e("inherits"),s={};function a(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}r.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}n(t,e);for(var r=Object.keys(s),i=0;i<r.length;i++){var a=r[i];t.prototype[a]=s[a]}return t.create=function(e){return new t(e)},t},s._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},s._update=function(e,t,r,i){var n=this._cbcState,s=this.constructor.super_.prototype,a=n.iv;if("encrypt"===this.type){for(var o=0;o<this.blockSize;o++)a[o]^=e[t+o];for(s._update.call(this,a,0,r,i),o=0;o<this.blockSize;o++)a[o]=r[i+o]}else{for(s._update.call(this,e,t,r,i),o=0;o<this.blockSize;o++)r[i+o]^=a[o];for(o=0;o<this.blockSize;o++)a[o]=e[t+o]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,t,r){"use strict";var i=e("minimalistic-assert");function n(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}(t.exports=n).prototype._init=function(){},n.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},n.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),i=0;i<r;i++)this.buffer[this.bufferOff+i]=e[t+i];return this.bufferOff+=r,r},n.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(e){var t=0,r=0,i=(this.bufferOff+e.length)/this.blockSize|0,n=new Array(i*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length)&&(r+=this._flushBuffer(n,r));for(var s=e.length-(e.length-t)%this.blockSize;t<s;t+=this.blockSize)this._update(e,t,n,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},n.prototype._updateDecrypt=function(e){for(var t=0,r=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,n=new Array(i*this.blockSize);0<i;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t;return e&&(t=this.update(e)),e="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(e):e},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},n.prototype._finalEncrypt=function(){var e;return this._pad(this.buffer,this.bufferOff)?(e=new Array(this.blockSize),this._update(this.buffer,0,e,0),e):[]},n.prototype._unpad=function(e){return e},n.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":453}],397:[function(e,t,r){"use strict";var i=e("minimalistic-assert"),n=e("inherits"),s=e("./utils"),a=e("./cipher");function o(){this.tmp=new Array(2),this.keys=null}function l(e){a.call(this,e);var t=new o;this._desState=t,this.deriveKeys(t,e.key)}n(l,a),(t.exports=l).create=function(e){return new l(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),i.equal(t.length,this.blockSize,"Invalid key length");var r=s.readUInt32BE(t,0),n=s.readUInt32BE(t,4);s.pc1(r,n,e.tmp,0),r=e.tmp[0],n=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var o=c[a>>>1];r=s.r28shl(r,o),n=s.r28shl(n,o);s.pc2(r,n,e.keys,a)}},l.prototype._update=function(e,t,r,i){var n=this._desState,a=s.readUInt32BE(e,t);e=s.readUInt32BE(e,t+4);s.ip(a,e,n.tmp,0),a=n.tmp[0],e=n.tmp[1],"encrypt"===this.type?this._encrypt(n,a,e,n.tmp,0):this._decrypt(n,a,e,n.tmp,0),a=n.tmp[0],e=n.tmp[1],s.writeUInt32BE(r,a,i),s.writeUInt32BE(r,e,i+4)},l.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,i=t;i<e.length;i++)e[i]=r;return!0},l.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)i.equal(e[r],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,r,i,n){for(var a=t,o=r,l=0;l<e.keys.length;l+=2){var c=e.keys[l],h=e.keys[l+1];c=(s.expand(o,e.tmp,0),c^=e.tmp[0],h^=e.tmp[1],s.substitute(c,h)),h=o,o=(a^s.permute(c))>>>0,a=h}s.rip(o,a,i,n)},l.prototype._decrypt=function(e,t,r,i,n){for(var a=r,o=t,l=e.keys.length-2;0<=l;l-=2){var c=e.keys[l],h=e.keys[l+1];c=(s.expand(a,e.tmp,0),c^=e.tmp[0],h^=e.tmp[1],s.substitute(c,h)),h=a,a=(o^s.permute(c))>>>0,o=h}s.rip(a,o,i,n)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,t,r){"use strict";var i=e("minimalistic-assert"),n=e("inherits"),s=e("./cipher"),a=e("./des");function o(e,t){i.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),n=t.slice(8,16);t=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:n}),a.create({type:"encrypt",key:t})]:[a.create({type:"decrypt",key:t}),a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:r})]}function l(e){s.call(this,e),e=new o(this.type,this.options.key),this._edeState=e}n(l,s),(t.exports=l).create=function(e){return new l(e)},l.prototype._update=function(e,t,r,i){var n=this._edeState;n.ciphers[0]._update(e,t,r,i),n.ciphers[1]._update(r,i,r,i),n.ciphers[2]._update(r,i,r,i)},l.prototype._pad=a.prototype._pad,l.prototype._unpad=a.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,t,r){"use strict";r.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,i){for(var n=0,s=0,a=6;0<=a;a-=2){for(var o=0;o<=24;o+=8)n=n<<1|t>>>o+a&1;for(o=0;o<=24;o+=8)n=n<<1|e>>>o+a&1}for(a=6;0<=a;a-=2){for(o=1;o<=25;o+=8)s=s<<1|t>>>o+a&1;for(o=1;o<=25;o+=8)s=s<<1|e>>>o+a&1}r[i+0]=n>>>0,r[i+1]=s>>>0},r.rip=function(e,t,r,i){for(var n=0,s=0,a=0;a<4;a++)for(var o=24;0<=o;o-=8)n=(n=n<<1|t>>>o+a&1)<<1|e>>>o+a&1;for(a=4;a<8;a++)for(o=24;0<=o;o-=8)s=(s=s<<1|t>>>o+a&1)<<1|e>>>o+a&1;r[i+0]=n>>>0,r[i+1]=s>>>0},r.pc1=function(e,t,r,i){for(var n=0,s=0,a=7;5<=a;a--){for(var o=0;o<=24;o+=8)n=n<<1|t>>o+a&1;for(o=0;o<=24;o+=8)n=n<<1|e>>o+a&1}for(o=0;o<=24;o+=8)n=n<<1|t>>o+a&1;for(a=1;a<=3;a++){for(o=0;o<=24;o+=8)s=s<<1|t>>o+a&1;for(o=0;o<=24;o+=8)s=s<<1|e>>o+a&1}for(o=0;o<=24;o+=8)s=s<<1|e>>o+a&1;r[i+0]=n>>>0,r[i+1]=s>>>0},r.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24],n=(r.pc2=function(e,t,r,n){for(var s=0,a=0,o=i.length>>>1,l=0;l<o;l++)s=s<<1|e>>>i[l]&1;for(l=o;l<i.length;l++)a=a<<1|t>>>i[l]&1;r[n+0]=s>>>0,r[n+1]=a>>>0},r.expand=function(e,t,r){for(var i=0,n=0,s=(i=(1&e)<<5|e>>>27,23);15<=s;s-=4)i=i<<6|e>>>s&63;for(s=11;3<=s;s-=4)n=(n|e>>>s&63)<<6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0},[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11]),s=(r.substitute=function(e,t){for(var r=0,i=0;i<4;i++)r=r<<4|n[64*i+(e>>>18-6*i&63)];for(i=0;i<4;i++)r=r<<4|n[256+64*i+(t>>>18-6*i&63)];return r>>>0},[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7]);r.permute=function(e){for(var t=0,r=0;r<s.length;r++)t=t<<1|e>>>s[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var i=e.toString(2);i.length<t;)i="0"+i;for(var n=[],s=0;s<t;s+=r)n.push(i.slice(s,s+r));return n.join(" ")}},{}],400:[function(e,t,r){(function(t){(function(){"use strict";var i=e("./lib/generatePrime"),n=e("./lib/primes.json"),s=e("./lib/dh"),a={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var r=new t(n[e].prime,"hex");e=new t(n[e].gen,"hex");return new s(r,e)},r.createDiffieHellman=r.DiffieHellman=function e(r,n,o,l){return t.isBuffer(n)||void 0===a[n]?e(r,"binary",n,o):(n=n||"binary",l=l||"binary",o=o||new t([2]),t.isBuffer(o)||(o=new t(o,l)),"number"==typeof r?new s(i(r,o),o,!0):(t.isBuffer(r)||(r=new t(r,n)),new s(r,o,!0)))}}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,t,r){(function(r){(function(){"use strict";var i=e("bn.js"),n=new(e("miller-rabin")),s=new i(24),a=new i(11),o=new i(10),l=new i(3),c=new i(7),h=e("./generatePrime"),u=e("randombytes");function d(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._pub=new i(e),this}function f(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._priv=new i(e),this}t.exports=m;var p={};function m(e,t,r){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=f):this._primeCode=8}function b(e,t){return e=new r(e.toArray()),t?e.toString(t):e}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){t=t.toString("hex");var r=[t,e.toString(16)].join("_");if(r in p)return p[r];var i,u=0;if(!e.isEven()&&h.simpleSieve&&h.fermatTest(e)&&n.test(e)){switch(n.test(e.shrn(1))||(u+=2),t){case"02":e.mod(s).cmp(a)&&(u+=8);break;case"05":(i=e.mod(o)).cmp(l)&&i.cmp(c)&&(u+=8);break;default:u+=4}p[r]=u}else p[r]=u=u+1+("02"===t||"05"===t?8:4);return u}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new i(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){e=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),e=new r(e.toArray());var t=this.getPrime();return e.length<t.length&&((t=new r(t.length-e.length)).fill(0),e=r.concat([t,e])),e},m.prototype.getPublicKey=function(e){return b(this._pub,e)},m.prototype.getPrivateKey=function(e){return b(this._priv,e)},m.prototype.getPrime=function(e){return b(this.__prime,e)},m.prototype.getGenerator=function(e){return b(this._gen,e)},m.prototype.setGenerator=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.__gen=e,this._gen=new i(e),this}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,t,r){"use strict";var i=e("randombytes"),n=((t.exports=g).simpleSieve=m,g.fermatTest=b,e("bn.js")),s=new n(24),a=new(e("miller-rabin")),o=new n(1),l=new n(2),c=new n(5),h=(new n(16),new n(8),new n(10)),u=new n(3),d=(new n(7),new n(11)),f=new n(4),p=(new n(12),null);function m(e){for(var t=function(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var i=Math.ceil(Math.sqrt(r)),n=0;n<t&&e[n]<=i&&r%e[n]!=0;n++);t!==n&&e[n]<=i||(e[t++]=r)}return p=e}(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function b(e){var t=n.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function g(e,t){if(e<16)return new n(2===t||5===t?[140,123]:[140,39]);var r,p;for(t=new n(t);;){for(r=new n(i(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(o),r.testn(1)||r.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;r.mod(h).cmp(u);)r.iadd(f)}else for(;r.mod(s).cmp(d);)r.iadd(f);if(m(p=r.shrn(1))&&m(r)&&b(p)&&b(r)&&a.test(p)&&a.test(r))return r}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,t,r){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],405:[function(e,t,r){"use strict";r.version=e("../package.json").version,r.utils=e("./elliptic/utils"),r.rand=e("brorand"),r.curve=e("./elliptic/curve"),r.curves=e("./elliptic/curves"),r.ec=e("./elliptic/ec"),r.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("../utils"),s=n.getNAF,a=n.getJSF,o=n.assert;function l(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0,e=this.n&&this.p.div(this.n),!e||0<e.cmpn(100)?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}(t.exports=l).prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r=e._getDoubles(),i=s(t,1,this._bitLength);e=(1<<r.step+1)-(r.step%2==0?2:1);e/=3;for(var n=[],a=0;a<i.length;a+=r.step){for(var l=0,c=a+r.step-1;a<=c;c--)l=(l<<1)+i[c];n.push(l)}for(var h=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=e;0<d;d--){for(a=0;a<n.length;a++)(l=n[a])===d?u=u.mixedAdd(r.points[a]):l===-d&&(u=u.mixedAdd(r.points[a].neg()));h=h.add(u)}return h.toP()},l.prototype._wnafMul=function(e,t){for(var r=e._getNAFPoints(4),i=r.wnd,n=r.points,a=s(t,i,this._bitLength),l=this.jpoint(null,null,null),c=a.length-1;0<=c;c--){for(var h=0;0<=c&&0===a[c];c--)h++;if(0<=c&&h++,l=l.dblp(h),c<0)break;var u=a[c];o(0!==u),l="affine"===e.type?0<u?l.mixedAdd(n[u-1>>1]):l.mixedAdd(n[-u-1>>1].neg()):0<u?l.add(n[u-1>>1]):l.add(n[-u-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,r,i,n){for(var o,l=this._wnafT1,c=this._wnafT2,h=this._wnafT3,u=0,d=0;d<i;d++){var f=(o=t[d])._getNAFPoints(e);l[d]=f.wnd,c[d]=f.points}for(d=i-1;1<=d;d-=2){var p=d-1,m=d;if(1===l[p]&&1===l[m]){var b=[t[p],null,null,t[m]],g=(0===t[p].y.cmp(t[m].y)?(b[1]=t[p].add(t[m]),b[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(b[1]=t[p].toJ().mixedAdd(t[m]),b[2]=t[p].add(t[m].neg())):(b[1]=t[p].toJ().mixedAdd(t[m]),b[2]=t[p].toJ().mixedAdd(t[m].neg())),[-3,-1,-5,-7,0,7,5,1,3]),y=a(r[p],r[m]);u=Math.max(y[0].length,u);for(h[p]=new Array(u),h[m]=new Array(u),C=0;C<u;C++){var v=0|y[0][C],w=0|y[1][C];h[p][C]=g[3*(1+v)+(1+w)],h[m][C]=0,c[p]=b}}else h[p]=s(r[p],l[p],this._bitLength),h[m]=s(r[m],l[m],this._bitLength),u=Math.max(h[p].length,u),u=Math.max(h[m].length,u)}var _=this.jpoint(null,null,null),x=this._wnafT4;for(d=u;0<=d;d--){for(var k=0;0<=d;){for(var S=!0,C=0;C<i;C++)x[C]=0|h[C][d],0!==x[C]&&(S=!1);if(!S)break;k++,d--}if(0<=d&&k++,_=_.dblp(k),d<0)break;for(C=0;C<i;C++){var T=x[C];0!==T&&(0<T?o=c[C][T-1>>1]:T<0&&(o=c[C][-T-1>>1].neg()),_="affine"===o.type?_.mixedAdd(o):_.add(o))}}for(d=0;d<i;d++)c[d]=null;return n?_:_.toP()},(l.BasePoint=c).prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){if(e=n.toArray(e,t),t=this.p.byteLength(),(4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*t)return 6===e[0]?o(e[e.length-1]%2==0):7===e[0]&&o(e[e.length-1]%2==1),this.point(e.slice(1,1+t),e.slice(1+t,1+2*t));if(2!==e[0]&&3!==e[0]||e.length-1!==t)throw new Error("Unknown point format");return this.pointFromX(e.slice(1,1+t),3===e[0])},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return n.encode(this._encode(t),e)},c.prototype.precompute=function(e){var t;return this.precomputed||((t={doubles:null,naf:null,beta:null}).naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t),this},c.prototype._hasDoubles=function(e){var t;return!!this.precomputed&&!!(t=this.precomputed.doubles)&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n<t;n+=e){for(var s=0;s<e;s++)i=i.dbl();r.push(i)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,i=1==r?null:this.dbl(),n=1;n<r;n++)t[n]=t[n-1].add(i);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},{"../utils":419,"bn.js":420}],407:[function(e,t,r){"use strict";var i=e("../utils"),n=e("bn.js"),s=e("inherits"),a=e("./base"),o=i.assert;function l(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,i,s){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=s&&new n(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}s(l,a),(t.exports=l).prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},l.prototype.pointFromX=function(e,t){var r=(e=(e=new n(e,16)).red?e:e.toRed(this.red)).redSqr(),i=this.c2.redSub(this.a.redMul(r));r=this.one.redSub(this.c2.redMul(this.d).redMul(r)),i=i.redMul(r.redInvm()),r=i.redSqrt();if(0!==r.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");return i=r.fromRed().isOdd(),(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},l.prototype.pointFromY=function(e,t){var r=(e=(e=new n(e,16)).red?e:e.toRed(this.red)).redSqr(),i=r.redSub(this.c2);r=r.redMul(this.d).redMul(this.c2).redSub(this.a),i=i.redMul(r.redInvm());if(0===i.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}if(r=i.redSqrt(),0!==r.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");return r.fromRed().isOdd()!==t&&(r=r.redNeg()),this.point(r,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=(e=e.y.redSqr(),t.redMul(this.a).redAdd(e));t=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(e)));return 0===r.cmp(t)},s(c,a.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=(r=this.z.redSqr()).redIAdd(r),i=this.curve._mulA(e),n=(e=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i.redAdd(t)),s=(r=n.redSub(r),i=i.redSub(t),t=e.redMul(r),n.redMul(i));e=e.redMul(i),i=r.redMul(n);return this.curve.point(t,s,i,e)},c.prototype._projDbl=function(){var e,t,r,i,n,s,a=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),l=this.y.redSqr();return s=this.curve.twisted?(s=(r=this.curve._mulA(o)).redAdd(l),this.zOne?(e=a.redSub(o).redSub(l).redMul(s.redSub(this.curve.two)),t=s.redMul(r.redSub(l)),s.redSqr().redSub(s).redSub(s)):(i=this.z.redSqr(),n=s.redSub(i).redISub(i),e=a.redSub(o).redISub(l).redMul(n),t=s.redMul(r.redSub(l)),s.redMul(n))):(r=o.redAdd(l),i=this.curve._mulC(this.z).redSqr(),n=r.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(r)).redMul(n),t=this.curve._mulC(r).redMul(o.redISub(l)),r.redMul(n)),this.curve.point(e,t,s)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=(e=this.z.redMul(e.z.redAdd(e.z)),r.redSub(t)),s=e.redSub(i);e=e.redAdd(i),i=r.redAdd(t),r=n.redMul(s),t=e.redMul(i),n=n.redMul(i),i=s.redMul(e);return this.curve.point(r,t,i,n)},c.prototype._projAdd=function(e){var t,r=this.z.redMul(e.z),i=r.redSqr(),n=this.x.redMul(e.x),s=this.y.redMul(e.y),a=this.curve.d.redMul(n).redMul(s),o=i.redSub(a);i=i.redAdd(a),a=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(n).redISub(s),e=r.redMul(o).redMul(a),a=(this.curve.twisted?(t=r.redMul(i).redMul(s.redSub(this.curve._mulA(n))),o):(t=r.redMul(i).redMul(s.redSub(n)),this.curve._mulC(o))).redMul(i);return this.curve.point(e,t,a)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){var e;return this.zOne||(e=this.z.redInvm(),this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0),this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,t,r){"use strict";r.base=e("./base"),r.short=e("./short"),r.mont=e("./mont"),r.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("inherits"),s=e("./base"),a=e("../utils");function o(e){s.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,r){s.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(o,s),(t.exports=o).prototype.validate=function(e){e=e.normalize().x;var t=e.redSqr();t=t.redMul(e).redAdd(t.redMul(this.a)).redAdd(e);return 0===t.redSqrt().redSqr().cmp(t)},n(l,s.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},o.prototype.point=function(e,t){return new l(this,e,t)},o.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t);e=e.redMul(t),t=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(e,t)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z);e=e.x.redSub(e.z).redMul(r),r=n.redMul(i),n=t.z.redMul(e.redAdd(r).redSqr()),i=t.x.redMul(e.redISub(r).redSqr());return this.curve.point(n,i)},l.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var s=n.length-1;0<=s;s--)0===n[s]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,t,r){"use strict";var i=e("../utils"),n=e("bn.js"),s=e("inherits"),a=e("./base"),o=i.assert;function l(e){a.call(this,"short",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,i){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new n(t,16),this.y=new n(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function h(e,t,r,i){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n(0)):(this.x=new n(t,16),this.y=new n(r,16),this.z=new n(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}s(l,a),(t.exports=l).prototype._getEndomorphism=function(e){var t,r,i;if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3))return r=(e.beta?new n(e.beta,16):r=(r=this._getEndoRoots(this.p))[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red),e.lambda?t=new n(e.lambda,16):(i=this._getEndoRoots(this.n),0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(r))?t=i[0]:(t=i[1],o(0===this.g.mul(t).x.cmp(this.g.x.redMul(r))))),{beta:r,lambda:t,basis:e.basis?e.basis.map((function(e){return{a:new n(e.a,16),b:new n(e.b,16)}})):this._getEndoBasis(t)}},l.prototype._getEndoRoots=function(e){e=e===this.p?this.red:n.mont(e);var t=new n(2).toRed(e).redInvm(),r=t.redNeg();e=new n(3).toRed(e).redNeg().redSqrt().redMul(t);return[r.redAdd(e).fromRed(),r.redSub(e).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,r,i,s,a,o=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,c=this.n.clone(),h=new n(1),u=new n(0),d=new n(0),f=new n(1),p=0;0!==l.cmpn(0);){var m=c.div(l),b=c.sub(m.mul(l)),g=d.sub(m.mul(h));m=f.sub(m.mul(u));if(!i&&b.cmp(o)<0)t=a.neg(),r=h,i=b.neg(),s=g;else if(i&&2==++p)break;c=l,l=a=b,d=h,h=g,f=u,u=m}e=b.neg();var y=g,v=i.sqr().add(s.sqr());return 0<=e.sqr().add(y.sqr()).cmp(v)&&(e=t,y=r),i.negative&&(i=i.neg(),s=s.neg()),e.negative&&(e=e.neg(),y=y.neg()),[{a:i,b:s},{a:e,b:y}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=(t=t[1],t.b.mul(e).divRound(this.n)),n=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),a=n.mul(t.a);i=i.mul(r.b),r=n.mul(t.b);return{k1:e.sub(s).sub(a),k2:i.add(r).neg()}},l.prototype.pointFromX=function(e,t){var r=(e=(e=new n(e,16)).red?e:e.toRed(this.red)).redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");return r=i.fromRed().isOdd(),(t&&!r||!t&&r)&&(i=i.redNeg()),this.point(e,i)},l.prototype.validate=function(e){var t,r;return!!e.inf||(r=e.x,e=e.y,t=this.a.redMul(r),r=r.redSqr().redMul(r).redIAdd(t).redIAdd(this.b),0===e.redSqr().redISub(r).cmpn(0))},l.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,s=0;s<e.length;s++){var a=this._endoSplit(t[s]),o=e[s],l=o._getBeta();a.k1.negative&&(a.k1.ineg(),o=o.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),i[2*s]=o,i[2*s+1]=l,n[2*s]=a.k1,n[2*s+1]=a.k2}r=this._wnafMulAdd(1,i,n,2*s,r);for(var c=0;c<2*s;c++)i[c]=null,n[c]=null;return r},s(c,a.BasePoint),l.prototype.point=function(e,t,r){return new c(this,e,t,r)},l.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){var e,t,r,i;if(this.curve.endo)return(e=this.precomputed)&&e.beta?e.beta:(t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y),e&&(r=this.curve,i=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)},(e.beta=t).precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}),t)},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var i=e.point(t[0],t[1],r);return t[2]&&(t=t[2],i.precomputed={beta:null,doubles:t.doubles&&{step:t.doubles.step,points:[i].concat(t.doubles.points.map(n))},naf:t.naf&&{wnd:t.naf.wnd,points:[i].concat(t.naf.points.map(n))}}),i;function n(t){return e.point(t[0],t[1],r)}},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){var t;return this.inf?e:e.inf?this:this.eq(e)?this.dbl():this.neg().eq(e)||0===this.x.cmp(e.x)?this.curve.point(null,null):(e=(t=0!==(t=this.y.redSub(e.y)).cmpn(0)?t.redMul(this.x.redSub(e.x).redInvm()):t).redSqr().redISub(this.x).redISub(e.x),t=t.redMul(this.x.redSub(e)).redISub(this.y),this.curve.point(e,t))},c.prototype.dbl=function(){var e,t,r;return this.inf?this:0===(r=this.y.redAdd(this.y)).cmpn(0)?this.curve.point(null,null):(t=this.curve.a,e=this.x.redSqr(),r=r.redInvm(),t=(e=e.redAdd(e).redIAdd(e).redIAdd(t).redMul(r)).redSqr().redISub(this.x.redAdd(this.x)),r=e.redMul(this.x.redSub(t)).redISub(this.y),this.curve.point(t,r))},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new n(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return t=[this,t],e=[e,r],this.curve.endo?this.curve._endoWnafMulAdd(t,e):this.curve._wnafMulAdd(1,t,e,2)},c.prototype.jmulAdd=function(e,t,r){return t=[this,t],e=[e,r],this.curve.endo?this.curve._endoWnafMulAdd(t,e,!0):this.curve._wnafMulAdd(1,t,e,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){var t,r;return this.inf?this:(t=this.curve.point(this.x,this.y.redNeg()),e&&this.precomputed&&(e=this.precomputed,r=function(e){return e.neg()},t.precomputed={naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}),t)},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(h,a.BasePoint),l.prototype.jpoint=function(e,t,r){return new h(this,e,t,r)},h.prototype.toP=function(){var e,t,r;return this.isInfinity()?this.curve.point(null,null):(r=(e=this.z.redInvm()).redSqr(),t=this.x.redMul(r),r=this.y.redMul(r).redMul(e),this.curve.point(t,r))},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(e){var t,r,i,n,s,a;return this.isInfinity()?e:e.isInfinity()?this:(t=e.z.redSqr(),s=this.z.redSqr(),a=this.x.redMul(t),r=e.x.redMul(s),t=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(s.redMul(this.z)),r=a.redSub(r),s=t.redSub(s),0===r.cmpn(0)?0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl():(i=(n=r.redSqr()).redMul(r),a=a.redMul(n),n=s.redSqr().redIAdd(i).redISub(a).redISub(a),s=s.redMul(a.redISub(n)).redISub(t.redMul(i)),a=this.z.redMul(e.z).redMul(r),this.curve.jpoint(n,s,a)))},h.prototype.mixedAdd=function(e){var t,r,i,n,s;return this.isInfinity()?e.toJ():e.isInfinity()?this:(r=this.z.redSqr(),s=this.x,n=e.x.redMul(r),t=this.y,e=e.y.redMul(r).redMul(this.z),r=s.redSub(n),n=t.redSub(e),0===r.cmpn(0)?0!==n.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl():(i=(e=r.redSqr()).redMul(r),s=s.redMul(e),e=n.redSqr().redIAdd(i).redISub(s).redISub(s),n=n.redMul(s.redISub(e)).redISub(t.redMul(i)),s=this.z.redMul(r),this.curve.jpoint(e,n,s)))},h.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var i=this.curve.a,n=this.curve.tinv,s=this.x,a=this.y,o=this.z,l=o.redSqr().redSqr(),c=a.redAdd(a);for(r=0;r<e;r++){var h=s.redSqr(),u=c.redSqr(),d=u.redSqr(),f=(h=h.redAdd(h).redIAdd(h).redIAdd(i.redMul(l)),u=s.redMul(u),h.redSqr().redISub(u.redAdd(u)));u=u.redISub(f),h=(h=h.redMul(u)).redIAdd(h).redISub(d),u=c.redMul(o);r+1<e&&(l=l.redMul(d)),s=f,o=u,c=h}return this.curve.jpoint(s,c.redMul(n),o)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},h.prototype._zeroDbl=function(){var e,t,r,i,n,s;return n=this.zOne?(e=this.x.redSqr(),r=(t=this.y.redSqr()).redSqr(),t=(t=this.x.redAdd(t).redSqr().redISub(e).redISub(r)).redIAdd(t),i=(e=e.redAdd(e).redIAdd(e)).redSqr().redISub(t).redISub(t),r=(r=(r=r.redIAdd(r)).redIAdd(r)).redIAdd(r),t=e.redMul(t.redISub(e=i)).redISub(r),this.y.redAdd(this.y)):(i=this.x.redSqr(),s=(r=this.y.redSqr()).redSqr(),r=(r=this.x.redAdd(r).redSqr().redISub(i).redISub(s)).redIAdd(r),n=(i=i.redAdd(i).redIAdd(i)).redSqr(),s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s),e=n.redISub(r).redISub(r),t=i.redMul(r.redISub(e)).redISub(s),(n=this.y.redMul(this.z)).redIAdd(n)),this.curve.jpoint(e,t,n)},h.prototype._threeDbl=function(){var e,t,r,i,n,s,a,o;return this.zOne?(t=this.x.redSqr(),n=(r=this.y.redSqr()).redSqr(),r=(r=this.x.redAdd(r).redSqr().redISub(t).redISub(n)).redIAdd(r),e=i=(t=t.redAdd(t).redIAdd(t).redIAdd(this.curve.a)).redSqr().redISub(r).redISub(r),n=(n=(n=n.redIAdd(n)).redIAdd(n)).redIAdd(n),t=t.redMul(r.redISub(i)).redISub(n),r=this.y.redAdd(this.y)):(i=this.z.redSqr(),n=this.y.redSqr(),a=this.x.redMul(n),s=(s=this.x.redSub(i).redMul(this.x.redAdd(i))).redAdd(s).redIAdd(s),o=(a=(a=a.redIAdd(a)).redIAdd(a)).redAdd(a),e=s.redSqr().redISub(o),r=this.y.redAdd(this.z).redSqr().redISub(n).redISub(i),o=(o=(o=(o=n.redSqr()).redIAdd(o)).redIAdd(o)).redIAdd(o),t=s.redMul(a.redISub(e)).redISub(o)),this.curve.jpoint(e,t,r)},h.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,i=this.z,n=i.redSqr().redSqr(),s=t.redSqr(),a=r.redSqr();s=s.redAdd(s).redIAdd(s).redIAdd(e.redMul(n)),e=t.redAdd(t),n=(e=e.redIAdd(e)).redMul(a),t=s.redSqr().redISub(n.redAdd(n)),e=n.redISub(t),n=(n=(n=(n=a.redSqr()).redIAdd(n)).redIAdd(n)).redIAdd(n),a=s.redMul(e).redISub(n),s=r.redAdd(r).redMul(i);return this.curve.jpoint(t,a,s)},h.prototype.trpl=function(){var e,t,r,i,n,s,a;return this.curve.zeroA?(t=this.x.redSqr(),n=this.y.redSqr(),e=this.z.redSqr(),a=n.redSqr(),s=(i=t.redAdd(t).redIAdd(t)).redSqr(),r=(t=(t=(t=(t=this.x.redAdd(n).redSqr().redISub(t).redISub(a)).redIAdd(t)).redAdd(t).redIAdd(t)).redISub(s)).redSqr(),a=(a=(a=(a=a.redIAdd(a)).redIAdd(a)).redIAdd(a)).redIAdd(a),i=i.redIAdd(t).redSqr().redISub(s).redISub(r).redISub(a),s=(s=(s=n.redMul(i)).redIAdd(s)).redIAdd(s),n=(n=(n=this.x.redMul(r).redISub(s)).redIAdd(n)).redIAdd(n),s=(s=(s=(s=this.y.redMul(i.redMul(a.redISub(i)).redISub(t.redMul(r)))).redIAdd(s)).redIAdd(s)).redIAdd(s),a=this.z.redAdd(t).redSqr().redISub(e).redISub(r),this.curve.jpoint(n,s,a)):this.dbl().add(this)},h.prototype.mul=function(e,t){return e=new n(e,t),this.curve._wnafMul(this,e)},h.prototype.eq=function(e){var t,r;return"affine"===e.type?this.eq(e.toJ()):this===e||(t=this.z.redSqr(),r=e.z.redSqr(),0===this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0)&&(t=t.redMul(this.z),r=r.redMul(e.z),0===this.y.redMul(r).redISub(e.y.redMul(t)).cmpn(0)))},h.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var i=e.clone(),n=this.curve.redN.redMul(t);;){if(i.iadd(this.curve.n),0<=i.cmp(this.curve.p))return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,t,r){"use strict";var i,n=r,s=(r=e("hash.js"),e("./curve")),a=e("./utils").assert;function o(e){"short"===e.type?this.curve=new s.short(e):"edwards"===e.type?this.curve=new s.edwards(e):this.curve=new s.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new o(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=e("./precomputed/secp256k1")}catch(e){i=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("hmac-drbg"),s=e("../utils"),a=e("../curves"),o=e("brorand"),l=s.assert,c=e("./key"),h=e("./signature");function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(l(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}(t.exports=u).prototype.keyPair=function(e){return new c(this,e)},u.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){for(var t=new n({hash:this.hash,pers:(e=e||{}).pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),s=this.n.sub(new i(2));;){var a=new i(t.generate(r));if(!(0<a.cmp(s)))return a.iaddn(1),this.keyFromPrivate(a)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return 0<r&&(e=e.ushrn(r)),!t&&0<=e.cmp(this.n)?e.sub(this.n):e},u.prototype.sign=function(e,t,r,s){"object"==typeof r&&(s=r,r=null),s=s||{},t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));r=this.n.byteLength();for(var a=t.getPrivate().toArray("be",r),o=(r=e.toArray("be",r),new n({hash:this.hash,entropy:a,nonce:r,pers:s.pers,persEnc:s.persEnc||"utf8"})),l=this.n.sub(new i(1)),c=0;;c++){var u=s.k?s.k(c):new i(o.generate(this.n.byteLength()));if(!((u=this._truncateToN(u,!0)).cmpn(1)<=0||0<=u.cmp(l))){var d=this.g.mul(u);if(!d.isInfinity()){var f=d.getX(),p=f.umod(this.n);if(0!==p.cmpn(0)&&(u=u.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e)),0!==(u=u.umod(this.n)).cmpn(0)))return d=(d.getY().isOdd()?1:0)|(0!==f.cmp(p)?2:0),s.canonical&&0<u.cmp(this.nh)&&(u=this.n.sub(u),d^=1),new h({r:p,s:u,recoveryParam:d})}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var s;n=(t=new h(t,"hex")).r,t=t.s;return!(n.cmpn(1)<0||0<=n.cmp(this.n)||t.cmpn(1)<0||0<=t.cmp(this.n))&&(e=(t=t.invm(this.n)).mul(e).umod(this.n),t=t.mul(n).umod(this.n),this.curve._maxwellTrick?!(s=this.g.jmulAdd(e,r.getPublic(),t)).isInfinity()&&s.eqXToP(n):!(s=this.g.mulAdd(e,r.getPublic(),t)).isInfinity()&&0===s.getX().umod(this.n).cmp(n))},u.prototype.recoverPubKey=function(e,t,r,n){l((3&r)===r,"The recovery param is more than two bits"),t=new h(t,n);n=this.n,e=new i(e);var s=t.r,a=t.s,o=1&r;r>>=1;if(0<=s.cmp(this.curve.p.umod(this.curve.n))&&r)throw new Error("Unable to find sencond key candinate");return s=r?this.curve.pointFromX(s.add(this.curve.n),o):this.curve.pointFromX(s,o),r=t.r.invm(n),o=n.sub(e).mul(r).umod(n),t=a.mul(r).umod(n),this.g.mulAdd(o,s,t)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new h(t,i)).recoveryParam)return t.recoveryParam;for(var n,s=0;s<4;s++){try{n=this.recoverPubKey(e,t,s)}catch(e){continue}if(n.eq(r))return s}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("../utils").assert;function s(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}(t.exports=s).fromPublic=function(e,t,r){return t instanceof s?t:new s(e,{pub:t,pubEnc:r})},s.fromPrivate=function(e,t,r){return t instanceof s?t:new s(e,{priv:t,privEnc:r})},s.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},s.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(e,t){e.x||e.y?("mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||n(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y)):this.pub=this.ec.curve.decodePoint(e,t)},s.prototype.derive=function(e){return e.validate()||n(e.validate(),"public point not validated"),e.mul(this.priv).getX()},s.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},s.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},s.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("../utils"),s=n.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(s(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function l(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0==i||4<i)return!1;for(var n=0,s=0,a=t.place;s<i;s++,a++)n=((n<<=8)|e[a])>>>0;return!(n<=127)&&(t.place=a,n)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function h(e,t){if(!(t<128)){var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255)}e.push(t)}(t.exports=a).prototype._importDER=function(e,t){if(e=n.toArray(e,t),t=new o,48!==e[t.place++])return!1;var r=l(e,t);if(!1===r)return!1;if(r+t.place!==e.length)return!1;if(2!==e[t.place++])return!1;if(r=l(e,t),!1===r)return!1;var s=e.slice(t.place,r+t.place);if(t.place+=r,2!==e[t.place++])return!1;if(r=l(e,t),!1===r)return!1;if(e.length!==r+t.place)return!1;if(e=e.slice(t.place,r+t.place),0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===e[0]){if(!(128&e[1]))return!1;e=e.slice(1)}return this.r=new i(s),this.s=new i(e),!(this.recoveryParam=null)},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var i=[2];h(i,t.length),(i=i.concat(t)).push(2),h(i,r.length),t=i.concat(r),i=[48];return h(i,t.length),i=i.concat(t),n.encode(i,e)}},{"../utils":419,"bn.js":420}],415:[function(e,t,r){"use strict";var i=e("hash.js"),n=e("../curves"),s=e("../utils"),a=s.assert,o=s.parseBytes,l=e("./key"),c=e("./signature");function h(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof h))return new h(e);e=n[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=i.sha512}(t.exports=h).prototype.sign=function(e,t){e=o(e);t=this.keyFromSecret(t);var r=this.hashInt(t.messagePrefix(),e),i=this.g.mul(r),n=this.encodePoint(i);e=this.hashInt(n,t.pubBytes(),e).mul(t.priv()),t=r.add(e).umod(this.curve.n);return this.makeSignature({R:i,S:t,Rencoded:n})},h.prototype.verify=function(e,t,r){e=o(e),t=this.makeSignature(t);r=this.keyFromPublic(r),e=this.hashInt(t.Rencoded(),r.pubBytes(),e);var i=this.g.mul(t.S());return t.R().add(r.pub().mul(e)).eq(i)},h.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return s.intFromLE(e.digest()).umod(this.curve.n)},h.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},h.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},h.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},h.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},h.prototype.decodePoint=function(e){var t=(e=s.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]);e=0!=(128&e[t]),t=s.intFromLE(r);return this.curve.pointFromY(t,e)},h.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},h.prototype.decodeInt=function(e){return s.intFromLE(e)},h.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,t,r){"use strict";var i=e("../utils"),n=i.assert,s=i.parseBytes;e=i.cachedProperty;function a(e,t){this.eddsa=e,this._secret=s(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=s(t.pub)}a.fromPublic=function(e,t){return t instanceof a?t:new a(e,{pub:t})},a.fromSecret=function(e,t){return t instanceof a?t:new a(e,{secret:t})},a.prototype.secret=function(){return this._secret},e(a,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),e(a,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),e(a,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1;t=t.slice(0,e.encodingLength);return t[0]&=248,t[r]&=127,t[r]|=64,t})),e(a,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),e(a,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),e(a,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),a.prototype.sign=function(e){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a.prototype.getSecret=function(e){return n(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},a.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},t.exports=a},{"../utils":419}],417:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("../utils"),s=n.assert,a=(e=n.cachedProperty,n.parseBytes);function o(e,t){this.eddsa=e,"object"!=typeof t&&(t=a(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),s(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}e(o,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),e(o,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),e(o,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),e(o,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),o.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},o.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},t.exports=o},{"../utils":419,"bn.js":420}],418:[function(e,t,r){"use strict";t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(e,t,r){"use strict";var i=r,n=e("bn.js");r=e("minimalistic-assert"),e=e("minimalistic-crypto-utils");i.assert=r,i.toArray=e.toArray,i.zero2=e.zero2,i.toHex=e.toHex,i.encode=e.encode,i.getNAF=function(e,t,r){var i=new Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<<t+1,s=e.clone(),a=0;a<i.length;a++){var o,l=s.andln(n-1);s.isOdd()?s.isubn(o=(n>>1)-1<l?(n>>1)-l:l):o=0,i[a]=o,s.iushrn(1)}return i},i.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i,n=0,s=0;0<e.cmpn(-n)||0<t.cmpn(-s);){var a,o=e.andln(3)+n&3,l=t.andln(3)+s&3;3===l&&(l=-1),a=0==(1&(o=3===o?-1:o))?0:3!=(i=e.andln(7)+n&7)&&5!==i||2!==l?o:-o,r[0].push(a),o=0==(1&l)?0:3!=(i=t.andln(7)+s&7)&&5!==i||2!==o?l:-l,r[1].push(o),2*n===a+1&&(n=1-n),2*s===o+1&&(s=1-s),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=function(e){return"string"==typeof e?i.toArray(e,"hex"):e},i.intFromLE=function(e){return new n(e,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],421:[function(e,t,r){t.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(e,t,r){"use strict";var i=Object.create||function(e){function t(){}return t.prototype=e,new t},n=Object.keys||function(e){var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return t},s=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function a(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=i(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((t.exports=a).EventEmitter=a).prototype._events=void 0,a.prototype._maxListeners=void 0;var o,l=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),o=0===c.x}catch(e){o=!1}function h(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var s,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');return(s=e._events)?(s.newListener&&(e.emit("newListener",t,r.listener||r),s=e._events),a=s[t]):(s=e._events=i(null),e._eventsCount=0),a?("function"==typeof a?a=s[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(n=h(e))&&0<n&&a.length>n&&(a.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.')).name="MaxListenersExceededWarning",n.emitter=e,n.type=t,n.count=a.length)):(a=s[t]=r,++e._eventsCount),e}function d(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function f(e,t,r){return e={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},t=s.call(d,e),t.listener=r,e.wrapFn=t}function p(e,t,r){if(e=e._events,e&&(e=e[t],e)){if("function"==typeof e)return r?[e.listener||e]:[e];if(r){for(var i=e,n=new Array(i.length),s=0;s<n.length;++s)n[s]=i[s].listener||i[s];return n}return b(e,e.length)}return[]}function m(e){var t=this._events;if(t){if(t=t[e],"function"==typeof t)return 1;if(t)return t.length}return 0}function b(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}o?Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');l=e}}):a.defaultMaxListeners=l,a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return h(this)},a.prototype.emit=function(e){var t,r,i,n,s,a,o="error"===e;if(a=this._events)o=o&&null==a.error;else if(!o)return!1;if(o){if((t=1<arguments.length?arguments[1]:t)instanceof Error)throw t;throw o=new Error('Unhandled "error" event. ('+t+")"),o.context=t,o}if(!(r=a[e]))return!1;var l="function"==typeof r;switch(i=arguments.length){case 1:var c=r,h=l,u=this;if(h)c.call(u);else for(var d=c.length,f=b(c,d),p=0;p<d;++p)f[p].call(u);break;case 2:h=r,c=l;var m=this,g=arguments[1];if(c)h.call(m,g);else for(var y=h.length,v=b(h,y),w=0;w<y;++w)v[w].call(m,g);break;case 3:var _=r,x=l,k=this,S=arguments[1],C=arguments[2];if(x)_.call(k,S,C);else for(var T=_.length,E=b(_,T),M=0;M<T;++M)E[M].call(k,S,C);break;case 4:x=r,_=l;var A=this,O=arguments[1],j=arguments[2],I=arguments[3];if(_)x.call(A,O,j,I);else for(var R=x.length,N=b(x,R),P=0;P<R;++P)N[P].call(A,O,j,I);break;default:for(n=new Array(i-1),s=1;s<i;s++)n[s-1]=arguments[s];var D=r,B=l,F=this,L=n;if(B)D.apply(F,L);else for(var z=D.length,$=b(D,z),U=0;U<z;++U)$[U].apply(F,L)}return!0},a.prototype.on=a.prototype.addListener=function(e,t){return u(this,e,t,!1)},a.prototype.prependListener=function(e,t){return u(this,e,t,!0)},a.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,f(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,f(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,s,a,o;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if((n=this._events)&&(r=n[e]))if(r===t||r.listener===t)0==--this._eventsCount?this._events=i(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(s=-1,a=r.length-1;0<=a;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,s=a;break}if(s<0)return this;if(0===s)r.shift();else{for(var l=r,c=s,h=c+1,u=l.length;h<u;c+=1,h+=1)l[c]=l[h];l.pop()}1===r.length&&(n[e]=r[0]),n.removeListener&&this.emit("removeListener",e,o||t)}return this},a.prototype.removeAllListeners=function(e){var t,r;if(r=this._events)if(r.removeListener){if(0===arguments.length){for(var s,a=n(r),o=0;o<a.length;++o)"removeListener"!==(s=a[o])&&this.removeAllListeners(s);this.removeAllListeners("removeListener"),this._events=i(null),this._eventsCount=0}else if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)for(o=t.length-1;0<=o;o--)this.removeListener(e,t[o])}else 0===arguments.length?(this._events=i(null),this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=i(null):delete r[e]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,n=e("md5.js");t.exports=function(e,t,r,s){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&8!==(t=i.isBuffer(t)?t:i.from(t,"binary")).length)throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,o=i.alloc(a),l=i.alloc(s||0),c=i.alloc(0);0<a||0<s;){var h,u,d=new n;d=(d.update(c),d.update(e),t&&d.update(t),c=d.digest(),0);0<a&&(h=o.length-a,d=Math.min(a,c.length),c.copy(o,h,0,d),a-=d),d<c.length&&0<s&&(h=l.length-s,u=Math.min(s,c.length-d),c.copy(l,h,d,d+u),s-=u)}return c.fill(0),{key:o,iv:l}}},{"md5.js":450,"safe-buffer":494}],424:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CsvParserStream=r.ParserOptions=r.parseFile=r.parseStream=r.parseString=r.parse=r.FormatterOptions=r.CsvFormatterStream=r.writeToPath=r.writeToString=r.writeToBuffer=r.writeToStream=r.write=r.format=void 0;var i=e("@fast-csv/format"),n=(Object.defineProperty(r,"format",{enumerable:!0,get:function(){return i.format}}),Object.defineProperty(r,"write",{enumerable:!0,get:function(){return i.write}}),Object.defineProperty(r,"writeToStream",{enumerable:!0,get:function(){return i.writeToStream}}),Object.defineProperty(r,"writeToBuffer",{enumerable:!0,get:function(){return i.writeToBuffer}}),Object.defineProperty(r,"writeToString",{enumerable:!0,get:function(){return i.writeToString}}),Object.defineProperty(r,"writeToPath",{enumerable:!0,get:function(){return i.writeToPath}}),Object.defineProperty(r,"CsvFormatterStream",{enumerable:!0,get:function(){return i.CsvFormatterStream}}),Object.defineProperty(r,"FormatterOptions",{enumerable:!0,get:function(){return i.FormatterOptions}}),e("@fast-csv/parse"));Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return n.parse}}),Object.defineProperty(r,"parseString",{enumerable:!0,get:function(){return n.parseString}}),Object.defineProperty(r,"parseStream",{enumerable:!0,get:function(){return n.parseStream}}),Object.defineProperty(r,"parseFile",{enumerable:!0,get:function(){return n.parseFile}}),Object.defineProperty(r,"ParserOptions",{enumerable:!0,get:function(){return n.ParserOptions}}),Object.defineProperty(r,"CsvParserStream",{enumerable:!0,get:function(){return n.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,n=e("readable-stream").Transform;function s(e){n.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(s,n),s.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(e){i=e}r(i)},s.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},s.prototype.update=function(e,t){var r=e;if(!i.isBuffer(r)&&"string"!=typeof r)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");i.isBuffer(e)||(e=i.from(e,t));for(var n=this._block,s=0;this._blockOffset+e.length-s>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=e[s++];this._update(),this._blockOffset=0}for(;s<e.length;)n[this._blockOffset++]=e[s++];for(var o=0,l=8*e.length;0<l;++o)this._length[o]+=l,0<(l=this._length[o]/4294967296|0)&&(this._length[o]-=4294967296*l);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0);for(var r=this._blockOffset=0;r<4;++r)this._length[r]=0;return t},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,t,r){"use strict";r.utils=e("./hash/utils"),r.common=e("./hash/common"),r.sha=e("./hash/sha"),r.ripemd=e("./hash/ripemd"),r.hmac=e("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,t,r){"use strict";var i=e("./utils"),n=e("minimalistic-assert");function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}(r.BlockHash=s).prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){t=(e=this.pending).length%this._delta8,this.pending=e.slice(e.length-t,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-t,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},s.prototype.digest=function(e){return this.update(this._pad()),n(null===this.pending),this._digest(e)},s.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,i=new Array(r+this.padLength);i[0]=128;for(var n=1;n<r;n++)i[n]=0;if(e<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)i[n++]=0;i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=e>>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,s=8;s<this.padLength;s++)i[n++]=0;return i}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,t,r){"use strict";var i=e("./utils"),n=e("minimalistic-assert");function s(e,t,r){if(!(this instanceof s))return new s(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(t,r))}(t.exports=s).prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},s.prototype.update=function(e,t){return this.inner.update(e,t),this},s.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,t,r){"use strict";var i=e("./utils"),n=(e=e("./common"),i.rotl32),s=i.sum32,a=i.sum32_3,o=i.sum32_4,l=e.BlockHash;function c(){if(!(this instanceof c))return new c;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(e,t,r,i){return e<=15?t^r^i:e<=31?t&r|~t&i:e<=47?(t|~r)^i:e<=63?t&i|r&~i:t^(r|~i)}i.inherits(c,l),(r.ripemd160=c).blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r,i=v=this.h[0],l=k=this.h[1],c=x=this.h[2],m=_=this.h[3],b=w=this.h[4],g=0;g<80;g++){var y=s(n(o(v,h(g,k,x,_),e[u[g]+t],(r=g)<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838),f[g]),w),v=w,w=_,_=n(x,10),x=k,k=y;y=s(n(o(i,h(79-g,l,c,m),e[d[g]+t],(r=g)<=15?1352829926:r<=31?1548603684:r<=47?1836072691:r<=63?2053994217:0),p[g]),b),i=b,b=m,m=n(c,10),c=l,l=y}y=a(this.h[1],x,m),this.h[1]=a(this.h[2],_,b),this.h[2]=a(this.h[3],w,i),this.h[3]=a(this.h[4],v,l),this.h[4]=a(this.h[0],k,c),this.h[0]=y},c.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var u=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],d=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],p=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(e,t,r){"use strict";r.sha1=e("./sha/1"),r.sha224=e("./sha/224"),r.sha256=e("./sha/256"),r.sha384=e("./sha/384"),r.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,t,r){"use strict";var i=e("../utils"),n=e("../common"),s=(e=e("./common"),i.rotl32),a=i.sum32,o=i.sum32_5,l=e.ft_1,c=n.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(u,c),(t.exports=u).blockSize=512,u.outSize=160,u.hmacStrength=80,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=s(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var n=this.h[0],c=this.h[1],u=this.h[2],d=this.h[3],f=this.h[4];for(i=0;i<r.length;i++){var p=~~(i/20);p=o(s(n,5),l(p,c,u,d),f,r[i],h[p]),f=d,d=u,u=s(c,30),c=n,n=p}this.h[0]=a(this.h[0],n),this.h[1]=a(this.h[1],c),this.h[2]=a(this.h[2],u),this.h[3]=a(this.h[3],d),this.h[4]=a(this.h[4],f)},u.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,t,r){"use strict";var i=e("../utils"),n=e("./256");function s(){if(!(this instanceof s))return new s;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(s,n),(t.exports=s).blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,t,r){"use strict";var i=e("../utils"),n=e("../common"),s=e("./common"),a=e("minimalistic-assert"),o=i.sum32,l=i.sum32_4,c=i.sum32_5,h=s.ch32,u=s.maj32,d=s.s0_256,f=s.s1_256,p=s.g0_256,m=s.g1_256,b=n.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(y,b),(t.exports=y).blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=l(m(r[i-2]),r[i-7],p(r[i-15]),r[i-16]);var n=this.h[0],s=this.h[1],b=this.h[2],g=this.h[3],y=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===r.length),i=0;i<r.length;i++){var x=c(_,f(y),h(y,v,w),this.k[i],r[i]),k=o(d(n),u(n,s,b));_=w,w=v,v=y,y=o(g,x),g=b,b=s,s=n,n=o(x,k)}this.h[0]=o(this.h[0],n),this.h[1]=o(this.h[1],s),this.h[2]=o(this.h[2],b),this.h[3]=o(this.h[3],g),this.h[4]=o(this.h[4],y),this.h[5]=o(this.h[5],v),this.h[6]=o(this.h[6],w),this.h[7]=o(this.h[7],_)},y.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,t,r){"use strict";var i=e("../utils"),n=e("./512");function s(){if(!(this instanceof s))return new s;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(s,n),(t.exports=s).blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,t,r){"use strict";var i=e("../utils"),n=e("../common"),s=e("minimalistic-assert"),a=i.rotr64_hi,o=i.rotr64_lo,l=i.shr64_hi,c=i.shr64_lo,h=i.sum64,u=i.sum64_hi,d=i.sum64_lo,f=i.sum64_4_hi,p=i.sum64_4_lo,m=i.sum64_5_hi,b=i.sum64_5_lo,g=n.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}i.inherits(v,g),(t.exports=v).blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,i=0;i<32;i++)r[i]=e[t+i];for(;i<r.length;i+=2){h=r[i-4],n=r[i-3],(h=a(h,n,19)^a(n,h,29)^l(h,n,6))<0&&(h+=4294967296);var n=h,s=(h=r[i-4],s=r[i-3],(h=o(h,s,19)^o(s,h,29)^c(h,s,6))<0&&(h+=4294967296),h),h=r[i-14],u=r[i-13],d=(b=r[i-30],d=r[i-29],(b=a(b,d,1)^a(b,d,8)^l(b,d,7))<0&&(b+=4294967296),b),m=(b=r[i-30],m=r[i-29],(b=o(b,m,1)^o(b,m,8)^c(b,m,7))<0&&(b+=4294967296),b),b=r[i-32],g=r[i-31];r[i]=f(n,s,h,u,d,m,b,g),r[i+1]=p(n,s,h,u,d,m,b,g)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,i=this.h[0],n=this.h[1],l=this.h[2],c=this.h[3],f=this.h[4],p=this.h[5],g=this.h[6],y=this.h[7],v=this.h[8],w=this.h[9],_=this.h[10],x=this.h[11],k=this.h[12],S=this.h[13],C=this.h[14],T=this.h[15];s(this.k.length===r.length);for(var E=0;E<r.length;E+=2){var M,A=C,O=T,j=((I=a(j=v,I=w,14)^a(j,I,18)^a(I,j,9))<0&&(I+=4294967296),I),I=((F=o(I=v,F=w,14)^o(I,F,18)^o(F,I,9))<0&&(F+=4294967296),F),R=((F=v&(F=_)^~v&k)<0&&(F+=4294967296),(M=w&(M=x)^~w&S)<0&&(M+=4294967296),this.k[E]),N=this.k[E+1],P=r[E],D=r[E+1],B=m(A,O,j,I,F,M,R,N,P,D),F=b(A,O,j,I,F,M,R,N,P,D);R=((R=a(M=i,R=n,28)^a(R,M,2)^a(R,M,7))<0&&(R+=4294967296),A=R,(P=o(N=i,P=n,28)^o(P,N,2)^o(P,N,7))<0&&(P+=4294967296),(D=(D=i)&l^D&f^l&f)<0&&(D+=4294967296),(M=(M=n)&c^M&p^c&p)<0&&(M+=4294967296),u(A,O=P,j=D,I=M)),N=d(A,O,j,I),C=k,T=S,k=_,S=x,_=v,x=w,v=u(g,y,B,F),w=d(y,y,B,F),g=f,y=p,f=l,p=c,l=i,c=n,i=u(B,F,R,N),n=d(B,F,R,N)}h(this.h,0,i,n),h(this.h,2,l,c),h(this.h,4,f,p),h(this.h,6,g,y),h(this.h,8,v,w),h(this.h,10,_,x),h(this.h,12,k,S),h(this.h,14,C,T)},v.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,t,r){"use strict";var i=e("../utils").rotr32;function n(e,t,r){return e&t^~e&r}function s(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}r.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?t^r^i:2===e?s(t,r,i):void 0},r.ch32=n,r.maj32=s,r.p32=a,r.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},r.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},r.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},r.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},{"../utils":437}],437:[function(e,t,r){"use strict";var i=e("minimalistic-assert");e=e("inherits");function n(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function a(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.inherits=e,r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r,i,n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a<e.length;a+=2)n.push(parseInt(e[a]+e[a+1],16))}else for(var s=0,a=0;a<e.length;a++){var o=e.charCodeAt(a);o<128?n[s++]=o:o<2048?(n[s++]=o>>6|192,n[s++]=63&o|128):(i=a,55296!=(64512&(r=e).charCodeAt(i))||i<0||i+1>=r.length||56320!=(64512&r.charCodeAt(i+1))?n[s++]=o>>12|224:(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),n[s++]=o>>18|240,n[s++]=o>>12&63|128),n[s++]=o>>6&63|128,n[s++]=63&o|128)}else for(a=0;a<e.length;a++)n[a]=0|e[a];return n},r.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},r.htonl=n,r.toHex32=function(e,t){for(var r="",i=0;i<e.length;i++){var s=e[i];r+=a((s="little"===t?n(s):s).toString(16))}return r},r.zero2=s,r.zero8=a,r.join32=function(e,t,r,n){r-=t,i(r%4==0);for(var s=new Array(r/4),a=0,o=t;a<s.length;a++,o+=4){var l="big"===n?e[o]<<24|e[o+1]<<16|e[o+2]<<8|e[o+3]:e[o+3]<<24|e[o+2]<<16|e[o+1]<<8|e[o];s[a]=l>>>0}return s},r.split32=function(e,t){for(var r=new Array(4*e.length),i=0,n=0;i<e.length;i++,n+=4){var s=e[i];"big"===t?(r[n]=s>>>24,r[n+1]=s>>>16&255,r[n+2]=s>>>8&255,r[n+3]=255&s):(r[n+3]=s>>>24,r[n+2]=s>>>16&255,r[n+1]=s>>>8&255,r[n]=255&s)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<<t|e>>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},r.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},r.sum64=function(e,t,r,i){var n=e[t],s=i+e[t+1]>>>0;e[t]=(s<i?1:0)+r+n>>>0,e[t+1]=s},r.sum64_hi=function(e,t,r,i){return(t+i>>>0<t?1:0)+e+r>>>0},r.sum64_lo=function(e,t,r,i){return t+i>>>0},r.sum64_4_hi=function(e,t,r,i,n,s,a,o){var l=0;return e+r+n+a+((l=l+((e=t+i>>>0)<t?1:0)+((e=e+s>>>0)<s?1:0))+(e+o>>>0<o?1:0))>>>0},r.sum64_4_lo=function(e,t,r,i,n,s,a,o){return t+i+s+o>>>0},r.sum64_5_hi=function(e,t,r,i,n,s,a,o,l,c){var h=0;return e+r+n+a+l+((h=(h+=(e=t+i>>>0)<t?1:0)+((e=e+s>>>0)<s?1:0)+((e=e+o>>>0)<o?1:0))+(e+c>>>0<c?1:0))>>>0},r.sum64_5_lo=function(e,t,r,i,n,s,a,o,l,c){return t+i+s+o+c>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(e,t,r){"use strict";var i=e("hash.js"),n=e("minimalistic-crypto-utils"),s=e("minimalistic-assert");function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex");e=n.toArray(e.pers,e.persEnc||"hex");s(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,e)}(t.exports=a).prototype._init=function(e,t,r){e=e.concat(t).concat(r),this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(e),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,i){"string"!=typeof t&&(i=r,r=t,t=null),e=n.toArray(e,t),r=n.toArray(r,i),s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var s=[];s.length<e;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);return i=s.slice(0,e),this._update(r),this._reseed++,n.encode(i,t)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,t,r){"use strict";
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */r.read=function(e,t,r,i,n){var s,a,o=8*n-i-1,l=(1<<o)-1,c=l>>1,h=-7,u=r?n-1:0,d=r?-1:1;n=e[t+u];for(u+=d,s=n&(1<<-h)-1,n>>=-h,h+=o;0<h;s=256*s+e[t+u],u+=d,h-=8);for(a=s&(1<<-h)-1,s>>=-h,h+=i;0<h;a=256*a+e[t+u],u+=d,h-=8);if(0===s)s=1-c;else{if(s===l)return a?NaN:1/0*(n?-1:1);a+=Math.pow(2,i),s-=c}return(n?-1:1)*a*Math.pow(2,s-i)},r.write=function(e,t,r,i,n,s){var a,o,l=8*s-n-1,c=(1<<l)-1,h=c>>1,u=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:s-1,f=i?1:-1;s=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(i=Math.pow(2,-a))<1&&(a--,i*=2),2<=(t+=1<=a+h?u/i:u*Math.pow(2,1-h))*i&&(a++,i/=2),c<=a+h?(o=0,a=c):1<=a+h?(o=(t*i-1)*Math.pow(2,n),a+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));8<=n;e[r+d]=255&o,d+=f,o/=256,n-=8);for(a=a<<n|o,l+=n;0<l;e[r+d]=255&a,d+=f,a/=256,l-=8);e[r+d-f]|=128*s}},{}],440:[function(e,t,r){"use strict";"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){var r;t&&(e.super_=t,(r=function(){}).prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e)}},{}],441:[function(e,r,i){(function(t,n,s,a,o,l,c,h){(function(){"use strict";
- /*!
- JSZip v3.10.1 - A JavaScript class for generating and reading zip files
- <http://stuartk.com/jszip>
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
- JSZip uses the library pako released under the MIT license :
- https://github.com/nodeca/pako/blob/main/LICENSE
- */!function(e){"object"==typeof i&&void 0!==r?r.exports=e():("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function t(r,i,n){function s(o,l){if(!i[o]){if(!r[o]){var c="function"==typeof e&&e;if(!l&&c)return c(o,!0);if(a)return a(o,!0);throw l=new Error("Cannot find module '"+o+"'"),l.code="MODULE_NOT_FOUND",l}c=i[o]={exports:{}},r[o][0].call(c.exports,(function(e){return s(r[o][1][e]||e)}),c,c.exports,t,r,i,n)}return i[o].exports}for(var a="function"==typeof e&&e,o=0;o<n.length;o++)s(n[o]);return s}({1:[function(e,t,r){var i=e("./utils"),n=e("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,n,a,o,l,c=[],h=0,u=e.length,d="string"!==i.getTypeOf(e);h<e.length;)l=u-h,n=d?(t=e[h++],r=h<u?e[h++]:0,h<u?e[h++]:0):(t=e.charCodeAt(h++),r=h<u?e.charCodeAt(h++):0,h<u?e.charCodeAt(h++):0),a=(3&t)<<4|r>>4,o=1<l?(15&r)<<2|n>>6:64,l=2<l?63&n:64,c.push(s.charAt(t>>2)+s.charAt(a)+s.charAt(o)+s.charAt(l));return c.join("")},r.decode=function(e){var t,r,i,a,o,l=0,c=0;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var h,u=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===s.charAt(64)&&u--,e.charAt(e.length-2)===s.charAt(64)&&u--,u%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=new(n.uint8array?Uint8Array:Array)(0|u);l<e.length;)t=s.indexOf(e.charAt(l++))<<2|(a=s.indexOf(e.charAt(l++)))>>4,r=(15&a)<<4|(a=s.indexOf(e.charAt(l++)))>>2,i=(3&a)<<6|(o=s.indexOf(e.charAt(l++))),h[c++]=t,64!==a&&(h[c++]=r),64!==o&&(h[c++]=i);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){var i=e("./external"),n=e("./stream/DataWorker"),s=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function o(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n}o.prototype={getContentWorker:function(){var e=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new s).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var i=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var i=e("./utils"),n=function(){for(var e=[],t=0;t<256;t++){for(var r=t,i=0;i<8;i++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e}();t.exports=function(e,t){return void 0!==e&&e.length?("string"!==i.getTypeOf(e)?function(e,t,r){var i=n,s=0+r;e^=-1;for(var a=0;a<s;a++)e=e>>>8^i[255&(e^t[a])];return-1^e}:function(e,t,r){var i=n,s=0+r;e^=-1;for(var a=0;a<s;a++)e=e>>>8^i[255&(e^t.charCodeAt(a))];return-1^e})(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){e="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:e}},{lie:37}],7:[function(e,t,r){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=e("pako"),s=e("./utils"),a=e("./stream/GenericWorker"),o=i?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",s.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function i(e,t){for(var r="",i=0;i<t;i++)r+=String.fromCharCode(255&e),e>>>=8;return r}function n(e,t,r,n,a,h){var u=e.file,d=e.compression,f=h!==o.utf8encode,p=s.transformTo("string",h(u.name)),m=s.transformTo("string",o.utf8encode(u.name)),b=u.comment,g=(h=s.transformTo("string",h(b)),s.transformTo("string",o.utf8encode(b))),y=m.length!==u.name.length,v=(b=g.length!==b.length,""),w=u.dir,_=u.date,x={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(x.crc32=e.crc32,x.compressedSize=e.compressedSize,x.uncompressedSize=e.uncompressedSize),r=0,t&&(r|=8),f||!y&&!b||(r|=2048),e=0,t=0,w&&(e|=16),"UNIX"===a?(t=798,e|=(65535&((f=u.unixPermissions)?f:w?16893:33204))<<16):(t=20,e|=63&(u.dosPermissions||0)),a=_.getUTCHours(),a=(a=((a<<=6)|_.getUTCMinutes())<<5)|_.getUTCSeconds()/2,f=_.getUTCFullYear()-1980,f=(f=((f<<=4)|_.getUTCMonth()+1)<<5)|_.getUTCDate(),y&&(w=i(1,1)+i(l(p),4)+m,v+="up"+i(w.length,2)+w),b&&(u=i(1,1)+i(l(h),4)+g,v+="uc"+i(u.length,2)+u),_="",_=(_=(_=(_=(_=(_=(_=(_=(_=(_+="\n\0")+i(r,2))+d.magic)+i(a,2))+i(f,2))+i(x.crc32,4))+i(x.compressedSize,4))+i(x.uncompressedSize,4))+i(p.length,2))+i(v.length,2);return{fileRecord:c.LOCAL_FILE_HEADER+_+p+v,dirRecord:c.CENTRAL_FILE_HEADER+i(t,2)+_+i(h.length,2)+"\0\0\0\0"+i(e,4)+i(n,4)+p+v+h}}var s=e("../utils"),a=e("../stream/GenericWorker"),o=e("../utf8"),l=e("../crc32"),c=e("../signature");function h(e,t,r,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(h,a),h.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))},h.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;t?(e=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:e.fileRecord,meta:{percent:0}})):this.accumulate=!0},h.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:(t=e,c.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e;r=function(e,t,r,n,a){return a=s.transformTo("string",a(n)),c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(r,4)+i(a.length,2)+a}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},h.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},h.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var i=e("../compressions"),n=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var s=new n(t.streamFiles,r,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,r){a++;var n=function(e,t){if(e=e||t,t=i[e],t)return t;throw new Error(e+" is not a valid compression method !")}(r.options.compression,t.compression),o=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,c=r.date;r._compressWorker(n,o).withStreamInfo("file",{name:e,dir:l,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(s)})),s.entriesCount=a}catch(e){s.error(e)}return s}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e,t=new i;for(e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.10.1",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=e("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var i=e("./utils"),n=e("./external"),s=e("./utf8"),a=e("./zipEntries"),o=e("./stream/Crc32Probe"),l=e("./nodejsUtils");t.exports=function(e,t){var r=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),l.isNode&&l.isStream(e)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new a(t);return r.load(e),r})).then((function(e){var r=[n.Promise.resolve(e)],i=e.files;if(t.checkCRC32)for(var s=0;s<i.length;s++)r.push(function(e){return new n.Promise((function(t,r){var i=e.decompressed.getContentWorker().pipe(new o);i.on("error",(function(e){r(e)})).on("end",(function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}(i[s]));return n.Promise.all(r)})).then((function(e){e=e.shift();for(var n=e.files,s=0;s<n.length;s++){var a=n[s],o=a.fileNameStr,l=i.resolve(a.fileNameStr);r.file(l,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders}),a.dir||(r.file(l).unsafeOriginalName=o)}return e.zipComment.length&&(r.comment=e.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var i=e("../utils"),n=e("../stream/GenericWorker");function s(e,t){n.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}i.inherits(s,n),s.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},s.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var i=e("readable-stream").Readable;function n(e,t,r){i.call(this,t),this._helper=e;var n=this;e.on("data",(function(e,t){n.push(e)||n._helper.pause(),r&&r(t)})).on("error",(function(e){n.emit("error",e)})).on("end",(function(){n.push(null)}))}e("../utils").inherits(n,i),n.prototype._read=function(){this._helper.resume()},t.exports=n},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:void 0!==s,newBufferFrom:function(e,t){if(s.from&&s.from!==Uint8Array.from)return s.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new s(e,t)},allocBuffer:function(e){return s.alloc?s.alloc(e):((e=new s(e)).fill(0),e)},isBuffer:function(e){return s.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function i(e,t,r){var i=o.getTypeOf(t),a=o.extend(r||{},h),c=(a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(e=b(e)),a.createFolders&&(c=n(e))&&s.call(this,c,!0),"string"===i&&!1===a.binary&&!1===a.base64);r&&void 0!==r.binary||(a.binary=!c),(t instanceof u&&0===t.uncompressedSize||a.dir||!t||0===t.length)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE"),i=t instanceof u||t instanceof l?t:p.isNode&&p.isStream(t)?new m(e,t):o.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64),r=new d(e,i,a);this.files[e]=r}function n(e){var t=(e="/"===e.slice(-1)?e.substring(0,e.length-1):e).lastIndexOf("/");return 0<t?e.substring(0,t):""}function s(e,t){return t=void 0!==t?t:h.createFolders,e=b(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]}var a=e("./utf8"),o=e("./utils"),l=e("./stream/GenericWorker"),c=e("./stream/StreamHelper"),h=e("./defaults"),u=e("./compressedObject"),d=e("./zipObject"),f=e("./generate"),p=e("./nodejsUtils"),m=e("./nodejs/NodejsStreamInputAdapter"),b=function(e){return"/"!==e.slice(-1)&&(e+="/"),e};function g(e){return"[object RegExp]"===Object.prototype.toString.call(e)}t.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,i;for(t in this.files)i=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,i)},filter:function(e){var t=[];return this.forEach((function(r,i){e(r,i)&&t.push(i)})),t},file:function(e,t,r){var n;return 1!==arguments.length?(e=this.root+e,i.call(this,e,t,r),this):g(e)?(n=e,this.filter((function(e,t){return!t.dir&&n.test(e)}))):(t=this.files[this.root+e])&&!t.dir?t:null},folder:function(e){var t,r;return e?g(e)?this.filter((function(t,r){return r.dir&&e.test(t)})):(t=this.root+e,t=s.call(this,t),(r=this.clone()).root=t.name,r):this},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),i=0;i<r.length;i++)delete this.files[r[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t={};try{if((t=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=t.type.toLowerCase(),t.compression=t.compression.toUpperCase(),"binarystring"===t.type&&(t.type="string"),!t.type)throw new Error("No output type specified.");o.checkSupport(t.type),"darwin"!==t.platform&&"freebsd"!==t.platform&&"linux"!==t.platform&&"sunos"!==t.platform||(t.platform="UNIX"),"win32"===t.platform&&(t.platform="DOS");var r=t.comment||this.comment||"",i=f.generateWorker(this,t,r)}catch(e){(i=new l("error")).error(e)}return new c(i,t.type||"string",t.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var i=e("./DataReader");function n(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(n,i),n.prototype.byteAt=function(e){return this.data[this.zero+e]},n.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===t&&this.data[s+1]===r&&this.data[s+2]===i&&this.data[s+3]===n)return s-this.zero;return-1},n.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=(e=e.charCodeAt(3),this.readData(4));return t===n[0]&&r===n[1]&&i===n[2]&&e===n[3]},n.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?[]:(t=this.data.slice(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)},t.exports=n},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var i=e("../utils");function n(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}n.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=n},{"../utils":32}],19:[function(e,t,r){var i=e("./Uint8ArrayReader");function n(e){i.call(this,e)}e("../utils").inherits(n,i),n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var i=e("./DataReader");function n(e){i.call(this,e)}e("../utils").inherits(n,i),n.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},n.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},n.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var i=e("./ArrayReader");function n(e){i.call(this,e)}e("../utils").inherits(n,i),n.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?new Uint8Array(0):(t=this.data.subarray(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)},t.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var i=e("../utils"),n=e("../support"),s=e("./ArrayReader"),a=e("./StringReader"),o=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=i.getTypeOf(e);return i.checkSupport(t),"string"!==t||n.uint8array?"nodebuffer"===t?new o(e):n.uint8array?new l(i.transformTo("uint8array",e)):new s(i.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){var i=e("./GenericWorker"),n=e("../utils");function s(e){i.call(this,"ConvertWorker to "+e),this.destType=e}n.inherits(s,i),s.prototype.processChunk=function(e){this.push({data:n.transformTo(this.destType,e.data),meta:e.meta})},t.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var i=e("./GenericWorker"),n=e("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(s,i),s.prototype.processChunk=function(e){this.streamInfo.crc32=n(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var i=e("../utils"),n=e("./GenericWorker");function s(e){n.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(s,n),s.prototype.processChunk=function(e){var t;e&&(t=this.streamInfo[this.propName]||0,this.streamInfo[this.propName]=t+e.data.length),n.prototype.processChunk.call(this,e)},t.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var i=e("../utils"),n=e("./GenericWorker");function s(e){n.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}i.inherits(s,n),s.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished)||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0)},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function i(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){var e;return!(!this.isPaused||this.isFinished||(e=this.isPaused=!1,this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),e))},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=i},{}],29:[function(e,t,r){var i=e("../utils"),n=e("./ConvertWorker"),a=e("./GenericWorker"),o=e("../base64"),l=e("../support"),c=e("../external"),h=null;if(l.nodestream)try{h=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,t,r){var s=t;switch(t){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=t,this._mimeType=r,i.checkSupport(s),this._worker=e.pipe(new n(s)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}u.prototype={accumulate:function(e){return t=this,r=e,new c.Promise((function(e,n){var a=[],l=t._internalType,c=t._outputType,h=t._mimeType;t.on("data",(function(e,t){a.push(e),r&&r(t)})).on("error",(function(e){a=[],n(e)})).on("end",(function(){try{var t=function(e,t,r){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return i.transformTo(e,t)}}(c,function(e,t){for(var r=0,i=null,n=0,a=0;a<t.length;a++)n+=t[a].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(n),a=0;a<t.length;a++)i.set(t[a],r),r+=t[a].length;return i;case"nodebuffer":return s.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(l,a),h);e(t)}catch(t){n(t)}a=[]})).resume()}));var t,r},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,r)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer=void 0!==s,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(i),r.blob=0===n.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var i=e("./utils"),n=e("./support"),s=e("./nodejsUtils"),a=e("./stream/GenericWorker"),o=new Array(256),l=0;l<256;l++)o[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function h(){a.call(this,"utf-8 encode")}o[254]=o[254]=1,r.utf8encode=function(e){if(n.nodebuffer)return s.newBufferFrom(e,"utf-8");for(var t,r,i,a,o=e,l=o.length,c=0,h=0;h<l;h++)55296==(64512&(r=o.charCodeAt(h)))&&h+1<l&&56320==(64512&(i=o.charCodeAt(h+1)))&&(r=65536+(r-55296<<10)+(i-56320),h++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=new(n.uint8array?Uint8Array:Array)(c),h=a=0;a<c;h++)55296==(64512&(r=o.charCodeAt(h)))&&h+1<l&&56320==(64512&(i=o.charCodeAt(h+1)))&&(r=65536+(r-55296<<10)+(i-56320),h++),r<128?t[a++]=r:(r<2048?t[a++]=192|r>>>6:(r<65536?t[a++]=224|r>>>12:(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63),t[a++]=128|r>>>6&63),t[a++]=128|63&r);return t},r.utf8decode=function(e){if(n.nodebuffer)return i.transformTo("nodebuffer",e).toString("utf-8");for(var t,r,s,a=e=i.transformTo(n.uint8array?"uint8array":"array",e),l=a.length,c=new Array(2*l),h=t=0;h<l;)if((r=a[h++])<128)c[t++]=r;else if(4<(s=o[r]))c[t++]=65533,h+=s-1;else{for(r&=2===s?31:3===s?15:7;1<s&&h<l;)r=r<<6|63&a[h++],s--;1<s?c[t++]=65533:r<65536?c[t++]=r:(r-=65536,c[t++]=55296|r>>10&1023,c[t++]=56320|1023&r)}return c.length!==t&&(c.subarray?c=c.subarray(0,t):c.length=t),i.applyFromCharCode(c)},i.inherits(c,a),c.prototype.processChunk=function(e){var t=i.transformTo(n.uint8array?"uint8array":"array",e.data),s=(this.leftOver&&this.leftOver.length&&(n.uint8array?(s=t,(t=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),t.set(s,this.leftOver.length)):t=this.leftOver.concat(t),this.leftOver=null),function(e,t){for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0||0===r)&&r+o[e[r]]>t?r:t}(t)),a=t;s!==t.length&&(n.uint8array?(a=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(a=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:r.utf8decode(a),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,i.inherits(h,a),h.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var i=e("./support"),n=e("./base64"),s=e("./nodejsUtils"),a=e("./external");function o(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(t,i){r.checkSupport("blob");try{return new Blob([t],{type:i})}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(i)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,r){var i=[],n=0,s=e.length;if(s<=r)return String.fromCharCode.apply(null,e);for(;n<s;)i.push("array"===t||"nodebuffer"===t?String.fromCharCode.apply(null,e.slice(n,Math.min(n+r,s))):String.fromCharCode.apply(null,e.subarray(n,Math.min(n+r,s)))),n+=r;return i.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,s.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,i=r.getTypeOf(e),n=!0;if("uint8array"===i?n=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(n=c.applyCanBeUsed.nodebuffer),n)for(;1<t;)try{return c.stringifyByChunk(e,i,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=u;var f={};f.string={string:o,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,s.allocBuffer(e.length))}},f.array={string:u,array:o,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(e)}},f.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:o,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:o,nodebuffer:function(e){return s.newBufferFrom(e)}},f.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:o},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var i=r.getTypeOf(t);return f[i][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var n=t[i];"."===n||""===n&&0!==i&&i!==t.length-1||(".."===n?r.pop():r.push(n))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&s.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!i[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){for(var t,r="",i=0;i<(e||"").length;i++)r+="\\x"+((t=e.charCodeAt(i))<16?"0":"")+t.toString(16).toUpperCase();return r},r.delay=function(e,t,r){h((function(){e.apply(r||null,t||[])}))},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){for(var e,t={},r=0;r<arguments.length;r++)for(e in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],e)&&void 0===t[e]&&(t[e]=arguments[r][e]);return t},r.prepareContent=function(e,t,s,o,c){return a.Promise.resolve(t).then((function(e){return i.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,r){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){r(e.target.error)},i.readAsArrayBuffer(e)})):e})).then((function(t){var h=r.getTypeOf(t);return h?("arraybuffer"===h?t=r.transformTo("uint8array",t):"string"===h&&(c?t=n.decode(t):s&&!0!==o&&(t=l(h=t,new(i.uint8array?Uint8Array:Array)(h.length)))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var i=e("./reader/readerFor"),n=e("./utils"),s=e("./signature"),a=e("./zipEntry"),o=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){var t;if(!this.reader.readAndCheckSignature(e))throw this.reader.index-=4,t=this.reader.readString(4),new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(t)+", expected "+n.pretty(e)+")")},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e),e=this.reader.readString(4)===t;return this.reader.setIndex(r),e},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array";t=n.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(t)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){for(var e,t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}if(e=this.centralDirOffset+this.centralDirSize,e=t-(e=this.zip64?e+20+(12+this.zip64EndOfCentralSize):e),0<e)this.isSignature(t,s.CENTRAL_FILE_HEADER)||(this.reader.zero=e);else if(e<0)throw new Error("Corrupted zip: missing "+Math.abs(e)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var i=e("./reader/readerFor"),n=e("./utils"),s=e("./compressedObject"),a=e("./crc32"),o=e("./utf8"),l=e("./compressions"),c=e("./support");function h(e,t){this.options=e,this.loadOptions=t}h.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t;if(e.skip(22),this.fileNameLength=e.readInt(2),t=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(t),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){var e;this.extraFields[1]&&(e=i(this.extraFields[1].value),this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS)&&(this.diskNumberStart=e.readInt(4))},readExtraFields:function(e){var t,r,i,n=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<n;)t=e.readInt(2),r=e.readInt(2),i=e.readData(r),this.extraFields[t]={id:t,length:r,value:i};e.setIndex(n)},handleUTF8:function(){var e,t=c.uint8array?"uint8array":"array";this.useUTF8()?(this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment)):(null!==(e=this.findExtraFieldUnicodePath())?this.fileNameStr=e:(e=n.transformTo(t,this.fileName),this.fileNameStr=this.loadOptions.decodeFileName(e)),null!==(e=this.findExtraFieldUnicodeComment())?this.fileCommentStr=e:(e=n.transformTo(t,this.fileComment),this.fileCommentStr=this.loadOptions.decodeFileName(e)))},findExtraFieldUnicodePath:function(){var e,t=this.extraFields[28789];return t&&1===(e=i(t.value)).readInt(1)&&a(this.fileName)===e.readInt(4)?o.utf8decode(e.readData(t.length-5)):null},findExtraFieldUnicodeComment:function(){var e,t=this.extraFields[25461];return t&&1===(e=i(t.value)).readInt(1)&&a(this.fileComment)===e.readInt(4)?o.utf8decode(e.readData(t.length-5)):null}},t.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function i(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var n=e("./stream/StreamHelper"),s=e("./stream/DataWorker"),a=e("./utf8"),o=e("./compressedObject"),l=e("./stream/GenericWorker");i.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(r=e.toLowerCase())||"text"===r,s=("binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker(),!this._dataBinary);s&&!i&&(t=t.pipe(new a.Utf8EncodeWorker)),!s&&i&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new n(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){var r;return this._data instanceof o&&this._data.compression.magic===e.magic?this._data.getCompressedWorker():(r=this._decompressWorker(),this._dataBinary||(r=r.pipe(new a.Utf8EncodeWorker)),o.createWorkerFrom(r,e,t))},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof l?this._data:new s(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},u=0;u<c.length;u++)i.prototype[c[u]]=h;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){var r,i,n,s,a=e.MutationObserver||e.WebKitMutationObserver,o=a?(i=0,a=new a(c),n=e.document.createTextNode(""),a.observe(n,{characterData:!0}),function(){n.data=i=++i%2}):e.setImmediate||void 0===e.MessageChannel?"document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)}:((s=new e.MessageChannel).port1.onmessage=c,function(){s.port2.postMessage(0)}),l=[];function c(){var e,t;r=!0;for(var i=l.length;i;){for(t=l,l=[],e=-1;++e<i;)t[e]();i=l.length}r=!1}t.exports=function(e){1!==l.push(e)||r||o()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var i=e("immediate");function n(){}var s={},a=["REJECTED"],o=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==n&&f(this,e)}function h(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function u(e,t,r){i((function(){var i;try{i=t(r)}catch(i){return s.reject(e,i)}i===e?s.reject(e,new TypeError("Cannot resolve promise with itself")):s.resolve(e,i)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function i(t){r||(r=!0,s.reject(e,t))}function n(t){r||(r=!0,s.resolve(e,t))}var a=p((function(){t(n,i)}));"error"===a.status&&i(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=c).prototype.finally=function(e){var t;return"function"!=typeof e?this:(t=this.constructor,this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))})))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){var r;return"function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===a?this:(r=new this.constructor(n),this.state!==l?u(r,this.state===o?e:t,this.outcome):this.queue.push(new h(r,e,t)),r)},h.prototype.callFulfilled=function(e){s.resolve(this.promise,e)},h.prototype.otherCallFulfilled=function(e){u(this.promise,this.onFulfilled,e)},h.prototype.callRejected=function(e){s.reject(this.promise,e)},h.prototype.otherCallRejected=function(e){u(this.promise,this.onRejected,e)},s.resolve=function(e,t){var r=p(d,t);if("error"===r.status)return s.reject(e,r.value);if(r=r.value,r)f(e,r);else{e.state=o,e.outcome=t;for(var i=-1,n=e.queue.length;++i<n;)e.queue[i].callFulfilled(t)}return e},s.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:s.resolve(new this(n),e)},c.reject=function(e){var t=new this(n);return s.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var a=new Array(r),o=0,l=-1,c=new this(n);++l<r;)!function(e,n){t.resolve(e).then((function(e){a[n]=e,++o!==r||i||(i=!0,s.resolve(c,a))}),(function(e){i||(i=!0,s.reject(c,e))}))}(e[l],l);return c},c.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var i,a=-1,o=new this(n);++a<t;)i=e[a],this.resolve(i).then((function(e){r||(r=!0,s.resolve(o,e))}),(function(e){r||(r=!0,s.reject(o,e))}));return o}},{immediate:36}],38:[function(e,t,r){var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var i=e("./zlib/deflate"),n=e("./utils/common"),s=e("./utils/strings"),a=e("./zlib/messages"),o=e("./zlib/zstream"),l=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=n.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});e=this.options;var t=(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0,i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy));if(0!==t)throw new Error(a[t]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){if(e="string"==typeof e.dictionary?s.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(t=i.deflateSetDictionary(this.strm,e)))throw new Error(a[t]);this._dict_set=!0}}function h(e,t){if(t=new c(t),t.push(e,!0),t.err)throw t.msg||a[t.err];return t.result}c.prototype.push=function(e,t){var r,a,o=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=s.string2buf(e):"[object ArrayBuffer]"===l.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new n.Buf8(c),o.next_out=0,o.avail_out=c),1!==(r=i.deflate(o,a))&&0!==r)return this.onEnd(r),!(this.ended=!0)}while(0!==o.avail_out&&(0!==o.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(s.buf2binstring(n.shrinkBuf(o.output,o.next_out))):this.onData(n.shrinkBuf(o.output,o.next_out))),(0<o.avail_in||0===o.avail_out)&&1!==r);return 4===a?(r=i.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),!(o.avail_out=0))},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=c,r.deflate=h,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,h(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var i=e("./zlib/inflate"),n=e("./utils/common"),s=e("./utils/strings"),a=e("./zlib/constants"),o=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),h=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=n.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0,e=i.inflateInit2(this.strm,t.windowBits);if(e!==a.Z_OK)throw new Error(o[e]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function d(e,t){if(t=new u(t),t.push(e,!0),t.err)throw t.msg||o[t.err];return t.result}u.prototype.push=function(e,t){var r,o,l,c,u,d=this.strm,f=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?d.input=s.binstring2buf(e):"[object ArrayBuffer]"===h.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new n.Buf8(f),d.next_out=0,d.avail_out=f),(r=i.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(u="string"==typeof p?s.string2buf(p):"[object ArrayBuffer]"===h.call(p)?new Uint8Array(p):p,r=i.inflateSetDictionary(this.strm,u)),r===a.Z_BUF_ERROR&&!0===m&&(r=a.Z_OK,m=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),!(this.ended=!0)}while(!d.next_out||0!==d.avail_out&&r!==a.Z_STREAM_END&&(0!==d.avail_in||o!==a.Z_FINISH&&o!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=s.utf8border(d.output,d.next_out),l=d.next_out-u,c=s.buf2string(d.output,u),d.next_out=l,d.avail_out=f-l,l&&n.arraySet(d.output,d.output,u,l,0),this.onData(c)):this.onData(n.shrinkBuf(d.output,d.next_out))),0===d.avail_in&&0===d.avail_out&&(m=!0),(0<d.avail_in||0===d.avail_out)&&r!==a.Z_STREAM_END);return(o=r===a.Z_STREAM_END?a.Z_FINISH:o)===a.Z_FINISH?(r=i.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):o!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(d.avail_out=0))},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=u,r.inflate=d,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},r.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array,n=(r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)},{arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+i),n);else for(var s=0;s<i;s++)e[n+s]=t[r+s]},flattenChunks:function(e){for(var t,r,i,n,s=t=0,a=e.length;s<a;s++)t+=e[s].length;for(n=new Uint8Array(t),s=r=0,a=e.length;s<a;s++)i=e[s],n.set(i,r),r+=i.length;return n}}),s={arraySet:function(e,t,r,i,n){for(var s=0;s<i;s++)e[n+s]=t[r+s]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,n)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,s))},r.setTyped(i)},{}],42:[function(e,t,r){var i=e("./common"),n=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}for(var a=new i.Buf8(256),o=0;o<256;o++)a[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function l(e,t){if(t<65537&&(e.subarray&&s||!e.subarray&&n))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var r="",a=0;a<t;a++)r+=String.fromCharCode(e[a]);return r}a[254]=a[254]=1,r.string2buf=function(e){for(var t,r,n,s,a=e.length,o=0,l=0;l<a;l++)55296==(64512&(r=e.charCodeAt(l)))&&l+1<a&&56320==(64512&(n=e.charCodeAt(l+1)))&&(r=65536+(r-55296<<10)+(n-56320),l++),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new i.Buf8(o),l=s=0;s<o;l++)55296==(64512&(r=e.charCodeAt(l)))&&l+1<a&&56320==(64512&(n=e.charCodeAt(l+1)))&&(r=65536+(r-55296<<10)+(n-56320),l++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new i.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){for(var r,i,n,s=t||e.length,o=new Array(2*s),c=r=0;c<s;)if((i=e[c++])<128)o[r++]=i;else if(4<(n=a[i]))o[r++]=65533,c+=n-1;else{for(i&=2===n?31:3===n?15:7;1<n&&c<s;)i=i<<6|63&e[c++],n--;1<n?o[r++]=65533:i<65536?o[r++]=i:(i-=65536,o[r++]=55296|i>>10&1023,o[r++]=56320|1023&i)}return l(o,r)},r.utf8border=function(e,t){for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0||0===r)&&r+a[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,i){for(var n=65535&e|0,s=e>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3<r?2e3:r;s=s+(n=n+t[i++]|0)|0,--a;);n%=65521,s%=65521}return n|s<<16|0}},{}],44:[function(e,t,r){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){var i=function(){for(var e=[],t=0;t<256;t++){for(var r=t,i=0;i<8;i++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e}();t.exports=function(e,t,r,n){var s=i,a=n+r;e^=-1;for(var o=n;o<a;o++)e=e>>>8^s[255&(e^t[o])];return-1^e}},{}],46:[function(e,t,r){var i,n=e("../utils/common"),s=e("./trees"),a=e("./adler32"),o=e("./crc32"),l=e("./messages"),c=-2,h=258,u=262,d=113;function f(e,t){return e.msg=l[t],t}function p(e){return(e<<1)-(4<e?9:0)}function m(e){for(var t=e.length;0<=--t;)e[t]=0}function b(e){var t=e.state,r=t.pending;0!==(r=r>e.avail_out?e.avail_out:r)&&(n.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending)&&(t.pending_out=0)}function g(e,t){s._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,b(e.strm)}function y(e,t){e.pending_buf[e.pending++]=t}function v(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function w(e,t){var r,i,n=e.max_chain_length,s=e.strstart,a=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-u?e.strstart-(e.w_size-u):0,c=e.window,d=e.w_mask,f=e.prev,p=e.strstart+h,m=c[s+a-1],b=c[s+a];e.prev_length>=e.good_match&&(n>>=2),o>e.lookahead&&(o=e.lookahead);do{if(c[(r=t)+a]===b&&c[r+a-1]===m&&c[r]===c[s]&&c[++r]===c[s+1]){for(s+=2,r++;c[++s]===c[++r]&&c[++s]===c[++r]&&c[++s]===c[++r]&&c[++s]===c[++r]&&c[++s]===c[++r]&&c[++s]===c[++r]&&c[++s]===c[++r]&&c[++s]===c[++r]&&s<p;);if(i=h-(p-s),s=p-h,a<i){if(e.match_start=t,o<=(a=i))break;m=c[s+a-1],b=c[s+a]}}}while((t=f[t&d])>l&&0!=--n);return a<=e.lookahead?a:e.lookahead}function _(e){var t,r,i,s,l,c,h,d,f,p=e.w_size;do{if(d=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-u)){for(n.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;i=e.head[--t],e.head[t]=p<=i?i-p:0,--r;);for(t=r=p;i=e.prev[--t],e.prev[t]=p<=i?i-p:0,--r;);d+=p}if(0===e.strm.avail_in)break;if(l=e.strm,c=e.window,h=e.strstart+e.lookahead,f=void 0,r=0===(f=(d=d)<(f=l.avail_in)?d:f)?0:(l.avail_in-=f,n.arraySet(c,l.input,l.next_in,f,h),1===l.state.wrap?l.adler=a(l.adler,c,f,h):2===l.state.wrap&&(l.adler=o(l.adler,c,f,h)),l.next_in+=f,l.total_in+=f,f),e.lookahead+=r,3<=e.lookahead+e.insert)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+3-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<u&&0!==e.strm.avail_in)}function x(e,t){for(var r,i;;){if(e.lookahead<u){if(_(e),e.lookahead<u&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-u&&(e.match_length=w(e,r)),3<=e.match_length)if(i=s._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&3<=e.lookahead){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(g(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(g(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(g(e,!1),0===e.strm.avail_out)?1:2}function k(e,t){for(var r,i,n;;){if(e.lookahead<u){if(_(e),e.lookahead<u&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-u&&(e.match_length=w(e,r),e.match_length<=5)&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2),3<=e.prev_length&&e.match_length<=e.prev_length){for(n=e.strstart+e.lookahead-3,i=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,i&&(g(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((i=s._tr_tally(e,0,e.window[e.strstart-1]))&&g(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=s._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(g(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(g(e,!1),0===e.strm.avail_out)?1:2}function S(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}function C(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new n.Buf16(1146),this.dyn_dtree=new n.Buf16(122),this.bl_tree=new n.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(16),this.heap=new n.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function T(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:d,e.adler=2===t.wrap?0:1,t.last_flush=0,s._tr_init(t),0):f(e,c)}function E(e){var t=T(e);return 0===t&&((e=e.state).window_size=2*e.w_size,m(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),t}function M(e,t,r,i,s,a){if(!e)return c;var o=1;if(-1===t&&(t=6),i<0?(o=0,i=-i):15<i&&(o=2,i-=16),s<1||9<s||8!==r||i<8||15<i||t<0||9<t||a<0||4<a)return f(e,c);8===i&&(i=9);var l=new C;return(e.state=l).strm=e,l.wrap=o,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=s+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new n.Buf8(2*l.w_size),l.head=new n.Buf16(l.hash_size),l.prev=new n.Buf16(l.w_size),l.lit_bufsize=1<<s+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new n.Buf8(l.pending_buf_size),l.d_buf=+l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=r,E(e)}i=[new S(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(_(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,g(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-u&&(g(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(g(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(g(e,!1),e.strm.avail_out),1)})),new S(4,4,8,4,x),new S(4,5,16,8,x),new S(4,6,32,32,x),new S(4,4,16,16,k),new S(8,16,32,32,k),new S(8,16,128,128,k),new S(8,32,128,256,k),new S(32,128,258,1024,k),new S(32,258,258,4096,k)],r.deflateInit=function(e,t){return M(e,t,8,15,8,0)},r.deflateInit2=M,r.deflateReset=E,r.deflateResetKeep=T,r.deflateSetHeader=function(e,t){return e&&e.state&&2===e.state.wrap?(e.state.gzhead=t,0):c},r.deflate=function(e,t){var r,n,a,l;if(!e||!e.state||5<t||t<0)return e?f(e,c):c;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||666===n.status&&4!==t)return f(e,0===e.avail_out?-5:c);if(n.strm=e,r=n.last_flush,n.last_flush=t,42===n.status&&(2===n.wrap?(e.adler=0,y(n,31),y(n,139),y(n,8),n.gzhead?(y(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),y(n,255&n.gzhead.time),y(n,n.gzhead.time>>8&255),y(n,n.gzhead.time>>16&255),y(n,n.gzhead.time>>24&255),y(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),y(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(y(n,255&n.gzhead.extra.length),y(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=o(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(y(n,0),y(n,0),y(n,0),y(n,0),y(n,0),y(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),y(n,3),n.status=d)):(u=8+(n.w_bits-8<<4)<<8,u|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(u|=32),u+=31-u%31,n.status=d,v(n,u),0!==n.strstart&&(v(n,e.adler>>>16),v(n,65535&e.adler)),e.adler=1)),69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(e.adler=o(e.adler,n.pending_buf,n.pending-a,a)),b(e),a=n.pending,n.pending!==n.pending_buf_size));)y(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(e.adler=o(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(e.adler=o(e.adler,n.pending_buf,n.pending-a,a)),b(e),a=n.pending,n.pending===n.pending_buf_size)){l=1;break}}while(l=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,y(n,l),0!==l);n.gzhead.hcrc&&n.pending>a&&(e.adler=o(e.adler,n.pending_buf,n.pending-a,a)),0===l&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(e.adler=o(e.adler,n.pending_buf,n.pending-a,a)),b(e),a=n.pending,n.pending===n.pending_buf_size)){l=1;break}}while(l=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,y(n,l),0!==l);n.gzhead.hcrc&&n.pending>a&&(e.adler=o(e.adler,n.pending_buf,n.pending-a,a)),0===l&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&b(e),n.pending+2<=n.pending_buf_size&&(y(n,255&e.adler),y(n,e.adler>>8&255),e.adler=0,n.status=d)):n.status=d),0!==n.pending){if(b(e),0===e.avail_out)return n.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(r)&&4!==t)return f(e,-5);if(666===n.status&&0!==e.avail_in)return f(e,-5);if(0!==e.avail_in||0!==n.lookahead||0!==t&&666!==n.status){var u=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(_(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(g(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(g(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(g(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){for(var r,i,n,a,o=e.window;;){if(e.lookahead<=h){if(_(e),e.lookahead<=h&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,3<=e.lookahead&&0<e.strstart&&(i=o[n=e.strstart-1])===o[++n]&&i===o[++n]&&i===o[++n]){for(a=e.strstart+h;i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<a;);e.match_length=h-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(3<=e.match_length?(r=s._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(g(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(g(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(g(e,!1),0===e.strm.avail_out)?1:2}(n,t):i[n.level].func(n,t);if(3!==u&&4!==u||(n.status=666),1===u||3===u)return 0===e.avail_out&&(n.last_flush=-1),0;if(2===u&&(1===t?s._tr_align(n):5!==t&&(s._tr_stored_block(n,0,0,!1),3===t)&&(m(n.head),0===n.lookahead)&&(n.strstart=0,n.block_start=0,n.insert=0),b(e),0===e.avail_out))return n.last_flush=-1,0}return 4===t&&(n.wrap<=0||(2===n.wrap?(y(n,255&e.adler),y(n,e.adler>>8&255),y(n,e.adler>>16&255),y(n,e.adler>>24&255),y(n,255&e.total_in),y(n,e.total_in>>8&255),y(n,e.total_in>>16&255),y(n,e.total_in>>24&255)):(v(n,e.adler>>>16),v(n,65535&e.adler)),b(e),0<n.wrap&&(n.wrap=-n.wrap),0===n.pending))?1:0},r.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==d&&666!==t?f(e,c):(e.state=null,t===d?f(e,-3):0):c},r.deflateSetDictionary=function(e,t){var r,i,s,o,l,h,u,d=t.length;if(!e||!e.state)return c;if(2===(o=(r=e.state).wrap)||1===o&&42!==r.status||r.lookahead)return c;for(1===o&&(e.adler=a(e.adler,t,d,0)),r.wrap=0,d>=r.w_size&&(0===o&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new n.Buf8(r.w_size),n.arraySet(u,t,d-r.w_size,r.w_size,0),t=u,d=r.w_size),u=e.avail_in,l=e.next_in,h=e.input,e.avail_in=d,e.next_in=0,e.input=t,_(r);3<=r.lookahead;){for(i=r.strstart,s=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[i+3-1])&r.hash_mask,r.prev[i&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=i,i++,--s;);r.strstart=i,r.lookahead=2,_(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=l,e.input=h,e.avail_in=u,r.wrap=o,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){t.exports=function(e,t){var r,i,n,s,a,o,l=e.state,c=e.next_in,h=e.input,u=c+(e.avail_in-5),d=e.next_out,f=e.output,p=d-(t-e.avail_out),m=d+(e.avail_out-257),b=l.dmax,g=l.wsize,y=l.whave,v=l.wnext,w=l.window,_=l.hold,x=l.bits,k=l.lencode,S=l.distcode,C=(1<<l.lenbits)-1,T=(1<<l.distbits)-1;e:do{for(x<15&&(_+=h[c++]<<x,x+=8,_+=h[c++]<<x,x+=8),r=k[_&C];;){if(_>>>=i=r>>>24,x-=i,0==(i=r>>>16&255))f[d++]=65535&r;else{if(!(16&i)){if(0==(64&i)){r=k[(65535&r)+(_&(1<<i)-1)];continue}if(32&i){l.mode=12;break e}e.msg="invalid literal/length code",l.mode=30;break e}for(n=65535&r,(i&=15)&&(x<i&&(_+=h[c++]<<x,x+=8),n+=_&(1<<i)-1,_>>>=i,x-=i),x<15&&(_+=h[c++]<<x,x+=8,_+=h[c++]<<x,x+=8),r=S[_&T];;){if(_>>>=i=r>>>24,x-=i,!(16&(i=r>>>16&255))){if(0==(64&i)){r=S[(65535&r)+(_&(1<<i)-1)];continue}e.msg="invalid distance code",l.mode=30;break e}if(s=65535&r,x<(i&=15)&&(_+=h[c++]<<x,(x+=8)<i)&&(_+=h[c++]<<x,x+=8),b<(s+=_&(1<<i)-1)){e.msg="invalid distance too far back",l.mode=30;break e}if(_>>>=i,x-=i,(i=d-p)<s){if(y<(i=s-i)&&l.sane){e.msg="invalid distance too far back",l.mode=30;break e}if(o=w,(a=0)===v){if(a+=g-i,i<n){for(n-=i;f[d++]=w[a++],--i;);a=d-s,o=f}}else if(v<i){if(a+=g+v-i,(i-=v)<n){for(n-=i;f[d++]=w[a++],--i;);if(a=0,v<n){for(n-=i=v;f[d++]=w[a++],--i;);a=d-s,o=f}}}else if(a+=v-i,i<n){for(n-=i;f[d++]=w[a++],--i;);a=d-s,o=f}for(;2<n;)f[d++]=o[a++],f[d++]=o[a++],f[d++]=o[a++],n-=3;n&&(f[d++]=o[a++],1<n)&&(f[d++]=o[a++])}else{for(a=d-s;f[d++]=f[a++],f[d++]=f[a++],f[d++]=f[a++],2<(n-=3););n&&(f[d++]=f[a++],1<n)&&(f[d++]=f[a++])}break}}break}}while(c<u&&d<m);c-=n=x>>3,_&=(1<<(x-=n<<3))-1,e.next_in=c,e.next_out=d,e.avail_in=c<u?u-c+5:5-(c-u),e.avail_out=d<m?m-d+257:257-(d-m),l.hold=_,l.bits=x}},{}],49:[function(e,t,r){var i=e("../utils/common"),n=e("./adler32"),s=e("./crc32"),a=e("./inffast"),o=e("./inftrees"),l=-2;function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function h(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function u(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new i.Buf32(852),t.distcode=t.distdyn=new i.Buf32(592),t.sane=1,t.back=-1,0):l}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,u(e)):l}function f(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t))?l:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,d(e))}function p(e,t){var r;return e?(r=new h,(e.state=r).window=null,0!==(r=f(e,t))&&(e.state=null),r):l}var m,b,g=!0;function y(e,t,r,n){var s;e=e.state;return null===e.window&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new i.Buf8(e.wsize)),n>=e.wsize?(i.arraySet(e.window,t,r-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):(n<(s=e.wsize-e.wnext)&&(s=n),i.arraySet(e.window,t,r-n,s,e.wnext),(n-=s)?(i.arraySet(e.window,t,r-n,n,0),e.wnext=n,e.whave=e.wsize):(e.wnext+=s,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=s))),0}r.inflateReset=d,r.inflateReset2=f,r.inflateResetKeep=u,r.inflateInit=function(e){return p(e,15)},r.inflateInit2=p,r.inflate=function(e,t){var r,h,u,d,f,p,v,w,_,x,k,S,C,T,E,M,A,O,j,I,R,N,P,D,B=0,F=new i.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;12===(r=e.state).mode&&(r.mode=13),f=e.next_out,u=e.output,v=e.avail_out,d=e.next_in,h=e.input,p=e.avail_in,w=r.hold,_=r.bits,x=p,k=v,N=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap)r.mode=13;else{for(;_<16;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}if(2&r.wrap&&35615===w)F[r.check=0]=255&w,F[1]=w>>>8&255,r.check=s(r.check,F,2,0),_=w=0,r.mode=2;else if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31)e.msg="incorrect header check",r.mode=30;else if(8!=(15&w))e.msg="unknown compression method",r.mode=30;else{if(_-=4,R=8+(15&(w>>>=4)),0===r.wbits)r.wbits=R;else if(R>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<R,e.adler=r.check=1,r.mode=512&w?10:12,_=w=0}}break;case 2:for(;_<16;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}if(r.flags=w,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=w>>8&1),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=s(r.check,F,2,0)),_=w=0,r.mode=3;case 3:for(;_<32;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}r.head&&(r.head.time=w),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,F[2]=w>>>16&255,F[3]=w>>>24&255,r.check=s(r.check,F,4,0)),_=w=0,r.mode=4;case 4:for(;_<16;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}r.head&&(r.head.xflags=255&w,r.head.os=w>>8),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=s(r.check,F,2,0)),_=w=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}r.length=w,r.head&&(r.head.extra_len=w),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=s(r.check,F,2,0)),_=w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((S=p<(S=r.length)?p:S)&&(r.head&&(R=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),i.arraySet(r.head.extra,h,d,S,R)),512&r.flags&&(r.check=s(r.check,h,S,d)),p-=S,d+=S,r.length-=S),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break e;for(S=0;R=h[d+S++],r.head&&R&&r.length<65536&&(r.head.name+=String.fromCharCode(R)),R&&S<p;);if(512&r.flags&&(r.check=s(r.check,h,S,d)),p-=S,d+=S,R)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break e;for(S=0;R=h[d+S++],r.head&&R&&r.length<65536&&(r.head.comment+=String.fromCharCode(R)),R&&S<p;);if(512&r.flags&&(r.check=s(r.check,h,S,d)),p-=S,d+=S,R)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}if(w!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}_=w=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;_<32;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}e.adler=r.check=c(w),_=w=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=f,e.avail_out=v,e.next_in=d,e.avail_in=p,r.hold=w,r.bits=_,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last)w>>>=7&_,_-=7&_,r.mode=27;else{for(;_<3;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}switch(r.last=1&w,--_,3&(w>>>=1)){case 0:r.mode=14;break;case 1:z=$=void 0;var z,$=r;if(g){for(m=new i.Buf32(512),b=new i.Buf32(32),z=0;z<144;)$.lens[z++]=8;for(;z<256;)$.lens[z++]=9;for(;z<280;)$.lens[z++]=7;for(;z<288;)$.lens[z++]=8;for(o(1,$.lens,0,288,m,0,$.work,{bits:9}),z=0;z<32;)$.lens[z++]=5;o(2,$.lens,0,32,b,0,$.work,{bits:5}),g=!1}if($.lencode=m,$.lenbits=9,$.distcode=b,$.distbits=5,r.mode=20,6!==t)break;w>>>=2,_-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}w>>>=2,_-=2}break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&w,_=w=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(S=r.length){if(0===(S=v<(S=p<S?p:S)?v:S))break e;i.arraySet(u,h,d,S,f),p-=S,d+=S,v-=S,f+=S,r.length-=S}else r.mode=12;break;case 17:for(;_<14;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}if(r.nlen=257+(31&w),w>>>=5,_-=5,r.ndist=1+(31&w),w>>>=5,_-=5,r.ncode=4+(15&w),w>>>=4,_-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;_<3;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}r.lens[L[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[L[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,P={bits:r.lenbits},N=o(0,r.lens,0,19,r.lencode,0,r.work,P),r.lenbits=P.bits,N){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;M=(B=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,A=65535&B,!((E=B>>>24)<=_);){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}if(A<16)w>>>=E,_-=E,r.lens[r.have++]=A;else{if(16===A){for(D=E+2;_<D;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}if(w>>>=E,_-=E,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}R=r.lens[r.have-1],S=3+(3&w),w>>>=2,_-=2}else if(17===A){for(D=E+3;_<D;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}R=0,S=3+(7&(w>>>=E)),w>>>=3,_=_-E-3}else{for(D=E+7;_<D;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}R=0,S=11+(127&(w>>>=E)),w>>>=7,_=_-E-7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;S--;)r.lens[r.have++]=R}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,P={bits:r.lenbits},N=o(1,r.lens,0,r.nlen,r.lencode,0,r.work,P),r.lenbits=P.bits,N){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,P={bits:r.distbits},N=o(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,P),r.distbits=P.bits,N){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=p&&258<=v){e.next_out=f,e.avail_out=v,e.next_in=d,e.avail_in=p,r.hold=w,r.bits=_,a(e,k),f=e.next_out,u=e.output,v=e.avail_out,d=e.next_in,h=e.input,p=e.avail_in,w=r.hold,_=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;M=(B=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,A=65535&B,!((E=B>>>24)<=_);){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}if(M&&0==(240&M)){for(O=E,j=M,I=A;M=(B=r.lencode[I+((w&(1<<O+j)-1)>>O)])>>>16&255,A=65535&B,!(O+(E=B>>>24)<=_);){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}w>>>=O,_-=O,r.back+=O}if(w>>>=E,_-=E,r.back+=E,r.length=A,0===M){r.mode=26;break}if(32&M){r.back=-1,r.mode=12;break}if(64&M){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&M,r.mode=22;case 22:if(r.extra){for(D=r.extra;_<D;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;M=(B=r.distcode[w&(1<<r.distbits)-1])>>>16&255,A=65535&B,!((E=B>>>24)<=_);){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}if(0==(240&M)){for(O=E,j=M,I=A;M=(B=r.distcode[I+((w&(1<<O+j)-1)>>O)])>>>16&255,A=65535&B,!(O+(E=B>>>24)<=_);){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}w>>>=O,_-=O,r.back+=O}if(w>>>=E,_-=E,r.back+=E,64&M){e.msg="invalid distance code",r.mode=30;break}r.offset=A,r.extra=15&M,r.mode=24;case 24:if(r.extra){for(D=r.extra;_<D;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}r.offset+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===v)break e;if(r.offset>(S=k-v)){if((S=r.offset-S)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}C=S>r.wnext?(S-=r.wnext,r.wsize-S):r.wnext-S,S>r.length&&(S=r.length),T=r.window}else T=u,C=f-r.offset,S=r.length;for(v-=S=v<S?v:S,r.length-=S;u[f++]=T[C++],--S;);0===r.length&&(r.mode=21);break;case 26:if(0===v)break e;u[f++]=r.length,v--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===p)break e;p--,w|=h[d++]<<_,_+=8}if(k-=v,e.total_out+=k,r.total+=k,k&&(e.adler=r.check=(r.flags?s:n)(r.check,u,k,f-k)),k=v,(r.flags?w:c(w))!==r.check){e.msg="incorrect data check",r.mode=30;break}_=w=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===p)break e;p--,w+=h[d++]<<_,_+=8}if(w!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}_=w=0}r.mode=29;case 29:N=1;break e;case 30:N=-3;break e;case 31:return-4;default:return l}return e.next_out=f,e.avail_out=v,e.next_in=d,e.avail_in=p,r.hold=w,r.bits=_,(r.wsize||k!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&y(e,e.output,e.next_out,k-e.avail_out)?(r.mode=31,-4):(x-=e.avail_in,k-=e.avail_out,e.total_in+=x,e.total_out+=k,r.total+=k,r.wrap&&k&&(e.adler=r.check=(r.flags?s:n)(r.check,u,k,e.next_out-k)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),N=(0==x&&0===k||4===t)&&0===N?-5:N)},r.inflateEnd=function(e){var t;return e&&e.state?((t=e.state).window&&(t.window=null),e.state=null,0):l},r.inflateGetHeader=function(e,t){return e&&e.state&&0!=(2&(e=e.state).wrap)?((e.head=t).done=!1,0):l},r.inflateSetDictionary=function(e,t){var r,i=t.length;return!e||!e.state||0!==(r=e.state).wrap&&11!==r.mode?l:11===r.mode&&n(1,t,i,0)!==r.check?-3:y(e,t,i,i)?(r.mode=31,-4):(r.havedict=1,0)},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var i=e("../utils/common"),n=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,l,c,h,u,d){var f,p,m,b,g,y,v,w,_,x=d.bits,k=0,S=0,C=0,T=0,E=0,M=0,A=0,O=0,j=0,I=0,R=null,N=0,P=new i.Buf16(16),D=new i.Buf16(16),B=null,F=0;for(k=0;k<=15;k++)P[k]=0;for(S=0;S<l;S++)P[t[r+S]]++;for(E=x,T=15;1<=T&&0===P[T];T--);if(T<E&&(E=T),0===T)c[h++]=20971520,c[h++]=20971520,d.bits=1;else{for(C=1;C<T&&0===P[C];C++);for(E<C&&(E=C),k=O=1;k<=15;k++)if((O=(O<<1)-P[k])<0)return-1;if(0<O&&(0===e||1!==T))return-1;for(D[1]=0,k=1;k<15;k++)D[k+1]=D[k]+P[k];for(S=0;S<l;S++)0!==t[r+S]&&(u[D[t[r+S]]++]=S);if(y=0===e?(R=B=u,19):1===e?(R=n,N-=257,B=s,F-=257,256):(R=a,B=o,-1),k=C,g=h,A=S=I=0,m=-1,b=(j=1<<(M=E))-1,1===e&&852<j||2===e&&592<j)return 1;for(;;){for(_=u[S]<y?(w=0,u[S]):u[S]>y?(w=B[F+u[S]],R[N+u[S]]):(w=96,0),f=1<<(v=k-A),C=p=1<<M;c[g+(I>>A)+(p-=f)]=v<<24|w<<16|_|0,0!==p;);for(f=1<<k-1;I&f;)f>>=1;if(I=0!==f?(I&f-1)+f:0,S++,0==--P[k]){if(k===T)break;k=t[r+u[S]]}if(E<k&&(I&b)!==m){for(g+=C,O=1<<(M=k-(A=0===A?E:A));M+A<T&&!((O-=P[M+A])<=0);)M++,O<<=1;if(j+=1<<M,1===e&&852<j||2===e&&592<j)return 1;c[m=I&b]=E<<24|M<<16|g-h|0}}0!==I&&(c[g+I]=k-A<<24|64<<16|0),d.bits=E}return 0}},{"../utils/common":41}],51:[function(e,t,r){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,r){var i=e("../utils/common");function n(e){for(var t=e.length;0<=--t;)e[t]=0}var s=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576),h=(n(c),new Array(60)),u=(n(h),new Array(512)),d=(n(u),new Array(256)),f=(n(d),new Array(29));n(f);var p,m,b,g=new Array(30);function y(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}function v(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?u[e]:u[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function x(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function k(e,t,r){x(e,r[2*t],r[2*t+1])}function S(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function C(e,t,r){for(var i,n=new Array(16),s=0,a=1;a<=15;a++)n[a]=s=s+r[a-1]<<1;for(i=0;i<=t;i++){var o=e[2*i+1];0!==o&&(e[2*i]=S(n[o]++,o))}}function T(e){for(var t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function E(e){8<e.bi_valid?_(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function M(e,t,r,i){var n=2*t,s=2*r;return e[n]<e[s]||e[n]===e[s]&&i[t]<=i[r]}function A(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&M(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!M(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function O(e,t,r){var i,n,o,l,c=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],n=e.pending_buf[e.l_buf+c],c++,0==i?k(e,n,t):(k(e,(o=d[n])+256+1,t),0!==(l=s[o])&&x(e,n-=f[o],l),k(e,o=w(--i),r),0!==(l=a[o])&&x(e,i-=g[o],l)),c<e.last_lit;);k(e,256,t)}function j(e,t){var r,i,n,s=t.dyn_tree,a=t.stat_desc.static_tree,o=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==s[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):s[2*r+1]=0;for(;e.heap_len<2;)s[2*(n=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[n]=0,e.opt_len--,o&&(e.static_len-=a[2*n+1]);for(t.max_code=c,r=e.heap_len>>1;1<=r;r--)A(e,s,r);for(n=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],A(e,s,1),i=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=i,s[2*n]=s[2*r]+s[2*i],e.depth[n]=(e.depth[r]>=e.depth[i]?e.depth[r]:e.depth[i])+1,s[2*r+1]=s[2*i+1]=n,e.heap[1]=n++,A(e,s,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var h,u,d,f,p,m=e,b=t.dyn_tree,g=t.max_code,y=t.stat_desc.static_tree,v=t.stat_desc.has_stree,w=t.stat_desc.extra_bits,_=t.stat_desc.extra_base,x=t.stat_desc.max_length,k=0,S=0;S<=15;S++)m.bl_count[S]=0;for(b[2*m.heap[m.heap_max]+1]=0,h=m.heap_max+1;h<573;h++)x<(S=b[2*b[2*(u=m.heap[h])+1]+1]+1)&&(S=x,k++),b[2*u+1]=S,g<u||(m.bl_count[S]++,f=0,_<=u&&(f=w[u-_]),p=b[2*u],m.opt_len+=p*(S+f),v&&(m.static_len+=p*(y[2*u+1]+f)));if(0!==k){do{for(S=x-1;0===m.bl_count[S];)S--}while(m.bl_count[S]--,m.bl_count[S+1]+=2,m.bl_count[x]--,0<(k-=2));for(S=x;0!==S;S--)for(u=m.bl_count[S];0!==u;)g<(d=m.heap[--h])||(b[2*d+1]!==S&&(m.opt_len+=(S-b[2*d+1])*b[2*d],b[2*d+1]=S),u--)}C(s,c,e.bl_count)}function I(e,t,r){var i,n,s=-1,a=t[1],o=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(r+1)+1]=65535,i=0;i<=r;i++)n=a,a=t[2*(i+1)+1],++o<l&&n===a||(o<c?e.bl_tree[2*n]+=o:0!==n?(n!==s&&e.bl_tree[2*n]++,e.bl_tree[32]++):o<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=n,c=(o=0)===a?(l=138,3):n===a?(l=6,3):(l=7,4))}function R(e,t,r){var i,n,s=-1,a=t[1],o=0,l=7,c=4;for(0===a&&(l=138,c=3),i=0;i<=r;i++)if(n=a,a=t[2*(i+1)+1],!(++o<l&&n===a)){if(o<c)for(;k(e,n,e.bl_tree),0!=--o;);else 0!==n?(n!==s&&(k(e,n,e.bl_tree),o--),k(e,16,e.bl_tree),x(e,o-3,2)):o<=10?(k(e,17,e.bl_tree),x(e,o-3,3)):(k(e,18,e.bl_tree),x(e,o-11,7));s=n,c=(o=0)===a?(l=138,3):n===a?(l=6,3):(l=7,4)}}n(g);var N=!1;function P(e,t,r,n){x(e,0+(n?1:0),3),n=t,t=r,E(r=e),_(r,t),_(r,~t),i.arraySet(r.pending_buf,r.window,n,t,r.pending),r.pending+=t}r._tr_init=function(e){if(!N){for(var t,r,i,n,l=new Array(16),w=i=0;w<28;w++)for(f[w]=i,t=0;t<1<<s[w];t++)d[i++]=w;for(d[i-1]=w,w=n=0;w<16;w++)for(g[w]=n,t=0;t<1<<a[w];t++)u[n++]=w;for(n>>=7;w<30;w++)for(g[w]=n<<7,t=0;t<1<<a[w]-7;t++)u[256+n++]=w;for(r=0;r<=15;r++)l[r]=0;for(t=0;t<=143;)c[2*t+1]=8,t++,l[8]++;for(;t<=255;)c[2*t+1]=9,t++,l[9]++;for(;t<=279;)c[2*t+1]=7,t++,l[7]++;for(;t<=287;)c[2*t+1]=8,t++,l[8]++;for(C(c,287,l),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=S(t,5);p=new y(c,s,257,286,15),m=new y(h,a,0,30,15),b=new y(new Array(0),o,0,19,7),N=!0}e.l_desc=new v(e.dyn_ltree,p),e.d_desc=new v(e.dyn_dtree,m),e.bl_desc=new v(e.bl_tree,b),e.bi_buf=0,e.bi_valid=0,T(e)},r._tr_stored_block=P,r._tr_flush_block=function(e,t,r,i){var n,s,a,o=0;if(0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){for(var t=4093624447,r=0;r<=31;r++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*r])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(r=32;r<256;r++)if(0!==e.dyn_ltree[2*r])return 1;return 0}(e)),j(e,e.l_desc),j(e,e.d_desc),o=function(e){var t;for(I(e,e.dyn_ltree,e.l_desc.max_code),I(e,e.dyn_dtree,e.d_desc.max_code),j(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),n=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=n&&(n=s)):n=s=r+5,r+4<=n&&-1!==t)P(e,t,r,i);else if(4===e.strategy||s===n)x(e,2+(i?1:0),3),O(e,c,h);else{x(e,4+(i?1:0),3);var u=e,d=(t=e.l_desc.max_code+1,r=e.d_desc.max_code+1,o+1);for(x(u,t-257,5),x(u,r-1,5),x(u,d-4,4),a=0;a<d;a++)x(u,u.bl_tree[2*l[a]+1],3);R(u,u.dyn_ltree,t-1),R(u,u.dyn_dtree,r-1),O(e,e.dyn_ltree,e.dyn_dtree)}T(e),i&&E(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(d[r]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){x(e,2,3),k(e,256,c),16===(e=e).bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,r){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,r,i){(function(e){function r(e){delete h[e]}function i(e){if(u)setTimeout(i,0,e);else{var t=h[e];if(t){u=!0;try{var n=t.callback,s=t.args;switch(s.length){case 0:n();break;case 1:n(s[0]);break;case 2:n(s[0],s[1]);break;case 3:n(s[0],s[1],s[2]);break;default:n.apply(void 0,s)}}finally{r(e),u=!1}}}}function n(e){e.source===s&&"string"==typeof e.data&&0===e.data.indexOf(l)&&i(+e.data.slice(l.length))}var s,a,o,l,c,h,u,d,f;(s="undefined"==typeof self?void 0===e?this:e:self).setImmediate||(c=1,u=!(h={}),d=s.document,e=(e=Object.getPrototypeOf&&Object.getPrototypeOf(s))&&e.setTimeout?e:s,f="[object process]"==={}.toString.call(s.process)?function(e){t.nextTick((function(){i(e)}))}:function(){var e,t;if(s.postMessage&&!s.importScripts)return e=!0,t=s.onmessage,s.onmessage=function(){e=!1},s.postMessage("","*"),s.onmessage=t,e}()?(l="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",n,!1):s.attachEvent("onmessage",n),function(e){s.postMessage(l+e,"*")}):s.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){i(e.data)},function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(a=d.documentElement,function(e){var t=d.createElement("script");t.onreadystatechange=function(){i(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):function(e){setTimeout(i,0,e)},e.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return h[c]={callback:e,args:t},f(c),c++},e.clearImmediate=r)}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,r,i){(function(e){(function(){"use strict";var t=/[\\^$.*+?()[\]{}|]/g,i=RegExp(t.source),n="object"==typeof e&&e&&e.Object===Object&&e,s="object"==typeof self&&self&&self.Object===Object&&self,a=(n=n||s||Function("return this")(),Object.prototype.toString),o=(s=n.Symbol,n=s?s.prototype:void 0,n?n.toString:void 0);r.exports=function(e){var r,n;return(e=null==e?"":"string"==typeof(r=e)?r:"symbol"==typeof(n=r)||n&&"object"==typeof n&&"[object Symbol]"==a.call(n)?o?o.call(r):"":"0"==(n=r+"")&&1/r==-1/0?"-0":n)&&i.test(e)?e.replace(t,"\\$&"):e}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],443:[function(e,r,i){(function(e){(function(){"use strict";var t="[object Arguments]",n="[object Map]",s="[object Object]",a="[object Set]",o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,c=/^\./,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,p={},m=(p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[t]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[n]=p["[object Number]"]=p[s]=p["[object RegExp]"]=p[a]=p["[object String]"]=p["[object WeakMap]"]=!1,"object"==typeof e&&e&&e.Object===Object&&e),b="object"==typeof self&&self&&self.Object===Object&&self,g=(b=m||b||Function("return this")(),"object"==typeof i&&i&&!i.nodeType&&i),y=g&&"object"==typeof r&&r&&!r.nodeType&&r,v=y&&y.exports===g&&m.process;y=function(){try{return v&&v.binding("util")}catch(m){}}(),g=y&&y.isTypedArray;function w(e,t,r,i){for(var n=-1,s=e?e.length:0;++n<s;){var a=e[n];t(i,a,r(a),e)}return i}function _(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function x(e){var t=-1,r=Array(e.size);return e.forEach((function(e,i){r[++t]=[i,e]})),r}function k(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}m=Array.prototype,y=Function.prototype;var S,C,T=Object.prototype,E=b["__core-js_shared__"],M=(E=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"",A=y.toString,O=T.hasOwnProperty,j=T.toString,I=RegExp("^"+A.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=(E=b.Symbol,b.Uint8Array),N=T.propertyIsEnumerable,P=m.splice,D=(S=Object.keys,C=Object,function(e){return S(C(e))}),B=(y=ce(b,"DataView"),ce(b,"Map")),F=(m=ce(b,"Promise"),ce(b,"Set")),L=(b=ce(b,"WeakMap"),ce(Object,"create")),z=ye(y),$=ye(B),U=ye(m),H=ye(F),V=ye(b),q=(E=E?E.prototype:void 0,E?E.valueOf:void 0),W=E?E.toString:void 0;function X(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function K(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function Y(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function Z(e){var t=-1,r=e?e.length:0;for(this.__data__=new Y;++t<r;)this.add(e[t])}function G(e){this.__data__=new K(e)}function J(e,t){for(var r=e.length;r--;)if(we(e[r][0],t))return r;return-1}function Q(e,t,r,i){return function(e,t){if(null!=e){if(!ke(e))return ee(e,t);for(var r=e.length,i=-1,n=Object(e);++i<r&&!1!==t(n[i],i,n););}}(e,(function(e,n,s){t(i,e,r(e),s)})),i}X.prototype.clear=function(){this.__data__=L?L(null):{}},X.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},X.prototype.get=function(e){var t,r=this.__data__;return L?"__lodash_hash_undefined__"===(t=r[e])?void 0:t:O.call(r,e)?r[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return L?void 0!==t[e]:O.call(t,e)},X.prototype.set=function(e,t){return this.__data__[e]=L&&void 0===t?"__lodash_hash_undefined__":t,this},K.prototype.clear=function(){this.__data__=[]},K.prototype.delete=function(e){var t=this.__data__;e=J(t,e);return!(e<0||(e==t.length-1?t.pop():P.call(t,e,1),0))},K.prototype.get=function(e){var t=this.__data__;e=J(t,e);return e<0?void 0:t[e][1]},K.prototype.has=function(e){return-1<J(this.__data__,e)},K.prototype.set=function(e,t){var r=this.__data__,i=J(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},Y.prototype.clear=function(){this.__data__={hash:new X,map:new(B||K),string:new X}},Y.prototype.delete=function(e){return le(this,e).delete(e)},Y.prototype.get=function(e){return le(this,e).get(e)},Y.prototype.has=function(e){return le(this,e).has(e)},Y.prototype.set=function(e,t){return le(this,e).set(e,t),this},Z.prototype.add=Z.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Z.prototype.has=function(e){return this.__data__.has(e)},G.prototype.clear=function(){this.__data__=new K},G.prototype.delete=function(e){return this.__data__.delete(e)},G.prototype.get=function(e){return this.__data__.get(e)},G.prototype.has=function(e){return this.__data__.has(e)},G.prototype.set=function(e,t){var r=this.__data__;if(r instanceof K){var i=r.__data__;if(!B||i.length<199)return i.push([e,t]),this;r=this.__data__=new Y(i)}return r.set(e,t),this},ee=function(e,t){return e&&te(e,t,je)};var ee,te=function(e,t,r){for(var i=-1,n=Object(e),s=r(e),a=s.length;a--;){var o=s[++i];if(!1===t(n[o],o,n))break}return e};function re(e,t){for(var r=0,i=(t=de(t,e)?[t]:ae(t)).length;null!=e&&r<i;)e=e[ge(t[r++])];return r&&r==i?e:void 0}function ie(e,t){return null!=e&&t in Object(e)}function ne(e,r,i,o,l){return e===r||(null==e||null==r||!Te(e)&&!Ee(r)?e!=e&&r!=r:function(e,r,i,o,l,c){var h=xe(e),u=xe(r),d="[object Array]",f="[object Array]",p=(u=(h||(d=(d=he(e))==t?s:d),u||(f=(f=he(r))==t?s:f),d==s&&!_(e)),f==s&&!_(r));f=d==f;if(f&&!u)return c=c||new G,(h||Oe(e)?oe:function(e,t,r,i,s,o){switch(d){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new R(e),new R(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return we(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case n:var l=x;case a:if(l=l||k,e.size!=t.size&&!(2&s))return!1;var c=o.get(e);return c?c==t:(s|=1,o.set(e,t),c=oe(l(e),l(t),r,i,s,o),o.delete(e),c);case"[object Symbol]":if(q)return q.call(e)==q.call(t)}return!1})(e,r,i,o,l,c);if(!(2&l)&&(h=u&&O.call(e,"__wrapped__"),u=p&&O.call(r,"__wrapped__"),h||u))return i(h?e.value():e,u?r.value():r,o,l,c=c||new G);if(f){c=c||new G;var m=e,b=r,g=i,y=o,v=l,w=c,S=2&v,C=je(m),T=C.length;if(T!=je(b).length&&!S)return!1;for(var E=T;E--;){var M=C[E];if(!(S?M in b:O.call(b,M)))return!1}if(p=w.get(m),p&&w.get(b))return p==b;for(var A=!0,j=(w.set(m,b),w.set(b,m),S);++E<T;){var I,N=m[M=C[E]],P=b[M];if(!(void 0===(I=y?S?y(P,N,M,b,m,w):y(N,P,M,m,b,w):I)?N===P||g(N,P,y,v,w):I)){A=!1;break}j=j||"constructor"==M}return A&&!j&&(p=m.constructor)!=(h=b.constructor)&&"constructor"in m&&"constructor"in b&&!("function"==typeof p&&p instanceof p&&"function"==typeof h&&h instanceof h)&&(A=!1),w.delete(m),w.delete(b),A}return!1}(e,r,ne,i,o,l))}function se(e){return"function"==typeof e?e:null==e?Ie:"object"==typeof e?xe(e)?(n=e[0],s=e[1],de(n)&&fe(s)?pe(ge(n),s):function(e){var t=void 0===(t=null==e?void 0:re(e,n))?void 0:t;return void 0===t&&t===s?null!=e&&function(e,t,r){for(var i,n=-1,s=(t=de(t,e)?[t]:ae(t)).length;++n<s;){var a=ge(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||!!(s=e?e.length:0)&&Ce(s)&&ue(a,s)&&(xe(e)||_e(e))}(e,n,ie):ne(s,t,void 0,3)}):1==(i=function(e){for(var t=je(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,fe(n)]}return t}(r=e)).length&&i[0][2]?pe(i[0][0],i[0][1]):function(e){return e===r||function(t,r,i){var n=r.length,s=n;if(null==e)return!s;for(t=Object(e);n--;){var a=r[n];if(a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++n<s;){var o=(a=r[n])[0],l=t[o],c=a[1];if(a[2]){if(void 0===l&&!(o in t))return!1}else{var h;o=new G;if(!(void 0===h?ne(c,l,i,3,o):h))return!1}}return!0}(0,i)}:de(e=e)?(a=ge(e),function(e){return null==e?void 0:e[a]}):(t=e,function(e){return re(e,t)});var t,r,i,n,s,a}function ae(e){return xe(e)?e:be(e)}function oe(e,t,r,i,n,s){var a=2&n,o=e.length,l=t.length;if(o!=l&&!(a&&o<l))return!1;if(l=s.get(e),l&&s.get(t))return l==t;var c=-1,h=!0,u=1&n?new Z:void 0;for(s.set(e,t),s.set(t,e);++c<o;){var d,f=e[c],p=t[c];if(void 0!==(d=i?a?i(p,f,c,t,e,s):i(f,p,c,e,t,s):d)){if(d)continue;h=!1;break}if(u){if(!function(e,t){for(var r=-1,i=e?e.length:0;++r<i;)if(t(e[r],r,e))return 1}(t,(function(e,t){return!u.has(t)&&(f===e||r(f,e,i,n,s))&&u.add(t)}))){h=!1;break}}else if(f!==p&&!r(f,p,i,n,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function le(e,t){var r;e=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?e["string"==typeof t?"string":"hash"]:e.map}function ce(e,t){return e=null==e?void 0:e[t],!Te(t=e)||M&&M in t||!(Se(t)||_(t)?I:d).test(ye(t))?void 0:e}var he=function(e){return j.call(e)};function ue(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||f.test(e))&&-1<e&&e%1==0&&e<t}function de(e,t){var r;if(!xe(e))return"number"==(r=typeof e)||"symbol"==r||"boolean"==r||null==e||Me(e)||l.test(e)||!o.test(e)||null!=t&&e in Object(t)}function fe(e){return e==e&&!Te(e)}function pe(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}(y&&"[object DataView]"!=he(new y(new ArrayBuffer(1)))||B&&he(new B)!=n||m&&"[object Promise]"!=he(m.resolve())||F&&he(new F)!=a||b&&"[object WeakMap]"!=he(new b))&&(he=function(e){var t=j.call(e);e=t==s?e.constructor:void 0,e=e?ye(e):void 0;if(e)switch(e){case z:return"[object DataView]";case $:return n;case U:return"[object Promise]";case H:return a;case V:return"[object WeakMap]"}return t});var me,be=ve((function(e){e=null==e?"":"string"==typeof(t=e)?t:Me(t)?W?W.call(t):"":"0"==(r=t+"")&&1/t==-1/0?"-0":r;var t,r,i=[];return c.test(e)&&i.push(""),e.replace(h,(function(e,t,r,n){i.push(r?n.replace(u,"$1"):t||e)})),i}));function ge(e){var t;return"string"==typeof e||Me(e)?e:"0"==(t=e+"")&&1/e==-1/0?"-0":t}function ye(e){if(null!=e){try{return A.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ve(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");function r(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;return s.has(n)?s.get(n):(i=e.apply(this,i),r.cache=s.set(n,i),i)}return r.cache=new(ve.Cache||Y),r}function we(e,t){return e===t||e!=e&&t!=t}function _e(e){return Ee(e)&&ke(e)&&O.call(e,"callee")&&(!N.call(e,"callee")||j.call(e)==t)}me=function(e,t,r){O.call(e,r)?e[r].push(t):e[r]=[t]},ve.Cache=Y;var xe=Array.isArray;function ke(e){return null!=e&&Ce(e.length)&&!Se(e)}function Se(e){return e=Te(e)?j.call(e):"","[object Function]"==e||"[object GeneratorFunction]"==e}function Ce(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=9007199254740991}function Te(e){var t=typeof e;return e&&("object"==t||"function"==t)}function Ee(e){return!!e&&"object"==typeof e}function Me(e){return"symbol"==typeof e||Ee(e)&&"[object Symbol]"==j.call(e)}var Ae,Oe=g?(Ae=g,function(e){return Ae(e)}):function(e){return Ee(e)&&Ce(e.length)&&!!p[j.call(e)]};function je(e){return(ke(e)?function(e,t){var r,i=xe(e)||_e(e)?function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}(e.length,String):[],n=i.length,s=!!n;for(r in e)!t&&!O.call(e,r)||s&&("length"==r||ue(r,n))||i.push(r);return i}:function(e){if(e!==("function"==typeof(t=e&&e.constructor)&&t.prototype||T))return D(e);var t,r,i=[];for(r in Object(e))O.call(e,r)&&"constructor"!=r&&i.push(r);return i})(e)}function Ie(e){return e}r.exports=function(e,t){var r={};return(xe(e)?w:Q)(e,me,se(t),r)}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],444:[function(e,t,r){"use strict";var i=Object.prototype.toString;t.exports=function(e){return!0===e||!1===e||!!e&&"object"==typeof e&&"[object Boolean]"==i.call(e)}},{}],445:[function(e,r,i){(function(e){(function(){"use strict";var t="[object Arguments]",n="[object Map]",s="[object Object]",a="[object Set]",o=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={},h=(c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[t]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[n]=c["[object Number]"]=c[s]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1,"object"==typeof e&&e&&e.Object===Object&&e),u="object"==typeof self&&self&&self.Object===Object&&self,d=(u=h||u||Function("return this")(),"object"==typeof i&&i&&!i.nodeType&&i),f=d&&"object"==typeof r&&r&&!r.nodeType&&r,p=(f=f&&f.exports===d,f&&h.process);d=function(){try{return p&&p.binding&&p.binding("util")}catch(h){}}(),h=d&&d.isTypedArray;function m(e){var t=-1,r=Array(e.size);return e.forEach((function(e,i){r[++t]=[i,e]})),r}function b(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}d=Array.prototype;var g,y,v=Function.prototype,w=Object.prototype,_=u["__core-js_shared__"],x=v.toString,k=w.hasOwnProperty,S=(v=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",C=w.toString,T=RegExp("^"+x.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=(_=f?u.Buffer:void 0,v=u.Symbol,u.Uint8Array),M=w.propertyIsEnumerable,A=d.splice,O=v?v.toStringTag:void 0,j=Object.getOwnPropertySymbols,I=(f=_?_.isBuffer:void 0,d=(g=Object.keys,y=Object,te(u,"DataView")),te(u,"Map")),R=(_=te(u,"Promise"),te(u,"Set")),N=(u=te(u,"WeakMap"),te(Object,"create")),P=ne(d),D=ne(I),B=ne(_),F=ne(R),L=ne(u),z=(v=v?v.prototype:void 0,v?v.valueOf:void 0);function $(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function U(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function H(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function V(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new H;++t<r;)this.add(e[t])}function q(e){e=this.__data__=new U(e),this.size=e.size}function W(e,t){var r,i,n,s=oe(e),a=!s&&ae(e),o=!s&&!a&&le(e),c=!s&&!a&&!o&&pe(e),h=s||a||o||c,u=h?function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}(e.length,String):[],d=u.length;for(r in e)!t&&!k.call(e,r)||h&&("length"==r||o&&("offset"==r||"parent"==r)||c&&("buffer"==r||"byteLength"==r||"byteOffset"==r)||(i=r,n=d,(n=null==n?9007199254740991:n)&&("number"==typeof i||l.test(i))&&-1<i&&i%1==0&&i<n))||u.push(r);return u}function X(e,t){for(var r=e.length;r--;)if(se(e[r][0],t))return r;return-1}function K(e){if(null==e)return void 0===e?"[object Undefined]":"[object Null]";if(O&&O in Object(e)){var t=e,r=k.call(t,O),i=t[O];try{var n=!(t[O]=void 0)}catch(t){}var s=C.call(t);return n&&(r?t[O]=i:delete t[O]),s}return C.call(e)}function Y(e){return de(e)&&K(e)==t}function Z(e,r,i,o,l){return e===r||(null==e||null==r||!de(e)&&!de(r)?e!=e&&r!=r:function(e,r,i,o,l,c){var h=oe(e),u=oe(r),d=h?"[object Array]":ie(e),f=(u=u?"[object Array]":ie(r),(d=d==t?s:d)==s),p=(u=u==t?s:u)==s;u=d==u;if(u&&le(e)){if(!le(r))return!1;f=!(h=!0)}if(u&&!f)return c=c||new q,(h||pe(e)?J:function(e,t,r,i,s,o){switch(d){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new E(e),new E(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return se(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case n:var l=m;case a:if(l=l||b,e.size!=t.size&&!(1&r))return!1;var c=o.get(e);return c?c==t:(r|=2,o.set(e,t),c=J(l(e),l(t),r,i,s,o),o.delete(e),c);case"[object Symbol]":if(z)return z.call(e)==z.call(t)}return!1})(e,r,i,o,l,c);if(!(1&i)&&(h=f&&k.call(e,"__wrapped__"),f=p&&k.call(r,"__wrapped__"),h||f))return l(h?e.value():e,f?r.value():r,i,o,c=c||new q);if(u){c=c||new q;var g=e,y=r,v=i,w=o,_=l,x=c,S=1&v,C=Q(g),T=C.length;if(T!=Q(y).length&&!S)return!1;for(var M=T;M--;){var A=C[M];if(!(S?A in y:k.call(y,A)))return!1}if(p=x.get(g),p&&x.get(y))return p==y;for(var O=!0,j=(x.set(g,y),x.set(y,g),S);++M<T;){var I,R=g[A=C[M]],N=y[A];if(!(void 0===(I=w?S?w(N,R,A,y,g,x):w(R,N,A,g,y,x):I)?R===N||_(R,N,v,w,x):I)){O=!1;break}j=j||"constructor"==A}return O&&!j&&(p=g.constructor)!=(h=y.constructor)&&"constructor"in g&&"constructor"in y&&!("function"==typeof p&&p instanceof p&&"function"==typeof h&&h instanceof h)&&(O=!1),x.delete(g),x.delete(y),O}return!1}(e,r,i,o,Z,l))}function G(e){if(t=e&&e.constructor,e!==("function"==typeof t&&t.prototype||w))return g(y(e));var t,r,i=[];for(r in Object(e))k.call(e,r)&&"constructor"!=r&&i.push(r);return i}function J(e,t,r,i,n,s){var a=1&r,o=e.length,l=t.length;if(o!=l&&!(a&&o<l))return!1;if(l=s.get(e),l&&s.get(t))return l==t;var c=-1,h=!0,u=2&r?new V:void 0;for(s.set(e,t),s.set(t,e);++c<o;){var d,f=e[c],p=t[c];if(void 0!==(d=i?a?i(p,f,c,t,e,s):i(f,p,c,e,t,s):d)){if(d)continue;h=!1;break}if(u){if(!function(e,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(t(e[r],r,e))return 1}(t,(function(e,t){return!u.has(t)&&(f===e||n(f,e,r,i,s))&&u.push(t)}))){h=!1;break}}else if(f!==p&&!n(f,p,r,i,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function Q(e){var t=re,r=me(e);if(oe(e))return r;for(var i=r,n=t(e),s=-1,a=n.length,o=i.length;++s<a;)i[o+s]=n[s];return i}function ee(e,t){var r;e=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?e["string"==typeof t?"string":"hash"]:e.map}function te(e,t){return e=null==e?void 0:e[t],!ue(t=e)||S&&S in t||!(ce(t)?T:o).test(ne(t))?void 0:e}$.prototype.clear=function(){this.__data__=N?N(null):{},this.size=0},$.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},$.prototype.get=function(e){var t,r=this.__data__;return N?"__lodash_hash_undefined__"===(t=r[e])?void 0:t:k.call(r,e)?r[e]:void 0},$.prototype.has=function(e){var t=this.__data__;return N?void 0!==t[e]:k.call(t,e)},$.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=N&&void 0===t?"__lodash_hash_undefined__":t,this},U.prototype.clear=function(){this.__data__=[],this.size=0},U.prototype.delete=function(e){var t=this.__data__;e=X(t,e);return!(e<0||(e==t.length-1?t.pop():A.call(t,e,1),--this.size,0))},U.prototype.get=function(e){var t=this.__data__;e=X(t,e);return e<0?void 0:t[e][1]},U.prototype.has=function(e){return-1<X(this.__data__,e)},U.prototype.set=function(e,t){var r=this.__data__,i=X(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},H.prototype.clear=function(){this.size=0,this.__data__={hash:new $,map:new(I||U),string:new $}},H.prototype.delete=function(e){return e=ee(this,e).delete(e),this.size-=e?1:0,e},H.prototype.get=function(e){return ee(this,e).get(e)},H.prototype.has=function(e){return ee(this,e).has(e)},H.prototype.set=function(e,t){var r=ee(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},V.prototype.add=V.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},V.prototype.has=function(e){return this.__data__.has(e)},q.prototype.clear=function(){this.__data__=new U,this.size=0},q.prototype.delete=function(e){var t=this.__data__;e=t.delete(e);return this.size=t.size,e},q.prototype.get=function(e){return this.__data__.get(e)},q.prototype.has=function(e){return this.__data__.has(e)},q.prototype.set=function(e,t){var r=this.__data__;if(r instanceof U){var i=r.__data__;if(!I||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new H(i)}return r.set(e,t),this.size=r.size,this};var re=j?function(e){if(null==e)return[];e=Object(e);for(var t=j(e),r=-1,i=null==t?0:t.length,n=0,s=[];++r<i;){var a=t[r];M.call(e,a)&&(s[n++]=a)}return s}:function(){return[]},ie=K;function ne(e){if(null!=e){try{return x.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function se(e,t){return e===t||e!=e&&t!=t}(d&&"[object DataView]"!=ie(new d(new ArrayBuffer(1)))||I&&ie(new I)!=n||_&&"[object Promise]"!=ie(_.resolve())||R&&ie(new R)!=a||u&&"[object WeakMap]"!=ie(new u))&&(ie=function(e){var t=K(e);e=t==s?e.constructor:void 0,e=e?ne(e):"";if(e)switch(e){case P:return"[object DataView]";case D:return n;case B:return"[object Promise]";case F:return a;case L:return"[object WeakMap]"}return t});var ae=Y(function(){return arguments}())?Y:function(e){return de(e)&&k.call(e,"callee")&&!M.call(e,"callee")},oe=Array.isArray,le=f||function(){return!1};function ce(e){if(ue(e))return"[object Function]"==(e=K(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function he(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=9007199254740991}function ue(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function de(e){return null!=e&&"object"==typeof e}var fe,pe=h?(fe=h,function(e){return fe(e)}):function(e){return de(e)&&he(e.length)&&!!c[K(e)]};function me(e){return(null!=e&&he(e.length)&&!ce(e)?W:G)(e)}r.exports=function(e,t){return Z(e,t)}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],446:[function(e,r,i){(function(e){(function(){"use strict";var t="object"==typeof e&&e&&e.Object===Object&&e,i="object"==typeof self&&self&&self.Object===Object&&self,n=(t=t||i||Function("return this")(),i=Object.prototype,i.hasOwnProperty),s=i.toString,a=(i=t.Symbol,i?i.toStringTag:void 0);r.exports=function(e){var t;return t=typeof e,!(null==e||"object"!=t&&"function"!=t||"[object Function]"!=(t=function(e){if(null==e)return void 0===e?"[object Undefined]":"[object Null]";if(a&&a in Object(e)){var t=e,r=n.call(t,a),i=t[a];try{var o=!(t[a]=void 0)}catch(t){}var l=s.call(t);return o&&(r?t[a]=i:delete t[a]),l}return s.call(e)}(e))&&"[object GeneratorFunction]"!=t&&"[object AsyncFunction]"!=t&&"[object Proxy]"!=t)}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],447:[function(e,t,r){"use strict";t.exports=function(e){return null==e}},{}],448:[function(e,t,r){"use strict";t.exports=function(e){return void 0===e}},{}],449:[function(e,r,i){(function(e){(function(){"use strict";var t=/^\[object .+?Constructor\]$/,i="object"==typeof e&&e&&e.Object===Object&&e,n="object"==typeof self&&self&&self.Object===Object&&self;i=i||n||Function("return this")();function s(e,t){return!(!e||!e.length)&&-1<function(e,t){if(t!=t){for(var r=e,i=a,n=r.length,s=-1;++s<n;)if(i(r[s],s,r))return s}else for(var o=-1,l=e.length;++o<l;)if(e[o]===t)return o;return-1}(e,t)}function a(e){return e!=e}function o(e,t){return e.has(t)}function l(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}n=Array.prototype;var c=Function.prototype,h=Object.prototype,u=i["__core-js_shared__"],d=(u=/[^.]+$/.exec(u&&u.keys&&u.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",f=c.toString,p=h.hasOwnProperty,m=h.toString,b=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g=n.splice,y=M(i,"Map"),v=M(i,"Set"),w=M(Object,"create");function _(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function x(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function k(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function S(e){var t=-1,r=e?e.length:0;for(this.__data__=new k;++t<r;)this.add(e[t])}function C(e,t){for(var r,i=e.length;i--;)if((r=e[i][0])===t||r!=r&&t!=t)return i;return-1}_.prototype.clear=function(){this.__data__=w?w(null):{}},_.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},_.prototype.get=function(e){var t,r=this.__data__;return w?"__lodash_hash_undefined__"===(t=r[e])?void 0:t:p.call(r,e)?r[e]:void 0},_.prototype.has=function(e){var t=this.__data__;return w?void 0!==t[e]:p.call(t,e)},_.prototype.set=function(e,t){return this.__data__[e]=w&&void 0===t?"__lodash_hash_undefined__":t,this},x.prototype.clear=function(){this.__data__=[]},x.prototype.delete=function(e){var t=this.__data__;e=C(t,e);return!(e<0||(e==t.length-1?t.pop():g.call(t,e,1),0))},x.prototype.get=function(e){var t=this.__data__;e=C(t,e);return e<0?void 0:t[e][1]},x.prototype.has=function(e){return-1<C(this.__data__,e)},x.prototype.set=function(e,t){var r=this.__data__,i=C(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},k.prototype.clear=function(){this.__data__={hash:new _,map:new(y||x),string:new _}},k.prototype.delete=function(e){return E(this,e).delete(e)},k.prototype.get=function(e){return E(this,e).get(e)},k.prototype.has=function(e){return E(this,e).has(e)},k.prototype.set=function(e,t){return E(this,e).set(e,t),this},S.prototype.add=S.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},S.prototype.has=function(e){return this.__data__.has(e)};var T=v&&1/l(new v([,-0]))[1]==1/0?function(e){return new v(e)}:function(){};function E(e,t){var r;e=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?e["string"==typeof t?"string":"hash"]:e.map}function M(e,r){var i;e=null==e?void 0:e[r];return!A(r=e)||d&&d in r||!("[object Function]"==(i=A(r)?m.call(r):"")||"[object GeneratorFunction]"==i||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(r)?b:t).test(function(e){if(null!=e){try{return f.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(r))?void 0:e}function A(e){var t=typeof e;return e&&("object"==t||"function"==t)}r.exports=function(e){if(e&&e.length){var t=e,r=-1,i=s,n=t.length,a=!0,c=[],h=c;if(200<=n){if(e=T(t),e)return l(e);a=!1,i=o,h=new S}else h=c;e:for(;++r<n;){var u=d=t[r],d=0!==d?d:0;if(a&&u==u){for(var f=h.length;f--;)if(h[f]===u)continue e;c.push(d)}else i(h,u,void 0)||(h!==c&&h.push(u),c.push(d))}return c}return[]}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],450:[function(e,t,r){"use strict";var i=e("inherits"),n=e("hash-base"),s=e("safe-buffer").Buffer,a=new Array(16);function o(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(e,t){return e<<t|e>>>32-t}function c(e,t,r,i,n,s,a){return l(e+(t&r|~t&i)+n+s|0,a)+t|0}function h(e,t,r,i,n,s,a){return l(e+(t&i|r&~i)+n+s|0,a)+t|0}function u(e,t,r,i,n,s,a){return l(e+(t^r^i)+n+s|0,a)+t|0}function d(e,t,r,i,n,s,a){return l(e+(r^(t|~i))+n+s|0,a)+t|0}i(o,n),o.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=c(this._a,s=this._b,n=this._c,i=this._d,e[0],3614090360,7),i=c(i,r,s,n,e[1],3905402710,12),n=c(n,i,r,s,e[2],606105819,17),s=c(s,n,i,r,e[3],3250441966,22);r=c(r,s,n,i,e[4],4118548399,7),i=c(i,r,s,n,e[5],1200080426,12),n=c(n,i,r,s,e[6],2821735955,17),s=c(s,n,i,r,e[7],4249261313,22),r=c(r,s,n,i,e[8],1770035416,7),i=c(i,r,s,n,e[9],2336552879,12),n=c(n,i,r,s,e[10],4294925233,17),s=c(s,n,i,r,e[11],2304563134,22),r=c(r,s,n,i,e[12],1804603682,7),i=c(i,r,s,n,e[13],4254626195,12),n=c(n,i,r,s,e[14],2792965006,17),r=h(r,s=c(s,n,i,r,e[15],1236535329,22),n,i,e[1],4129170786,5),i=h(i,r,s,n,e[6],3225465664,9),n=h(n,i,r,s,e[11],643717713,14),s=h(s,n,i,r,e[0],3921069994,20),r=h(r,s,n,i,e[5],3593408605,5),i=h(i,r,s,n,e[10],38016083,9),n=h(n,i,r,s,e[15],3634488961,14),s=h(s,n,i,r,e[4],3889429448,20),r=h(r,s,n,i,e[9],568446438,5),i=h(i,r,s,n,e[14],3275163606,9),n=h(n,i,r,s,e[3],4107603335,14),s=h(s,n,i,r,e[8],1163531501,20),r=h(r,s,n,i,e[13],2850285829,5),i=h(i,r,s,n,e[2],4243563512,9),n=h(n,i,r,s,e[7],1735328473,14),r=u(r,s=h(s,n,i,r,e[12],2368359562,20),n,i,e[5],4294588738,4),i=u(i,r,s,n,e[8],2272392833,11),n=u(n,i,r,s,e[11],1839030562,16),s=u(s,n,i,r,e[14],4259657740,23),r=u(r,s,n,i,e[1],2763975236,4),i=u(i,r,s,n,e[4],1272893353,11),n=u(n,i,r,s,e[7],4139469664,16),s=u(s,n,i,r,e[10],3200236656,23),r=u(r,s,n,i,e[13],681279174,4),i=u(i,r,s,n,e[0],3936430074,11),n=u(n,i,r,s,e[3],3572445317,16),s=u(s,n,i,r,e[6],76029189,23),r=u(r,s,n,i,e[9],3654602809,4),i=u(i,r,s,n,e[12],3873151461,11),n=u(n,i,r,s,e[15],530742520,16),r=d(r,s=u(s,n,i,r,e[2],3299628645,23),n,i,e[0],4096336452,6),i=d(i,r,s,n,e[7],1126891415,10),n=d(n,i,r,s,e[14],2878612391,15),s=d(s,n,i,r,e[5],4237533241,21),r=d(r,s,n,i,e[12],1700485571,6),i=d(i,r,s,n,e[3],2399980690,10),n=d(n,i,r,s,e[10],4293915773,15),s=d(s,n,i,r,e[1],2240044497,21),r=d(r,s,n,i,e[8],1873313359,6),i=d(i,r,s,n,e[15],4264355552,10),n=d(n,i,r,s,e[6],2734768916,15),s=d(s,n,i,r,e[13],1309151649,21),r=d(r,s,n,i,e[4],4149444226,6),i=d(i,r,s,n,e[11],3174756917,10),n=d(n,i,r,s,e[2],718787259,15),s=d(s,n,i,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+s|0,this._c=this._c+n|0,this._d=this._d+i|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=s.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=o},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("brorand");function s(e){this.rand=e||new n.Rand}(t.exports=s).create=function(e){return new s(e)},s.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var n=new i(this.rand.generate(r))}while(0<=n.cmp(e));return n},s.prototype._randrange=function(e,t){return t=t.sub(e),e.add(this._randbelow(t))},s.prototype.test=function(e,t,r){var n=e.bitLength(),s=i.mont(e),a=new i(1).toRed(s);t=t||Math.max(1,n/48|0);for(var o=e.subn(1),l=0;!o.testn(l);l++);for(var c=e.shrn(l),h=o.toRed(s);0<t;t--){var u=this._randrange(new i(2),o),d=(r&&r(u),u.toRed(s).redPow(c));if(0!==d.cmp(a)&&0!==d.cmp(h)){for(var f=1;f<l;f++){if(0===(d=d.redSqr()).cmp(a))return!1;if(0===d.cmp(h))break}if(f===l)return!1}}return!0},s.prototype.getDivisor=function(e,t){var r=e.bitLength(),n=i.mont(e),s=new i(1).toRed(n);t=t||Math.max(1,r/48|0);for(var a=e.subn(1),o=0;!a.testn(o);o++);for(var l=e.shrn(o),c=a.toRed(n);0<t;t--){var h=this._randrange(new i(2),a),u=e.gcd(h);if(0!==u.cmpn(1))return u;var d=h.toRed(n).redPow(l);if(0!==d.cmp(s)&&0!==d.cmp(c)){for(var f=1;f<o;f++){if(0===(d=d.redSqr()).cmp(s))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(c))break}if(f===o)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],453:[function(e,t,r){"use strict";function i(e,t){if(!e)throw new Error(t||"Assertion failed")}(t.exports=i).equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},{}],454:[function(e,t,r){"use strict";function i(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e)for(var i=0;i<e.length;i++)r[i]=0|e[i];else if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16));else for(i=0;i<e.length;i++){var n=e.charCodeAt(i),s=n>>8;n=255&n;s?r.push(s,n):r.push(n)}return r},r.zero2=i,r.toHex=n,r.encode=function(e,t){return"hex"===t?n(e):e}},{}],455:[function(e,t,r){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,t,r){"use strict";var i=e("asn1.js"),n=(e=(r.certificate=e("./certificate"),i.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}))),e=(r.RSAPrivateKey=e,i.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}))),e=(r.RSAPublicKey=e,i.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())}))),r.PublicKey=e,i.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}))),s=(e=i.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())})),e=(r.PrivateKey=e,i.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}))),e=(r.EncryptedPrivateKey=e,i.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}))),e=(r.DSAPrivateKey=e,r.DSAparam=i.define("DSAparam",(function(){this.int()})),i.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(s),this.key("publicKey").optional().explicit(1).bitstr())}))),r.ECPrivateKey=e,i.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})));r.signature=i.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":457,"asn1.js":170}],457:[function(e,t,r){"use strict";e=e("asn1.js");var i=e.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),n=e.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),s=e.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),a=e.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())})),o=e.define("RelativeDistinguishedName",(function(){this.setof(n)})),l=e.define("RDNSequence",(function(){this.seqof(o)})),c=e.define("Name",(function(){this.choice({rdnSequence:this.use(l)})})),h=e.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),u=e.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=e.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(c),this.key("validity").use(h),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(u).optional())}));e=e.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())}));t.exports=e},{"asn1.js":170}],458:[function(e,t,r){"use strict";var i=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=e("evp_bytestokey"),o=e("browserify-aes"),l=e("safe-buffer").Buffer;t.exports=function(e,t){e=e.toString();var r,c,h,u=e.match(i);return h=u?(c="aes"+u[1],h=l.from(u[2],"hex"),r=l.from(u[3].replace(/[\r\n]/g,""),"base64"),t=a(t,h.slice(0,8),parseInt(u[1],10)).key,u=[],c=o.createDecipheriv(c,t,h),u.push(c.update(r)),u.push(c.final()),l.concat(u)):(t=e.match(s),l.from(t[2].replace(/[\r\n]/g,""),"base64")),{tag:e.match(n)[1],data:h}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,t,r){"use strict";var i=e("./asn1"),n=e("./aesid.json"),s=e("./fixProc"),a=e("browserify-aes"),o=e("pbkdf2"),l=e("safe-buffer").Buffer;function c(e){var t;"object"!=typeof e||l.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=l.from(e));e=s(e,t);var r,c,h,u,d,f,p,m,b,g=e.tag,y=e.data;switch(g){case"CERTIFICATE":c=i.certificate.decode(y,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(r=(c=c||i.PublicKey.decode(y,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=i.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":h=y=i.EncryptedPrivateKey.decode(y,"der"),u=t,d=h.algorithm.decrypt.kde.kdeparams.salt,f=parseInt(h.algorithm.decrypt.kde.kdeparams.iters.toString(),10),p=n[h.algorithm.decrypt.cipher.algo.join(".")],m=h.algorithm.decrypt.cipher.iv,h=h.subjectPrivateKey,b=parseInt(p.split("-")[1],10)/8,u=o.pbkdf2Sync(u,d,f,b,"sha1"),d=a.createDecipheriv(p,u,m),(f=[]).push(d.update(h)),f.push(d.final()),y=l.concat(f);case"PRIVATE KEY":switch(r=(c=i.PrivateKey.decode(y,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:i.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=i.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(y,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(y,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(y,"der")};case"EC PRIVATE KEY":return{curve:(y=i.ECPrivateKey.decode(y,"der")).parameters.value,privateKey:y.privateKey};default:throw new Error("unknown key type "+g)}}(t.exports=c).signature=i.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,t,r){"use strict";r.pbkdf2=e("./lib/async"),r.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,r,i){(function(t){(function(){"use strict";var i,n,s=e("safe-buffer").Buffer,a=e("./precondition"),o=e("./default-encoding"),l=e("./sync"),c=e("./to-buffer"),h=t.crypto&&t.crypto.subtle,u={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function f(){return n=n||(t.process&&t.process.nextTick?t.process.nextTick:t.queueMicrotask||t.setImmediate||t.setTimeout)}function p(e,t,r,i,n){return h.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return h.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},e,i<<3)})).then((function(e){return s.from(e)}))}r.exports=function(e,r,n,m,b,g){"function"==typeof b&&(g=b,b=void 0);var y,v,w,_=u[(b=b||"sha1").toLowerCase()];if(_&&"function"==typeof t.Promise){if(a(n,m),e=c(e,o,"Password"),r=c(r,o,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");v=_,v=((!t.process||t.process.browser)&&h&&h.importKey&&h.deriveBits?void 0!==d[v]?d[v]:(w=p(i=i||s.alloc(8),i,10,128,v).then((function(){return!0})).catch((function(){return!1})),d[v]=w):Promise.resolve(!1)).then((function(t){return t?p(e,r,n,m,_):l(e,r,n,m,b)})),y=g,v.then((function(e){f()((function(){y(null,e)}))}),(function(e){f()((function(){y(e)}))}))}else f()((function(){var t;try{t=l(e,r,n,m,b)}catch(t){return g(t)}g(null,t)}))}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,r,i){(function(e,t){(function(){"use strict";var i=t.process&&t.process.browser||!t.process||!t.process.version||6<=parseInt(e.version.split(".")[0].slice(1),10)?"utf-8":"binary";r.exports=i}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467}],463:[function(e,t,r){"use strict";var i=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||i<t||t!=t)throw new TypeError("Bad key length")}},{}],464:[function(e,t,r){"use strict";var i=e("create-hash/md5"),n=e("ripemd160"),s=e("sha.js"),a=e("safe-buffer").Buffer,o=e("./precondition"),l=e("./default-encoding"),c=e("./to-buffer"),h=a.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,r){var o,l="rmd160"===(o=e)||"ripemd160"===o?function(e){return(new n).update(e).digest()}:"md5"===o?i:function(e){return s(o).update(e).digest()},c="sha512"===e||"sha384"===e?128:64;t.length>c?t=l(t):t.length<c&&(t=a.concat([t,h],c));for(var d=a.allocUnsafe(c+u[e]),f=a.allocUnsafe(c+u[e]),p=0;p<c;p++)d[p]=54^t[p],f[p]=92^t[p];r=a.allocUnsafe(c+r+4),d.copy(r,0,0,c),this.ipad1=r,this.ipad2=d,this.opad=f,this.alg=e,this.blocksize=c,this.hash=l,this.size=u[e]}d.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,r,i,n){o(r,i);var s=new d(n=n||"sha1",e=c(e,l,"Password"),(t=c(t,l,"Salt")).length),h=a.allocUnsafe(i),f=a.allocUnsafe(t.length+4);t.copy(f,0,0,t.length);for(var p=0,m=u[n],b=Math.ceil(i/m),g=1;g<=b;g++){f.writeUInt32BE(g,t.length);for(var y=s.run(f,s.ipad1),v=y,w=1;w<r;w++){v=s.run(v,s.ipad2);for(var _=0;_<m;_++)y[_]^=v[_]}y.copy(h,p),p+=m}return h}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer;t.exports=function(e,t,r){if(i.isBuffer(e))return e;if("string"==typeof e)return i.from(e,t);if(ArrayBuffer.isView(e))return i.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,t,r){(function(e){(function(){"use strict";void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,i,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var s,a,o=arguments.length;switch(o){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,i)}));case 4:return e.nextTick((function(){t.call(null,r,i,n)}));default:for(s=new Array(o-1),a=0;a<s.length;)s[a++]=arguments[a];return e.nextTick((function(){t.apply(null,s)}))}}}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,t,r){"use strict";var i,n;t=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(t){if(i===setTimeout)return setTimeout(t,0);if((i===s||!i)&&setTimeout)return(i=setTimeout)(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}try{i="function"==typeof setTimeout?setTimeout:s}catch(e){i=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}var l,c=[],h=!1,u=-1;function d(){h&&l&&(h=!1,l.length?c=l.concat(c):u=-1,c.length)&&f()}function f(){if(!h){var e=o(d);h=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,h=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return(n=clearTimeout)(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||h||o(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=m,t.addListener=m,t.once=m,t.off=m,t.removeListener=m,t.removeAllListeners=m,t.emit=m,t.prependListener=m,t.prependOnceListener=m,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],468:[function(e,t,r){"use strict";r.publicEncrypt=e("./publicEncrypt"),r.privateDecrypt=e("./privateDecrypt"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,t,r){"use strict";var i=e("create-hash"),n=e("safe-buffer").Buffer;t.exports=function(e,t){for(var r,s,a=n.alloc(0),o=0;a.length<t;)r=o++,s=void 0,(s=n.allocUnsafe(4)).writeUInt32BE(r,0),r=s,a=n.concat([a,i("sha1").update(e).update(r).digest()]);return a.slice(0,t)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],471:[function(e,t,r){"use strict";var i=e("parse-asn1"),n=e("./mgf"),s=e("./xor"),a=e("bn.js"),o=e("browserify-rsa"),l=e("create-hash"),c=e("./withPublic"),h=e("safe-buffer").Buffer;t.exports=function(e,t,r){var u=e.padding||(r?1:4),d=(e=i(e),e.modulus.byteLength());if(t.length>d||0<=new a(t).cmp(e.modulus))throw new Error("decryption error");t=r?c(new a(t),e):o(t,e);var f=h.alloc(d-t.length);if(t=h.concat([f,t],d),4===u){f=t,d=e.modulus.byteLength(),e=l("sha1").update(h.alloc(0)).digest();var p=e.length;if(0!==f[0])throw new Error("decryption error");var m=f.slice(1,p+1),b=(f=f.slice(p+1),m=s(m,n(f,p)),s(f,n(m,d-p-1)));if(function(e,t){e=h.from(e),t=h.from(t);for(var r=0,i=e.length,n=(e.length!==t.length&&(r++,i=Math.min(e.length,t.length)),-1);++n<i;)r+=e[n]^t[n];return r}(e,b.slice(0,p)))throw new Error("decryption error");for(var g=p;0===b[g];)g++;if(1!==b[g++])throw new Error("decryption error");return b.slice(g)}if(1===u){for(var y=t,v=(f=r,m=y.slice(0,2),2),w=0;0!==y[v++];)if(v>=y.length){w++;break}if(d=y.slice(2,v-1),("0002"!==m.toString("hex")&&!f||"0001"!==m.toString("hex")&&f)&&w++,d.length<8&&w++,w)throw new Error("decryption error");return y.slice(v)}if(3===u)return t;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,t,r){"use strict";var i=e("parse-asn1"),n=e("randombytes"),s=e("create-hash"),a=e("./mgf"),o=e("./xor"),l=e("bn.js"),c=e("./withPublic"),h=e("browserify-rsa"),u=e("safe-buffer").Buffer;t.exports=function(e,t,r){var d,f=e.padding||(r?1:4),p=i(e);if(4===f)d=function(e){var t=p.modulus.byteLength(),r=e.length,i=s("sha1").update(u.alloc(0)).digest(),c=i.length,h=2*c;if(t-h-2<r)throw new Error("message too long");r=u.alloc(t-r-h-2),h=t-c-1;var d=n(c);i=o(u.concat([i,r,u.alloc(1,1),e],h),a(d,h)),r=o(d,a(i,c));return new l(u.concat([u.alloc(1),r,i],t))}(t);else if(1===f)d=function(e,t,r){var i=t.length;e=e.modulus.byteLength();if(e-11<i)throw new Error("message too long");return i=r?u.alloc(e-i-3,255):function(e){for(var t,r=u.allocUnsafe(e),i=0,s=n(2*e),a=0;i<e;)a===s.length&&(s=n(2*e),a=0),(t=s[a++])&&(r[i++]=t);return r}(e-i-3),new l(u.concat([u.from([0,r?1:2]),i,u.alloc(1),t],e))}(p,t,r);else{if(3!==f)throw new Error("unknown padding");if(0<=(d=new l(t)).cmp(p.modulus))throw new Error("data too long for modulus")}return(r?h:c)(d,p)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,t,r){"use strict";var i=e("bn.js"),n=e("safe-buffer").Buffer;t.exports=function(e,t){return n.from(e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,t,r){"use strict";t.exports=function(e,t){for(var r=e.length,i=-1;++i<r;)e[i]^=t[i];return e}},{}],475:[function(e,r,i){(function(t,i){(function(){"use strict";var n=e("safe-buffer").Buffer,s=i.crypto||i.msCrypto;s&&s.getRandomValues?r.exports=function(e,r){if(4294967295<e)throw new RangeError("requested too many random bytes");var i=n.allocUnsafe(e);if(0<e)if(65536<e)for(var a=0;a<e;a+=65536)s.getRandomValues(i.slice(a,a+65536));else s.getRandomValues(i);return"function"==typeof r?t.nextTick((function(){r(null,i)})):i}:r.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,r,i){(function(t,r){(function(){"use strict";function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var s=e("safe-buffer"),a=e("randombytes"),o=s.Buffer,l=s.kMaxLength,c=r.crypto||r.msCrypto,h=Math.pow(2,32)-1;function u(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(h<e||e<0)throw new TypeError("offset must be a uint32");if(l<e||t<e)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(h<e||e<0)throw new TypeError("size must be a uint32");if(r<e+t||l<e)throw new RangeError("buffer too small")}function f(e,r,i,n){var s;return t.browser?(s=e.buffer,s=new Uint8Array(s,r,i),c.getRandomValues(s),n?void t.nextTick((function(){n(null,e)})):e):n?void a(i,(function(t,i){if(t)return n(t);i.copy(e,r),n(null,e)})):(a(i).copy(e,r),e)}c&&c.getRandomValues||!t.browser?(i.randomFill=function(e,t,i,n){if(!(o.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,i=e.length;else if("function"==typeof i)n=i,i=e.length-t;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return u(t,e.length),d(i,t,e.length),f(e,t,i,n)},i.randomFillSync=function(e,t,i){if(void 0===t&&(t=0),o.isBuffer(e)||e instanceof r.Uint8Array)return u(t,e.length),d(i=void 0===i?e.length-t:i,t,e.length),f(e,t,i);throw new TypeError('"buf" argument must be a Buffer or Uint8Array')}):(i.randomFill=n,i.randomFillSync=n)}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,t,r){"use strict";var i={};function n(e,t,r){r=r||Error,s=n=r,(a=o).prototype=Object.create(s.prototype),(a.prototype.constructor=a).__proto__=s;var n,s,a=o;function o(e,r,i){return n.call(this,"string"==typeof t?t:t(e,r,i))||this}a.prototype.name=r.name,a.prototype.code=e,i[e]=a}function s(e,t){var r;return Array.isArray(e)?(r=e.length,e=e.map((function(e){return String(e)})),2<r?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])):"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,n,a,o;return"string"==typeof t&&"not "===t.substr(0,"not ".length)?(i="must not be",t=t.replace(/^not /,"")):i="must be",a=e,(void 0===o||o>a.length)&&(o=a.length),(" argument"===a.substring(o-" argument".length,o)?"The ".concat(e," "):(o=(n="number"!=typeof n?0:n)+".".length>(a=e).length||-1===a.indexOf(".",n)?"argument":"property",'The "'.concat(e,'" ').concat(o," "))).concat(i," ").concat(s(t,"type"))+". Received type ".concat(typeof r)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},{}],478:[function(e,t,r){(function(r){(function(){"use strict";var i=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},n=(t.exports=c,e("./_stream_readable")),s=e("./_stream_writable");e("inherits")(c,n);for(var a=i(s.prototype),o=0;o<a.length;o++){var l=a[o];c.prototype[l]||(c.prototype[l]=s.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);n.call(this,e),s.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen)&&(this.allowHalfOpen=!1,this.once("end",h))}function h(){this._writableState.ended||r.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,t,r){"use strict";t.exports=n;var i=e("./_stream_transform");function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}e("inherits")(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":481,inherits:440}],480:[function(e,r,i){(function(t,i){(function(){"use strict";function n(e,t){return e.listeners(t).length}(r.exports=S).ReadableState=k,e("events").EventEmitter;var s,a,o,l,c=e("./internal/streams/stream"),h=e("buffer").Buffer,u=(void 0!==i?i:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=e("util"),f=d&&d.debuglog?d.debuglog("stream"):function(){},p=e("./internal/streams/buffer_list"),m=(d=e("./internal/streams/destroy"),e("./internal/streams/state").getHighWaterMark),b=e("../errors").codes,g=b.ERR_INVALID_ARG_TYPE,y=b.ERR_STREAM_PUSH_AFTER_EOF,v=b.ERR_METHOD_NOT_IMPLEMENTED,w=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_=(e("inherits")(S,c),d.errorOrDestroy),x=["error","close","destroy","pause","resume"];function k(t,r,i){s=s||e("./_stream_duplex"),t=t||{},"boolean"!=typeof i&&(i=r instanceof s),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(a=a||e("string_decoder/").StringDecoder,this.decoder=new a(t.encoding),this.encoding=t.encoding)}function S(t){if(s=s||e("./_stream_duplex"),!(this instanceof S))return new S(t);var r=this instanceof s;this._readableState=new k(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy)&&(this._destroy=t.destroy),c.call(this)}function C(e,t,r,i,n){f("readableAddChunk",t);var s,a,o,l,c,d=e._readableState;if(null===t)d.reading=!1,o=e,l=d,f("onEofChunk"),l.ended||(l.decoder&&(c=l.decoder.end())&&c.length&&(l.buffer.push(c),l.length+=l.objectMode?1:c.length),l.ended=!0,l.sync?M(o):(l.needReadable=!1,l.emittedReadable||(l.emittedReadable=!0,A(o))));else if(n||(c=d,o=l=t,s=a=h.isBuffer(o)||o instanceof u||"string"==typeof l||void 0===l||c.objectMode?a:new g("chunk",["string","Buffer","Uint8Array"],l)),s)_(e,s);else if(d.objectMode||t&&0<t.length)if("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===h.prototype||(n=t,t=h.from(n)),i)d.endEmitted?_(e,new w):T(e,d,t,!0);else if(d.ended)_(e,new y);else{if(d.destroyed)return!1;d.reading=!1,!d.decoder||r||(t=d.decoder.write(t),d.objectMode)||0!==t.length?T(e,d,t,!1):O(e,d)}else i||(d.reading=!1,O(e,d));return!d.ended&&(d.length<d.highWaterMark||0===d.length)}function T(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&M(e)),O(e,t)}function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(1073741824<=(r=e)?r=1073741824:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function M(e){var r=e._readableState;f("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(f("emitReadable",r.flowing),r.emittedReadable=!0,t.nextTick(A,e))}function A(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function O(e,r){r.readingMore||(r.readingMore=!0,t.nextTick(j,e,r))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(f("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=0<e.listenerCount("readable"),t.resumeScheduled&&!t.paused?t.flowing=!0:0<e.listenerCount("data")&&e.resume()}function R(e){f("readable nexttick read 0"),e.read(0)}function N(e,t){f("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function B(e){var r=e._readableState;f("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,t.nextTick(F,r,e))}function F(e,t){f("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)&&(!(e=t._writableState)||e.autoDestroy&&e.finished)&&t.destroy()}function L(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=h.from(e,t),t=""),r=!0),C(this,e,t,!1,r)},S.prototype.unshift=function(e){return C(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){var r=new(a=a||e("string_decoder/").StringDecoder)(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,n="";null!==i;)n+=r.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},S.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t,r=this._readableState,i=e;return 0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:0<r.length)||r.ended)?(f("read: emitReadable",r.length,r.ended),(0===r.length&&r.ended?B:M)(this),null):0===(e=E(e,r))&&r.ended?(0===r.length&&B(this),null):(t=r.needReadable,f("need readable",t),(0===r.length||r.length-e<r.highWaterMark)&&f("length less than watermark",t=!0),r.ended||r.reading?f("reading or ended",t=!1):t&&(f("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=E(i,r))),null===(t=0<e?D(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e)&&r.ended&&B(this),null!==t&&this.emit("data",t),t)},S.prototype._read=function(e){_(this,new v("_read()"))},S.prototype.pipe=function(e,r){var i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}function a(){f("onend"),e.end()}s.pipesCount+=1,f("pipe count=%d opts=%j",s.pipesCount,r),r=r&&!1===r.end||e===t.stdout||e===t.stderr?g:a,s.endEmitted?t.nextTick(r):i.once("end",r),e.on("unpipe",(function t(r,n){f("onunpipe"),r===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),e.removeListener("close",m),e.removeListener("finish",b),e.removeListener("drain",h),e.removeListener("error",p),e.removeListener("unpipe",t),i.removeListener("end",a),i.removeListener("end",g),i.removeListener("data",d),u=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||h())})),o=i;var o,l,c,h=function(){var e=o._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&n(o,"data")&&(e.flowing=!0,P(o))},u=(e.on("drain",h),!1);function d(t){f("ondata"),t=e.write(t),f("dest.write",t),!1===t&&((1===s.pipesCount&&s.pipes===e||1<s.pipesCount&&-1!==L(s.pipes,e))&&!u&&(f("false write response, pause",s.awaitDrain),s.awaitDrain++),i.pause())}function p(t){f("onerror",t),g(),e.removeListener("error",p),0===n(e,"error")&&_(e,t)}function m(){e.removeListener("finish",b),g()}function b(){f("onfinish"),e.removeListener("close",m),g()}function g(){f("unpipe"),i.unpipe(e)}return i.on("data",d),r="error",c=p,"function"==typeof(l=e).prependListener?l.prependListener(r,c):l._events&&l._events[r]?Array.isArray(l._events[r])?l._events[r].unshift(c):l._events[r]=[c,l._events[r]]:l.on(r,c),e.once("close",m),e.once("finish",b),e.emit("pipe",i),s.flowing||(f("pipe resume"),i.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0!==t.pipesCount)if(1===t.pipesCount)e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r));else if(e){var i=L(t.pipes,e);-1!==i&&(t.pipes.splice(i,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r))}else{var n=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<s;a++)n[a].emit("unpipe",this,{hasUnpiped:!1})}return this},S.prototype.addListener=S.prototype.on=function(e,r){r=c.prototype.on.call(this,e,r);var i=this._readableState;return"data"===e?(i.readableListening=0<this.listenerCount("readable"),!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,f("on readable",i.length,i.reading),i.length?M(this):i.reading||t.nextTick(R,this)),r},S.prototype.removeListener=function(e,r){return r=c.prototype.removeListener.call(this,e,r),"readable"===e&&t.nextTick(I,this),r},S.prototype.removeAllListeners=function(e){var r=c.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||t.nextTick(I,this),r},S.prototype.resume=function(){var e,r,i=this._readableState;return i.flowing||(f("resume"),i.flowing=!i.readableListening,e=this,(r=i).resumeScheduled||(r.resumeScheduled=!0,t.nextTick(N,e,r))),i.paused=!1,this},S.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t,r=this,i=this._readableState,n=!1;for(t in e.on("end",(function(){var e;f("wrapped end"),i.decoder&&!i.ended&&(e=i.decoder.end())&&e.length&&r.push(e),r.push(null)})),e.on("data",(function(t){f("wrapped data"),i.decoder&&(t=i.decoder.write(t)),i.objectMode&&null==t||(i.objectMode||t&&t.length)&&!r.push(t)&&(n=!0,e.pause())})),e)void 0===this[t]&&"function"==typeof e[t]&&(this[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t));for(var s=0;s<x.length;s++)e.on(x[s],this.emit.bind(this,x[s]));return this._read=function(t){f("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return(o=void 0===o?e("./internal/streams/async_iterator"):o)(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=D,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,r){return(l=void 0===l?e("./internal/streams/from"):l)(S,t,r)})}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,t,r){"use strict";t.exports=l;t=e("../errors").codes;var i=t.ERR_METHOD_NOT_IMPLEMENTED,n=t.ERR_MULTIPLE_CALLBACK,s=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=t.ERR_TRANSFORM_WITH_LENGTH_0,o=e("./_stream_duplex");function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState,i=(r.transforming=!1,r.writecb);if(null===i)return this.emit("error",new n);r.writechunk=null,(r.writecb=null)!=t&&this.push(t),i(e),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush)&&(this._flush=e.flush),this.on("prefinish",c)}function c(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,r){h(e,t,r)}))}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;e.push(null)}e("inherits")(l,o),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,o.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var i=this._transformState;i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming&&(r=this._readableState,i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){o.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,r,i){(function(t,i){(function(){"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){var r=t,i=e,n=r.entry;for(r.entry=null;n;){var s=n.callback;i.pendingcb--,s(void 0),n=n.next}i.corkedRequestsFree.next=r}}(r.exports=C).WritableState=S;var s,a,o={deprecate:e("util-deprecate")},l=e("./internal/streams/stream"),c=e("buffer").Buffer,h=(void 0!==i?i:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=e("./internal/streams/destroy"),d=e("./internal/streams/state").getHighWaterMark,f=e("../errors").codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,b=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,y=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,w=f.ERR_STREAM_WRITE_AFTER_END,_=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;function k(){}function S(r,i,a){s=s||e("./_stream_duplex"),r=r||{},"boolean"!=typeof a&&(a=i instanceof s),this.objectMode=!!r.objectMode,a&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=d(this,r,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,a=(this.destroyed=!1)===r.decodeStrings,this.decodeStrings=!a,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){var r,n,s,a,o=i,l=o._writableState,c=l.sync,h=l.writecb;if("function"!=typeof h)throw new b;(a=l).writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0,e?(a=o,n=c,e=e,s=h,--(r=l).pendingcb,n?(t.nextTick(s,e),t.nextTick(j,a,r),a._writableState.errorEmitted=!0,x(a,e)):(s(e),a._writableState.errorEmitted=!0,x(a,e),j(a,r))):((n=A(l)||o.destroyed)||l.corked||l.bufferProcessing||!l.bufferedRequest||M(o,l),c?t.nextTick(E,o,l,n,h):E(o,l,n,h))},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==r.emitClose,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function C(t){var r=this instanceof(s=s||e("./_stream_duplex"));if(!r&&!a.call(C,this))return new C(t);this._writableState=new S(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final)&&(this._final=t.final),l.call(this)}function T(e,t,r,i,n,s,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):r?e._writev(n,t.onwrite):e._write(n,s,t.onwrite),t.sync=!1}function E(e,t,r,i){var n;r||(r=e,0===(n=t).length&&n.needDrain&&(n.needDrain=!1,r.emit("drain"))),t.pendingcb--,i(),j(e,t)}function M(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,s=new Array(i);i=t.corkedRequestsFree;i.entry=r;for(var a=0,o=!0;r;)(s[a]=r).isBuf||(o=!1),r=r.next,a+=1;s.allBuffers=o,T(e,t,!0,t.length,s,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,h=r.callback;if(T(e,t,!1,t.objectMode?1:l.length,l,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function O(e,t){e._final((function(r){t.pendingcb--,r&&x(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,r){var i,n,s=A(r);return s&&(i=e,(n=r).prefinished||n.finalCalled||("function"!=typeof i._final||n.destroyed?(n.prefinished=!0,i.emit("prefinish")):(n.pendingcb++,n.finalCalled=!0,t.nextTick(O,i,n))),0===r.pendingcb)&&(r.finished=!0,e.emit("finish"),r.autoDestroy)&&(!(i=e._readableState)||i.autoDestroy&&i.endEmitted)&&e.destroy(),s}e("inherits")(C,l),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(S.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(o){}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===C&&e&&e._writableState instanceof S}})):a=function(e){return e instanceof this},C.prototype.pipe=function(){x(this,new g)},C.prototype.write=function(e,r,i){var n,s,a,o,l,u,d,f,m,b,g=this._writableState,y=!1,_=!g.objectMode&&(_=e,c.isBuffer(_)||_ instanceof h);return _&&!c.isBuffer(e)&&(b=e,e=c.from(b)),"function"==typeof r&&(i=r,r=null),r=_?"buffer":r||g.defaultEncoding,"function"!=typeof i&&(i=k),g.ending?(b=this,f=i,m=new w,x(b,m),t.nextTick(f,m)):_||(f=this,m=g,u=i,null===(l=e)?d=new v:"string"==typeof l||m.objectMode||(d=new p("chunk",["string","Buffer"],l)),!d)?(g.pendingcb++,l=this,g=g,e=e,r=r,i=i,(n=_)||(o=e,a=r,o=g.objectMode||!1===g.decodeStrings||"string"!=typeof o?o:c.from(o,a),e!==o&&(n=!0,r="buffer",e=o)),a=g.objectMode?1:e.length,g.length+=a,(o=g.length<g.highWaterMark)||(g.needDrain=!0),g.writing||g.corked?(s=g.lastBufferedRequest,g.lastBufferedRequest={chunk:e,encoding:r,isBuf:n,callback:i,next:null},s?s.next=g.lastBufferedRequest:g.bufferedRequest=g.lastBufferedRequest,g.bufferedRequestCount+=1):T(l,g,!1,a,e,r,i),y=o):(x(f,d),t.nextTick(u,d)),y},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||M(this,e))},C.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new _(e)},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,r){r(new m("_write()"))},C.prototype._writev=null,C.prototype.end=function(e,r,i){var n=this._writableState;return"function"==typeof e?(i=e,r=e=null):"function"==typeof r&&(i=r,r=null),null!=e&&this.write(e,r),n.corked&&(n.corked=1,this.uncork()),n.ending||(e=this,r=i,(i=n).ending=!0,j(e,i),r&&(i.finished?t.nextTick(r):e.once("finish",r)),i.ended=!0,e.writable=!1),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=u.destroy,C.prototype._undestroy=u.undestroy,C.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(e,t,r){(function(r){(function(){"use strict";var i;function n(e,t,r){var i;i=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if(t=t.call(e,"string"),"object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),(t="symbol"==typeof i?i:String(i))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}var s=e("./end-of-stream"),a=Symbol("lastResolve"),o=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),h=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function f(e,t){return{value:e,done:t}}function p(e){var t,r=e[a];null!==r&&null!==(t=e[d].read())&&(e[h]=null,e[a]=null,e[o]=null,r(f(t,!1)))}var m=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((n(i={get stream(){return this[d]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(t,i){r.nextTick((function(){e[l]?i(e[l]):t(f(void 0,!0))}))}));var i,n,s;t=this[h];if(t)i=new Promise((n=t,s=this,function(e,t){n.then((function(){s[c]?e(f(void 0,!0)):s[u](e,t)}),t)}));else{if(t=this[d].read(),null!==t)return Promise.resolve(f(t,!1));i=new Promise(this[u])}return this[h]=i}},Symbol.asyncIterator,(function(){return this})),n(i,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(f(void 0,!0))}))}))})),i),m);t.exports=function(e){var t,i=Object.create(b,(n(t={},d,{value:e,writable:!0}),n(t,a,{value:null,writable:!0}),n(t,o,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,c,{value:e._readableState.endEmitted,writable:!0}),n(t,u,{value:function(e,t){var r=i[d].read();r?(i[h]=null,i[a]=null,i[o]=null,e(f(r,!1))):(i[a]=e,i[o]=t)},writable:!0}),t));return i[h]=null,s(e,(function(e){var t;e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code?(null!==(t=i[o])&&(i[h]=null,i[a]=null,i[o]=null,t(e)),i[l]=e):(null!==(t=i[a])&&(i[h]=null,i[a]=null,t(f(void 0,!(i[o]=null)))),i[c]=!0)})),e.on("readable",function(e){r.nextTick(p,e)}.bind(null,i)),i}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,t,r){"use strict";function i(e,t){var r,i=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)),i}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){var i,n;i=e,n=r[t=t],(t=a(t))in i?Object.defineProperty(i,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[t]=n})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}function a(e){return e=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if(t=t.call(e,"string"),"object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),"symbol"==typeof e?e:String(e)}var o=e("buffer").Buffer,l=e("util").inspect;e=l&&l.custom||"inspect";function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}t.exports=(s((t=c).prototype,[{key:"push",value:function(e){e={data:e,next:null},0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(e){e={data:e,next:this.head},0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,i=o.allocUnsafe(e>>>0),n=this.head,s=0;n;)t=n.data,r=s,o.prototype.copy.call(t,i,r),s+=n.data.length,n=n.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,i=t.data;for(e-=i.length;t=t.next;){var n=t.data,s=e>n.length?n.length:e;if(s===n.length?i+=n:i+=n.slice(0,e),0==(e-=s)){s===n.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t).data=n.slice(s);break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var n=r.data,s=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,s),0==(e-=s)){s===n.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r).data=n.slice(s);break}++i}return this.length-=i,t}},{key:e,value:function(e,t){return l(this,n(n({},t),{},{depth:0,customInspect:!1}))}}]),Object.defineProperty(t,"prototype",{writable:!1}),c)},{buffer:220,util:188}],485:[function(e,t,r){(function(e){(function(){"use strict";function r(e,t){n(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}t.exports={destroy:function(t,s){var a=this,o=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return o||l?s?s(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(n,this,t)):e.nextTick(n,this,t)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!s&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(i,a):(a._writableState.errorEmitted=!0,e.nextTick(r,a,t)):e.nextTick(r,a,t):s?(e.nextTick(i,a),s(t)):e.nextTick(i,a)}))),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,t,r){"use strict";var i=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}t.exports=function e(t,r,s){var a,o,l,c,h,u,d,f,p,m,b,g;return"function"==typeof r?e(t,null,r):(a=s||n,o=!1,s=function(){if(!o){o=!0;for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.apply(this,t)}},l=(r=r||{}).readable||!1!==r.readable&&t.readable,c=r.writable||!1!==r.writable&&t.writable,h=function(){t.writable||d()},u=t._writableState&&t._writableState.finished,d=function(){u=!(c=!1),l||s.call(t)},f=t._readableState&&t._readableState.endEmitted,p=function(){f=!(l=!1),c||s.call(t)},m=function(e){s.call(t,e)},b=function(){var e;return l&&!f?(t._readableState&&t._readableState.ended||(e=new i),s.call(t,e)):c&&!u?(t._writableState&&t._writableState.ended||(e=new i),s.call(t,e)):void 0},g=function(){t.req.on("finish",d)},t.setHeader&&"function"==typeof t.abort?(t.on("complete",d),t.on("abort",b),t.req?g():t.on("request",g)):c&&!t._writableState&&(t.on("end",h),t.on("close",h)),t.on("end",p),t.on("finish",d),!1!==r.error&&t.on("error",m),t.on("close",b),function(){t.removeListener("complete",d),t.removeListener("abort",b),t.removeListener("request",g),t.req&&t.req.removeListener("finish",d),t.removeListener("end",h),t.removeListener("close",h),t.removeListener("finish",d),t.removeListener("end",p),t.removeListener("error",m),t.removeListener("close",b)})}},{"../../../errors":477}],487:[function(e,t,r){"use strict";t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,t,r){"use strict";var i,n=e("../../../errors").codes,s=n.ERR_MISSING_ARGS,a=n.ERR_STREAM_DESTROYED;function o(e){if(e)throw e}function l(e){e()}function c(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var h,u,d=(u=r).length&&"function"==typeof u[u.length-1]?u.pop():o;if((r=Array.isArray(r[0])?r[0]:r).length<2)throw new s("streams");var f=r.map((function(t,n){var s,o,c,u,p,m,b,g=n<r.length-1;return o=g,n=0<n,u=c=function(e){h=h||e,e&&f.forEach(l),g||(f.forEach(l),d(h))},p=!1,m=!(c=function(){p||(p=!0,u.apply(void 0,arguments))}),(s=t).on("close",(function(){m=!0})),(i=void 0===i?e("./end-of-stream"):i)(s,{readable:o,writable:n},(function(e){if(e)return c(e);m=!0,c()})),b=!1,function(e){if(!m&&!b)return b=!0,s.setHeader&&"function"==typeof s.abort?s.abort():"function"==typeof s.destroy?s.destroy():void c(e||new a("pipe"))}}));return r.reduce(c)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,t,r){"use strict";var i=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,n){if(t=null!=t.highWaterMark?t.highWaterMark:n?t[r]:null,null==t)return e.objectMode?16:16384;if(!isFinite(t)||Math.floor(t)!==t||t<0)throw new i(n?r:"highWaterMark",t);return Math.floor(t)}}},{"../../../errors":477}],490:[function(e,t,r){"use strict";t.exports=e("events").EventEmitter},{events:422}],491:[function(e,t,r){"use strict";(((r=t.exports=e("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,t,r){"use strict";t=function(e){var t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},s=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var s,a,o,l;t=t&&t.prototype instanceof d?t:d,t=Object.create(t.prototype),n=new _(n||[]);return i(t,"_invoke",{value:(s=e,a=r,o=n,l="suspendedStart",function(e,t){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===e)throw t;return k()}for(o.method=e,o.arg=t;;){var r=o.delegate;if(r&&(r=function e(t,r){var i=r.method,n=t.iterator[i];return void 0===n?(r.delegate=null,"throw"===i&&t.iterator.return&&(r.method="return",r.arg=void 0,e(t,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),u):(i=h(n,t.iterator,r.arg),"throw"===i.type?(r.method="throw",r.arg=i.arg,r.delegate=null,u):(n=i.arg,n?n.done?(r[t.resultName]=n.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,u):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,u)))}(r,o),r)){if(r===u)continue;return r}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===l)throw l="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);if(l="executing",r=h(s,a,o),"normal"===r.type){if(l=o.done?"completed":"suspendedYield",r.arg===u)continue;return{value:r.arg,done:o.done}}"throw"===r.type&&(l="completed",o.method="throw",o.arg=r.arg)}})}),t}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function f(){}function p(){}n={};var m=(l(n,s,(function(){return this})),Object.getPrototypeOf),b=(m=m&&m(m(x([]))),m&&m!==t&&r.call(m,s)&&(n=m),p.prototype=d.prototype=Object.create(n));function g(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var n;i(this,"_invoke",{value:function(i,s){function a(){return new t((function(n,a){!function i(n,s,a,o){var l;n=h(e[n],e,s);return"throw"!==n.type?(s=(l=n.arg).value)&&"object"==typeof s&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){i("next",e,a,o)}),(function(e){i("throw",e,a,o)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return i("throw",e,a,o)})):void o(n.arg)}(i,s,n,a)}))}return n=n?n.then(a,a):a()}})}function v(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function x(e){if(e){var t,i=e[s];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return t=-1,(i=function i(){for(;++t<e.length;)if(r.call(e,t))return i.value=e[t],i.done=!1,i;return i.value=void 0,i.done=!0,i}).next=i}return{next:k}}function k(){return{value:void 0,done:!0}}return i(b,"constructor",{value:f.prototype=p,configurable:!0}),i(p,"constructor",{value:f,configurable:!0}),f.displayName=l(p,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){return e="function"==typeof e&&e.constructor,!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,o,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},g(y.prototype),l(y.prototype,a,(function(){return this})),e.AsyncIterator=y,e.async=function(t,r,i,n,s){void 0===s&&(s=Promise);var a=new y(c(t,r,i,n),s);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(b),l(b,o,"Generator"),l(b,s,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t,r=Object(e),i=[];for(t in r)i.push(t);return i.reverse(),function e(){for(;i.length;){var t=i.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},e.values=x,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(r,i){return a.type="throw",a.arg=e,t.next=r,i&&(t.method="next",t.arg=void 0),!!i}for(var n=this.tryEntries.length-1;0<=n;--n){var s=this.tryEntries[n],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var o=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(o&&l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(o){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;0<=i;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var s=n;break}}var a=(s=s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc?null:s)?s.completion:{};return a.type=e,a.arg=t,s?(this.method="next",this.next=s.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),w(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,i,n=this.tryEntries[t];if(n.tryLoc===e)return"throw"===(r=n.completion).type&&(i=r.arg,w(n)),i}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}("object"==typeof t?t.exports:{});try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},{}],493:[function(e,t,r){"use strict";var i=e("buffer").Buffer,n=e("inherits"),s=e("hash-base"),a=new Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],h=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],u=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function f(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,r,i,n,s,a,o){return p(e+(t^r^i)+s+a|0,o)+n|0}function b(e,t,r,i,n,s,a,o){return p(e+(t&r|~t&i)+s+a|0,o)+n|0}function g(e,t,r,i,n,s,a,o){return p(e+((t|~r)^i)+s+a|0,o)+n|0}function y(e,t,r,i,n,s,a,o){return p(e+(t&i|r&~i)+s+a|0,o)+n|0}function v(e,t,r,i,n,s,a,o){return p(e+(t^(r|~i))+s+a|0,o)+n|0}n(f,s),f.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,i=0|this._b,n=0|this._c,s=0|this._d,f=0|this._e,w=0|this._a,_=0|this._b,x=0|this._c,k=0|this._d,S=0|this._e,C=0;C<80;C+=1){var T,E=C<16?(T=m(r,i,n,s,f,e[o[C]],u[0],c[C]),v(w,_,x,k,S,e[l[C]],d[0],h[C])):C<32?(T=b(r,i,n,s,f,e[o[C]],u[1],c[C]),y(w,_,x,k,S,e[l[C]],d[1],h[C])):C<48?(T=g(r,i,n,s,f,e[o[C]],u[2],c[C]),g(w,_,x,k,S,e[l[C]],d[2],h[C])):C<64?(T=y(r,i,n,s,f,e[o[C]],u[3],c[C]),b(w,_,x,k,S,e[l[C]],d[3],h[C])):(T=v(r,i,n,s,f,e[o[C]],u[4],c[C]),m(w,_,x,k,S,e[l[C]],d[4],h[C]));r=f,f=s,s=p(n,10),n=i,i=T,w=S,S=k,k=p(x,10),x=_,_=E}var M=this._b+n+k|0;this._b=this._c+s+S|0,this._c=this._d+f+w|0,this._d=this._e+r+_|0,this._e=this._a+i+x|0,this._a=M},f.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.alloc?i.alloc(20):new i(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=f},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,t,r){"use strict";
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var i=e("buffer"),n=i.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(s(i,r),r.Buffer=a),a.prototype=Object.create(n.prototype),s(n,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");return e=n(e),void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},{buffer:220}],495:[function(e,t,r){(function(r){(function(){"use strict";var i,n=e("buffer"),s=n.Buffer,a={};for(i in n)n.hasOwnProperty(i)&&"SlowBuffer"!==i&&"Buffer"!==i&&(a[i]=n[i]);var o=a.Buffer={};for(i in s)s.hasOwnProperty(i)&&"allocUnsafe"!==i&&"allocUnsafeSlow"!==i&&(o[i]=s[i]);if(a.Buffer.prototype=s.prototype,o.from&&o.from!==Uint8Array.from||(o.from=function(e,t,r){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return s(e,t,r)}),o.alloc||(o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||2*(1<<30)<=e)throw new RangeError('The value "'+e+'" is invalid for option "size"');return e=s(e),t&&0!==t.length?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e}),!a.kStringMaxLength)try{a.kStringMaxLength=r.binding("buffer").kStringMaxLength}catch(i){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),t.exports=a}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("xmlchars/xml/1.0/ed5"),n=e("xmlchars/xml/1.1/ed2"),s=(e=e("xmlchars/xmlns/1.0/ed3"),i.isS),a=i.isChar,o=i.isNameStartChar,l=i.isNameChar,c=i.S_LIST,h=i.NAME_RE,u=n.isChar,d=e.isNCNameStartChar,f=e.isNCNameChar,p=e.NC_NAME_RE;const m="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",g={__proto__:null,xml:m,xmlns:b},y={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},v=e=>34===e||39===e,w=[34,39],_=[...w,91,62],x=[...w,60,93],k=[61,63,...c],S=[...c,62,38,60];function C(e,t,r){switch(t){case"xml":r!==m&&e.fail(`xml prefix must be bound to ${m}.`);break;case"xmlns":r!==b&&e.fail(`xmlns prefix must be bound to ${b}.`)}switch(r){case b:e.fail(""===t?`the default namespace may not be set to ${r}.`:`may not assign a prefix (even "xmlns") to the URI ${b}.`);break;case m:switch(t){case"xml":break;case"":e.fail(`the default namespace may not be set to ${r}.`);break;default:e.fail("may not assign the xml namespace to another prefix.")}}}const T=e=>p.test(e),E=e=>h.test(e),M=(r.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"],{xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"});r.SaxesParser=class{constructor(e){if(this.opt=null!=e?e:{},this.fragmentOpt=!!this.opt.fragment,e=this.xmlnsOpt=!!this.opt.xmlns,this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,e){this.nameStartCheck=d,this.nameCheck=f,this.isName=T,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},g);const e=this.opt.additionalNamespaces;if(null!=e){var t=this,r=e;for(const e of Object.keys(r))C(t,e,r[e]);Object.assign(this.ns,e)}}else this.nameStartCheck=o,this.nameCheck=l,this.isName=E,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var e=(this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[],this)["fragmentOpt"];this.state=e?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=e,this.xmlDeclPossible=!e,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let t=this.opt["defaultXMLVersion"];if(void 0===t){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");t="1.0"}this.setXMLVersion(t),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(y),null!=(e=this.readyHandler)&&e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[M[e]]=t}off(e){this[M[e]]=void 0}makeError(e){var t;let r=null!=(t=this.fileName)?t:"";return this.trackPosition&&(0<r.length&&(r+=":"),r+=this.line+":"+this.column),0<r.length&&(r+=": "),new Error(r+e)}fail(e){e=this.makeError(e);var t=this.errorHandler;if(void 0===t)throw e;return t(e),this}write(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let t=!1,r=(null===e?(t=!0,e=""):"object"==typeof e&&(e=e.toString()),void 0!==this.carriedFromPrevious&&(e=""+this.carriedFromPrevious+e,this.carriedFromPrevious=void 0),e.length);var i=e.charCodeAt(r-1),n=(!t&&(13===i||55296<=i&&i<=56319)&&(this.carriedFromPrevious=e[r-1],r--,e=e.slice(0,r)),this)["stateTable"];for(this.chunk=e,this.i=0;this.i<r;)n[this.state].call(this);return this.chunkPosition+=r,t?this.end():this}close(){return this.write(null)}getCode10(){var{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;var r,i=e.charCodeAt(t);if(this.column++,i<55296){if(32<=i||9===i)return i;switch(i){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return 10===e.charCodeAt(t+1)&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),i}}return 56319<i?(57344<=i&&i<=65533||this.fail("disallowed character."),i):(r=65536+1024*(i-55296)+(e.charCodeAt(t+1)-56320),this.i=t+2,1114111<r&&this.fail("disallowed character."),r)}getCode11(){var e,{chunk:t,i:r}=this;if(this.prevI=r,this.i=r+1,r>=t.length)return-1;const i=t.charCodeAt(r);if(this.column++,i<55296){if(31<i&&i<127||159<i&&8232!==i||9===i)return i;switch(i){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const e=t.charCodeAt(r+1);10!==e&&133!==e||(this.i=r+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),i}}return 56319<i?(57344<=i&&i<=65533||this.fail("disallowed character."),i):(e=65536+1024*(i-55296)+(t.charCodeAt(r+1)-56320),this.i=r+2,1114111<e&&this.fail("disallowed character."),e)}getCodeNorm(){var e=this.getCode();return-2===e?10:e}unget(){this.i=this.prevI,this.column--}captureTo(e){let t=this["i"];for(var r=this["chunk"];;){var i=this.getCode(),n=-2===i;i=n?10:i;if(-1===i||e.includes(i))return this.text+=r.slice(t,this.prevI),i;n&&(this.text+=r.slice(t,this.prevI)+"\n",t=this.i)}}captureToChar(e){let t=this["i"];for(var r=this["chunk"];;){let i=this.getCode();switch(i){case-2:this.text+=r.slice(t,this.prevI)+"\n",t=this.i,i=10;break;case-1:return this.text+=r.slice(t),!1}if(i===e)return this.text+=r.slice(t,this.prevI),!0}}captureNameChars(){for(var{chunk:e,i:t}=this;;){var r=this.getCode();if(-1===r)return this.name+=e.slice(t),-1;if(!l(r))return this.name+=e.slice(t,this.prevI),-2===r?10:r}}skipSpaces(){for(;;){var e=this.getCodeNorm();if(-1===e||!s(e))return e}}setXMLVersion(e){"1.0"===(this.currentXMLVersion=e)?(this.isChar=a,this.getCode=this.getCode10):(this.isChar=u,this.getCode=this.getCode11)}sBegin(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){var e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case 60:if(this.state=15,0!==this.text.length)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var e,t=this.captureTo(_);switch(t){case 62:null!=(e=this.doctypeHandler)&&e.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(t),91===t?this.state=4:v(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){var e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}sDTD(){var e=this.captureTo(x);-1!==e&&(this.text+=String.fromCodePoint(e),93===e?this.state=2:60===e?this.state=6:v(e)&&(this.state=5,this.q=e))}sDTDQuoted(){var e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}sDTDOpenWaka(){var e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){var e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,"-"!==t&&(this.state="--"===t?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=45===e?10:8}sDTDCommentEnded(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e&&(this.state=4)}sText(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let e=this["i"];var t=this["chunk"];e:for(;;)switch(this.getCode()){case-2:this.entity+=t.slice(e,this.prevI)+"\n",e=this.i;break;case 59:{var r=this["entityReturnState"],i=this.entity+t.slice(e,this.prevI);let n;this.state=r,""===i?(this.fail("empty entity name."),n="&;"):(n=this.parseEntity(i),this.entity=""),13===r&&void 0===this.textHandler||(this.text+=n);break e}case-1:this.entity+=t.slice(e);break e}}sOpenWaka(){var e=this.getCode();if(o(e))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:7<=this.openWakaBang.length&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var e,t=this.getCodeNorm();45===t?(this.state=19,null!=(e=this.commentHandler)&&e.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(t),this.state=17)}sCommentEnded(){var e=this.getCodeNorm();62!==e?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(e),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){var e=this.getCodeNorm();93===e?this.state=22:(this.text+="]"+String.fromCodePoint(e),this.state=20)}sCDataEnding2(){var e,t=this.getCodeNorm();switch(t){case 62:null!=(e=this.cdataHandler)&&e.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(t),this.state=20}}sPIFirstChar(){var e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):63===e||s(e)?(this.fail("processing instruction without a target."),this.state=63===e?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=24)}sPIRest(){for(var{chunk:e,i:t}=this;;){var r=this.getCodeNorm();if(-1===r)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(r)){this.piTarget+=e.slice(t,this.prevI);var i=63===r;i||s(r)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=i?33:27):this.state=i?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(r));break}}}sPIBody(){var e;0===this.text.length?63===(e=this.getCodeNorm())?this.state=26:s(e)||(this.text=String.fromCodePoint(e)):this.captureToChar(63)&&(this.state=26)}sPIEnding(){var e;const t=this.getCodeNorm();if(62===t){const t=this["piTarget"];"xml"===t.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),null!=(e=this.piHandler)&&e.call(this,{target:t,body:this.text}),this.piTarget=this.text="",this.state=13}else 63===t?this.text+="?":(this.text+="?"+String.fromCodePoint(t),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){var e=this.skipSpaces();63!==e?-1!==e&&(this.state=28,this.name=String.fromCodePoint(e)):this.state=33}sXMLDeclName(){var e=this.captureTo(k);if(63===e)this.state=33,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");else if(s(e)||61===e){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail("expected one of "+this.xmlDeclExpects.join(", "))}this.state=61===e?30:29}}sXMLDeclEq(){var e=this.getCodeNorm();63===e?(this.state=33,this.fail("XML declaration is incomplete.")):s(e)||(61!==e&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){var e=this.getCodeNorm();63===e?(this.state=33,this.fail("XML declaration is incomplete.")):s(e)||(v(e)?this.q=e:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const e=this.captureTo([this.q,63]);if(63===e)this.state=33,this.text="",this.fail("XML declaration is incomplete.");else if(-1!==e){var t=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const e=t;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=t;break;case"standalone":"yes"!==t&&"no"!==t&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name="",this.state=32}}sXMLDeclSeparator(){var e=this.getCodeNorm();63!==e?(s(e)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var e;62===this.getCodeNorm()?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),null!=(e=this.xmldeclHandler)&&e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var e,t=this.captureNameChars();if(-1!==t){var r=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=r.ns=Object.create(null)),null!=(e=this.openTagStartHandler)&&e.call(this,r),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case 62:this.openTag();break;case 47:this.state=35;break;default:s(t)||this.fail("disallowed character in tag name."),this.state=36}}}sOpenTagSlash(){62===this.getCode()?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){var e=this.skipSpaces();-1!==e&&(o(e)?(this.unget(),this.state=37):62===e?this.openTag():47===e?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){var e=this.captureNameChars();61===e?this.state=39:s(e)?this.state=38:62===e?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):-1!==e&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){var e=this.skipSpaces();switch(e){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",62===e?this.openTag():o(e)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){var e=this.getCodeNorm();v(e)?(this.q=e,this.state=40):s(e)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){var{q:e,chunk:t}=this;let r=this["i"];for(;;)switch(this.getCode()){case e:return this.pushAttrib(this.name,this.text+t.slice(r,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=t.slice(r,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=t.slice(r,this.prevI)+" ",r=this.i;break;case 60:return this.text+=t.slice(r,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=t.slice(r))}}sAttribValueClosed(){var e=this.getCodeNorm();s(e)?this.state=36:62===e?this.openTag():47===e?this.state=35:o(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){var e=this.captureTo(S);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",62===e?this.openTag():this.state=36}}sCloseTag(){var e=this.captureNameChars();62===e?this.closeTag():s(e)?this.state=44:-1!==e&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:e,forbiddenState:t}=this;var{chunk:r,textHandler:i}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,void 0!==i){const t=this["text"],n=r.slice(e,this.prevI);0!==t.length?(i(t+n),this.text=""):0!==n.length&&i(n)}t=0;break e;case 38:this.state=14,this.entityReturnState=13,void 0!==i&&(this.text+=r.slice(e,this.prevI)),t=0;break e;case 93:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:2===t&&this.fail('the string "]]>" is disallowed in char data.'),t=0;break;case-2:void 0!==i&&(this.text+=r.slice(e,this.prevI)+"\n"),e=this.i,t=0;break;case-1:void 0!==i&&(this.text+=r.slice(e));break e;default:t=0}this.forbiddenState=t}handleTextOutsideRoot(){let e=this["i"];var{chunk:t,textHandler:r}=this;let i=!1;e:for(;;){var n=this.getCode();switch(n){case 60:if(this.state=15,void 0!==r){const i=this["text"],n=t.slice(e,this.prevI);0!==i.length?(r(i+n),this.text=""):0!==n.length&&r(n)}break e;case 38:this.state=14,this.entityReturnState=13,void 0!==r&&(this.text+=t.slice(e,this.prevI)),i=!0;break e;case-2:void 0!==r&&(this.text+=t.slice(e,this.prevI)+"\n"),e=this.i;break;case-1:void 0!==r&&(this.text+=t.slice(e));break e;default:s(n)||(i=!0)}}i&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot)&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0)}pushAttribNS(e,t){var r,{prefix:i,local:n}=this.qname(e),s={name:e,prefix:i,local:n,value:t};if(this.attribList.push(s),null!=(r=this.attributeHandler)&&r.call(this,s),"xmlns"===i){const e=t.trim();"1.0"===this.currentXMLVersion&&""===e&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=e,C(this,n,e)}else if("xmlns"===e){const e=t.trim();this.topNS[""]=e,C(this,"",e)}}pushAttribPlain(e,t){e={name:e,value:t},this.attribList.push(e),null!=(t=this.attributeHandler)&&t.call(this,e)}end(){for(var e,t=(this.sawRoot||this.fail("document must contain a root element."),this)["tags"];0<t.length;){const e=t.pop();this.fail("unclosed tag: "+e.name)}0!==this.state&&13!==this.state&&this.fail("unexpected end.");var r=this["text"];return 0!==r.length&&(null!=(e=this.textHandler)&&e.call(this,r),this.text=""),this._closed=!0,null!=(e=this.endHandler)&&e.call(this),this._init(),this}resolve(e){var t,r;let i=this.topNS[e];if(void 0!==i)return i;var n=this["tags"];for(let s=n.length-1;0<=s;s--)if(void 0!==(i=n[s].ns[e]))return i;return void 0!==(i=this.ns[e])?i:null==(r=(t=this.opt).resolvePrefix)?void 0:r.call(t,e)}qname(e){var t,r=e.indexOf(":");return-1===r?{prefix:"",local:e}:(t=e.slice(r+1),""!==(r=e.slice(0,r))&&""!==t&&!t.includes(":")||this.fail(`malformed name: ${e}.`),{prefix:r,local:t})}processAttribsNS(){var e;const t=this["attribList"],r=this.tag;{const{prefix:t,local:i}=this.qname(r.name),n=(r.prefix=t,r.local=i,r.uri=null!=(e=this.resolve(t))?e:"");""!==t&&("xmlns"===t&&this.fail('tags may not have "xmlns" as prefix.'),""===n)&&(this.fail(`unbound namespace prefix: ${JSON.stringify(t)}.`),r.uri=t)}if(0!==t.length){const e=r["attributes"],i=new Set;for(const r of t){const{name:t,prefix:n,local:s}=r;let a,o;o=""===n?(a="xmlns"===t?b:"",t):(void 0===(a=this.resolve(n))&&(this.fail(`unbound namespace prefix: ${JSON.stringify(n)}.`),a=n),`{${a}}`+s),i.has(o)&&this.fail(`duplicate attribute: ${o}.`),i.add(o),r.uri=a,e[t]=r}this.attribList=[]}}processAttribsPlain(){var e,t,r=this["attribList"],i=this.tag.attributes;for({name:e,value:t}of r)void 0!==i[e]&&this.fail(`duplicate attribute: ${e}.`),i[e]=t;this.attribList=[]}openTag(){var e,t=(this.processAttribs(),this)["tags"],r=this.tag;r.isSelfClosing=!1,null!=(e=this.openTagHandler)&&e.call(this,r),t.push(r),this.state=13,this.name=""}openSelfClosingTag(){var e,t=(this.processAttribs(),this)["tags"],r=this.tag;r.isSelfClosing=!0,null!=(e=this.openTagHandler)&&e.call(this,r),null!=(e=this.closeTagHandler)&&e.call(this,r),null===(this.tag=null!=(e=t[t.length-1])?e:null)&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){var{tags:e,name:t}=this;if(this.state=13,(this.name="")===t)this.fail("weird empty close tag."),this.text+="</>";else{var r=this.closeTagHandler;let i=e.length;for(;0<i--;){const i=this.tag=e.pop();if(this.topNS=i.ns,null!=r&&r(i),i.name===t)break;this.fail("unexpected close tag.")}0===i?this.closedRoot=!0:i<0&&(this.fail(`unmatched closing tag: ${t}.`),this.text+=`</${t}>`)}}parseEntity(e){if("#"!==e[0]){const t=this.ENTITIES[e];return void 0!==t?t:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),`&${e};`)}let t=NaN;return"x"===e[1]&&/^#x[0-9a-f]+$/i.test(e)?t=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(t=parseInt(e.slice(1),10)),this.isChar(t)?String.fromCodePoint(t):(this.fail("malformed character entity."),`&${e};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer;function n(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(e=i.from(e,t=t||"utf8"));for(var r=this._block,n=this._blockSize,s=e.length,a=this._len,o=0;o<s;){for(var l=a%n,c=Math.min(s-o,n-l),h=0;h<c;h++)r[l+h]=e[o+h];o+=c,(a+=c)%n==0&&this._update(r)}return this._len+=s,this},n.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,1+t),t>=this._finalSize&&(this._update(this._block),this._block.fill(0)),t=8*this._len,t<=4294967295||this._block.writeUInt32BE((t-(t=(4294967295&t)>>>0))/4294967296,this._blockSize-8),this._block.writeUInt32BE(t,this._blockSize-4),this._update(this._block),t=this._hash();return e?t.toString(e):t},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=n},{"safe-buffer":494}],498:[function(e,t,r){"use strict";var i=t.exports=function(e){e=e.toLowerCase();var t=i[e];if(t)return new t;throw new Error(e+" is not supported (we accept pull requests)")};i.sha=e("./sha"),i.sha1=e("./sha1"),i.sha224=e("./sha224"),i.sha256=e("./sha256"),i.sha384=e("./sha384"),i.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,t,r){"use strict";var i=e("inherits"),n=e("./hash"),s=e("safe-buffer").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function l(){this.init(),this._w=o,n.call(this,64,56)}i(l,n),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,s=0|this._d,o=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var c,h,u,d=0;d<80;++d){var f=~~(d/20),p=0|(r<<5|r>>>27)+(c=i,h=n,u=s,0===(p=f)?c&h|~c&u:2===p?c&h|c&u|h&u:c^h^u)+o+t[d]+a[f];o=s,s=n,n=i<<30|i>>>2,i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=s+this._d|0,this._e=o+this._e|0},l.prototype._hash=function(){var e=s.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,t,r){"use strict";var i=e("inherits"),n=e("./hash"),s=e("safe-buffer").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function l(){this.init(),this._w=o,n.call(this,64,56)}i(l,n),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,s=0|this._c,o=0|this._d,l=0|this._e,c=0;c<16;++c)r[c]=e.readInt32BE(4*c);for(;c<80;++c)r[c]=(t=r[c-3]^r[c-8]^r[c-14]^r[c-16])<<1|t>>>31;for(var h,u,d,f=0;f<80;++f){var p=~~(f/20),m=0|(i<<5|i>>>27)+(h=n,u=s,d=o,0===(m=p)?h&u|~h&d:2===m?h&u|h&d|u&d:h^u^d)+l+r[f]+a[p];l=o,o=s,s=n<<30|n>>>2,n=i,i=m}this._a=i+this._a|0,this._b=n+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=s.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,t,r){"use strict";var i=e("inherits"),n=e("./sha256"),s=e("./hash"),a=e("safe-buffer").Buffer,o=new Array(64);function l(){this.init(),this._w=o,s.call(this,64,56)}i(l,n),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=l},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,t,r){"use strict";var i=e("inherits"),n=e("./hash"),s=e("safe-buffer").Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function l(){this.init(),this._w=o,n.call(this,64,56)}i(l,n),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t,r=this._w,i=0|this._a,n=0|this._b,s=0|this._c,o=0|this._d,l=0|this._e,c=0|this._f,h=0|this._g,u=0|this._h,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<64;++d)r[d]=0|(((t=r[d-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[d-7]+(((t=r[d-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+r[d-16];for(var f=0;f<64;++f){var p=u+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(h^l&(c^h))+a[f]+r[f]|0,m=0|((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&n|s&(i|n));u=h,h=c,c=l,l=o+p|0,o=s,s=n,n=i,i=p+m|0}this._a=i+this._a|0,this._b=n+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=l+this._e|0,this._f=c+this._f|0,this._g=h+this._g|0,this._h=u+this._h|0},l.prototype._hash=function(){var e=s.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,t,r){"use strict";var i=e("inherits"),n=e("./sha512"),s=e("./hash"),a=e("safe-buffer").Buffer,o=new Array(160);function l(){this.init(),this._w=o,s.call(this,128,112)}i(l,n),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=l},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,t,r){"use strict";var i=e("inherits"),n=e("./hash"),s=e("safe-buffer").Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function l(){this.init(),this._w=o,n.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function h(e,t,r){return e&t|r&(e|t)}function u(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return e>>>0<t>>>0?1:0}i(l,n),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,s=0|this._dh,o=0|this._eh,l=0|this._fh,p=0|this._gh,m=0|this._hh,b=0|this._al,g=0|this._bl,y=0|this._cl,v=0|this._dl,w=0|this._el,_=0|this._fl,x=0|this._gl,k=0|this._hl,S=0;S<32;S+=2)t[S]=e.readInt32BE(4*S),t[S+1]=e.readInt32BE(4*S+4);for(;S<160;S+=2){var C=t[S-30],T=t[S-30+1],E=(C>>>1|T<<31)^(C>>>8|T<<24)^C>>>7,M=(T>>>1|C<<31)^(T>>>8|C<<24)^(T>>>7|C<<25),A=(C=t[S-4],T=t[S-4+1],(C>>>19|T<<13)^(T>>>29|C<<3)^C>>>6),O=(T=(T>>>19|C<<13)^(C>>>29|T<<3)^(T>>>6|C<<26),C=t[S-14],t[S-14+1]),j=t[S-32],I=t[S-32+1],R=M+O|0,N=(N=(N=E+C+f(R,M)|0)+A+f(R=R+T|0,T)|0)+j+f(R=R+I|0,I)|0;t[S]=N,t[S+1]=R}for(var P=0;P<160;P+=2){N=t[P];R=t[P+1];var D=h(r,i,n),B=h(b,g,y),F=u(r,b),L=u(b,r),z=d(o,w),$=d(w,o),U=a[P+1],H=c(o,l,p),V=c(w,_,x);$=k+$|0,z=(((m+z+f($,k)|0)+H+f($=$+V|0,V)|0)+a[P]+f($=$+U|0,U)|0)+N+f($=$+R|0,R)|0,H=L+B|0,V=F+D+f(H,L)|0,m=p,k=x,p=l,x=_,l=o,_=w,o=s+z+f(w=v+$|0,v)|0,s=n,v=y,n=i,y=g,i=r,g=b,r=z+V+f(b=$+H|0,$)|0}this._al=this._al+b|0,this._bl=this._bl+g|0,this._cl=this._cl+y|0,this._dl=this._dl+v|0,this._el=this._el+w|0,this._fl=this._fl+_|0,this._gl=this._gl+x|0,this._hl=this._hl+k|0,this._ah=this._ah+r+f(this._al,b)|0,this._bh=this._bh+i+f(this._bl,g)|0,this._ch=this._ch+n+f(this._cl,y)|0,this._dh=this._dh+s+f(this._dl,v)|0,this._eh=this._eh+o+f(this._el,w)|0,this._fh=this._fh+l+f(this._fl,_)|0,this._gh=this._gh+p+f(this._gl,x)|0,this._hh=this._hh+m+f(this._hl,k)|0},l.prototype._hash=function(){var e=s.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,t,r){"use strict";t.exports=n;var i=e("events").EventEmitter;function n(){i.call(this)}e("inherits")(n,i),n.Readable=e("readable-stream/readable.js"),n.Writable=e("readable-stream/writable.js"),n.Duplex=e("readable-stream/duplex.js"),n.Transform=e("readable-stream/transform.js"),n.PassThrough=e("readable-stream/passthrough.js"),(n.Stream=n).prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function s(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",s),e._isStdio||t&&!1===t.end||(r.on("end",o),r.on("close",l));var a=!1;function o(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(h(),0===i.listenerCount(this,"error"))throw e}function h(){r.removeListener("data",n),e.removeListener("drain",s),r.removeListener("end",o),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",h),r.removeListener("close",h),e.removeListener("close",h)}return r.on("error",c),e.on("error",c),r.on("end",h),r.on("close",h),e.on("close",h),e.emit("pipe",r),e}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(e,t,r){"use strict";var i={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},{}],507:[function(e,t,r){"use strict";t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,t,r){"use strict";var i=e("process-nextick-args"),n=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},s=(t=(t.exports=h,Object.create(e("core-util-is"))),t.inherits=e("inherits"),e("./_stream_readable")),a=e("./_stream_writable");t.inherits(h,s);for(var o=n(a.prototype),l=0;l<o.length;l++){var c=o[l];h.prototype[c]||(h.prototype[c]=a.prototype[c])}function h(e){if(!(this instanceof h))return new h(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",u)}function u(){this.allowHalfOpen||this._writableState.ended||i.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),h.prototype._destroy=function(e,t){this.push(null),this.end(),i.nextTick(t,e)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,t,r){"use strict";t.exports=n;var i=e("./_stream_transform");t=Object.create(e("core-util-is"));function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}t.inherits=e("inherits"),t.inherits(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,r,i){(function(t,i){(function(){"use strict";var n=e("process-nextick-args");function s(e,t){return e.listeners(t).length}r.exports=y;var a,o,l=e("isarray"),c=(y.ReadableState=g,e("events").EventEmitter,e("./internal/streams/stream")),h=e("safe-buffer").Buffer,u=(void 0!==i?i:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=Object.create(e("core-util-is")),f=(d.inherits=e("inherits"),e("util")),p=void 0,m=(p=f&&f.debuglog?f.debuglog("stream"):function(){},e("./internal/streams/BufferList")),b=(f=e("./internal/streams/destroy"),d.inherits(y,c),["error","close","destroy","pause","resume"]);function g(t,r){t=t||{};r=r instanceof(a=a||e("./_stream_duplex"));var i=(this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),t.highWaterMark),n=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(n||0===n)?n:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(o=o||e("string_decoder/").StringDecoder,this.decoder=new o(t.encoding),this.encoding=t.encoding)}function y(t){if(a=a||e("./_stream_duplex"),!(this instanceof y))return new y(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy)&&(this._destroy=t.destroy),c.call(this)}function v(e,t,r,i,n){var s,a,o,l,c,d=e._readableState;return null===t?(d.reading=!1,o=e,(l=d).ended||(l.decoder&&(c=l.decoder.end())&&c.length&&(l.buffer.push(c),l.length+=l.objectMode?1:c.length),l.ended=!0,x(o))):(n||(c=d,o=l=t,s=a=h.isBuffer(o)||o instanceof u||"string"==typeof l||void 0===l||c.objectMode?a:new TypeError("Invalid non-string/buffer chunk")),s?e.emit("error",s):d.objectMode||t&&0<t.length?("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===h.prototype||(n=t,t=h.from(n)),i?d.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,d,t,!0):d.ended?e.emit("error",new Error("stream.push() after EOF")):(d.reading=!1,!d.decoder||r||(t=d.decoder.write(t),d.objectMode)||0!==t.length?w(e,d,t,!1):S(e,d))):i||(d.reading=!1)),!d.ended&&(d.needReadable||d.length<d.highWaterMark||0===d.length)}function w(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&x(e)),S(e,t)}function _(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?(t.flowing&&t.length?t.buffer.head.data:t).length:(e>t.highWaterMark&&(t.highWaterMark=(8388608<=(r=e)?r=8388608:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(k,e):k(e))}function k(e){p("emit readable"),e.emit("readable"),M(e)}function S(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(C,e,t))}function C(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function T(e){p("readable nexttick read 0"),e.read(0)}function E(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function A(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):(e=e,r=t.buffer,t=t.decoder,e<r.head.data.length?(i=r.head.data.slice(0,e),r.head.data=r.head.data.slice(e)):i=e===r.head.data.length?r.shift():(t?function(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var s=r.data,a=e>s.length?s.length:e;if(a===s.length?n+=s:n+=s.slice(0,e),0==(e-=a)){a===s.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=s.slice(a);break}++i}return t.length-=i,n}:function(e,t){var r=h.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var s=i.data,a=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,a),0==(e-=a)){a===s.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i).data=s.slice(a);break}++n}return t.length-=n,r})(e,r),n=i),n);var r,i,n}function O(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(j,t,e))}function j(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=f.destroy,y.prototype._undestroy=f.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=h.from(e,t),t=""),r=!0),v(this,e,t,!1,r)},y.prototype.unshift=function(e){return v(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(t){return o=o||e("string_decoder/").StringDecoder,this._readableState.decoder=new o(t),this._readableState.encoding=t,this},y.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t,r=this._readableState,i=e;return 0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&(r.length>=r.highWaterMark||r.ended)?(p("read: emitReadable",r.length,r.ended),(0===r.length&&r.ended?O:x)(this),null):0===(e=_(e,r))&&r.ended?(0===r.length&&O(this),null):(t=r.needReadable,p("need readable",t),(0===r.length||r.length-e<r.highWaterMark)&&p("length less than watermark",t=!0),r.ended||r.reading?p("reading or ended",t=!1):t&&(p("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=_(i,r))),null===(t=0<e?A(e,r):null)?(r.needReadable=!0,e=0):r.length-=e,0===r.length&&(r.ended||(r.needReadable=!0),i!==e)&&r.ended&&O(this),null!==t&&this.emit("data",t),t)},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,r){var i=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}function o(){p("onend"),e.end()}a.pipesCount+=1,p("pipe count=%d opts=%j",a.pipesCount,r),r=r&&!1===r.end||e===t.stdout||e===t.stderr?w:o,a.endEmitted?n.nextTick(r):i.once("end",r),e.on("unpipe",(function t(r,n){p("onunpipe"),r===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p("cleanup"),e.removeListener("close",y),e.removeListener("finish",v),e.removeListener("drain",d),e.removeListener("error",g),e.removeListener("unpipe",t),i.removeListener("end",o),i.removeListener("end",w),i.removeListener("data",b),f=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||d())})),c=i;var c,h,u,d=function(){var e=c._readableState;p("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(c,"data")&&(e.flowing=!0,M(c))},f=(e.on("drain",d),!1),m=!1;function b(t){p("ondata"),(m=!1)!==e.write(t)||m||((1===a.pipesCount&&a.pipes===e||1<a.pipesCount&&-1!==I(a.pipes,e))&&!f&&(p("false write response, pause",a.awaitDrain),a.awaitDrain++,m=!0),i.pause())}function g(t){p("onerror",t),w(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",v),w()}function v(){p("onfinish"),e.removeListener("close",y),w()}function w(){p("unpipe"),i.unpipe(e)}return i.on("data",b),r="error",u=g,"function"==typeof(h=e).prependListener?h.prependListener(r,u):h._events&&h._events[r]?l(h._events[r])?h._events[r].unshift(u):h._events[r]=[u,h._events[r]]:h.on(r,u),e.once("close",y),e.once("finish",v),e.emit("pipe",i),a.flowing||(p("pipe resume"),i.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0!==t.pipesCount)if(1===t.pipesCount)e&&e!==t.pipes||(e=e||t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r));else if(e){var i=I(t.pipes,e);-1!==i&&(t.pipes.splice(i,1),--t.pipesCount,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r))}else{var n=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<s;a++)n[a].emit("unpipe",this,{hasUnpiped:!1})}return this},y.prototype.addListener=y.prototype.on=function(e,t){return t=c.prototype.on.call(this,e,t),"data"===e?!1!==this._readableState.flowing&&this.resume():"readable"!==e||(e=this._readableState).endEmitted||e.readableListening||(e.readableListening=e.needReadable=!0,e.emittedReadable=!1,e.reading?e.length&&x(this):n.nextTick(T,this)),t},y.prototype.resume=function(){var e,t=this._readableState;return t.flowing||(p("resume"),t.flowing=!0,e=this,(t=t).resumeScheduled||(t.resumeScheduled=!0,n.nextTick(E,e,t))),this},y.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t,r=this,i=this._readableState,n=!1;for(t in e.on("end",(function(){var e;p("wrapped end"),i.decoder&&!i.ended&&(e=i.decoder.end())&&e.length&&r.push(e),r.push(null)})),e.on("data",(function(t){p("wrapped data"),i.decoder&&(t=i.decoder.write(t)),i.objectMode&&null==t||(i.objectMode||t&&t.length)&&!r.push(t)&&(n=!0,e.pause())})),e)void 0===this[t]&&"function"==typeof e[t]&&(this[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t));for(var s=0;s<b.length;s++)e.on(b[s],this.emit.bind(this,b[s]));return this._read=function(t){p("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=A}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(e,t,r){"use strict";t.exports=n;var i=e("./_stream_duplex");t=Object.create(e("core-util-is"));function n(e){if(!(this instanceof n))return new n(e);i.call(this,e),this._transformState={afterTransform:function(e,t){var r=this._transformState,i=(r.transforming=!1,r.writecb);if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,(r.writecb=null)!=t&&this.push(t),i(e),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush)&&(this._flush=e.flush),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){a(e,t,r)})):a(this,null,null)}function a(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");e.push(null)}t.inherits=e("inherits"),t.inherits(n,i),n.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},n.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},n.prototype._write=function(e,t,r){var i=this._transformState;i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming&&(r=this._readableState,i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},n.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},n.prototype._destroy=function(e,t){var r=this;i.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,r,i){(function(t,i,n){(function(){"use strict";var s=e("process-nextick-args");function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){var r=t,i=e,n=r.entry;for(r.entry=null;n;){var s=n.callback;i.pendingcb--,s(void 0),n=n.next}i.corkedRequestsFree.next=r}}r.exports=y;var o,l,c=!t.browser&&-1<["v0.10","v0.9."].indexOf(t.version.slice(0,5))?n:s.nextTick,h=(y.WritableState=g,Object.create(e("core-util-is"))),u=(h.inherits=e("inherits"),{deprecate:e("util-deprecate")}),d=e("./internal/streams/stream"),f=e("safe-buffer").Buffer,p=(void 0!==i?i:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},m=e("./internal/streams/destroy");function b(){}function g(t,r){o=o||e("./_stream_duplex"),t=t||{};var i=r instanceof o,n=(this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),t.highWaterMark),l=t.writableHighWaterMark,h=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i&&(l||0===l)?l:h,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,n=(this.destroyed=!1)===t.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){var t,i,n,a,o,l,h,u;e=e,l=(t=r)._writableState,h=l.sync,u=l.writecb,(o=l).writing=!1,o.writecb=null,o.length-=o.writelen,o.writelen=0,e?(o=t,n=h,e=e,a=u,--(i=l).pendingcb,n?(s.nextTick(a,e),s.nextTick(S,o,i),o._writableState.errorEmitted=!0,o.emit("error",e)):(a(e),o._writableState.errorEmitted=!0,o.emit("error",e),S(o,i))):((n=x(l))||l.corked||l.bufferProcessing||!l.bufferedRequest||_(t,l),h?c(w,t,l,n,u):w(t,l,n,u))},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(t){if(o=o||e("./_stream_duplex"),!(l.call(y,this)||this instanceof o))return new y(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final)&&(this._final=t.final),d.call(this)}function v(e,t,r,i,n,s,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,s,t.onwrite),t.sync=!1}function w(e,t,r,i){var n;r||(r=e,0===(n=t).length&&n.needDrain&&(n.needDrain=!1,r.emit("drain"))),t.pendingcb--,i(),S(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i);i=t.corkedRequestsFree;i.entry=r;for(var s=0,o=!0;r;)(n[s]=r).isBuf||(o=!1),r=r.next,s+=1;n.allBuffers=o,v(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,h=r.callback;if(v(e,t,!1,t.objectMode?1:l.length,l,c,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var r,i,n=x(t);return n&&(r=e,(i=t).prefinished||i.finalCalled||("function"==typeof r._final?(i.pendingcb++,i.finalCalled=!0,s.nextTick(k,r,i)):(i.prefinished=!0,r.emit("prefinish"))),0===t.pendingcb)&&(t.finished=!0,e.emit("finish")),n}h.inherits(y,d),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(h){}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===y&&e&&e._writableState instanceof g}})):l=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var i,n,a,o,l,c,h,u,d,m=this._writableState,g=!1,y=!m.objectMode&&(y=e,f.isBuffer(y)||y instanceof p);return y&&!f.isBuffer(e)&&(d=e,e=f.from(d)),"function"==typeof t&&(r=t,t=null),t=y?"buffer":t||m.defaultEncoding,"function"!=typeof r&&(r=b),m.ended?(d=this,h=r,u=new Error("write after end"),d.emit("error",u),s.nextTick(h,u)):(y||(h=this,u=m,o=r,c=!(l=!0),null===(a=e)?c=new TypeError("May not write null values to stream"):"string"==typeof a||void 0===a||u.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c&&(h.emit("error",c),s.nextTick(o,c),l=!1),l))&&(m.pendingcb++,a=this,o=m,c=e,l=t,m=r,(e=y)||(n=c,i=l,n=o.objectMode||!1===o.decodeStrings||"string"!=typeof n?n:f.from(n,i),c!==n&&(e=!0,l="buffer",c=n)),i=o.objectMode?1:c.length,o.length+=i,(n=o.length<o.highWaterMark)||(o.needDrain=!0),o.writing||o.corked?(t=o.lastBufferedRequest,o.lastBufferedRequest={chunk:c,encoding:l,isBuf:e,callback:m,next:null},t?t.next=o.lastBufferedRequest:o.bufferedRequest=o.lastBufferedRequest,o.bufferedRequestCount+=1):v(a,o,!1,i,c,l,m),g=n),g},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||_(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase()))return this._writableState.defaultEncoding=e,this;throw new TypeError("Unknown encoding: "+e)},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||(e=this,t=r,(r=i).ending=!0,S(e,r),t&&(r.finished?s.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,n=e("util");function s(){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}t.exports=(s.prototype.push=function(e){e={data:e,next:null},0<this.length?this.tail.next=e:this.head=e,this.tail=e,++this.length},s.prototype.unshift=function(e){e={data:e,next:this.head},0===this.length&&(this.tail=e),this.head=e,++this.length},s.prototype.shift=function(){var e;if(0!==this.length)return e=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},s.prototype.concat=function(e){if(0===this.length)return i.alloc(0);for(var t,r=i.allocUnsafe(e>>>0),n=this.head,s=0;n;)t=s,n.data.copy(r,t),s+=n.data.length,n=n.next;return r},s),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":520,util:188}],514:[function(e,t,r){"use strict";var i=e("process-nextick-args");function n(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(n,this,e)):i.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,i.nextTick(n,r,e)):i.nextTick(n,r,e):t&&t(e)}))),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(e,t,r){arguments[4][490][0].apply(r,arguments)},{dup:490,events:422}],516:[function(e,t,r){"use strict";t.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,t,r){"use strict";(((r=t.exports=e("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(e,t,r){"use strict";t.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,t,r){"use strict";t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,t,r){arguments[4][217][0].apply(r,arguments)},{buffer:220,dup:217}],521:[function(e,t,r){arguments[4][218][0].apply(r,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,t,r){arguments[4][218][0].apply(r,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,t,r){(function(t,i){(function(){"use strict";var n=e("process/browser.js").nextTick,s=Function.prototype.apply,a=Array.prototype.slice,o={},l=0;function c(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new c(s.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(s.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"==typeof t?t:function(e){var t=l++,i=!(arguments.length<2)&&a.call(arguments,1);return o[t]=!0,n((function(){o[t]&&(i?e.apply(null,i):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"==typeof i?i:function(e){delete o[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,r,i){(function(e){(function(){"use strict";function t(t){try{if(!e.localStorage)return}catch(t){return}return t=e.localStorage[t],null!=t&&"true"===String(t).toLowerCase()}r.exports=function(e,r){var i;return t("noDeprecation")?e:(i=!1,function(){if(!i){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation"),i=!0}return e.apply(this,arguments)})}}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],525:[function(e,t,r){"use strict";"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){function r(){}e.super_=t,r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],526:[function(e,t,r){"use strict";t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],527:[function(e,r,i){(function(t,r){(function(){"use strict";var n=/%[sdj%]/g;i.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(" ")}r=1;for(var i=arguments,s=i.length,a=String(e).replace(n,(function(e){if("%%"===e)return"%";if(s<=r)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}})),l=i[r];r<s;l=i[++r])m(l)||!w(l)?a+=" "+l:a+=" "+o(l);return a},i.deprecate=function(e,n){var s;return y(r.process)?function(){return i.deprecate(e,n).apply(this,arguments)}:!0===t.noDeprecation?e:(s=!1,function(){if(!s){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation,s=!0}return e.apply(this,arguments)})};var s,a={};function o(e,t){var r={seen:[],stylize:c};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),p(t)?r.showHidden=t:t&&i._extend(r,t),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),h(r,e,r.depth)}function l(e,t){return t=o.styles[t],t?"["+o.colors[t][0]+"m"+e+"["+o.colors[t][1]+"m":e}function c(e,t){return e}function h(e,t,r){if(e.customInspect&&t&&k(t.inspect)&&t.inspect!==i.inspect&&(!t.constructor||t.constructor.prototype!==t))return g(n=t.inspect(r,e))?n:h(e,n,r);n=e;var n,s=y(o=t)?n.stylize("undefined","undefined"):g(o)?(s="'"+JSON.stringify(o).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",n.stylize(s,"string")):b(o)?n.stylize(""+o,"number"):p(o)?n.stylize(""+o,"boolean"):m(o)?n.stylize("null","null"):void 0;if(s)return s;var a,o=Object.keys(t),l=(a={},o.forEach((function(e,t){a[e]=!0})),a);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),x(t)&&(0<=o.indexOf("message")||0<=o.indexOf("description")))return u(t);if(0===o.length){if(k(t))return S=t.name?": "+t.name:"",e.stylize("[Function"+S+"]","special");if(v(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return u(t)}var c,w,S="",T=!1,E=["{","}"];return f(t)&&(T=!0,E=["[","]"]),k(t)&&(S=" [Function"+(t.name?": "+t.name:"")+"]"),v(t)&&(S=" "+RegExp.prototype.toString.call(t)),_(t)&&(S=" "+Date.prototype.toUTCString.call(t)),x(t)&&(S=" "+u(t)),0!==o.length||T&&0!=t.length?r<0?v(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),o=T?function(e,t,r,i,n){for(var s=[],a=0,o=t.length;a<o;++a)C(t,String(a))?s.push(d(e,t,r,i,String(a),!0)):s.push("");return n.forEach((function(n){n.match(/^\d+$/)||s.push(d(e,t,r,i,n,!0))})),s}(e,t,r,l,o):o.map((function(i){return d(e,t,r,l,i,T)})),e.seen.pop(),c=S,w=E,60<(o=o).reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)?w[0]+(""===c?"":c+"\n ")+" "+o.join(",\n ")+" "+w[1]:w[0]+c+" "+o.join(", ")+" "+w[1]):E[0]+S+E[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,i,n,s){var a,o;if((t=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?o=t.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):t.set&&(o=e.stylize("[Setter]","special")),C(i,n)||(a="["+n+"]"),o||(e.seen.indexOf(t.value)<0?-1<(o=m(r)?h(e,t.value,null):h(e,t.value,r-1)).indexOf("\n")&&(o=s?o.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return" "+e})).join("\n")):o=e.stylize("[Circular]","special")),y(a)){if(s&&n.match(/^\d+$/))return o;a=(a=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e.stylize(a,"string"))}return a+": "+o}function f(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function m(e){return null===e}function b(e){return"number"==typeof e}function g(e){return"string"==typeof e}function y(e){return void 0===e}function v(e){return w(e)&&"[object RegExp]"===S(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===S(e)}function x(e){return w(e)&&("[object Error]"===S(e)||e instanceof Error)}function k(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}i.debuglog=function(e){return y(s)&&(s=t.env.NODE_DEBUG||""),e=e.toUpperCase(),a[e]||(new RegExp("\\b"+e+"\\b","i").test(s)?(t.pid,a[e]=function(){i.format.apply(i,arguments)}):a[e]=function(){}),a[e]},(i.inspect=o).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.isArray=f,i.isBoolean=p,i.isNull=m,i.isNullOrUndefined=function(e){return null==e},i.isNumber=b,i.isString=g,i.isSymbol=function(e){return"symbol"==typeof e},i.isUndefined=y,i.isRegExp=v,i.isObject=w,i.isDate=_,i.isError=x,i.isFunction=k,i.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},i.isBuffer=e("./support/isBuffer"),i.log=function(){},i.inherits=e("inherits"),i._extend=function(e,t){if(t&&w(t))for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e}}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return u.default}});var i=d(e("./v1.js")),n=d(e("./v3.js")),s=d(e("./v4.js")),a=d(e("./v5.js")),o=d(e("./nil.js")),l=d(e("./version.js")),c=d(e("./validate.js")),h=d(e("./stringify.js")),u=d(e("./parse.js"));function d(e){return e&&e.__esModule?e:{default:e}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(e,t,r){"use strict";function i(e){return 14+(e+64>>>9<<4)+1}function n(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function s(e,t,r,i,s,a){return n((t=n(n(t,e),n(i,a)))<<s|t>>>32-s,r)}function a(e,t,r,i,n,a,o){return s(t&r|~t&i,e,t,n,a,o)}function o(e,t,r,i,n,a,o){return s(t&i|r&~i,e,t,n,a,o)}function l(e,t,r,i,n,a,o){return s(t^r^i,e,t,n,a,o)}function c(e,t,r,i,n,a,o){return s(r^(t|~i),e,t,n,a,o)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}{var r=function(e,t){e[t>>5]|=128<<t%32,e[i(t)-1]=t;let r=1732584193,s=-271733879,h=-1732584194,u=271733878;for(let i=0;i<e.length;i+=16){const t=r,d=s,f=h,p=u;r=a(r,s,h,u,e[i],7,-680876936),u=a(u,r,s,h,e[i+1],12,-389564586),h=a(h,u,r,s,e[i+2],17,606105819),s=a(s,h,u,r,e[i+3],22,-1044525330),r=a(r,s,h,u,e[i+4],7,-176418897),u=a(u,r,s,h,e[i+5],12,1200080426),h=a(h,u,r,s,e[i+6],17,-1473231341),s=a(s,h,u,r,e[i+7],22,-45705983),r=a(r,s,h,u,e[i+8],7,1770035416),u=a(u,r,s,h,e[i+9],12,-1958414417),h=a(h,u,r,s,e[i+10],17,-42063),s=a(s,h,u,r,e[i+11],22,-1990404162),r=a(r,s,h,u,e[i+12],7,1804603682),u=a(u,r,s,h,e[i+13],12,-40341101),h=a(h,u,r,s,e[i+14],17,-1502002290),s=a(s,h,u,r,e[i+15],22,1236535329),r=o(r,s,h,u,e[i+1],5,-165796510),u=o(u,r,s,h,e[i+6],9,-1069501632),h=o(h,u,r,s,e[i+11],14,643717713),s=o(s,h,u,r,e[i],20,-373897302),r=o(r,s,h,u,e[i+5],5,-701558691),u=o(u,r,s,h,e[i+10],9,38016083),h=o(h,u,r,s,e[i+15],14,-660478335),s=o(s,h,u,r,e[i+4],20,-405537848),r=o(r,s,h,u,e[i+9],5,568446438),u=o(u,r,s,h,e[i+14],9,-1019803690),h=o(h,u,r,s,e[i+3],14,-187363961),s=o(s,h,u,r,e[i+8],20,1163531501),r=o(r,s,h,u,e[i+13],5,-1444681467),u=o(u,r,s,h,e[i+2],9,-51403784),h=o(h,u,r,s,e[i+7],14,1735328473),s=o(s,h,u,r,e[i+12],20,-1926607734),r=l(r,s,h,u,e[i+5],4,-378558),u=l(u,r,s,h,e[i+8],11,-2022574463),h=l(h,u,r,s,e[i+11],16,1839030562),s=l(s,h,u,r,e[i+14],23,-35309556),r=l(r,s,h,u,e[i+1],4,-1530992060),u=l(u,r,s,h,e[i+4],11,1272893353),h=l(h,u,r,s,e[i+7],16,-155497632),s=l(s,h,u,r,e[i+10],23,-1094730640),r=l(r,s,h,u,e[i+13],4,681279174),u=l(u,r,s,h,e[i],11,-358537222),h=l(h,u,r,s,e[i+3],16,-722521979),s=l(s,h,u,r,e[i+6],23,76029189),r=l(r,s,h,u,e[i+9],4,-640364487),u=l(u,r,s,h,e[i+12],11,-421815835),h=l(h,u,r,s,e[i+15],16,530742520),s=l(s,h,u,r,e[i+2],23,-995338651),r=c(r,s,h,u,e[i],6,-198630844),u=c(u,r,s,h,e[i+7],10,1126891415),h=c(h,u,r,s,e[i+14],15,-1416354905),s=c(s,h,u,r,e[i+5],21,-57434055),r=c(r,s,h,u,e[i+12],6,1700485571),u=c(u,r,s,h,e[i+3],10,-1894986606),h=c(h,u,r,s,e[i+10],15,-1051523),s=c(s,h,u,r,e[i+1],21,-2054922799),r=c(r,s,h,u,e[i+8],6,1873313359),u=c(u,r,s,h,e[i+15],10,-30611744),h=c(h,u,r,s,e[i+6],15,-1560198380),s=c(s,h,u,r,e[i+13],21,1309151649),r=c(r,s,h,u,e[i+4],6,-145523070),u=c(u,r,s,h,e[i+11],10,-1120210379),h=c(h,u,r,s,e[i+2],15,718787259),s=c(s,h,u,r,e[i+9],21,-343485551),r=n(r,t),s=n(s,d),h=n(h,f),u=n(u,p)}return[r,s,h,u]}(function(e){if(0===e.length)return[];var t=8*e.length,r=new Uint32Array(i(t));for(let i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r}(e),8*e.length);const t=[],s=32*r.length;for(let e=0;e<s;e+=8){const i=r[e>>5]>>>e%32&255,n=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);t.push(n)}return t}}},{}],530:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=(e=e("./validate.js"))&&e.__esModule?e:{default:e};r.default=function(e){var t,r;if((0,i.default)(e))return(r=new Uint8Array(16))[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r;throw TypeError("Invalid UUID")}},{"./validate.js":541}],532:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(e,t,r){"use strict";let i;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(i||(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))return i(n);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")};const n=new Uint8Array(16)},{}],534:[function(e,t,r){"use strict";function i(e,t){return e<<t|e>>>32-t}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const n=e.length/4+2,s=Math.ceil(n/16),a=new Array(s);for(let i=0;i<s;++i){const t=new Uint32Array(16);for(let r=0;r<16;++r)t[r]=e[64*i+4*r]<<24|e[64*i+4*r+1]<<16|e[64*i+4*r+2]<<8|e[64*i+4*r+3];a[i]=t}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(let o=0;o<s;++o){const e=new Uint32Array(80);for(let t=0;t<16;++t)e[t]=a[o][t];for(let t=16;t<80;++t)e[t]=i(e[t-3]^e[t-8]^e[t-14]^e[t-16],1);let n=r[0],s=r[1],l=r[2],c=r[3],h=r[4];for(let r=0;r<80;++r){const a=Math.floor(r/20),o=i(n,5)+function(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:return t^r^i;case 2:return t&r^t&i^r&i;case 3:return t^r^i}}(a,s,l,c)+h+t[a]+e[r]>>>0;h=c,c=l,l=i(s,30)>>>0,s=n,n=o}r[0]=r[0]+n>>>0,r[1]=r[1]+s>>>0,r[2]=r[2]+l>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+h>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},{}],535:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=(e=e("./validate.js"))&&e.__esModule?e:{default:e};const n=[];for(let s=0;s<256;++s)n.push((s+256).toString(16).substr(1));r.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;e=(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase();if((0,i.default)(e))return e;throw TypeError("Stringified UUID is invalid")}},{"./validate.js":541}],536:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=s(e("./rng.js")),n=s(e("./stringify.js"));function s(e){return e&&e.__esModule?e:{default:e}}let a,o,l=0,c=0;r.default=function(e,t,r){var s=t&&r||0,h=t||new Array(16);let u=(e=e||{}).node||a,d=void 0!==e.clockseq?e.clockseq:o;if(null==u||null==d){const t=e.random||(e.rng||i.default)();null==u&&(u=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=o=16383&(t[6]<<8|t[7]))}let f=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:c+1;if(r=f-l+(p-c)/1e4,r<0&&void 0===e.clockseq&&(d=d+1&16383),1e4<=(p=(r<0||f>l)&&void 0===e.nsecs?0:p))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=f,c=p,o=d,r=(1e4*(268435455&(f+=122192928e5))+p)%4294967296,h[s++]=r>>>24&255,h[s++]=r>>>16&255,h[s++]=r>>>8&255,h[s++]=255&r,e=f/4294967296*1e4&268435455,h[s++]=e>>>8&255,h[s++]=255&e,h[s++]=e>>>24&15|16,h[s++]=e>>>16&255,h[s++]=d>>>8|128,h[s++]=255&d;for(let i=0;i<6;++i)h[s+i]=u[i];return t||(0,n.default)(h)}},{"./rng.js":533,"./stringify.js":535}],537:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("./v35.js"));e=n(e("./md5.js"));function n(e){return e&&e.__esModule?e:{default:e}}i=(0,i.default)("v3",48,e.default),r.default=i},{"./md5.js":529,"./v35.js":538}],538:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){function s(e,s,a,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));var t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),16!==(s="string"==typeof s?(0,n.default)(s):s).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+e.length);if(l.set(s),l.set(e,s.length),(l=r(l))[6]=15&l[6]|t,l[8]=63&l[8]|128,a){o=o||0;for(let e=0;e<16;++e)a[o+e]=l[e];return a}return(0,i.default)(l)}try{s.name=e}catch(e){}return s.DNS=a,s.URL=o,s},r.URL=r.DNS=void 0;var i=s(e("./stringify.js")),n=s(e("./parse.js"));function s(e){return e&&e.__esModule?e:{default:e}}const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o=(r.DNS=a,"6ba7b811-9dad-11d1-80b4-00c04fd430c8");r.URL=o},{"./parse.js":531,"./stringify.js":535}],539:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=s(e("./rng.js")),n=s(e("./stringify.js"));function s(e){return e&&e.__esModule?e:{default:e}}r.default=function(e,t,r){var s=(e=e||{}).random||(e.rng||i.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=s[e];return t}return(0,n.default)(s)}},{"./rng.js":533,"./stringify.js":535}],540:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("./v35.js"));e=n(e("./sha1.js"));function n(e){return e&&e.__esModule?e:{default:e}}i=(0,i.default)("v5",80,e.default),r.default=i},{"./sha1.js":534,"./v35.js":538}],541:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=(e=e("./regex.js"))&&e.__esModule?e:{default:e};r.default=function(e){return"string"==typeof e&&i.default.test(e)}},{"./regex.js":532}],542:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=(e=e("./validate.js"))&&e.__esModule?e:{default:e};r.default=function(e){if((0,i.default)(e))return parseInt(e.substr(14,1),16);throw TypeError("Invalid UUID")}},{"./validate.js":541}],543:[function(e,t,r){"use strict";
- /**
- * Character classes and associated utilities for the 5th edition of XML 1.0.
- *
- * @author Louis-Dominique Dubeau
- * @license MIT
- * @copyright Louis-Dominique Dubeau
- */function i(e){return 65<=e&&e<=90||97<=e&&e<=122||58===e||95===e||8204===e||8205===e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=767||880<=e&&e<=893||895<=e&&e<=8191||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039}Object.defineProperty(r,"__esModule",{value:!0}),r.CHAR="\t\n\r --�𐀀-",r.S=" \t\r\n",r.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",r.NAME_CHAR="-"+r.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",r.CHAR_RE=new RegExp("^["+r.CHAR+"]$","u"),r.S_RE=new RegExp("^["+r.S+"]+$","u"),r.NAME_START_CHAR_RE=new RegExp("^["+r.NAME_START_CHAR+"]$","u"),r.NAME_CHAR_RE=new RegExp("^["+r.NAME_CHAR+"]$","u"),r.NAME_RE=new RegExp("^["+r.NAME_START_CHAR+"]["+r.NAME_CHAR+"]*$","u"),r.NMTOKEN_RE=new RegExp("^["+r.NAME_CHAR+"]+$","u"),r.S_LIST=[32,10,13,9],r.isChar=function(e){return 32<=e&&e<=55295||10===e||13===e||9===e||57344<=e&&e<=65533||65536<=e&&e<=1114111},r.isS=function(e){return 32===e||10===e||13===e||9===e},r.isNameStartChar=i,r.isNameChar=function(e){return i(e)||48<=e&&e<=57||45===e||46===e||183===e||768<=e&&e<=879||8255<=e&&e<=8256}},{}],544:[function(e,t,r){"use strict";
- /**
- * Character classes and associated utilities for the 2nd edition of XML 1.1.
- *
- * @author Louis-Dominique Dubeau
- * @license MIT
- * @copyright Louis-Dominique Dubeau
- */function i(e){return 65<=e&&e<=90||97<=e&&e<=122||58===e||95===e||8204===e||8205===e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=767||880<=e&&e<=893||895<=e&&e<=8191||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039}Object.defineProperty(r,"__esModule",{value:!0}),r.CHAR="--�𐀀-",r.RESTRICTED_CHAR="-\b\v\f---",r.S=" \t\r\n",r.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",r.NAME_CHAR="-"+r.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",r.CHAR_RE=new RegExp("^["+r.CHAR+"]$","u"),r.RESTRICTED_CHAR_RE=new RegExp("^["+r.RESTRICTED_CHAR+"]$","u"),r.S_RE=new RegExp("^["+r.S+"]+$","u"),r.NAME_START_CHAR_RE=new RegExp("^["+r.NAME_START_CHAR+"]$","u"),r.NAME_CHAR_RE=new RegExp("^["+r.NAME_CHAR+"]$","u"),r.NAME_RE=new RegExp("^["+r.NAME_START_CHAR+"]["+r.NAME_CHAR+"]*$","u"),r.NMTOKEN_RE=new RegExp("^["+r.NAME_CHAR+"]+$","u"),r.S_LIST=[32,10,13,9],r.isChar=function(e){return 1<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111},r.isRestrictedChar=function(e){return 1<=e&&e<=8||11===e||12===e||14<=e&&e<=31||127<=e&&e<=132||134<=e&&e<=159},r.isCharAndNotRestricted=function(e){return 9===e||10===e||13===e||31<e&&e<127||133===e||159<e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111},r.isS=function(e){return 32===e||10===e||13===e||9===e},r.isNameStartChar=i,r.isNameChar=function(e){return i(e)||48<=e&&e<=57||45===e||46===e||183===e||768<=e&&e<=879||8255<=e&&e<=8256}},{}],545:[function(e,t,r){"use strict";
- /**
- * Character class utilities for XML NS 1.0 edition 3.
- *
- * @author Louis-Dominique Dubeau
- * @license MIT
- * @copyright Louis-Dominique Dubeau
- */function i(e){return 65<=e&&e<=90||95===e||97<=e&&e<=122||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=767||880<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039}Object.defineProperty(r,"__esModule",{value:!0}),r.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",r.NC_NAME_CHAR="-"+r.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",r.NC_NAME_START_CHAR_RE=new RegExp("^["+r.NC_NAME_START_CHAR+"]$","u"),r.NC_NAME_CHAR_RE=new RegExp("^["+r.NC_NAME_CHAR+"]$","u"),r.NC_NAME_RE=new RegExp("^["+r.NC_NAME_START_CHAR+"]["+r.NC_NAME_CHAR+"]*$","u"),r.isNCNameStartChar=i,r.isNCNameChar=function(e){return i(e)||45===e||46===e||48<=e&&e<=57||183===e||768<=e&&e<=879||8255<=e&&e<=8256}},{}]},{},[15])(15)}).call(this,r("c8ba"))}}]);
|