/*! For license information please see main.0bc8edb4.js.LICENSE.txt */ (()=>{var e={50773:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});const r="abi/5.7.0"},62:(e,t,n)=>{"use strict";n.d(t,{BR:()=>c,Ej:()=>f,QV:()=>d,XI:()=>u});var r=n(52009),i=n(51848),o=n(54812),a=n(2735),s=n(50773);const l=new a.Yd(s.i);function c(e){const t=[],n=function(e,r){if(Array.isArray(r))for(let o in r){const a=e.slice();a.push(o);try{n(a,r[o])}catch(i){t.push({path:a,error:i})}}};return n([],e),t}class u{constructor(e,t,n,r){this.name=e,this.type=t,this.localName=n,this.dynamic=r}_throwError(e,t){l.throwArgumentError(e,this.localName,t)}}class d{constructor(e){(0,o.zG)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,r.xs)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,r.zo)(e._data))}writeBytes(e){let t=(0,r.lE)(e);const n=t.length%this.wordSize;return n&&(t=(0,r.zo)([t,this._padding.slice(n)])),this._writeData(t)}_getValue(e){let t=(0,r.lE)(i.O$.from(e));return t.length>this.wordSize&&l.throwError("value out-of-bounds",a.Yd.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,r.zo)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class f{constructor(e,t,n,i){(0,o.zG)(this,"_data",(0,r.lE)(e)),(0,o.zG)(this,"wordSize",t||32),(0,o.zG)(this,"_coerceFunc",n),(0,o.zG)(this,"allowLoose",i),this._offset=0}get data(){return(0,r.Dv)(this._data)}get consumed(){return this._offset}static coerce(e,t){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):f.coerce(e,t)}_peekBytes(e,t,n){let r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?r=t:l.throwError("data out-of-bounds",a.Yd.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}subReader(e){return new f(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)}readValue(){return i.O$.from(this.readBytes(this.wordSize))}}},55419:(e,t,n)=>{"use strict";n.d(t,{Hk:()=>oe,vU:()=>le});var r=n(28552),i=n(51848),o=n(52009),a=n(93358),s=n(11291),l=n(54812),c=n(2735),u=n(50773),d=n(62);class f extends d.XI{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=(0,r.getAddress)(t)}catch(n){this._throwError(n.message,t)}return e.writeValue(t)}decode(e){return(0,r.getAddress)((0,o.$m)(e.readValue().toHexString(),20))}}class h extends d.XI{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const p=new c.Yd(u.i);function m(e,t,n){let r=null;if(Array.isArray(n))r=n;else if(n&&"object"===typeof n){let e={};r=t.map((t=>{const r=t.localName;return r||p.throwError("cannot encode object for signature with missing names",c.Yd.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:n}),e[r]&&p.throwError("cannot encode object for signature with duplicate names",c.Yd.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:n}),e[r]=!0,n[r]}))}else p.throwArgumentError("invalid tuple value","tuple",n);t.length!==r.length&&p.throwArgumentError("types/value length mismatch","tuple",n);let i=new d.QV(e.wordSize),o=new d.QV(e.wordSize),a=[];t.forEach(((e,t)=>{let n=r[t];if(e.dynamic){let t=o.length;e.encode(o,n);let r=i.writeUpdatableValue();a.push((e=>{r(e+t)}))}else e.encode(i,n)})),a.forEach((e=>{e(i.length)}));let s=e.appendWriter(i);return s+=e.appendWriter(o),s}function g(e,t){let n=[],r=e.subReader(0);t.forEach((t=>{let i=null;if(t.dynamic){let n=e.readValue(),a=r.subReader(n.toNumber());try{i=t.decode(a)}catch(o){if(o.code===c.Yd.errors.BUFFER_OVERRUN)throw o;i=o,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(o){if(o.code===c.Yd.errors.BUFFER_OVERRUN)throw o;i=o,i.baseType=t.name,i.name=t.localName,i.type=t.type}void 0!=i&&n.push(i)}));const i=t.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});t.forEach(((e,t)=>{let r=e.localName;if(!r||1!==i[r])return;if("length"===r&&(r="_length"),null!=n[r])return;const o=n[t];o instanceof Error?Object.defineProperty(n,r,{enumerable:!0,get:()=>{throw o}}):n[r]=o}));for(let o=0;o{throw e}})}return Object.freeze(n)}class y extends d.XI{constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let n=0;ne._data.length&&p.throwError("insufficient data length",c.Yd.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let n=[];for(let r=0;r{e.dynamic&&(n=!0),r.push(e.type)}));super("tuple","tuple("+r.join(",")+")",t,n),this.coders=e}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});return this.coders.forEach(((n,r)=>{let i=n.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[r]))})),Object.freeze(e)}encode(e,t){return m(e,this.coders,t)}decode(e){return e.coerce(this.name,g(e,this.coders))}}const C=new c.Yd(u.i),O={};let M={calldata:!0,memory:!0,storage:!0},P={calldata:!0,memory:!0};function I(e,t){if("bytes"===e||"string"===e){if(M[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&P[t])return!0;return(M[t]||"payable"===t)&&C.throwArgumentError("invalid modifier","name",t),!1}function N(e,t){for(let n in t)(0,l.zG)(e,n,t[n])}const j=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),R=new RegExp(/^(.*)\[([0-9]*)\]$/);class B{constructor(e,t){e!==O&&C.throwError("use fromString",c.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),N(this,t);let n=this.type.match(R);N(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:B.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=j.sighash),j[e]||C.throwArgumentError("invalid format type","format",e),e===j.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"===typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==j.sighash&&(t+=this.type),t+="("+this.components.map((t=>t.format(e))).join(e===j.full?", ":",")+")"):t+=this.type,e!==j.sighash&&(!0===this.indexed&&(t+=" indexed"),e===j.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"===typeof e?B.fromString(e,t):B.fromObject(e)}static fromObject(e){return B.isParamType(e)?e:new B(O,{name:e.name||null,type:Y(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(B.fromObject):null})}static fromString(e,t){return n=function(e,t){let n=e;function r(t){C.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function i(e){let n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},a=o;for(let s=0;sB.fromString(e,t)))}class D{constructor(e,t){e!==O&&C.throwError("use a static from method",c.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),N(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return D.isFragment(e)?e:"string"===typeof e?D.fromString(e):D.fromObject(e)}static fromObject(e){if(D.isFragment(e))return e;switch(e.type){case"function":return q.fromObject(e);case"event":return L.fromObject(e);case"constructor":return H.fromObject(e);case"error":return V.fromObject(e);case"fallback":case"receive":return null}return C.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?L.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?q.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?H.fromString(e.trim()):"error"===e.split(" ")[0]?V.fromString(e.substring(5).trim()):C.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class L extends D{format(e){if(e||(e=j.sighash),j[e]||C.throwArgumentError("invalid format type","format",e),e===j.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==j.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===j.full?", ":",")+") ",e!==j.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"===typeof e?L.fromString(e):L.fromObject(e)}static fromObject(e){if(L.isEventFragment(e))return e;"event"!==e.type&&C.throwArgumentError("invalid event object","value",e);const t={name:Z(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(B.fromObject):[],type:"event"};return new L(O,t)}static fromString(e){let t=e.match(X);t||C.throwArgumentError("invalid event string","value",e);let n=!1;return t[3].split(" ").forEach((e=>{switch(e.trim()){case"anonymous":n=!0;break;case"":break;default:C.warn("unknown modifier: "+e)}})),L.fromObject({name:t[1].trim(),anonymous:n,inputs:F(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function U(e,t){t.gas=null;let n=e.split("@");return 1!==n.length?(n.length>2&&C.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||C.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=i.O$.from(n[1]),n[0]):e}function z(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function W(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&C.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&C.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||C.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&C.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&C.throwArgumentError("unable to determine stateMutability","value",e),t}class H extends D{format(e){if(e||(e=j.sighash),j[e]||C.throwArgumentError("invalid format type","format",e),e===j.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});e===j.sighash&&C.throwError("cannot format a constructor for sighash",c.Yd.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map((t=>t.format(e))).join(e===j.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"===typeof e?H.fromString(e):H.fromObject(e)}static fromObject(e){if(H.isConstructorFragment(e))return e;"constructor"!==e.type&&C.throwArgumentError("invalid constructor object","value",e);let t=W(e);t.constant&&C.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(B.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?i.O$.from(e.gas):null};return new H(O,n)}static fromString(e){let t={type:"constructor"},n=(e=U(e,t)).match(X);return n&&"constructor"===n[1].trim()||C.throwArgumentError("invalid constructor string","value",e),t.inputs=F(n[2].trim(),!1),z(n[3].trim(),t),H.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class q extends H{format(e){if(e||(e=j.sighash),j[e]||C.throwArgumentError("invalid format type","format",e),e===j.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==j.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===j.full?", ":",")+") ",e!==j.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((t=>t.format(e))).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"===typeof e?q.fromString(e):q.fromObject(e)}static fromObject(e){if(q.isFunctionFragment(e))return e;"function"!==e.type&&C.throwArgumentError("invalid function object","value",e);let t=W(e);const n={type:e.type,name:Z(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(B.fromObject):[],outputs:e.outputs?e.outputs.map(B.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?i.O$.from(e.gas):null};return new q(O,n)}static fromString(e){let t={type:"function"},n=(e=U(e,t)).split(" returns ");n.length>2&&C.throwArgumentError("invalid function string","value",e);let r=n[0].match(X);if(r||C.throwArgumentError("invalid function signature","value",e),t.name=r[1].trim(),t.name&&Z(t.name),t.inputs=F(r[2],!1),z(r[3].trim(),t),n.length>1){let r=n[1].match(X);""==r[1].trim()&&""==r[3].trim()||C.throwArgumentError("unexpected tokens","value",e),t.outputs=F(r[2],!1)}else t.outputs=[];return q.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function G(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||C.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}class V extends D{format(e){if(e||(e=j.sighash),j[e]||C.throwArgumentError("invalid format type","format",e),e===j.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==j.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===j.full?", ":",")+") ",t.trim()}static from(e){return"string"===typeof e?V.fromString(e):V.fromObject(e)}static fromObject(e){if(V.isErrorFragment(e))return e;"error"!==e.type&&C.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:Z(e.name),inputs:e.inputs?e.inputs.map(B.fromObject):[]};return G(new V(O,t))}static fromString(e){let t={type:"error"},n=e.match(X);return n||C.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&Z(t.name),t.inputs=F(n[2],!1),G(V.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function Y(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const K=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Z(e){return e&&e.match(K)||C.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}const X=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const J=new c.Yd(u.i),Q=new RegExp(/^bytes([0-9]*)$/),$=new RegExp(/^(u?int)([0-9]*)$/);const ee=new class{constructor(e){(0,l.zG)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new f(e.name);case"bool":return new b(e.name);case"string":return new A(e.name);case"bytes":return new _(e.name);case"array":return new y(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new E((e.components||[]).map((e=>this._getCoder(e))),e.name);case"":return new x(e.name)}let t=e.type.match($);if(t){let n=parseInt(t[2]||"256");return(0===n||n>256||n%8!==0)&&J.throwArgumentError("invalid "+t[1]+" bit length","param",e),new T(n/8,"int"===t[1],e.name)}if(t=e.type.match(Q),t){let n=parseInt(t[1]);return(0===n||n>32)&&J.throwArgumentError("invalid bytes length","param",e),new w(n,e.name)}return J.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new d.Ej(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new d.QV(this._getWordSize())}getDefaultValue(e){const t=e.map((e=>this._getCoder(B.from(e))));return new E(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&J.throwError("types/values length mismatch",c.Yd.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const n=e.map((e=>this._getCoder(B.from(e)))),r=new E(n,"_"),i=this._getWriter();return r.encode(i,t),i.data}decode(e,t,n){const r=e.map((e=>this._getCoder(B.from(e))));return new E(r,"_").decode(this._getReader((0,o.lE)(t),n))}},te=new c.Yd(u.i);class ne extends l.dk{}class re extends l.dk{}class ie extends l.dk{}class oe extends l.dk{static isIndexed(e){return!(!e||!e._isIndexed)}}const ae={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function se(e,t){const n=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return n.error=t,n}class le{constructor(e){let t=[];t="string"===typeof e?JSON.parse(e):e,(0,l.zG)(this,"fragments",t.map((e=>D.from(e))).filter((e=>null!=e))),(0,l.zG)(this,"_abiCoder",(0,l.tu)(new.target,"getAbiCoder")()),(0,l.zG)(this,"functions",{}),(0,l.zG)(this,"errors",{}),(0,l.zG)(this,"events",{}),(0,l.zG)(this,"structs",{}),this.fragments.forEach((e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void te.warn("duplicate definition - constructor"):void(0,l.zG)(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let n=e.format();t[n]?te.warn("duplicate definition - "+n):t[n]=e})),this.deploy||(0,l.zG)(this,"deploy",H.from({payable:!1,type:"constructor"})),(0,l.zG)(this,"_isInterface",!0)}format(e){e||(e=j.full),e===j.sighash&&te.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map((t=>t.format(e)));return e===j.json?JSON.stringify(t.map((e=>JSON.parse(e)))):t}static getAbiCoder(){return ee}static getAddress(e){return(0,r.getAddress)(e)}static getSighash(e){return(0,o.p3)((0,a.id)(e.format()),0,4)}static getEventTopic(e){return(0,a.id)(e.format())}getFunction(e){if((0,o.A7)(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];te.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.functions).filter((e=>e.split("(")[0]===t));return 0===n.length?te.throwArgumentError("no matching function","name",t):n.length>1&&te.throwArgumentError("multiple matching functions","name",t),this.functions[n[0]]}const t=this.functions[q.fromString(e).format()];return t||te.throwArgumentError("no matching function","signature",e),t}getEvent(e){if((0,o.A7)(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];te.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.events).filter((e=>e.split("(")[0]===t));return 0===n.length?te.throwArgumentError("no matching event","name",t):n.length>1&&te.throwArgumentError("multiple matching events","name",t),this.events[n[0]]}const t=this.events[L.fromString(e).format()];return t||te.throwArgumentError("no matching event","signature",e),t}getError(e){if((0,o.A7)(e)){const t=(0,l.tu)(this.constructor,"getSighash");for(const n in this.errors){if(e===t(this.errors[n]))return this.errors[n]}te.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.errors).filter((e=>e.split("(")[0]===t));return 0===n.length?te.throwArgumentError("no matching error","name",t):n.length>1&&te.throwArgumentError("multiple matching errors","name",t),this.errors[n[0]]}const t=this.errors[q.fromString(e).format()];return t||te.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"===typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(n){throw t}}return(0,l.tu)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"===typeof e&&(e=this.getEvent(e)),(0,l.tu)(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"===typeof e&&(e=this.getError(e));const n=(0,o.lE)(t);return(0,o.Dv)(n.slice(0,4))!==this.getSighash(e)&&te.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",(0,o.Dv)(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,t){return"string"===typeof e&&(e=this.getError(e)),(0,o.Dv)((0,o.zo)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"===typeof e&&(e=this.getFunction(e));const n=(0,o.lE)(t);return(0,o.Dv)(n.slice(0,4))!==this.getSighash(e)&&te.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",(0,o.Dv)(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,t){return"string"===typeof e&&(e=this.getFunction(e)),(0,o.Dv)((0,o.zo)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"===typeof e&&(e=this.getFunction(e));let n=(0,o.lE)(t),r=null,i="",a=null,s=null,l=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(u){}break;case 4:{const e=(0,o.Dv)(n.slice(0,4)),t=ae[e];if(t)a=this._abiCoder.decode(t.inputs,n.slice(4)),s=t.name,l=t.signature,t.reason&&(r=a[0]),"Error"===s?i="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(a[0])):"Panic"===s&&(i="; VM Exception while processing transaction: reverted with panic code ".concat(a[0]));else try{const t=this.getError(e);a=this._abiCoder.decode(t.inputs,n.slice(4)),s=t.name,l=t.format()}catch(u){}break}}return te.throwError("call revert exception"+i,c.Yd.errors.CALL_EXCEPTION,{method:e.format(),data:(0,o.Dv)(t),errorArgs:a,errorName:s,errorSignature:l,reason:r})}encodeFunctionResult(e,t){return"string"===typeof e&&(e=this.getFunction(e)),(0,o.Dv)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"===typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&te.throwError("too many arguments for "+e.format(),c.Yd.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let n=[];e.anonymous||n.push(this.getEventTopic(e));const r=(e,t)=>"string"===e.type?(0,a.id)(t):"bytes"===e.type?(0,s.w)((0,o.Dv)(t)):("bool"===e.type&&"boolean"===typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=i.O$.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),(0,o.$m)((0,o.Dv)(t),32));for(t.forEach(((t,i)=>{let o=e.inputs[i];o.indexed?null==t?n.push(null):"array"===o.baseType||"tuple"===o.baseType?te.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?n.push(t.map((e=>r(o,e)))):n.push(r(o,t)):null!=t&&te.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){"string"===typeof e&&(e=this.getEvent(e));const n=[],r=[],i=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&te.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(((e,o)=>{const l=t[o];if(e.indexed)if("string"===e.type)n.push((0,a.id)(l));else if("bytes"===e.type)n.push((0,s.w)(l));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(this._abiCoder.encode([e.type],[l]))}else r.push(e),i.push(l)})),{data:this._abiCoder.encode(r,i),topics:n}}decodeEventLog(e,t,n){if("string"===typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){let t=this.getEventTopic(e);(0,o.A7)(n[0],32)&&n[0].toLowerCase()===t||te.throwError("fragment/topic mismatch",c.Yd.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:n[0]}),n=n.slice(1)}let r=[],i=[],a=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(B.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(r.push(e),a.push(!1)):(i.push(e),a.push(!1))}));let s=null!=n?this._abiCoder.decode(r,(0,o.zo)(n)):null,l=this._abiCoder.decode(i,t,!0),u=[],d=0,f=0;e.inputs.forEach(((e,t)=>{if(e.indexed)if(null==s)u[t]=new oe({_isIndexed:!0,hash:null});else if(a[t])u[t]=new oe({_isIndexed:!0,hash:s[f++]});else try{u[t]=s[f++]}catch(n){u[t]=n}else try{u[t]=l[d++]}catch(n){u[t]=n}if(e.name&&null==u[e.name]){const n=u[t];n instanceof Error?Object.defineProperty(u,e.name,{enumerable:!0,get:()=>{throw se("property ".concat(JSON.stringify(e.name)),n)}}):u[e.name]=n}}));for(let o=0;o{throw se("index ".concat(o),e)}})}return Object.freeze(u)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new re({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:i.O$.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new ne({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){const t=(0,o.Dv)(e);let n=this.getError(t.substring(0,10).toLowerCase());return n?new ie({args:this._abiCoder.decode(n.inputs,"0x"+t.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(e){return!(!e||!e._isInterface)}}},15157:(e,t,n)=>{"use strict";n.d(t,{Sg:()=>l,zt:()=>c});var r=n(51848),i=n(54812),o=n(2735);var a=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const s=new o.Yd("abstract-provider/5.7.0");class l extends i.dk{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class c{constructor(){s.checkAbstract(new.target,c),(0,i.zG)(this,"_isProvider",!0)}getFeeData(){return a(this,void 0,void 0,(function*(){const{block:e,gasPrice:t}=yield(0,i.mE)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((e=>null))});let n=null,o=null,a=null;return e&&e.baseFeePerGas&&(n=e.baseFeePerGas,a=r.O$.from("1500000000"),o=e.baseFeePerGas.mul(2).add(a)),{lastBaseFeePerGas:n,maxFeePerGas:o,maxPriorityFeePerGas:a,gasPrice:t}}))}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}},72388:(e,t,n)=>{"use strict";n.d(t,{E:()=>c,b:()=>u});var r=n(54812),i=n(2735);var o=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const a=new i.Yd("abstract-signer/5.7.0"),s=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],l=[i.Yd.errors.INSUFFICIENT_FUNDS,i.Yd.errors.NONCE_EXPIRED,i.Yd.errors.REPLACEMENT_UNDERPRICED];class c{constructor(){a.checkAbstract(new.target,c),(0,r.zG)(this,"_isSigner",!0)}getBalance(e){return o(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)}))}getTransactionCount(e){return o(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)}))}estimateGas(e){return o(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const t=yield(0,r.mE)(this.checkTransaction(e));return yield this.provider.estimateGas(t)}))}call(e,t){return o(this,void 0,void 0,(function*(){this._checkProvider("call");const n=yield(0,r.mE)(this.checkTransaction(e));return yield this.provider.call(n,t)}))}sendTransaction(e){return o(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),n=yield this.signTransaction(t);return yield this.provider.sendTransaction(n)}))}getChainId(){return o(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return o(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return o(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(e){return o(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)}))}checkTransaction(e){for(const n in e)-1===s.indexOf(n)&&a.throwArgumentError("invalid transaction key: "+n,"transaction",e);const t=(0,r.DC)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then((t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&a.throwArgumentError("from address mismatch","transaction",e),t[0]))),t}populateTransaction(e){return o(this,void 0,void 0,(function*(){const t=yield(0,r.mE)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then((e=>o(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.resolveName(e);return null==t&&a.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})))),t.to.catch((e=>{})));const n=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!n?0!==t.type&&1!==t.type||!n||a.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):a.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(n&&a.throwError("network does not support EIP-1559",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):a.throwError("failed to get consistent fee data",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch((e=>{if(l.indexOf(e.code)>=0)throw e;return a.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",i.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})}))),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then((t=>(0!==t[1]&&t[0]!==t[1]&&a.throwArgumentError("chainId address mismatch","transaction",e),t[0]))),yield(0,r.mE)(t)}))}_checkProvider(e){this.provider||a.throwError("missing provider",i.Yd.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class u extends c{constructor(e,t){super(),(0,r.zG)(this,"address",e),(0,r.zG)(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then((()=>{a.throwError(e,i.Yd.errors.UNSUPPORTED_OPERATION,{operation:t})}))}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new u(this.address,e)}}},28552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getAddress:()=>h,getContractAddress:()=>g,getCreate2Address:()=>y,getIcapAddress:()=>m,isAddress:()=>p});var r=n(52009),i=n(51848),o=n(11291),a=n(80807);const s=new(n(2735).Yd)("address/5.7.0");function l(e){(0,r.A7)(e,20)||s.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let r=0;r<40;r++)n[r]=t[r].charCodeAt(0);const i=(0,r.lE)((0,o.w)(n));for(let r=0;r<40;r+=2)i[r>>1]>>4>=8&&(t[r]=t[r].toUpperCase()),(15&i[r>>1])>=8&&(t[r+1]=t[r+1].toUpperCase());return"0x"+t.join("")}const c={};for(let b=0;b<10;b++)c[String(b)]=String(b);for(let b=0;b<26;b++)c[String.fromCharCode(65+b)]=String(10+b);const u=Math.floor((d=9007199254740991,Math.log10?Math.log10(d):Math.log(d)/Math.LN10));var d;function f(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>c[e])).join("");for(;t.length>=u;){let e=t.substring(0,u);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}function h(e){let t=null;if("string"!==typeof e&&s.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=l(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&s.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==f(e)&&s.throwArgumentError("bad icap checksum","address",e),t=(0,i.g$)(e.substring(4));t.length<40;)t="0"+t;t=l("0x"+t)}else s.throwArgumentError("invalid address","address",e);return t}function p(e){try{return h(e),!0}catch(t){}return!1}function m(e){let t=(0,i.t2)(h(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+f("XE00"+t)+t}function g(e){let t=null;try{t=h(e.from)}catch(l){s.throwArgumentError("missing from address","transaction",e)}const n=(0,r.G1)((0,r.lE)(i.O$.from(e.nonce).toHexString()));return h((0,r.p3)((0,o.w)((0,a.c)([t,n])),12))}function y(e,t,n){return 32!==(0,r.E1)(t)&&s.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,r.E1)(n)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),h((0,r.p3)((0,o.w)((0,r.zo)(["0xff",h(e),t,n])),12))}},51848:(e,t,n)=>{"use strict";n.d(t,{O$:()=>f,t2:()=>b,g$:()=>y});var r=n(64166),i=n.n(r),o=n(52009),a=n(2735);var s=i().BN;const l=new a.Yd("bignumber/5.7.0"),c={},u=9007199254740991;let d=!1;class f{constructor(e,t){e!==c&&l.throwError("cannot call constructor directly; use BigNumber.from",a.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return p(m(this).fromTwos(e))}toTwos(e){return p(m(this).toTwos(e))}abs(){return"-"===this._hex[0]?f.from(this._hex.substring(1)):this}add(e){return p(m(this).add(m(e)))}sub(e){return p(m(this).sub(m(e)))}div(e){return f.from(e).isZero()&&g("division-by-zero","div"),p(m(this).div(m(e)))}mul(e){return p(m(this).mul(m(e)))}mod(e){const t=m(e);return t.isNeg()&&g("division-by-zero","mod"),p(m(this).umod(t))}pow(e){const t=m(e);return t.isNeg()&&g("negative-power","pow"),p(m(this).pow(t))}and(e){const t=m(e);return(this.isNegative()||t.isNeg())&&g("unbound-bitwise-result","and"),p(m(this).and(t))}or(e){const t=m(e);return(this.isNegative()||t.isNeg())&&g("unbound-bitwise-result","or"),p(m(this).or(t))}xor(e){const t=m(e);return(this.isNegative()||t.isNeg())&&g("unbound-bitwise-result","xor"),p(m(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&g("negative-width","mask"),p(m(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&g("negative-width","shl"),p(m(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&g("negative-width","shr"),p(m(this).shrn(e))}eq(e){return m(this).eq(m(e))}lt(e){return m(this).lt(m(e))}lte(e){return m(this).lte(m(e))}gt(e){return m(this).gt(m(e))}gte(e){return m(this).gte(m(e))}isNegative(){return"-"===this._hex[0]}isZero(){return m(this).isZero()}toNumber(){try{return m(this).toNumber()}catch(e){g("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return l.throwError("this platform does not support BigInt",a.Yd.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?d||(d=!0,l.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?l.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",a.Yd.errors.UNEXPECTED_ARGUMENT,{}):l.throwError("BigNumber.toString does not accept parameters",a.Yd.errors.UNEXPECTED_ARGUMENT,{})),m(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof f)return e;if("string"===typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new f(c,h(e)):e.match(/^-?[0-9]+$/)?new f(c,h(new s(e))):l.throwArgumentError("invalid BigNumber string","value",e);if("number"===typeof e)return e%1&&g("underflow","BigNumber.from",e),(e>=u||e<=-u)&&g("overflow","BigNumber.from",e),f.from(String(e));const t=e;if("bigint"===typeof t)return f.from(t.toString());if((0,o._t)(t))return f.from((0,o.Dv)(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"===typeof e)return f.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"===typeof e&&((0,o.A7)(e)||"-"===e[0]&&(0,o.A7)(e.substring(1))))return f.from(e)}return l.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function h(e){if("string"!==typeof e)return h(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&l.throwArgumentError("invalid hex","value",e),"0x00"===(e=h(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function p(e){return f.from(h(e))}function m(e){const t=f.from(e).toHexString();return"-"===t[0]?new s("-"+t.substring(3),16):new s(t.substring(2),16)}function g(e,t,n){const r={fault:e,operation:t};return null!=n&&(r.value=n),l.throwError(e,a.Yd.errors.NUMERIC_FAULT,r)}function y(e){return new s(e,36).toString(16)}function b(e){return new s(e,16).toString(36)}},52009:(e,t,n)=>{"use strict";n.d(t,{lE:()=>c,zo:()=>u,xs:()=>b,E1:()=>g,p3:()=>y,$P:()=>v,$m:()=>_,Dv:()=>m,_t:()=>l,Zq:()=>a,A7:()=>h,N:()=>w,G1:()=>d,Bu:()=>f});const r=new(n(2735).Yd)("bytes/5.7.0");function i(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function a(e){return h(e)&&!(e.length%2)||l(e)}function s(e){return"number"===typeof e&&e==e&&e%1===0}function l(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"===typeof e)return!1;if(!s(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function c(e,t){if(t||(t={}),"number"===typeof e){r.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),o(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),h(e)){let n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0"+n:"right"===t.hexPad?n+="0":r.throwArgumentError("hex data is odd-length","value",e));const i=[];for(let e=0;ec(e))),n=t.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(n);return t.reduce(((e,t)=>(r.set(t,e),e+t.length)),0),o(r)}function d(e){let t=c(e);if(0===t.length)return t;let n=0;for(;nt&&r.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(t);return n.set(e,t-e.length),o(n)}function h(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const p="0123456789abcdef";function m(e,t){if(t||(t={}),"number"===typeof e){r.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=p[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"===typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e))return e.toHexString();if(h(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":r.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(l(e)){let t="0x";for(let n=0;n>4]+p[15&r]}return t}return r.throwArgumentError("invalid hexlify value","value",e)}function g(e){if("string"!==typeof e)e=m(e);else if(!h(e)||e.length%2)return null;return(e.length-2)/2}function y(e,t,n){return"string"!==typeof e?e=m(e):(!h(e)||e.length%2)&&r.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function b(e){let t="0x";return e.forEach((e=>{t+=m(e).substring(2)})),t}function v(e){const t=function(e){"string"!==typeof e&&(e=m(e));h(e)||r.throwArgumentError("invalid hex string","value",e);e=e.substring(2);let t=0;for(;t2*t+2&&r.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function w(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(a(e)){let n=c(e);64===n.length?(t.v=27+(n[32]>>7),n[32]&=127,t.r=m(n.slice(0,32)),t.s=m(n.slice(32,64))):65===n.length?(t.r=m(n.slice(0,32)),t.s=m(n.slice(32,64)),t.v=n[64]):r.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:r.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=m(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const n=f(c(t._vs),32);t._vs=m(n);const i=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;const o=m(n);null==t.s?t.s=o:t.s!==o&&r.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?r.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const n=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==n&&r.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&h(t.r)?t.r=_(t.r,32):r.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&h(t.s)?t.s=_(t.s,32):r.throwArgumentError("signature missing or invalid s","signature",e);const n=c(t.s);n[0]>=128&&r.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(n[0]|=128);const i=m(n);t._vs&&(h(t._vs)||r.throwArgumentError("signature invalid _vs","signature",e),t._vs=_(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&r.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}},6321:(e,t,n)=>{"use strict";n.d(t,{Bz:()=>s,_Y:()=>o,fh:()=>a,tL:()=>i});var r=n(51848);const i=r.O$.from(-1),o=r.O$.from(0),a=r.O$.from(1),s=r.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},39707:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseContract:()=>E,Contract:()=>C,ContractFactory:()=>O});var r=n(62),i=n(55419),o=n(15157),a=n(72388),s=n(28552),l=n(51848),c=n(52009),u=n(54812),d=n(14046),f=n(2735);var h=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const p=new f.Yd("contracts/5.7.0"),m={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function g(e,t){return h(this,void 0,void 0,(function*(){const n=yield t;"string"!==typeof n&&p.throwArgumentError("invalid address or ENS name","name",n);try{return(0,s.getAddress)(n)}catch(i){}e||p.throwError("a provider or signer is needed to resolve ENS names",f.Yd.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const r=yield e.resolveName(n);return null==r&&p.throwArgumentError("resolver or addr is not configured for ENS name","name",n),r}))}function y(e,t,n){return h(this,void 0,void 0,(function*(){return Array.isArray(n)?yield Promise.all(n.map(((n,r)=>y(e,Array.isArray(t)?t[r]:t[n.name],n)))):"address"===n.type?yield g(e,t):"tuple"===n.type?yield y(e,t,n.components):"array"===n.baseType?Array.isArray(t)?yield Promise.all(t.map((t=>y(e,t,n.arrayChildren)))):Promise.reject(p.makeError("invalid value for array",f.Yd.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t}))}function b(e,t,n){return h(this,void 0,void 0,(function*(){let r={};n.length===t.inputs.length+1&&"object"===typeof n[n.length-1]&&(r=(0,u.DC)(n.pop())),p.checkArgumentCount(n.length,t.inputs.length,"passed to contract"),e.signer?r.from?r.from=(0,u.mE)({override:g(e.signer,r.from),signer:e.signer.getAddress()}).then((e=>h(this,void 0,void 0,(function*(){return(0,s.getAddress)(e.signer)!==e.override&&p.throwError("Contract with a Signer cannot override from",f.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})))):r.from=e.signer.getAddress():r.from&&(r.from=g(e.provider,r.from));const i=yield(0,u.mE)({args:y(e.signer||e.provider,n,t.inputs),address:e.resolvedAddress,overrides:(0,u.mE)(r)||{}}),o=e.interface.encodeFunctionData(t,i.args),a={data:o,to:i.address},m=i.overrides;if(null!=m.nonce&&(a.nonce=l.O$.from(m.nonce).toNumber()),null!=m.gasLimit&&(a.gasLimit=l.O$.from(m.gasLimit)),null!=m.gasPrice&&(a.gasPrice=l.O$.from(m.gasPrice)),null!=m.maxFeePerGas&&(a.maxFeePerGas=l.O$.from(m.maxFeePerGas)),null!=m.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=l.O$.from(m.maxPriorityFeePerGas)),null!=m.from&&(a.from=m.from),null!=m.type&&(a.type=m.type),null!=m.accessList&&(a.accessList=(0,d.z7)(m.accessList)),null==a.gasLimit&&null!=t.gas){let e=21e3;const n=(0,c.lE)(o);for(let t=0;tnull!=r[e]));return b.length&&p.throwError("cannot override ".concat(b.map((e=>JSON.stringify(e))).join(",")),f.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:b}),a}))}function v(e,t){const n=t.wait.bind(t);t.wait=t=>n(t).then((t=>(t.events=t.logs.map((n=>{let r=(0,u.p$)(n),i=null;try{i=e.interface.parseLog(n)}catch(o){}return i&&(r.args=i.args,r.decode=(t,n)=>e.interface.decodeEventLog(i.eventFragment,t,n),r.event=i.name,r.eventSignature=i.signature),r.removeListener=()=>e.provider,r.getBlock=()=>e.provider.getBlock(t.blockHash),r.getTransaction=()=>e.provider.getTransaction(t.transactionHash),r.getTransactionReceipt=()=>Promise.resolve(t),r})),t)))}function _(e,t,n){const r=e.signer||e.provider;return function(){for(var i=arguments.length,o=new Array(i),a=0;aArray.isArray(e)?e.join("|"):e)).join(":"):""):"*"}class k{constructor(e,t){(0,u.zG)(this,"tag",e),(0,u.zG)(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter((n=>!(!t&&n.listener===e)||(t=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((e=>e.listener))}listenerCount(){return this._listeners.length}run(e){const t=this.listenerCount();return this._listeners=this._listeners.filter((t=>{const n=e.slice();return setTimeout((()=>{t.listener.apply(this,n)}),0),!t.once})),t}prepareEvent(e){}getEmit(e){return[e]}}class T extends k{constructor(){super("error",null)}}class S extends k{constructor(e,t,n,r){const i={address:e};let o=t.getEventTopic(n);r?(o!==r[0]&&p.throwArgumentError("topic mismatch","topics",r),i.topics=r.slice()):i.topics=[o],super(x(i),i),(0,u.zG)(this,"address",e),(0,u.zG)(this,"interface",t),(0,u.zG)(this,"fragment",n)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){const t=(0,r.BR)(e.args);if(t.length)throw t[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class A extends k{constructor(e,t){super("*",{address:e}),(0,u.zG)(this,"address",e),(0,u.zG)(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{const t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,n)=>this.interface.decodeEventLog(t.eventFragment,e,n),e.args=t.args}catch(t){}}}class E{constructor(e,t,n){var r=this;(0,u.zG)(this,"interface",(0,u.tu)(new.target,"getInterface")(t)),null==n?((0,u.zG)(this,"provider",null),(0,u.zG)(this,"signer",null)):a.E.isSigner(n)?((0,u.zG)(this,"provider",n.provider||null),(0,u.zG)(this,"signer",n)):o.zt.isProvider(n)?((0,u.zG)(this,"provider",n),(0,u.zG)(this,"signer",null)):p.throwArgumentError("invalid signer or provider","signerOrProvider",n),(0,u.zG)(this,"callStatic",{}),(0,u.zG)(this,"estimateGas",{}),(0,u.zG)(this,"functions",{}),(0,u.zG)(this,"populateTransaction",{}),(0,u.zG)(this,"filters",{});{const e={};Object.keys(this.interface.events).forEach((t=>{const n=this.interface.events[t];(0,u.zG)(this.filters,t,(function(){for(var e=arguments.length,t=new Array(e),i=0;i{const n=e[t];1===n.length?(0,u.zG)(this.filters,t,this.filters[n[0]]):p.warn("Duplicate definition of ".concat(t," (").concat(n.join(", "),")"))}))}if((0,u.zG)(this,"_runningEvents",{}),(0,u.zG)(this,"_wrappedEmits",{}),null==e&&p.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,u.zG)(this,"address",e),this.provider)(0,u.zG)(this,"resolvedAddress",g(this.provider,e));else try{(0,u.zG)(this,"resolvedAddress",Promise.resolve((0,s.getAddress)(e)))}catch(c){p.throwError("provider is required to use ENS name as contract address",f.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((e=>{}));const i={},l={};Object.keys(this.interface.functions).forEach((e=>{const t=this.interface.functions[e];if(l[e])p.warn("Duplicate ABI entry for ".concat(JSON.stringify(e)));else{l[e]=!0;{const n=t.name;i["%".concat(n)]||(i["%".concat(n)]=[]),i["%".concat(n)].push(e)}null==this[e]&&(0,u.zG)(this,e,w(this,t,!0)),null==this.functions[e]&&(0,u.zG)(this.functions,e,w(this,t,!1)),null==this.callStatic[e]&&(0,u.zG)(this.callStatic,e,_(this,t,!0)),null==this.populateTransaction[e]&&(0,u.zG)(this.populateTransaction,e,function(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i{const t=i[e];if(t.length>1)return;e=e.substring(1);const n=t[0];try{null==this[e]&&(0,u.zG)(this,e,this[n])}catch(r){}null==this.functions[e]&&(0,u.zG)(this.functions,e,this.functions[n]),null==this.callStatic[e]&&(0,u.zG)(this.callStatic,e,this.callStatic[n]),null==this.populateTransaction[e]&&(0,u.zG)(this.populateTransaction,e,this.populateTransaction[n]),null==this.estimateGas[e]&&(0,u.zG)(this.estimateGas,e,this.estimateGas[n])}))}static getContractAddress(e){return(0,s.getContractAddress)(e)}static getInterface(e){return i.vU.isInterface(e)?e:new i.vU(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,e).then((e=>("0x"===e&&p.throwError("contract not deployed",f.Yd.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(e){this.signer||p.throwError("sending a transactions require a signer",f.Yd.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=(0,u.DC)(e||{});return["from","to"].forEach((function(e){null!=t[e]&&p.throwError("cannot override "+e,f.Yd.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(t)))}connect(e){"string"===typeof e&&(e=new a.b(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,u.zG)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return i.Hk.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"===typeof e){if("error"===e)return this._normalizeRunningEvent(new T);if("event"===e)return this._normalizeRunningEvent(new k("event",null));if("*"===e)return this._normalizeRunningEvent(new A(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new S(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{const t=e.topics[0];if("string"!==typeof t)throw new Error("invalid topic");const n=this.interface.getEvent(t);return this._normalizeRunningEvent(new S(this.address,this.interface,n,e.topics))}catch(t){}const n={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new k(x(n),n))}return this._normalizeRunningEvent(new A(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];const t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,n){const r=(0,u.p$)(t);return r.removeListener=()=>{n&&(e.removeListener(n),this._checkRunningEvents(e))},r.getBlock=()=>this.provider.getBlock(t.blockHash),r.getTransaction=()=>this.provider.getTransaction(t.transactionHash),r.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(r),r}_addEventListener(e,t,n){if(this.provider||p.throwError("events require a provider or a signer with a provider",f.Yd.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const n=n=>{let r=this._wrapEvent(e,n,t);if(null==r.decodeError)try{const t=e.getEmit(r);this.emit(e.filter,...t)}catch(i){r.decodeError=i.error}null!=e.filter&&this.emit("event",r),null!=r.decodeError&&this.emit("error",r.decodeError,r)};this._wrappedEmits[e.tag]=n,null!=e.filter&&this.provider.on(e.filter,n)}}queryFilter(e,t,n){const r=this._getRunningEvent(e),i=(0,u.DC)(r.filter);return"string"===typeof t&&(0,c.A7)(t,32)?(null!=n&&p.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=n?n:"latest"),this.provider.getLogs(i).then((e=>e.map((e=>this._wrapEvent(r,e,null)))))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e){if(!this.provider)return!1;const t=this._getRunningEvent(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0;return this._checkRunningEvents(t),o}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce(((e,t)=>e+this._runningEvents[t].listenerCount()),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){const e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach((t=>{e.push(t)}));return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(const e in this._runningEvents){const t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}const t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;const n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this}removeListener(e,t){return this.off(e,t)}}class C extends E{}class O{constructor(e,t,n){let r=null;r="string"===typeof t?t:(0,c._t)(t)?(0,c.Dv)(t):t&&"string"===typeof t.object?t.object:"!","0x"!==r.substring(0,2)&&(r="0x"+r),(!(0,c.A7)(r)||r.length%2)&&p.throwArgumentError("invalid bytecode","bytecode",t),n&&!a.E.isSigner(n)&&p.throwArgumentError("invalid signer","signer",n),(0,u.zG)(this,"bytecode",r),(0,u.zG)(this,"interface",(0,u.tu)(new.target,"getInterface")(e)),(0,u.zG)(this,"signer",n||null)}getDeployTransaction(){let e={};for(var t=arguments.length,n=new Array(t),r=0;r{null!=e[t]&&p.throwError("cannot override "+t,f.Yd.errors.UNSUPPORTED_OPERATION,{operation:t})})),e.value){l.O$.from(e.value).isZero()||this.interface.deploy.payable||p.throwError("non-payable constructor cannot override value",f.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:e.value})}return p.checkArgumentCount(n.length,this.interface.deploy.inputs.length," in Contract constructor"),e.data=(0,c.Dv)((0,c.zo)([this.bytecode,this.interface.encodeDeploy(n)])),e}deploy(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{id:()=>o});var r=n(11291),i=n(91953);function o(e){return(0,r.w)((0,i.Y0)(e))}},11291:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var r=n(37676),i=n.n(r),o=n(52009);function a(e){return"0x"+i().keccak_256((0,o.lE)(e))}},2735:(e,t,n)=>{"use strict";n.d(t,{Yd:()=>f});let r=!1,i=!1;const o={debug:1,default:2,info:2,warning:3,error:4,off:5};let a=o.default,s=null;const l=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(n){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var c,u;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(c||(c={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(u||(u={}));const d="0123456789abcdef";class f{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const n=e.toLowerCase();null==o[n]&&this.throwArgumentError("invalid log level name","logLevel",e),a>o[n]||console.log.apply(console,t)}debug(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=n[e];try{if(t instanceof Uint8Array){let n="";for(let e=0;e>4],n+=d[15&t[e]];r.push(e+"=Uint8Array(0x"+n+")")}else r.push(e+"="+JSON.stringify(t))}catch(s){r.push(e+"="+JSON.stringify(n[e].toString()))}})),r.push("code=".concat(t)),r.push("version=".concat(this.version));const o=e;let a="";switch(t){case u.NUMERIC_FAULT:{a="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":a+="-"+t;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break}case u.CALL_EXCEPTION:case u.INSUFFICIENT_FUNDS:case u.MISSING_NEW:case u.NONCE_EXPIRED:case u.REPLACEMENT_UNDERPRICED:case u.TRANSACTION_REPLACED:case u.UNPREDICTABLE_GAS_LIMIT:a=t}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),r.length&&(e+=" ("+r.join(", ")+")");const s=new Error(e);return s.reason=o,s.code=t,Object.keys(n).forEach((function(e){s[e]=n[e]})),s}throwError(e,t,n){throw this.makeError(e,t,n)}throwArgumentError(e,t,n){return this.throwError(e,f.errors.INVALID_ARGUMENT,{argument:t,value:n})}assert(e,t,n,r){e||this.throwError(t,n,r)}assertArgument(e,t,n,r){e||this.throwArgumentError(t,n,r)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",f.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}checkSafeUint53(e,t){"number"===typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,f.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,f.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,n){n=n?": "+n:"",et&&this.throwError("too many arguments"+n,f.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",f.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",f.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",f.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return s||(s=new f("logger/5.7.0")),s}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",f.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),r){if(!e)return;this.globalLogger().throwError("error censorship permanent",f.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!e,r=!!t}static setLogLevel(e){const t=o[e.toLowerCase()];null!=t?a=t:f.globalLogger().warn("invalid log level - "+e)}static from(e){return new f(e)}}f.errors=u,f.levels=c},88133:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getNetwork:()=>u});const r=new(n(2735).Yd)("networks/5.7.1");function i(e){const t=function(t,n){null==n&&(n={});const r=[];if(t.InfuraProvider&&"-"!==n.infura)try{r.push(new t.InfuraProvider(e,n.infura))}catch(i){}if(t.EtherscanProvider&&"-"!==n.etherscan)try{r.push(new t.EtherscanProvider(e,n.etherscan))}catch(i){}if(t.AlchemyProvider&&"-"!==n.alchemy)try{r.push(new t.AlchemyProvider(e,n.alchemy))}catch(i){}if(t.PocketProvider&&"-"!==n.pocket){const o=["goerli","ropsten","rinkeby","sepolia"];try{const i=new t.PocketProvider(e,n.pocket);i.network&&-1===o.indexOf(i.network.name)&&r.push(i)}catch(i){}}if(t.CloudflareProvider&&"-"!==n.cloudflare)try{r.push(new t.CloudflareProvider(e))}catch(i){}if(t.AnkrProvider&&"-"!==n.ankr)try{const i=["ropsten"],o=new t.AnkrProvider(e,n.ankr);o.network&&-1===i.indexOf(o.network.name)&&r.push(o)}catch(i){}if(0===r.length)return null;if(t.FallbackProvider){let i=1;return null!=n.quorum?i=n.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(r,i)}return r[0]};return t.renetwork=function(e){return i(e)},t}function o(e,t){const n=function(n,r){return n.JsonRpcProvider?new n.JsonRpcProvider(e,t):null};return n.renetwork=function(t){return o(e,t)},n}const a={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:i("homestead")},s={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:i("ropsten")},l={chainId:63,name:"classicMordor",_defaultProvider:o("https://www.ethercluster.com/mordor","classicMordor")},c={unspecified:{chainId:0,name:"unspecified"},homestead:a,mainnet:a,morden:{chainId:2,name:"morden"},ropsten:s,testnet:s,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:i("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:i("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:i("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:i("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:o("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:l,classicTestnet:l,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:o("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:i("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:i("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function u(e){if(null==e)return null;if("number"===typeof e){for(const t in c){const n=c[t];if(n.chainId===e)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"===typeof e){const t=c[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=c[e.name];if(!t)return"number"!==typeof e.chainId&&r.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&r.throwArgumentError("network chainId mismatch","network",e);let n=e._defaultProvider||null;var i;return null==n&&t._defaultProvider&&(n=(i=t._defaultProvider)&&"function"===typeof i.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:n}}},54812:(e,t,n)=>{"use strict";n.d(t,{dk:()=>m,uj:()=>c,p$:()=>p,zG:()=>a,tu:()=>s,mE:()=>l,DC:()=>u});var r=n(2735);var i=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const o=new r.Yd("properties/5.7.0");function a(e,t,n){Object.defineProperty(e,t,{enumerable:!0,value:n,writable:!1})}function s(e,t){for(let n=0;n<32;n++){if(e[t])return e[t];if(!e.prototype||"object"!==typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function l(e){return i(this,void 0,void 0,(function*(){const t=Object.keys(e).map((t=>{const n=e[t];return Promise.resolve(n).then((e=>({key:t,value:e})))}));return(yield Promise.all(t)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})}))}function c(e,t){e&&"object"===typeof e||o.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((n=>{t[n]||o.throwArgumentError("invalid object key - "+n,"transaction:"+n,e)}))}function u(e){const t={};for(const n in e)t[n]=e[n];return t}const d={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function f(e){if(void 0===e||null===e||d[typeof e])return!0;if(Array.isArray(e)||"object"===typeof e){if(!Object.isFrozen(e))return!1;const n=Object.keys(e);for(let r=0;rp(e))));if("object"===typeof e){const t={};for(const n in e){const r=e[n];void 0!==r&&a(t,n,p(r))}return t}return o.throwArgumentError("Cannot deepCopy ".concat(typeof e),"object",e)}function p(e){return h(e)}class m{constructor(e){for(const t in e)this[t]=p(e[t])}}},46748:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlchemyProvider:()=>xt,AlchemyWebSocketProvider:()=>wt,AnkrProvider:()=>At,BaseProvider:()=>Ie,CloudflareProvider:()=>Ot,EtherscanProvider:()=>Ft,FallbackProvider:()=>Qt,Formatter:()=>ie,InfuraProvider:()=>rn,InfuraWebSocketProvider:()=>nn,IpcProvider:()=>$t,JsonRpcBatchProvider:()=>on,JsonRpcProvider:()=>ct,JsonRpcSigner:()=>at,NodesmithProvider:()=>sn,PocketProvider:()=>un,Provider:()=>r.zt,Resolver:()=>Oe,StaticJsonRpcProvider:()=>yt,UrlJsonRpcProvider:()=>bt,Web3Provider:()=>pn,WebSocketProvider:()=>pt,getDefaultProvider:()=>gn,getNetwork:()=>i.getNetwork,isCommunityResourcable:()=>oe,isCommunityResource:()=>ae,showThrottleMessage:()=>le});var r=n(15157),i=n(88133),o=n(52009);function a(e){e=atob(e);const t=[];for(let n=0;n0;)n.push(e%this.base),e=e/this.base|0}let r="";for(let i=0;0===t[i]&&i=0;--i)r+=this.alphabet[n[i]];return r}decode(e){if("string"!==typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let n=0;n>=8;for(;i>0;)t.push(255&i),i>>=8}for(let n=0;e[n]===this._leader&&n0&&Array.isArray(e)?i(e,t-1):n.push(e)}))};return i(e,t),n}function y(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),i=1,o=[0,1];for(let _=1;_>--l&1}const d=Math.pow(2,31),f=d>>>1,h=f>>1,p=d-1;let m=0;for(let _=0;_<31;_++)m=m<<1|u();let g=[],y=0,b=d;for(;;){let e=Math.floor(((m-y+1)*i-1)/b),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e>>1|u(),a=a<<1^f,s=(s^f)<<1|f|1;y=a,b=1+s-a}let v=r-4;return g.map((t=>{switch(t-v){case 3:return v+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return v+256+(e[s++]<<8|e[s++]);case 1:return v+e[s++];default:return t-1}}))}(e))}function b(e){return 1&e?~e>>1:e>>1}function v(e,t){let n=Array(e);for(let r=0,i=-1;rt[e])):n}function x(e,t,n){let r=Array(e).fill(void 0).map((()=>[]));for(let i=0;ir[t].push(e)));return r}function k(e,t){let n=1+t(),r=t(),i=function(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(n)}return t}(t);return g(x(i.length,1+e,t).map(((e,t)=>{const o=e[0],a=e.slice(1);return Array(i[t]).fill(void 0).map(((e,t)=>{let i=t*r;return[o+t*n,a.map((e=>e+i))]}))})))}function T(e,t){return x(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}const S=y(a("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),A=new Set(w(S)),E=new Set(w(S)),C=function(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(k(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(T(n,e))}return function(e){const t={};for(let n=0;ne-t));return function n(){let r=[];for(;;){let i=w(e,t);if(0==i.length)break;r.push({set:new Set(i),node:n()})}r.sort(((e,t)=>t.set.size-e.set.size));let i=e(),o=i%3;i=i/3|0;let a=!!(1&i);return i>>=1,{branches:r,valid:o,fe0f:a,save:1==i,check:2==i}}()}(S),M=45,P=95;function I(e){return(0,f.XL)(e)}function N(e){return e.filter((e=>65039!=e))}function j(e){for(let n of e.split(".")){let e=I(n);try{for(let t=e.lastIndexOf(P)-1;t>=0;t--)if(e[t]!==P)throw new Error("underscore only allowed at start");if(e.length>=4&&e.every((e=>e<128))&&e[2]===M&&e[3]===M)throw new Error("invalid label extension")}catch(t){throw new Error('Invalid label "'.concat(n,'": ').concat(t.message))}}return e}function R(e){return j(function(e,t){let n=I(e).reverse(),r=[];for(;n.length;){let e=B(n);if(e){r.push(...t(e));continue}let i=n.pop();if(A.has(i)){r.push(i);continue}if(E.has(i))continue;let o=C[i];if(!o)throw new Error("Disallowed codepoint: 0x".concat(i.toString(16).toUpperCase()));r.push(...o)}return j((i=String.fromCodePoint(...r),i.normalize("NFC")));var i}(e,N))}function B(e,t){var n;let r,i,o=O,a=[],s=e.length;for(t&&(t.length=0);s;){let l=e[--s];if(o=null===(n=o.branches.find((e=>e.set.has(l))))||void 0===n?void 0:n.node,!o)break;if(o.save)i=l;else if(o.check&&l===i)break;a.push(l),o.fe0f&&(a.push(65039),s>0&&65039==e[s-1]&&s--),o.valid&&(r=a.slice(),2==o.valid&&r.splice(1,1),t&&t.push(...e.slice(s).reverse()),e.length=s)}return r}const F=new p.Yd(m),D=new Uint8Array(32);function L(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function U(e){const t=(0,f.Y0)(R(e)),n=[];if(0===e.length)return n;let r=0;for(let i=0;i=t.length)throw new Error("invalid ENS name; empty component");return n.push(L(t.slice(r))),n}function z(e){"string"!==typeof e&&F.throwArgumentError("invalid ENS name; not a string","name",e);let t=D;const n=U(e);for(;n.length;)t=(0,h.w)((0,o.zo)([t,(0,h.w)(n.pop())]));return(0,o.Dv)(t)}function W(e){return(0,o.Dv)((0,o.zo)(U(e).map((e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}D.fill(0);var H=n(43984);var q=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function G(e,t){return q(this,void 0,void 0,(function*(){null==t&&(t={});const n={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};if(!0!==t.skipFetchSetup&&(n.mode="cors",n.cache="no-cache",n.credentials="same-origin",n.redirect="follow",n.referrer="client"),null!=t.fetchOptions){const e=t.fetchOptions;e.mode&&(n.mode=e.mode),e.cache&&(n.cache=e.cache),e.credentials&&(n.credentials=e.credentials),e.redirect&&(n.redirect=e.redirect),e.referrer&&(n.referrer=e.referrer)}const r=yield fetch(e,n),i=yield r.arrayBuffer(),a={};return r.headers.forEach?r.headers.forEach(((e,t)=>{a[t.toLowerCase()]=e})):r.headers.keys().forEach((e=>{a[e.toLowerCase()]=r.headers.get(e)})),{headers:a,statusCode:r.status,statusMessage:r.statusText,body:(0,o.lE)(new Uint8Array(i))}}))}var V=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const Y=new p.Yd("web/5.7.1");function K(e){return new Promise((t=>{setTimeout(t,e)}))}function Z(e,t){if(null==e)return null;if("string"===typeof e)return e;if((0,o.Zq)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,f.ZN)(e)}catch(n){}return(0,o.Dv)(e)}return e}function X(e,t,n){let r=null;if(null!=t){r=(0,f.Y0)(t);const n="string"===typeof e?{url:e}:(0,l.DC)(e);if(n.headers){0!==Object.keys(n.headers).filter((e=>"content-type"===e.toLowerCase())).length||(n.headers=(0,l.DC)(n.headers),n.headers["content-type"]="application/json")}else n.headers={"content-type":"application/json"};e=n}return function(e,t,n){const r="object"===typeof e&&null!=e.throttleLimit?e.throttleLimit:12;Y.assertArgument(r>0&&r%1===0,"invalid connection throttle limit","connection.throttleLimit",r);const i="object"===typeof e?e.throttleCallback:null,o="object"===typeof e&&"number"===typeof e.throttleSlotInterval?e.throttleSlotInterval:100;Y.assertArgument(o>0&&o%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const c="object"===typeof e&&!!e.errorPassThrough,u={};let d=null;const h={method:"GET"};let m=!1,g=12e4;if("string"===typeof e)d=e;else if("object"===typeof e){if(null!=e&&null!=e.url||Y.throwArgumentError("missing URL","connection.url",e),d=e.url,"number"===typeof e.timeout&&e.timeout>0&&(g=e.timeout),e.headers)for(const t in e.headers)u[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(m=!0);if(h.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==d.substring(0,6)&&!0!==e.allowInsecureAuthentication&&Y.throwError("basic authentication requires a secure https url",p.Yd.errors.INVALID_ARGUMENT,{argument:"url",url:d,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;u.authorization={key:"Authorization",value:"Basic "+s((0,f.Y0)(t))}}null!=e.skipFetchSetup&&(h.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(h.fetchOptions=(0,l.DC)(e.fetchOptions))}const y=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),b=d?d.match(y):null;if(b)try{const e={statusCode:200,statusMessage:"OK",headers:{"content-type":b[1]||"text/plain"},body:b[2]?a(b[3]):(v=b[3],(0,f.Y0)(v.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))))};let t=e.body;return n&&(t=n(e.body,e)),Promise.resolve(t)}catch(k){Y.throwError("processing response error",p.Yd.errors.SERVER_ERROR,{body:Z(b[1],b[2]),error:k,requestBody:null,requestMethod:"GET",url:d})}var v;t&&(h.method="POST",h.body=t,null==u["content-type"]&&(u["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==u["content-length"]&&(u["content-length"]={key:"Content-Length",value:String(t.length)}));const _={};Object.keys(u).forEach((e=>{const t=u[e];_[t.key]=t.value})),h.headers=_;const w=function(){let e=null;return{promise:new Promise((function(t,n){g&&(e=setTimeout((()=>{null!=e&&(e=null,n(Y.makeError("timeout",p.Yd.errors.TIMEOUT,{requestBody:Z(h.body,_["content-type"]),requestMethod:h.method,timeout:g,url:d})))}),g))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),x=function(){return V(this,void 0,void 0,(function*(){for(let e=0;e=300)&&(w.cancel(),Y.throwError("bad response",p.Yd.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:Z(a,t.headers?t.headers["content-type"]:null),requestBody:Z(h.body,_["content-type"]),requestMethod:h.method,url:d})),n)try{const e=yield n(a,t);return w.cancel(),e}catch(k){if(k.throttleRetry&&e{let r=null;if(null!=e)try{r=JSON.parse((0,f.ZN)(e))}catch(i){Y.throwError("invalid JSON",p.Yd.errors.SERVER_ERROR,{body:e,error:i})}return n&&(r=n(r,t)),r}))}function J(e,t){return t||(t={}),null==(t=(0,l.DC)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(n,r){let i=null,o=!1;const a=()=>!o&&(o=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout((()=>{a()&&r(new Error("timeout"))}),t.timeout));const s=t.retryLimit;let l=0;!function i(){return e().then((function(e){if(void 0!==e)a()&&n(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(l++,l>s)return void(a()&&r(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,l)));et.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null}),(function(e){a()&&r(e)}))}()}))}var Q=n(65109),$=n.n(Q);const ee="providers/5.7.2";var te=n(28552);var ne=n(14046);const re=new p.Yd(ee);class ie{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),n=this.bigNumber.bind(this),r=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),a=this.hex.bind(this),s=this.number.bind(this),c=this.type.bind(this);return e.transaction={hash:o,type:c,accessList:ie.allowNull(this.accessList.bind(this),null),blockHash:ie.allowNull(o,null),blockNumber:ie.allowNull(s,null),transactionIndex:ie.allowNull(s,null),confirmations:ie.allowNull(s,null),from:t,gasPrice:ie.allowNull(n),maxPriorityFeePerGas:ie.allowNull(n),maxFeePerGas:ie.allowNull(n),gasLimit:n,to:ie.allowNull(t,null),value:n,nonce:s,data:i,r:ie.allowNull(this.uint256),s:ie.allowNull(this.uint256),v:ie.allowNull(s),creates:ie.allowNull(t,null),raw:ie.allowNull(i)},e.transactionRequest={from:ie.allowNull(t),nonce:ie.allowNull(s),gasLimit:ie.allowNull(n),gasPrice:ie.allowNull(n),maxPriorityFeePerGas:ie.allowNull(n),maxFeePerGas:ie.allowNull(n),to:ie.allowNull(t),value:ie.allowNull(n),data:ie.allowNull((e=>this.data(e,!0))),type:ie.allowNull(s),accessList:ie.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:s,blockNumber:s,transactionHash:o,address:t,topics:ie.arrayOf(o),data:i,logIndex:s,blockHash:o},e.receipt={to:ie.allowNull(this.address,null),from:ie.allowNull(this.address,null),contractAddress:ie.allowNull(t,null),transactionIndex:s,root:ie.allowNull(a),gasUsed:n,logsBloom:ie.allowNull(i),blockHash:o,transactionHash:o,logs:ie.arrayOf(this.receiptLog.bind(this)),blockNumber:s,confirmations:ie.allowNull(s,null),cumulativeGasUsed:n,effectiveGasPrice:ie.allowNull(n),status:ie.allowNull(s),type:c},e.block={hash:ie.allowNull(o),parentHash:o,number:s,timestamp:s,nonce:ie.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:ie.allowNull(t),extraData:i,transactions:ie.allowNull(ie.arrayOf(o)),baseFeePerGas:ie.allowNull(n)},e.blockWithTransactions=(0,l.DC)(e.block),e.blockWithTransactions.transactions=ie.allowNull(ie.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:ie.allowNull(r,void 0),toBlock:ie.allowNull(r,void 0),blockHash:ie.allowNull(o,void 0),address:ie.allowNull(t,void 0),topics:ie.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:ie.allowNull(s),blockHash:ie.allowNull(o),transactionIndex:s,removed:ie.allowNull(this.boolean.bind(this)),address:t,data:ie.allowFalsish(i,"0x"),topics:ie.arrayOf(o),transactionHash:o,logIndex:s},e}accessList(e){return(0,ne.z7)(e||[])}number(e){return"0x"===e?0:d.O$.from(e).toNumber()}type(e){return"0x"===e||null==e?0:d.O$.from(e).toNumber()}bigNumber(e){return d.O$.from(e)}boolean(e){if("boolean"===typeof e)return e;if("string"===typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"===typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,o.A7)(e))?e.toLowerCase():re.throwArgumentError("invalid hash","value",e)}data(e,t){const n=this.hex(e,t);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n}address(e){return(0,te.getAddress)(e)}callAddress(e){if(!(0,o.A7)(e,32))return null;const t=(0,te.getAddress)((0,o.p3)(e,12));return"0x0000000000000000000000000000000000000000"===t?null:t}contractAddress(e){return(0,te.getContractAddress)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"===typeof e||(0,o.A7)(e))return(0,o.$P)(e);throw new Error("invalid blockTag")}hash(e,t){const n=this.hex(e,t);return 32!==(0,o.E1)(n)?re.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(null==e)return null;const t=d.O$.from(e);try{return t.toNumber()}catch(n){}return null}uint256(e){if(!(0,o.A7)(e))throw new Error("invalid uint256");return(0,o.$m)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const n=null!=e._difficulty?e._difficulty:e.difficulty,r=ie.check(t,e);return r._difficulty=null==n?null:d.O$.from(n),r}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return ie.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&d.O$.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=ie.check(this.formats.transaction,e);if(null!=e.chainId){let n=e.chainId;(0,o.A7)(n)&&(n=d.O$.from(n).toNumber()),t.chainId=n}else{let n=e.networkId;null==n&&null==t.v&&(n=e.chainId),(0,o.A7)(n)&&(n=d.O$.from(n).toNumber()),"number"!==typeof n&&null!=t.v&&(n=(t.v-35)/2,n<0&&(n=0),n=parseInt(n)),"number"!==typeof n&&(n=0),t.chainId=n}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return(0,ne.Qc)(e)}receiptLog(e){return ie.check(this.formats.receiptLog,e)}receipt(e){const t=ie.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=d.O$.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&re.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):re.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&re.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map((e=>this.topics(e))):null!=e?this.hash(e,!0):null}filter(e){return ie.check(this.formats.filter,e)}filterLog(e){return ie.check(this.formats.filterLog,e)}static check(e,t){const n={};for(const i in e)try{const r=e[i](t[i]);void 0!==r&&(n[i]=r)}catch(r){throw r.checkKey=i,r.checkValue=t[i],r}return n}static allowNull(e,t){return function(n){return null==n?t:e(n)}}static allowFalsish(e,t){return function(n){return n?e(n):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const n=[];return t.forEach((function(t){n.push(e(t))})),n}}}function oe(e){return e&&"function"===typeof e.isCommunityResource}function ae(e){return oe(e)&&e.isCommunityResource()}let se=!1;function le(){se||(se=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var ce=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const ue=new p.Yd(ee);function de(e){return null==e?"null":(32!==(0,o.E1)(e)&&ue.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function fe(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((e=>{if(Array.isArray(e)){const t={};e.forEach((e=>{t[de(e)]=!0}));const n=Object.keys(t);return n.sort(),n.join("|")}return de(e)})).join("&")}function he(e){if("string"===typeof e){if(e=e.toLowerCase(),32===(0,o.E1)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+fe(e);if(r.Sg.isForkEvent(e))throw ue.warn("not implemented"),new Error("not implemented");if(e&&"object"===typeof e)return"filter:"+(e.address||"*")+":"+fe(e.topics||[])}throw new Error("invalid event - "+e)}function pe(){return(new Date).getTime()}function me(e){return new Promise((t=>{setTimeout(t,e)}))}const ge=["block","network","pending","poll"];class ye{constructor(e,t,n){(0,l.zG)(this,"tag",e),(0,l.zG)(this,"listener",t),(0,l.zG)(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],n=""===(r=e[2])?[]:r.split(/&/g).map((e=>{if(""===e)return[];const t=e.split("|").map((e=>"null"===e?null:e));return 1===t.length?t[0]:t}));var r;const i={};return n.length>0&&(i.topics=n),t&&"*"!==t&&(i.address=t),i}pollable(){return this.tag.indexOf(":")>=0||ge.indexOf(this.tag)>=0}}const be={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function ve(e){return(0,o.$m)(d.O$.from(e).toHexString(),32)}function _e(e){return u.encode((0,o.zo)([e,(0,o.p3)((0,H.JQ)((0,H.JQ)(e)),0,4)]))}const we=new RegExp("^(ipfs)://(.*)$","i"),xe=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),we,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function ke(e,t){try{return(0,f.ZN)(Te(e,t))}catch(n){}return null}function Te(e,t){if("0x"===e)return null;const n=d.O$.from((0,o.p3)(e,t,t+32)).toNumber(),r=d.O$.from((0,o.p3)(e,n,n+32)).toNumber();return(0,o.p3)(e,n+32,n+32+r)}function Se(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):ue.throwArgumentError("unsupported IPFS format","link",e),"https://gateway.ipfs.io/ipfs/".concat(e)}function Ae(e){const t=(0,o.lE)(e);if(t.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(t,32-t.length),n}function Ee(e){if(e.length%32===0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function Ce(e){const t=[];let n=0;for(let r=0;rd.O$.from(e).eq(1))).catch((e=>{if(e.code===p.Yd.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e}))),this._supportsEip2544}_fetch(e,t){return ce(this,void 0,void 0,(function*(){const n={to:this.address,ccipReadEnabled:!0,data:(0,o.xs)([e,z(this.name),t||"0x"])};let r=!1;(yield this.supportsWildcard())&&(r=!0,n.data=(0,o.xs)(["0x9061b923",Ce([W(this.name),n.data])]));try{let e=yield this.provider.call(n);return(0,o.lE)(e).length%32===4&&ue.throwError("resolver threw error",p.Yd.errors.CALL_EXCEPTION,{transaction:n,data:e}),r&&(e=Te(e,0)),e}catch(i){if(i.code===p.Yd.errors.CALL_EXCEPTION)return null;throw i}}))}_fetchBytes(e,t){return ce(this,void 0,void 0,(function*(){const n=yield this._fetch(e,t);return null!=n?Te(n,0):null}))}_getAddress(e,t){const n=be[String(e)];if(null==n&&ue.throwError("unsupported coin type: ".concat(e),p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")")}),"eth"===n.ilk)return this.provider.formatter.address(t);const r=(0,o.lE)(t);if(null!=n.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return _e((0,o.zo)([[n.p2pkh],"0x"+e[2]]))}}if(null!=n.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return _e((0,o.zo)([[n.p2sh],"0x"+e[2]]))}}if(null!=n.prefix){const e=r[1];let t=r[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&r.length===2+e&&e>=1&&e<=75){const e=$().toWords(r.slice(2));return e.unshift(t),$().encode(n.prefix,e)}}return null}getAddress(e){return ce(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e=yield this._fetch("0x3b3b57de");return"0x"===e||"0x0000000000000000000000000000000000000000000000000000000000000000"===e?null:this.provider.formatter.callAddress(e)}catch(r){if(r.code===p.Yd.errors.CALL_EXCEPTION)return null;throw r}const t=yield this._fetchBytes("0xf1cb7e06",ve(e));if(null==t||"0x"===t)return null;const n=this._getAddress(e,t);return null==n&&ue.throwError("invalid or unsupported coin data",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:t}),n}))}getAvatar(){return ce(this,void 0,void 0,(function*(){const e=[{type:"name",content:this.name}];try{const t=yield this.getText("avatar");if(null==t)return null;for(let n=0;ne[t]))}return ue.throwError("invalid or unsupported content hash data",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return ce(this,void 0,void 0,(function*(){let t=(0,f.Y0)(e);t=(0,o.zo)([ve(64),ve(t.length),t]),t.length%32!==0&&(t=(0,o.zo)([t,(0,o.$m)("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",(0,o.Dv)(t));return null==n||"0x"===n?null:(0,f.ZN)(n)}))}}let Me=null,Pe=1;class Ie extends r.zt{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,l.zG)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch((e=>{})),this._ready().catch((e=>{}));else{const t=(0,l.tu)(new.target,"getNetwork")(e);t?((0,l.zG)(this,"_network",t),this.emit("network",t,null)):ue.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return ce(this,void 0,void 0,(function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch(e){}null==t&&(t=yield this.detectNetwork()),t||ue.throwError("no network detected",p.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:(0,l.zG)(this,"_network",t),this.emit("network",t,null))}return this._network}))}get ready(){return J((()=>this._ready().then((e=>e),(e=>{if(e.code!==p.Yd.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))))}static getFormatter(){return null==Me&&(Me=new ie),Me}static getNetwork(e){return(0,i.getNetwork)(null==e?"homestead":e)}ccipReadFetch(e,t,n){return ce(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===n.length)return null;const r=e.to.toLowerCase(),i=t.toLowerCase(),o=[];for(let e=0;e=0?null:JSON.stringify({data:i,sender:r}),l=yield X({url:a,errorPassThrough:!0},s,((e,t)=>(e.status=t.statusCode,e)));if(l.data)return l.data;const c=l.message||"unknown error";if(l.status>=400&&l.status<500)return ue.throwError("response not found during CCIP fetch: ".concat(c),p.Yd.errors.SERVER_ERROR,{url:t,errorMessage:c});o.push(c)}return ue.throwError("error encountered during CCIP fetch: ".concat(o.map((e=>JSON.stringify(e))).join(", ")),p.Yd.errors.SERVER_ERROR,{urls:n,errorMessages:o})}))}_getInternalBlockNumber(e){return ce(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const n=yield t;if(pe()-n.respTime<=e)return n.blockNumber;break}catch(r){if(this._internalBlockNumber===t)break}}const t=pe(),n=(0,l.mE)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((e=>null),(e=>e))}).then((e=>{let{blockNumber:r,networkError:i}=e;if(i)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),i;const o=pe();return r=d.O$.from(r).toNumber(),r{this._internalBlockNumber===n&&(this._internalBlockNumber=null)})),(yield n).blockNumber}))}poll(){return ce(this,void 0,void 0,(function*(){const e=Pe++,t=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(r){return void this.emit("error",r)}if(this._setFastBlockNumber(n),this.emit("poll",e,n),n!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)ue.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(n,")")),this.emit("error",ue.makeError("network block skew detected",p.Yd.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let e=this._emitted.block+1;e<=n;e++)this.emit("block",e);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach((e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&n-t>12&&delete this._emitted[e]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach((e=>{switch(e.type){case"tx":{const n=e.hash;let r=this.getTransactionReceipt(n).then((e=>e&&null!=e.blockNumber?(this._emitted["t:"+n]=e.blockNumber,this.emit(n,e),null):null)).catch((e=>{this.emit("error",e)}));t.push(r);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=n-1);const r=e.filter;r.fromBlock=e._lastBlockNumber+1,r.toBlock=n;const i=r.toBlock-this._maxFilterBlockRange;i>r.fromBlock&&(r.fromBlock=i),r.fromBlock<0&&(r.fromBlock=0);const o=this.getLogs(r).then((t=>{e._inflight=!1,0!==t.length&&t.forEach((t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(r,t)}))})).catch((t=>{this.emit("error",t),e._inflight=!1}));t.push(o)}}})),this._lastBlockNumber=n,Promise.all(t).then((()=>{this.emit("didPoll",e)})).catch((e=>{this.emit("error",e)}))}else this.emit("didPoll",e)}))}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return ce(this,void 0,void 0,(function*(){return ue.throwError("provider does not support network detection",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return ce(this,void 0,void 0,(function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield me(0),this._network;const n=ue.makeError("underlying network changed",p.Yd.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",n),n}return e}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((e=>{this._setFastBlockNumber(e)}),(e=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!==typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const e=pe();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,n){return ce(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,n||0,null)}))}_waitForTransaction(e,t,n,r){return ce(this,void 0,void 0,(function*(){const i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise(((i,o)=>{const a=[];let s=!1;const l=function(){return!!s||(s=!0,a.forEach((e=>{e()})),!1)},c=e=>{e.confirmations{this.removeListener(e,c)})),r){let n=r.startBlock,i=null;const c=a=>ce(this,void 0,void 0,(function*(){s||(yield me(1e3),this.getTransactionCount(r.from).then((u=>ce(this,void 0,void 0,(function*(){if(!s){if(u<=r.nonce)n=a;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=n-3,i{s||this.once("block",c)})))}));if(s)return;this.once("block",c),a.push((()=>{this.removeListener("block",c)}))}if("number"===typeof n&&n>0){const e=setTimeout((()=>{l()||o(ue.makeError("timeout exceeded",p.Yd.errors.TIMEOUT,{timeout:n}))}),n);e.unref&&e.unref(),a.push((()=>{clearTimeout(e)}))}}))}))}getBlockNumber(){return ce(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return ce(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return d.O$.from(e)}catch(t){return ue.throwError("bad result from backend",p.Yd.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}}))}getBalance(e,t){return ce(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield(0,l.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),r=yield this.perform("getBalance",n);try{return d.O$.from(r)}catch(i){return ue.throwError("bad result from backend",p.Yd.errors.SERVER_ERROR,{method:"getBalance",params:n,result:r,error:i})}}))}getTransactionCount(e,t){return ce(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield(0,l.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),r=yield this.perform("getTransactionCount",n);try{return d.O$.from(r).toNumber()}catch(i){return ue.throwError("bad result from backend",p.Yd.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:r,error:i})}}))}getCode(e,t){return ce(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield(0,l.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),r=yield this.perform("getCode",n);try{return(0,o.Dv)(r)}catch(i){return ue.throwError("bad result from backend",p.Yd.errors.SERVER_ERROR,{method:"getCode",params:n,result:r,error:i})}}))}getStorageAt(e,t,n){return ce(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,l.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(t).then((e=>(0,o.$P)(e)))}),i=yield this.perform("getStorageAt",r);try{return(0,o.Dv)(i)}catch(a){return ue.throwError("bad result from backend",p.Yd.errors.SERVER_ERROR,{method:"getStorageAt",params:r,result:i,error:a})}}))}_wrapTransaction(e,t,n){if(null!=t&&32!==(0,o.E1)(t))throw new Error("invalid response - sendTransaction");const r=e;return null!=t&&e.hash!==t&&ue.throwError("Transaction hash mismatch from Provider.sendTransaction.",p.Yd.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),r.wait=(t,r)=>ce(this,void 0,void 0,(function*(){let i;null==t&&(t=1),null==r&&(r=0),0!==t&&null!=n&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n});const o=yield this._waitForTransaction(e.hash,t,r,i);return null==o&&0===t?null:(this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&ue.throwError("transaction failed",p.Yd.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),o)})),r}sendTransaction(e){return ce(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then((e=>(0,o.Dv)(e))),n=this.formatter.transaction(e);null==n.confirmations&&(n.confirmations=0);const r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(n,e,r)}catch(i){throw i.transaction=n,i.transactionHash=n.hash,i}}))}_getTransactionRequest(e){return ce(this,void 0,void 0,(function*(){const t=yield e,n={};return["from","to"].forEach((e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then((e=>e?this._getAddress(e):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then((e=>e?d.O$.from(e):null)))})),["type"].forEach((e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then((e=>null!=e?e:null)))})),t.accessList&&(n.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((e=>{null!=t[e]&&(n[e]=Promise.resolve(t[e]).then((e=>e?(0,o.Dv)(e):null)))})),this.formatter.transactionRequest(yield(0,l.mE)(n))}))}_getFilter(e){return ce(this,void 0,void 0,(function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach((n=>{null!=e[n]&&(t[n]=e[n])})),["fromBlock","toBlock"].forEach((n=>{null!=e[n]&&(t[n]=this._getBlockTag(e[n]))})),this.formatter.filter(yield(0,l.mE)(t))}))}_call(e,t,n){return ce(this,void 0,void 0,(function*(){n>=10&&ue.throwError("CCIP read exceeded maximum redirections",p.Yd.errors.SERVER_ERROR,{redirects:n,transaction:e});const r=e.to,i=yield this.perform("call",{transaction:e,blockTag:t});if(n>=0&&"latest"===t&&null!=r&&"0x556f1830"===i.substring(0,10)&&(0,o.E1)(i)%32===4)try{const a=(0,o.p3)(i,4),s=(0,o.p3)(a,0,32);d.O$.from(s).eq(r)||ue.throwError("CCIP Read sender did not match",p.Yd.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const l=[],c=d.O$.from((0,o.p3)(a,32,64)).toNumber(),u=d.O$.from((0,o.p3)(a,c,c+32)).toNumber(),f=(0,o.p3)(a,c+32);for(let t=0;tce(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",r);if(null==e)return null!=r.blockHash&&null==this._emitted["b:"+r.blockHash]||null!=r.blockTag&&n>this._emitted.block?null:void 0;if(t){let t=null;for(let r=0;rthis._wrapTransaction(e))),n}return this.formatter.block(e)}))),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return ce(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return J((()=>ce(this,void 0,void 0,(function*(){const n=yield this.perform("getTransaction",t);if(null==n)return null==this._emitted["t:"+e]?null:void 0;const r=this.formatter.transactionResponse(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;e<=0&&(e=1),r.confirmations=e}return this._wrapTransaction(r)}))),{oncePoll:this})}))}getTransactionReceipt(e){return ce(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return J((()=>ce(this,void 0,void 0,(function*(){const n=yield this.perform("getTransactionReceipt",t);if(null==n)return null==this._emitted["t:"+e]?null:void 0;if(null==n.blockHash)return;const r=this.formatter.receipt(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;e<=0&&(e=1),r.confirmations=e}return r}))),{oncePoll:this})}))}getLogs(e){return ce(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield(0,l.mE)({filter:this._getFilter(e)}),n=yield this.perform("getLogs",t);return n.forEach((e=>{null==e.removed&&(e.removed=!1)})),ie.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)}))}getEtherPrice(){return ce(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return ce(this,void 0,void 0,(function*(){if("number"===typeof(e=yield e)&&e<0){e%1&&ue.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)}))}getResolver(e){return ce(this,void 0,void 0,(function*(){let t=e;for(;;){if(""===t||"."===t)return null;if("eth"!==e&&"eth"===t)return null;const n=yield this._getResolver(t,"getResolver");if(null!=n){const r=new Oe(this,n,e);return t===e||(yield r.supportsWildcard())?r:null}t=t.split(".").slice(1).join(".")}}))}_getResolver(e,t){return ce(this,void 0,void 0,(function*(){null==t&&(t="ENS");const n=yield this.getNetwork();n.ensAddress||ue.throwError("network does not support ENS",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:t,network:n.name});try{const t=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+z(e).substring(2)});return this.formatter.callAddress(t)}catch(r){}return null}))}resolveName(e){return ce(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if((0,o.A7)(e))throw n}"string"!==typeof e&&ue.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(e){return ce(this,void 0,void 0,(function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(t,"lookupAddress");if(null==n)return null;const r=ke(yield this.call({to:n,data:"0x691f3431"+z(t).substring(2)}),0);return(yield this.resolveName(r))!=e?null:r}))}getAvatar(e){return ce(this,void 0,void 0,(function*(){let t=null;if((0,o.A7)(e)){const n=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",i=yield this._getResolver(n,"getAvatar");if(!i)return null;t=new Oe(this,i,n);try{const e=yield t.getAvatar();if(e)return e.url}catch(r){if(r.code!==p.Yd.errors.CALL_EXCEPTION)throw r}try{const e=ke(yield this.call({to:i,data:"0x691f3431"+z(n).substring(2)}),0);t=yield this.getResolver(e)}catch(r){if(r.code!==p.Yd.errors.CALL_EXCEPTION)throw r;return null}}else if(t=yield this.getResolver(e),!t)return null;const n=yield t.getAvatar();return null==n?null:n.url}))}perform(e,t){return ue.throwError(e+" not implemented",p.Yd.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_stopEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_addEventListener(e,t,n){const r=new ye(he(e),t,n);return this._events.push(r),this._startEvent(r),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.tag!==a||(setTimeout((()=>{e.listener.apply(this,n)}),0),i=!0,!e.once||(o.push(e),!1)))),o.forEach((e=>{this._stopEvent(e)})),i}listenerCount(e){if(!e)return this._events.length;let t=he(e);return this._events.filter((e=>e.tag===t)).length}listeners(e){if(null==e)return this._events.map((e=>e.listener));let t=he(e);return this._events.filter((e=>e.tag===t)).map((e=>e.listener))}off(e,t){if(null==t)return this.removeAllListeners(e);const n=[];let r=!1,i=he(e);return this._events=this._events.filter((e=>e.tag!==i||e.listener!=t||(!!r||(r=!0,n.push(e),!1)))),n.forEach((e=>{this._stopEvent(e)})),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const n=he(e);this._events=this._events.filter((e=>e.tag!==n||(t.push(e),!1)))}return t.forEach((e=>{this._stopEvent(e)})),this}}var Ne=n(72388),je=n(93358),Re=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const Be=new p.Yd(m),Fe=new Uint8Array(32);Fe.fill(0);const De=d.O$.from(-1),Le=d.O$.from(0),Ue=d.O$.from(1),ze=d.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const We=(0,o.$m)(Ue.toHexString(),32),He=(0,o.$m)(Le.toHexString(),32),qe={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Ge=["name","version","chainId","verifyingContract","salt"];function Ve(e){return function(t){return"string"!==typeof t&&Be.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e)),"domain.".concat(e),t),t}}const Ye={name:Ve("name"),version:Ve("version"),chainId:function(e){try{return d.O$.from(e).toString()}catch(t){}return Be.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,te.getAddress)(e).toLowerCase()}catch(t){}return Be.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=(0,o.lE)(e);if(32!==t.length)throw new Error("bad length");return(0,o.Dv)(t)}catch(t){}return Be.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function Ke(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const n=""===t[1],r=parseInt(t[2]||"256");(r%8!==0||r>256||t[2]&&t[2]!==String(r))&&Be.throwArgumentError("invalid numeric width","type",e);const i=ze.mask(n?r-1:r),a=n?i.add(Ue).mul(De):Le;return function(t){const n=d.O$.from(t);return(n.lt(a)||n.gt(i))&&Be.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),(0,o.$m)(n.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const n=parseInt(t[1]);return(0===n||n>32||t[1]!==String(n))&&Be.throwArgumentError("invalid bytes width","type",e),function(t){return(0,o.lE)(t).length!==n&&Be.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){const t=(0,o.lE)(e),n=t.length%32;return n?(0,o.xs)([t,Fe.slice(n)]):(0,o.Dv)(t)}(t)}}}switch(e){case"address":return function(e){return(0,o.$m)((0,te.getAddress)(e),32)};case"bool":return function(e){return e?We:He};case"bytes":return function(e){return(0,h.w)(e)};case"string":return function(e){return(0,je.id)(e)}}return null}function Ze(e,t){return"".concat(e,"(").concat(t.map((e=>{let{name:t,type:n}=e;return n+" "+t})).join(","),")")}class Xe{constructor(e){(0,l.zG)(this,"types",Object.freeze((0,l.p$)(e))),(0,l.zG)(this,"_encoderCache",{}),(0,l.zG)(this,"_types",{});const t={},n={},r={};Object.keys(e).forEach((e=>{t[e]={},n[e]=[],r[e]={}}));for(const o in e){const r={};e[o].forEach((i=>{r[i.name]&&Be.throwArgumentError("duplicate variable name ".concat(JSON.stringify(i.name)," in ").concat(JSON.stringify(o)),"types",e),r[i.name]=!0;const a=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===o&&Be.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",e);Ke(a)||(n[a]||Be.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",e),n[a].push(o),t[o][a]=!0)}))}const i=Object.keys(n).filter((e=>0===n[e].length));0===i.length?Be.throwArgumentError("missing primary type","types",e):i.length>1&&Be.throwArgumentError("ambiguous primary types or unused types: ".concat(i.map((e=>JSON.stringify(e))).join(", ")),"types",e),(0,l.zG)(this,"primaryType",i[0]),function i(o,a){a[o]&&Be.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",e),a[o]=!0,Object.keys(t[o]).forEach((e=>{n[e]&&(i(e,a),Object.keys(a).forEach((t=>{r[t][e]=!0})))})),delete a[o]}(this.primaryType,{});for(const o in r){const t=Object.keys(r[o]);t.sort(),this._types[o]=Ze(o,e[o])+t.map((t=>Ze(t,e[t]))).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const t=Ke(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],n=this.getEncoder(e),r=parseInt(t[3]);return t=>{r>=0&&t.length!==r&&Be.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(n);return this._types[e]&&(i=i.map(h.w)),(0,h.w)((0,o.xs)(i))}}const n=this.types[e];if(n){const t=(0,je.id)(this._types[e]);return e=>{const r=n.map((t=>{let{name:n,type:r}=t;const i=this.getEncoder(r)(e[n]);return this._types[r]?(0,h.w)(i):i}));return r.unshift(t),(0,o.xs)(r)}}return Be.throwArgumentError("unknown type: ".concat(e),"type",e)}encodeType(e){const t=this._types[e];return t||Be.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,h.w)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(Ke(e))return n(e,t);const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const e=r[1],i=parseInt(r[3]);return i>=0&&t.length!==i&&Be.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((t=>this._visit(e,t,n)))}const i=this.types[e];return i?i.reduce(((e,r)=>{let{name:i,type:o}=r;return e[i]=this._visit(o,t[i],n),e}),{}):Be.throwArgumentError("unknown type: ".concat(e),"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new Xe(e)}static getPrimaryType(e){return Xe.from(e).primaryType}static hashStruct(e,t,n){return Xe.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){const r=qe[n];r||Be.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(n)),"domain",e),t.push({name:n,type:r})}return t.sort(((e,t)=>Ge.indexOf(e.name)-Ge.indexOf(t.name))),Xe.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return(0,o.xs)(["0x1901",Xe.hashDomain(e),Xe.from(t).hash(n)])}static hash(e,t,n){return(0,h.w)(Xe.encode(e,t,n))}static resolveNames(e,t,n,r){return Re(this,void 0,void 0,(function*(){e=(0,l.DC)(e);const i={};e.verifyingContract&&!(0,o.A7)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const a=Xe.from(t);a.visit(n,((e,t)=>("address"!==e||(0,o.A7)(t,20)||(i[t]="0x"),t)));for(const e in i)i[e]=yield r(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=a.visit(n,((e,t)=>"address"===e&&i[t]?i[t]:t)),{domain:e,value:n}}))}static getPayload(e,t,n){Xe.hashDomain(e);const r={},i=[];Ge.forEach((t=>{const n=e[t];null!=n&&(r[t]=Ye[t](n),i.push({name:t,type:qe[t]}))}));const a=Xe.from(t),s=(0,l.DC)(t);return s.EIP712Domain?Be.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):s.EIP712Domain=i,a.encode(n),{types:s,domain:r,primaryType:a.primaryType,message:a.visit(n,((e,t)=>{if(e.match(/^bytes(\d*)/))return(0,o.Dv)((0,o.lE)(t));if(e.match(/^u?int/))return d.O$.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!==typeof t&&Be.throwArgumentError("invalid string","value",t),t}return Be.throwArgumentError("unsupported type","type",e)}))}}}var Je=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const Qe=new p.Yd(ee),$e=["call","estimateGas"];function et(e,t){if(null==e)return null;if("string"===typeof e.message&&e.message.match("reverted")){const n=(0,o.A7)(e.data)?e.data:null;if(!t||n)return{message:e.message,data:n}}if("object"===typeof e){for(const n in e){const r=et(e[n],t);if(r)return r}return null}if("string"===typeof e)try{return et(JSON.parse(e),t)}catch(n){}return null}function tt(e,t,n){const r=n.transaction||n.signedTransaction;if("call"===e){const e=et(t,!0);if(e)return e.data;Qe.throwError("missing revert data in call exception; Transaction reverted without a reason string",p.Yd.errors.CALL_EXCEPTION,{data:"0x",transaction:r,error:t})}if("estimateGas"===e){let n=et(t.body,!1);null==n&&(n=et(t,!1)),n&&Qe.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",p.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{reason:n.message,method:e,transaction:r,error:t})}let i=t.message;throw t.code===p.Yd.errors.SERVER_ERROR&&t.error&&"string"===typeof t.error.message?i=t.error.message:"string"===typeof t.body?i=t.body:"string"===typeof t.responseText&&(i=t.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&Qe.throwError("insufficient funds for intrinsic transaction cost",p.Yd.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),i.match(/nonce (is )?too low/i)&&Qe.throwError("nonce has already been used",p.Yd.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Qe.throwError("replacement fee too low",p.Yd.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),i.match(/only replay-protected/i)&&Qe.throwError("legacy pre-eip-155 transactions not supported",p.Yd.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:r}),$e.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Qe.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",p.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}function nt(e){return new Promise((function(t){setTimeout(t,e)}))}function rt(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function it(e){return e?e.toLowerCase():e}const ot={};class at extends Ne.E{constructor(e,t,n){if(super(),e!==ot)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,l.zG)(this,"provider",t),null==n&&(n=0),"string"===typeof n?((0,l.zG)(this,"_address",this.provider.formatter.address(n)),(0,l.zG)(this,"_index",null)):"number"===typeof n?((0,l.zG)(this,"_index",n),(0,l.zG)(this,"_address",null)):Qe.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return Qe.throwError("cannot alter JSON-RPC Signer connection",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new st(ot,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((e=>(e.length<=this._index&&Qe.throwError("unknown account #"+this._index,p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index]))))}sendUncheckedTransaction(e){e=(0,l.DC)(e);const t=this.getAddress().then((e=>(e&&(e=e.toLowerCase()),e)));if(null==e.gasLimit){const n=(0,l.DC)(e);n.from=t,e.gasLimit=this.provider.estimateGas(n)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((e=>Je(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&Qe.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))))),(0,l.mE)({tx:(0,l.mE)(e),sender:t}).then((t=>{let{tx:n,sender:r}=t;null!=n.from?n.from.toLowerCase()!==r&&Qe.throwArgumentError("from address mismatch","transaction",e):n.from=r;const i=this.provider.constructor.hexlifyTransaction(n,{from:!0});return this.provider.send("eth_sendTransaction",[i]).then((e=>e),(e=>("string"===typeof e.message&&e.message.match(/user denied/i)&&Qe.throwError("user rejected transaction",p.Yd.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),tt("sendTransaction",e,i))))}))}signTransaction(e){return Qe.throwError("signing transactions is unsupported",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return Je(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(e);try{return yield J((()=>Je(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(n);if(null!==e)return this.provider._wrapTransaction(e,n,t)}))),{oncePoll:this.provider})}catch(r){throw r.transactionHash=n,r}}))}signMessage(e){return Je(this,void 0,void 0,(function*(){const t="string"===typeof e?(0,f.Y0)(e):e,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,o.Dv)(t),n.toLowerCase()])}catch(r){throw"string"===typeof r.message&&r.message.match(/user denied/i)&&Qe.throwError("user rejected signing",p.Yd.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),r}}))}_legacySignMessage(e){return Je(this,void 0,void 0,(function*(){const t="string"===typeof e?(0,f.Y0)(e):e,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),(0,o.Dv)(t)])}catch(r){throw"string"===typeof r.message&&r.message.match(/user denied/i)&&Qe.throwError("user rejected signing",p.Yd.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),r}}))}_signTypedData(e,t,n){return Je(this,void 0,void 0,(function*(){const r=yield Xe.resolveNames(e,t,n,(e=>this.provider.resolveName(e))),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(Xe.getPayload(r.domain,t,r.value))])}catch(o){throw"string"===typeof o.message&&o.message.match(/user denied/i)&&Qe.throwError("user rejected signing",p.Yd.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:r.domain,types:t,value:r.value}}),o}}))}unlock(e){return Je(this,void 0,void 0,(function*(){const t=this.provider,n=yield this.getAddress();return t.send("personal_unlockAccount",[n.toLowerCase(),e,null])}))}}class st extends at{sendTransaction(e){return this.sendUncheckedTransaction(e).then((e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)})))}}const lt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class ct extends Ie{constructor(e,t){let n=t;null==n&&(n=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then((t=>{e(t)}),(e=>{t(e)}))}),0)}))),super(n),e||(e=(0,l.tu)(this.constructor,"defaultUrl")()),"string"===typeof e?(0,l.zG)(this,"connection",Object.freeze({url:e})):(0,l.zG)(this,"connection",Object.freeze((0,l.DC)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return Je(this,void 0,void 0,(function*(){yield nt(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(t){}}if(null!=e){const n=(0,l.tu)(this.constructor,"getNetwork");try{return n(d.O$.from(e).toNumber())}catch(t){return Qe.throwError("could not detect network",p.Yd.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return Qe.throwError("could not detect network",p.Yd.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new at(ot,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((e=>e.map((e=>this.formatter.address(e)))))}send(e,t){const n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,l.p$)(n),provider:this});const r=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(r&&this._cache[e])return this._cache[e];const i=X(this.connection,JSON.stringify(n),rt).then((e=>(this.emit("debug",{action:"response",request:n,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",error:e,request:n,provider:this}),e}));return r&&(this._cache[e]=i,setTimeout((()=>{this._cache[e]=null}),0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[it(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[it(t.address),t.blockTag]];case"getCode":return["eth_getCode",[it(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[it(t.address),(0,o.$m)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,l.tu)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,l.tu)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=it(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return Je(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&d.O$.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const n=yield this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&((t=(0,l.DC)(t)).transaction=(0,l.DC)(e),delete t.transaction.type)}}const n=this.prepareRequest(e,t);null==n&&Qe.throwError(e+" not implemented",p.Yd.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(r){return tt(e,r,t)}}))}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(n){return function r(){e.send("eth_getFilterChanges",[n]).then((function(n){if(e._pendingFilter!=t)return null;let r=Promise.resolve();return n.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",r=r.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),r.then((function(){return nt(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){r()}),0),null;e.send("eth_uninstallFilter",[n])})).catch((e=>{}))}(),n})).catch((e=>{}))}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const n=(0,l.DC)(lt);if(t)for(const i in t)t[i]&&(n[i]=!0);(0,l.uj)(e,n);const r={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const n=(0,o.$P)(d.O$.from(e[t]));"gasLimit"===t&&(t="gas"),r[t]=n})),["from","to","data"].forEach((function(t){null!=e[t]&&(r[t]=(0,o.Dv)(e[t]))})),e.accessList&&(r.accessList=(0,ne.z7)(e.accessList)),r}}let ut=null;try{if(ut=WebSocket,null==ut)throw new Error("inject please")}catch(yn){const e=new p.Yd(ee);ut=function(){e.throwError("WebSockets not supported in this environment",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var dt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const ft=new p.Yd(ee);let ht=1;class pt extends ct{constructor(e,t){"any"===t&&ft.throwError("WebSocketProvider does not support 'any' network yet",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super("string"===typeof e?e:"_websocket",t),this._pollingInterval=-1,this._wsReady=!1,"string"===typeof e?(0,l.zG)(this,"_websocket",new ut(this.connection.url)):(0,l.zG)(this,"_websocket",e),(0,l.zG)(this,"_requests",{}),(0,l.zG)(this,"_subs",{}),(0,l.zG)(this,"_subIds",{}),(0,l.zG)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach((e=>{this.websocket.send(this._requests[e].payload)}))},this.websocket.onmessage=e=>{const t=e.data,n=JSON.parse(t);if(null!=n.id){const e=String(n.id),r=this._requests[e];if(delete this._requests[e],void 0!==n.result)r.callback(null,n.result),this.emit("debug",{action:"response",request:JSON.parse(r.payload),response:n.result,provider:this});else{let e=null;n.error?(e=new Error(n.error.message||"unknown error"),(0,l.zG)(e,"code",n.error.code||null),(0,l.zG)(e,"response",t)):e=new Error("unknown error"),r.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(r.payload),provider:this})}}else if("eth_subscription"===n.method){const e=this._subs[n.params.subscription];e&&e.processFunc(n.params.result)}else console.warn("this should not happen")};const n=setInterval((()=>{this.emit("poll")}),1e3);n.unref&&n.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){ft.throwError("cannot reset events block on WebSocketProvider",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){ft.throwError("cannot set polling interval on WebSocketProvider",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return dt(this,void 0,void 0,(function*(){return null}))}set polling(e){e&&ft.throwError("cannot set polling on WebSocketProvider",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){const n=ht++;return new Promise(((r,i)=>{const o=JSON.stringify({method:e,params:t,id:n,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(o),provider:this}),this._requests[String(n)]={callback:function(e,t){return e?i(e):r(t)},payload:o},this._wsReady&&this.websocket.send(o)}))}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,n){return dt(this,void 0,void 0,(function*(){let r=this._subIds[e];null==r&&(r=Promise.all(t).then((e=>this.send("eth_subscribe",e))),this._subIds[e]=r);const i=yield r;this._subs[i]={tag:e,processFunc:n}}))}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],(e=>{const t=d.O$.from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(e=>{this.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))}));break;case"tx":{const t=e=>{const t=e.hash;this.getTransactionReceipt(t).then((e=>{e&&this.emit(t,e)}))};t(e),this._subscribe("tx",["newHeads"],(e=>{this._events.filter((e=>"tx"===e.type)).forEach(t)}));break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter((e=>"tx"===e.type)).length)return;t="tx"}else if(this.listenerCount(e.event))return;const n=this._subIds[t];n&&(delete this._subIds[t],n.then((e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))})))}destroy(){return dt(this,void 0,void 0,(function*(){this.websocket.readyState===ut.CONNECTING&&(yield new Promise((e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}}))),this.websocket.close(1e3)}))}}var mt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const gt=new p.Yd(ee);class yt extends ct{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return mt(this,void 0,void 0,(function*(){let t=this.network;return null==t&&(t=yield e.detectNetwork.call(this),t||gt.throwError("no network detected",p.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,l.zG)(this,"_network",t),this.emit("network",t,null))),t}))}}class bt extends yt{constructor(e,t){gt.checkAbstract(new.target,bt),e=(0,l.tu)(new.target,"getNetwork")(e),t=(0,l.tu)(new.target,"getApiKey")(t);super((0,l.tu)(new.target,"getUrl")(e,t),e),"string"===typeof t?(0,l.zG)(this,"apiKey",t):null!=t&&Object.keys(t).forEach((e=>{(0,l.zG)(this,e,t[e])}))}_startPending(){gt.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return gt.throwError("API provider does not support signing",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return gt.throwError("not implemented; sub-classes must override getUrl",p.Yd.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const vt=new p.Yd(ee),_t="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class wt extends pt{constructor(e,t){const n=new xt(e,t);super(n.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),n.network),(0,l.zG)(this,"apiKey",n.apiKey)}isCommunityResource(){return this.apiKey===_t}}class xt extends bt{static getWebSocketProvider(e,t){return new wt(e,t)}static getApiKey(e){return null==e?_t:(e&&"string"!==typeof e&&vt.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let n=null;switch(e.name){case"homestead":n="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":n="eth-goerli.g.alchemy.com/v2/";break;case"matic":n="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":n="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":n="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":n="arb-goerli.g.alchemy.com/v2/";break;case"optimism":n="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":n="opt-goerli.g.alchemy.com/v2/";break;default:vt.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+n+t,throttleCallback:(e,n)=>(t===_t&&le(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===_t}}const kt=new p.Yd(ee),Tt="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function St(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return kt.throwArgumentError("unsupported network","name",e)}class At extends bt{isCommunityResource(){return this.apiKey===Tt}static getApiKey(e){return null==e?Tt:e}static getUrl(e,t){null==t&&(t=Tt);const n={allowGzip:!0,url:"https://"+St(e.name)+t,throttleCallback:(e,n)=>(t.apiKey===Tt&&le(),Promise.resolve(!0))};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}}var Et=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const Ct=new p.Yd(ee);class Ot extends bt{static getApiKey(e){return null!=e&&Ct.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let n=null;if("homestead"===e.name)n="https://cloudflare-eth.com/";else Ct.throwArgumentError("unsupported network","network",arguments[0]);return n}perform(e,t){const n=Object.create(null,{perform:{get:()=>super.perform}});return Et(this,void 0,void 0,(function*(){if("getBlockNumber"===e){return(yield n.perform.call(this,"getBlock",{blockTag:"latest"})).number}return n.perform.call(this,e,t)}))}}var Mt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const Pt=new p.Yd(ee);function It(e){const t={};for(let n in e){if(null==e[n])continue;let r=e[n];"type"===n&&0===r||(r={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n]?(0,o.$P)((0,o.Dv)(r)):"accessList"===n?"["+(0,ne.z7)(r).map((e=>'{address:"'.concat(e.address,'",storageKeys:["').concat(e.storageKeys.join('","'),'"]}'))).join(",")+"]":(0,o.Dv)(r),t[n]=r)}return t}function Nt(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!==typeof e.message||!e.message.match(/^OK/)){const t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function jt(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){const t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function Rt(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function Bt(e,t,n){if("call"===e&&t.code===p.Yd.errors.SERVER_ERROR){const e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let n=e.data;if(n&&(n="0x"+n.replace(/^.*0x/i,"")),(0,o.A7)(n))return n;Pt.throwError("missing revert data in call exception",p.Yd.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let r=t.message;throw t.code===p.Yd.errors.SERVER_ERROR&&(t.error&&"string"===typeof t.error.message?r=t.error.message:"string"===typeof t.body?r=t.body:"string"===typeof t.responseText&&(r=t.responseText)),r=(r||"").toLowerCase(),r.match(/insufficient funds/)&&Pt.throwError("insufficient funds for intrinsic transaction cost",p.Yd.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),r.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Pt.throwError("nonce has already been used",p.Yd.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),r.match(/another transaction with same nonce/)&&Pt.throwError("replacement fee too low",p.Yd.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),r.match(/execution failed due to an exception|execution reverted/)&&Pt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",p.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}class Ft extends Ie{constructor(e,t){super(e),(0,l.zG)(this,"baseUrl",this.getBaseUrl()),(0,l.zG)(this,"apiKey",t||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return Pt.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){const n=Object.keys(t).reduce(((e,n)=>{const r=t[n];return null!=r&&(e+="&".concat(n,"=").concat(r)),e}),""),r=this.apiKey?"&apikey=".concat(this.apiKey):"";return"".concat(this.baseUrl,"/api?module=").concat(e).concat(n).concat(r)}getPostUrl(){return"".concat(this.baseUrl,"/api")}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,n){return Mt(this,void 0,void 0,(function*(){const r=n?this.getPostUrl():this.getUrl(e,t),i=n?this.getPostData(e,t):null,o="proxy"===e?jt:Nt;this.emit("debug",{action:"request",request:r,provider:this});const a={url:r,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&le(),Promise.resolve(!0))};let s=null;i&&(a.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},s=Object.keys(i).map((e=>"".concat(e,"=").concat(i[e]))).join("&"));const c=yield X(a,s,o||jt);return this.emit("debug",{action:"response",request:r,response:(0,l.p$)(c),provider:this}),c}))}detectNetwork(){return Mt(this,void 0,void 0,(function*(){return this.network}))}perform(e,t){const n=Object.create(null,{perform:{get:()=>super.perform}});return Mt(this,void 0,void 0,(function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((e=>Bt("sendTransaction",e,t.signedTransaction)));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const e=It(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(yn){return Bt("call",yn,t.transaction)}}case"estimateGas":{const e=It(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(yn){return Bt("estimateGas",yn,t.transaction)}}case"getLogs":{const e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=Rt(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=Rt(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&Pt.throwError("unsupported topic count",p.Yd.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){const n=t.filter.topics[0];"string"===typeof n&&66===n.length||Pt.throwError("unsupported topic format",p.Yd.errors.UNSUPPORTED_OPERATION,{topic0:n}),e.topic0=n}const n=yield this.fetch("logs",e);let r={};for(let t=0;t{["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);const t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t}))}))}isCommunityResource(){return null==this.apiKey}}var Dt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const Lt=new p.Yd(ee);function Ut(){return(new Date).getTime()}function zt(e){let t=null;for(let n=0;nt?null:(r+i)/2}function Ht(e){if(null===e)return"null";if("number"===typeof e||"boolean"===typeof e)return JSON.stringify(e);if("string"===typeof e)return e;if(d.O$.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((e=>Ht(e))));if("object"===typeof e){const t=Object.keys(e);return t.sort(),"{"+t.map((t=>{let n=e[t];return n="function"===typeof n?"[function]":Ht(n),JSON.stringify(t)+":"+n})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}let qt=1;function Gt(e){let t=null,n=null,r=new Promise((r=>{t=function(){n&&(clearTimeout(n),n=null),r()},n=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return r},wait:e=>(r=r.then(e),r)}}const Vt=[p.Yd.errors.CALL_EXCEPTION,p.Yd.errors.INSUFFICIENT_FUNDS,p.Yd.errors.NONCE_EXPIRED,p.Yd.errors.REPLACEMENT_UNDERPRICED,p.Yd.errors.UNPREDICTABLE_GAS_LIMIT],Yt=["address","args","errorArgs","errorSignature","method","transaction"];function Kt(e,t){const n={weight:e.weight};return Object.defineProperty(n,"provider",{get:()=>e.provider}),e.start&&(n.start=e.start),t&&(n.duration=t-e.start),e.done&&(e.error?n.error=e.error:n.result=e.result||null),n}function Zt(e,t,n){let r=Ht;switch(t){case"getBlockNumber":return function(t){const n=t.map((e=>e.result));let r=Wt(t.map((e=>e.result)),2);if(null!=r)return r=Math.ceil(r),n.indexOf(r+1)>=0&&r++,r>=e._highestBlockNumber&&(e._highestBlockNumber=r),e._highestBlockNumber};case"getGasPrice":return function(e){const t=e.map((e=>e.result));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return Wt(e.map((e=>e.result)))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":r=function(e){return null==e?null:((e=(0,l.DC)(e)).confirmations=-1,Ht(e))};break;case"getBlock":r=n.includeTransactions?function(e){return null==e?null:((e=(0,l.DC)(e)).transactions=e.transactions.map((e=>((e=(0,l.DC)(e)).confirmations=-1,e))),Ht(e))}:function(e){return null==e?null:Ht(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(n){const r={};n.forEach((t=>{const n=e(t.result);r[n]||(r[n]={count:0,result:t.result}),r[n].count++}));const i=Object.keys(r);for(let e=0;e=t)return n.result}}}(r,e.quorum)}function Xt(e,t){return Dt(this,void 0,void 0,(function*(){const n=e.provider;return null!=n.blockNumber&&n.blockNumber>=t||-1===t?n:J((()=>new Promise(((r,i)=>{setTimeout((function(){return n.blockNumber>=t?r(n):e.cancelled?r(null):r(void 0)}),0)}))),{oncePoll:n})}))}function Jt(e,t,n,r){return Dt(this,void 0,void 0,(function*(){let i=e.provider;switch(n){case"getBlockNumber":case"getGasPrice":return i[n]();case"getEtherPrice":if(i.getEtherPrice)return i.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return r.blockTag&&(0,o.A7)(r.blockTag)&&(i=yield Xt(e,t)),i[n](r.address,r.blockTag||"latest");case"getStorageAt":return r.blockTag&&(0,o.A7)(r.blockTag)&&(i=yield Xt(e,t)),i.getStorageAt(r.address,r.position,r.blockTag||"latest");case"getBlock":return r.blockTag&&(0,o.A7)(r.blockTag)&&(i=yield Xt(e,t)),i[r.includeTransactions?"getBlockWithTransactions":"getBlock"](r.blockTag||r.blockHash);case"call":case"estimateGas":return r.blockTag&&(0,o.A7)(r.blockTag)&&(i=yield Xt(e,t)),"call"===n&&r.blockTag?i[n](r.transaction,r.blockTag):i[n](r.transaction);case"getTransaction":case"getTransactionReceipt":return i[n](r.transactionHash);case"getLogs":{let n=r.filter;return(n.fromBlock&&(0,o.A7)(n.fromBlock)||n.toBlock&&(0,o.A7)(n.toBlock))&&(i=yield Xt(e,t)),i.getLogs(n)}}return Lt.throwError("unknown method error",p.Yd.errors.UNKNOWN_ERROR,{method:n,params:r})}))}class Qt extends Ie{constructor(e,t){0===e.length&&Lt.throwArgumentError("missing providers","providers",e);const n=e.map(((e,t)=>{if(r.zt.isProvider(e)){const t=ae(e)?2e3:750,n=1;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:n})}const n=(0,l.DC)(e);null==n.priority&&(n.priority=1),null==n.stallTimeout&&(n.stallTimeout=ae(e)?2e3:750),null==n.weight&&(n.weight=1);const i=n.weight;return(i%1||i>512||i<1)&&Lt.throwArgumentError("invalid weight; must be integer in [1, 512]","providers[".concat(t,"].weight"),i),Object.freeze(n)})),i=n.reduce(((e,t)=>e+t.weight),0);null==t?t=i/2:t>i&&Lt.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let o=zt(n.map((e=>e.provider.network)));null==o&&(o=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then(e,t)}),0)}))),super(o),(0,l.zG)(this,"providerConfigs",Object.freeze(n)),(0,l.zG)(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return Dt(this,void 0,void 0,(function*(){return zt(yield Promise.all(this.providerConfigs.map((e=>e.provider.getNetwork()))))}))}perform(e,t){return Dt(this,void 0,void 0,(function*(){if("sendTransaction"===e){const e=yield Promise.all(this.providerConfigs.map((e=>e.provider.sendTransaction(t.signedTransaction).then((e=>e.hash),(e=>e)))));for(let t=0;t0;t--){const n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}(this.providerConfigs.map(l.DC));r.sort(((e,t)=>e.priority-t.priority));const i=this._highestBlockNumber;let o=0,a=!0;for(;;){const s=Ut();let c=r.filter((e=>e.runner&&s-e.starte+t.weight),0);for(;c{n.staller=null})),n.runner=Jt(n,i,e,t).then((r=>{n.done=!0,n.result=r,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:a,backend:Kt(n,Ut()),request:{method:e,params:(0,l.p$)(t)},provider:this})}),(r=>{n.done=!0,n.error=r,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:a,backend:Kt(n,Ut()),request:{method:e,params:(0,l.p$)(t)},provider:this})})),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:a,backend:Kt(n,null),request:{method:e,params:(0,l.p$)(t)},provider:this}),c+=n.weight}const u=[];r.forEach((e=>{!e.done&&e.runner&&(u.push(e.runner),e.staller&&u.push(e.staller.getPromise()))})),u.length&&(yield Promise.race(u));const d=r.filter((e=>e.done&&null==e.error));if(d.length>=this.quorum){const e=n(d);if(void 0!==e)return r.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),e;a||(yield Gt(100).getPromise()),a=!1}const f=r.reduce(((e,t)=>{if(!t.done||null==t.error)return e;const n=t.error.code;return Vt.indexOf(n)>=0&&(e[n]||(e[n]={error:t.error,weight:0}),e[n].weight+=t.weight),e}),{});if(Object.keys(f).forEach((e=>{const t=f[e];if(t.weight{e.staller&&e.staller.cancel(),e.cancelled=!0}));const n=t.error,i={};Yt.forEach((e=>{null!=n[e]&&(i[e]=n[e])})),Lt.throwError(n.reason||n.message,e,i)})),0===r.filter((e=>!e.done)).length)break}return r.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),Lt.throwError("failed to meet quorum",p.Yd.errors.SERVER_ERROR,{method:e,params:t,results:r.map((e=>Kt(e))),provider:this})}))}}const $t=null,en=new p.Yd(ee),tn="84842078b09946638c03157f83405213";class nn extends pt{constructor(e,t){const n=new rn(e,t),r=n.connection;r.password&&en.throwError("INFURA WebSocket project secrets unsupported",p.Yd.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});super(r.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),(0,l.zG)(this,"apiKey",n.projectId),(0,l.zG)(this,"projectId",n.projectId),(0,l.zG)(this,"projectSecret",n.projectSecret)}isCommunityResource(){return this.projectId===tn}}class rn extends bt{static getWebSocketProvider(e,t){return new nn(e,t)}static getApiKey(e){const t={apiKey:tn,projectId:tn,projectSecret:null};return null==e||("string"===typeof e?t.projectId=e:null!=e.projectSecret?(en.assertArgument("string"===typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),en.assertArgument("string"===typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let n=null;switch(e?e.name:"unknown"){case"homestead":n="mainnet.infura.io";break;case"goerli":n="goerli.infura.io";break;case"sepolia":n="sepolia.infura.io";break;case"matic":n="polygon-mainnet.infura.io";break;case"maticmum":n="polygon-mumbai.infura.io";break;case"optimism":n="optimism-mainnet.infura.io";break;case"optimism-goerli":n="optimism-goerli.infura.io";break;case"arbitrum":n="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":n="arbitrum-goerli.infura.io";break;default:en.throwError("unsupported network",p.Yd.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const r={allowGzip:!0,url:"https://"+n+"/v3/"+t.projectId,throttleCallback:(e,n)=>(t.projectId===tn&&le(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}isCommunityResource(){return this.projectId===tn}}class on extends ct{send(e,t){const n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((e,t)=>{r.resolve=e,r.reject=t}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const t=e.map((e=>e.request));return this.emit("debug",{action:"requestBatch",request:(0,l.p$)(t),provider:this}),X(this.connection,JSON.stringify(t)).then((n=>{this.emit("debug",{action:"response",request:t,response:n,provider:this}),e.forEach(((e,t)=>{const r=n[t];if(r.error){const t=new Error(r.error.message);t.code=r.error.code,t.data=r.error.data,e.reject(t)}else e.resolve(r.result)}))}),(n=>{this.emit("debug",{action:"response",error:n,request:t,provider:this}),e.forEach((e=>{e.reject(n)}))}))}),10)),i}}const an=new p.Yd(ee);class sn extends bt{static getApiKey(e){return e&&"string"!==typeof e&&an.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){an.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let n=null;switch(e.name){case"homestead":n="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":n="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":n="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":n="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":n="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:an.throwArgumentError("unsupported network","network",arguments[0])}return n+"?apiKey="+t}}const ln=new p.Yd(ee),cn="62e1ad51b37b8e00394bda3b";class un extends bt{static getApiKey(e){const t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=cn:"string"===typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:ln.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let n=null;switch(e?e.name:"unknown"){case"goerli":n="eth-goerli.gateway.pokt.network";break;case"homestead":n="eth-mainnet.gateway.pokt.network";break;case"kovan":n="poa-kovan.gateway.pokt.network";break;case"matic":n="poly-mainnet.gateway.pokt.network";break;case"maticmum":n="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":n="eth-rinkeby.gateway.pokt.network";break;case"ropsten":n="eth-ropsten.gateway.pokt.network";break;default:ln.throwError("unsupported network",p.Yd.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const r={headers:{},url:"https://".concat(n,"/v1/lb/").concat(t.applicationId)};return null!=t.applicationSecretKey&&(r.user="",r.password=t.applicationSecretKey),r}isCommunityResource(){return this.applicationId===cn}}const dn=new p.Yd(ee);let fn=1;function hn(e,t){const n="Web3LegacyFetcher";return function(e,r){const i={method:e,params:r,id:fn++,jsonrpc:"2.0"};return new Promise(((e,r)=>{this.emit("debug",{action:"request",fetcher:n,request:(0,l.p$)(i),provider:this}),t(i,((t,o)=>{if(t)return this.emit("debug",{action:"response",fetcher:n,error:t,request:i,provider:this}),r(t);if(this.emit("debug",{action:"response",fetcher:n,request:i,response:o,provider:this}),o.error){const e=new Error(o.error.message);return e.code=o.error.code,e.data=o.error.data,r(e)}e(o.result)}))}))}}class pn extends ct{constructor(e,t){null==e&&dn.throwArgumentError("missing provider","provider",e);let n=null,r=null,i=null;"function"===typeof e?(n="unknown:",r=e):(n=e.host||e.path||"",!n&&e.isMetaMask&&(n="metamask"),i=e,e.request?(""===n&&(n="eip-1193:"),r=function(e){return function(t,n){null==n&&(n=[]);const r={method:t,params:n};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,l.p$)(r),provider:this}),e.request(r).then((e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,error:e,provider:this}),e}))}}(e)):e.sendAsync?r=hn(0,e.sendAsync.bind(e)):e.send?r=hn(0,e.send.bind(e)):dn.throwArgumentError("unsupported provider","provider",e),n||(n="unknown:")),super(n,t),(0,l.zG)(this,"jsonRpcFetchFunc",r),(0,l.zG)(this,"provider",i)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}const mn=new p.Yd(ee);function gn(e,t){if(null==e&&(e="homestead"),"string"===typeof e){const t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new ct(e);case"ws":case"wss":return new pt(e);default:mn.throwArgumentError("unsupported URL scheme","network",e)}}const n=(0,i.getNetwork)(e);return n&&n._defaultProvider||mn.throwError("unsupported getDefaultProvider network",p.Yd.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),n._defaultProvider({FallbackProvider:Qt,AlchemyProvider:xt,AnkrProvider:At,CloudflareProvider:Ot,EtherscanProvider:Ft,InfuraProvider:rn,JsonRpcProvider:ct,NodesmithProvider:sn,PocketProvider:un,Web3Provider:pn,IpcProvider:$t},t)}},80807:(e,t,n)=>{"use strict";n.d(t,{J:()=>f,c:()=>c});var r=n(52009),i=n(2735);const o=new i.Yd("rlp/5.7.0");function a(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function s(e,t,n){let r=0;for(let i=0;it+1+r&&o.throwError("child data too short",i.Yd.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:a}}function d(e,t){if(0===e.length&&o.throwError("data too short",i.Yd.errors.BUFFER_OVERRUN,{}),e[t]>=248){const n=e[t]-247;t+1+n>e.length&&o.throwError("data short segment too short",i.Yd.errors.BUFFER_OVERRUN,{});const r=s(e,t+1,n);return t+1+n+r>e.length&&o.throwError("data long segment too short",i.Yd.errors.BUFFER_OVERRUN,{}),u(e,t,t+1+n,n+r)}if(e[t]>=192){const n=e[t]-192;return t+1+n>e.length&&o.throwError("data array too short",i.Yd.errors.BUFFER_OVERRUN,{}),u(e,t,t+1,n)}if(e[t]>=184){const n=e[t]-183;t+1+n>e.length&&o.throwError("data array too short",i.Yd.errors.BUFFER_OVERRUN,{});const a=s(e,t+1,n);t+1+n+a>e.length&&o.throwError("data array too short",i.Yd.errors.BUFFER_OVERRUN,{});return{consumed:1+n+a,result:(0,r.Dv)(e.slice(t+1+n,t+1+n+a))}}if(e[t]>=128){const n=e[t]-128;t+1+n>e.length&&o.throwError("data too short",i.Yd.errors.BUFFER_OVERRUN,{});return{consumed:1+n,result:(0,r.Dv)(e.slice(t+1,t+1+n))}}return{consumed:1,result:(0,r.Dv)(e[t])}}function f(e){const t=(0,r.lE)(e),n=d(t,0);return n.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),n.result}},43984:(e,t,n)=>{"use strict";n.d(t,{JQ:()=>a});var r=n(37553),i=n.n(r),o=n(52009);new(n(2735).Yd)("sha2/5.7.0");function a(e){return"0x"+i().sha256().update((0,o.lE)(e)).digest("hex")}},46684:(e,t,n)=>{"use strict";n.r(t),n.d(t,{keccak256:()=>g,pack:()=>m,sha256:()=>y});var r=n(51848),i=n(52009),o=n(11291),a=n(43984),s=n(91953),l=n(2735);const c=new RegExp("^bytes([0-9]+)$"),u=new RegExp("^(u?int)([0-9]*)$"),d=new RegExp("^(.*)\\[([0-9]*)\\]$"),f="0000000000000000000000000000000000000000000000000000000000000000",h=new l.Yd("solidity/5.7.0");function p(e,t,n){switch(e){case"address":return n?(0,i.Bu)(t,32):(0,i.lE)(t);case"string":return(0,s.Y0)(t);case"bytes":return(0,i.lE)(t);case"bool":return t=t?"0x01":"0x00",n?(0,i.Bu)(t,32):(0,i.lE)(t)}let o=e.match(u);if(o){let a=parseInt(o[2]||"256");return(o[2]&&String(a)!==o[2]||a%8!==0||0===a||a>256)&&h.throwArgumentError("invalid number type","type",e),n&&(a=256),t=r.O$.from(t).toTwos(a),(0,i.Bu)(t,a/8)}if(o=e.match(c),o){const r=parseInt(o[1]);return(String(r)!==o[1]||0===r||r>32)&&h.throwArgumentError("invalid bytes type","type",e),(0,i.lE)(t).byteLength!==r&&h.throwArgumentError("invalid value for ".concat(e),"value",t),n?(0,i.lE)((t+f).substring(0,66)):t}if(o=e.match(d),o&&Array.isArray(t)){const n=o[1];parseInt(o[2]||String(t.length))!=t.length&&h.throwArgumentError("invalid array length for ".concat(e),"value",t);const r=[];return t.forEach((function(e){r.push(p(n,e,!0))})),(0,i.zo)(r)}return h.throwArgumentError("invalid type","type",e)}function m(e,t){e.length!=t.length&&h.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);const n=[];return e.forEach((function(e,r){n.push(p(e,t[r]))})),(0,i.Dv)((0,i.zo)(n))}function g(e,t){return(0,o.w)(m(e,t))}function y(e,t){return(0,a.JQ)(m(e,t))}},91953:(e,t,n)=>{"use strict";n.d(t,{Y0:()=>u,XL:()=>f,ZN:()=>d});var r=n(52009);const i=new(n(2735).Yd)("strings/5.7.0");var o,a;function s(e,t,n,r,i){if(e===a.BAD_PREFIX||e===a.UNEXPECTED_CONTINUE){let e=0;for(let r=t+1;r>6===2;r++)e++;return e}return e===a.OVERRUN?n.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(o||(o={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(a||(a={}));const l=Object.freeze({error:function(e,t,n,r,o){return i.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",n)},ignore:s,replace:function(e,t,n,r,i){return e===a.OVERLONG?(r.push(i),0):(r.push(65533),s(e,t,n))}});function c(e,t){null==t&&(t=l.error),e=(0,r.lE)(e);const n=[];let i=0;for(;i>7===0){n.push(r);continue}let o=null,s=null;if(192===(224&r))o=1,s=127;else if(224===(240&r))o=2,s=2047;else{if(240!==(248&r)){i+=t(128===(192&r)?a.UNEXPECTED_CONTINUE:a.BAD_PREFIX,i-1,e,n);continue}o=3,s=65535}if(i-1+o>=e.length){i+=t(a.OVERRUN,i-1,e,n);continue}let l=r&(1<<8-o-1)-1;for(let c=0;c1114111?i+=t(a.OUT_OF_RANGE,i-1-o,e,n,l):l>=55296&&l<=57343?i+=t(a.UTF16_SURROGATE,i-1-o,e,n,l):l<=s?i+=t(a.OVERLONG,i-1-o,e,n,l):n.push(l))}return n}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.current;t!=o.current&&(i.checkNormalize(),e=e.normalize(t));let n=[];for(let r=0;r>6|192),n.push(63&t|128);else if(55296==(64512&t)){r++;const i=e.charCodeAt(r);if(r>=e.length||56320!==(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&t)<<10)+(1023&i);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(t>>12|224),n.push(t>>6&63|128),n.push(63&t|128)}return(0,r.lE)(n)}function d(e,t){return c(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}function f(e){return c(u(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.current))}},14046:(e,t,n)=>{"use strict";n.d(t,{z7:()=>ce,Qc:()=>pe});var r=n(28552),i=n(51848),o=n(52009),a=n(6321),s=n(11291),l=n(80807),c=n(64166),u=n.n(c),d=n(37553),f=n.n(d);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;function h(e,t,n){return n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===t||null===t)&&n.path)}},e(n,n.exports),n.exports}var p=m;function m(e,t){if(!e)throw new Error(t||"Assertion failed")}m.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var g=h((function(e,t){var n=t;function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}})),y=h((function(e,t){var n=t;n.assert=p,n.toArray=g.toArray,n.zero2=g.zero2,n.toHex=g.toHex,n.encode=g.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,l=e.andln(3)+i&3,c=t.andln(3)+o&3;3===l&&(l=-1),3===c&&(c=-1),a=0===(1&l)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==c?l:-l,n[0].push(a),s=0===(1&c)?0:3!==(r=t.andln(7)+o&7)&&5!==r||2!==l?c:-c,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"===typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new(u())(e,"hex","le")}})),b=y.getNAF,v=y.getJSF,_=y.assert;function w(e,t){this.type=e,this.p=new(u())(t.p,16),this.red=t.prime?u().red(t.prime):u().mont(this.p),this.zero=new(u())(0).toRed(this.red),this.one=new(u())(1).toRed(this.red),this.two=new(u())(2).toRed(this.red),this.n=t.n&&new(u())(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;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var x=w;function k(e,t){this.curve=e,this.type=t,this.precomputed=null}w.prototype.point=function(){throw new Error("Not implemented")},w.prototype.validate=function(){throw new Error("Not implemented")},w.prototype._fixedNafMul=function(e,t){_(e.precomputed);var n=e._getDoubles(),r=b(t,1,this._bitLength),i=(1<=o;l--)a=(a<<1)+r[l];s.push(a)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=i;d>0;d--){for(o=0;o=0;s--){for(var l=0;s>=0&&0===o[s];s--)l++;if(s>=0&&l++,a=a.dblp(l),s<0)break;var c=o[s];_(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},w.prototype._wnafMulAdd=function(e,t,n,r,i){var o,a,s,l=this._wnafT1,c=this._wnafT2,u=this._wnafT3,d=0;for(o=0;o=1;o-=2){var h=o-1,p=o;if(1===l[h]&&1===l[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=v(n[h],n[p]);for(d=Math.max(y[0].length,d),u[h]=new Array(d),u[p]=new Array(d),a=0;a=0;o--){for(var T=0;o>=0;){var S=!0;for(a=0;a=0&&T++,x=x.dblp(T),o<0)break;for(a=0;a0?s=c[a][A-1>>1]:A<0&&(s=c[a][-A-1>>1].neg()),x="affine"===s.type?x.mixedAdd(s):x.add(s))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},k.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i=0&&(o=t,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},A.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),l=i.mul(n.b),c=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:l.add(c).neg()}},A.prototype.pointFromX=function(e,t){(e=new(u())(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},A.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},A.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},C.prototype.isInfinity=function(){return this.inf},C.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},C.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},C.prototype.getX=function(){return this.x.fromRed()},C.prototype.getY=function(){return this.y.fromRed()},C.prototype.mul=function(e){return e=new(u())(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,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},C.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,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){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},C.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},T(O,x.BasePoint),A.prototype.jpoint=function(e,t,n){return new O(this,e,t,n)},O.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},O.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},O.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=r.redMul(c),f=l.redSqr().redIAdd(u).redISub(d).redISub(d),h=l.redMul(d.redISub(f)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},O.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),u=n.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),f=s.redMul(u.redISub(d)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},O.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},O.prototype.inspect=function(){return this.isInfinity()?"":""},O.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var M=h((function(e,t){var n=t;n.base=x,n.short=E,n.mont=null,n.edwards=null})),P=h((function(e,t){var n,r=t,i=y.assert;function o(e){"short"===e.type?this.curve=new M.short(e):"edwards"===e.type?this.curve=new M.edwards(e):this.curve=new M.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,a("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:f().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("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:f().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("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:f().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("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:f().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"]}),a("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:f().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"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:f().sha256,gRed:!1,g:["9"]}),a("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:f().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(s){n=void 0}a("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:f().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function I(e){if(!(this instanceof I))return new I(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=g.toArray(e.entropy,e.entropyEnc||"hex"),n=g.toArray(e.nonce,e.nonceEnc||"hex"),r=g.toArray(e.pers,e.persEnc||"hex");p(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var N=I;I.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},I.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(r=n,n=t,t=null),n&&(n=g.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"};var F=y.assert;function D(e,t){if(e instanceof D)return e;this._importDER(e,t)||(F(e.r&&e.s,"Signature without r or s"),this.r=new(u())(e.r,16),this.s=new(u())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var L=D;function U(){this.place=0}function z(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function W(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}D.prototype._importDER=function(e,t){e=y.toArray(e,t);var n=new U;if(48!==e[n.place++])return!1;var r=z(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var i=z(e,n);if(!1===i)return!1;var o=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var a=z(e,n);if(!1===a)return!1;if(e.length!==a+n.place)return!1;var s=e.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new(u())(o),this.s=new(u())(s),this.recoveryParam=null,!0},D.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=W(t),n=W(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var r=[2];H(r,t.length),(r=r.concat(t)).push(2),H(r,n.length);var i=r.concat(n),o=[48];return H(o,i.length),o=o.concat(i),y.encode(o,e)};var q=function(){throw new Error("unsupported")},G=y.assert;function V(e){if(!(this instanceof V))return new V(e);"string"===typeof e&&(G(Object.prototype.hasOwnProperty.call(P,e),"Unknown curve "+e),e=P[e]),e instanceof P.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}var Y=V;V.prototype.keyPair=function(e){return new B(this,e)},V.prototype.keyFromPrivate=function(e,t){return B.fromPrivate(this,e,t)},V.prototype.keyFromPublic=function(e,t){return B.fromPublic(this,e,t)},V.prototype.genKeyPair=function(e){e||(e={});for(var t=new N({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||q(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new(u())(2));;){var i=new(u())(t.generate(n));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},V.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},V.prototype.sign=function(e,t,n,r){"object"===typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new(u())(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new N({hash:this.hash,entropy:o,nonce:a,pers:r.pers,persEnc:r.persEnc||"utf8"}),l=this.n.sub(new(u())(1)),c=0;;c++){var d=r.k?r.k(c):new(u())(s.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(l)>=0)){var f=this.g.mul(d);if(!f.isInfinity()){var h=f.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var m=d.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var g=(f.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return r.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),g^=1),new L({r:p,s:m,recoveryParam:g})}}}}}},V.prototype.verify=function(e,t,n,r){e=this._truncateToN(new(u())(e,16)),n=this.keyFromPublic(n,r);var i=(t=new L(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),l=s.mul(e).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(l,n.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(l,n.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},V.prototype.recoverPubKey=function(e,t,n,r){G((3&n)===n,"The recovery param is more than two bits"),t=new L(t,r);var i=this.n,o=new(u())(e),a=t.r,s=t.s,l=1&n,c=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),l):this.curve.pointFromX(a,l);var d=t.r.invm(i),f=i.sub(o).mul(d).umod(i),h=s.mul(d).umod(i);return this.g.mulAdd(f,a,h)},V.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new L(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var K=h((function(e,t){var n=t;n.version="6.5.4",n.utils=y,n.rand=function(){throw new Error("unsupported")},n.curve=M,n.curves=P,n.ec=Y,n.eddsa=null})).ec,Z=n(54812),X=n(2735);const J=new X.Yd("signing-key/5.7.0");let Q=null;function $(){return Q||(Q=new K("secp256k1")),Q}class ee{constructor(e){(0,Z.zG)(this,"curve","secp256k1"),(0,Z.zG)(this,"privateKey",(0,o.Dv)(e)),32!==(0,o.E1)(this.privateKey)&&J.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=$().keyFromPrivate((0,o.lE)(this.privateKey));(0,Z.zG)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,Z.zG)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,Z.zG)(this,"_isSigningKey",!0)}_addPoint(e){const t=$().keyFromPublic((0,o.lE)(this.publicKey)),n=$().keyFromPublic((0,o.lE)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const t=$().keyFromPrivate((0,o.lE)(this.privateKey)),n=(0,o.lE)(e);32!==n.length&&J.throwArgumentError("bad digest length","digest",e);const r=t.sign(n,{canonical:!0});return(0,o.N)({recoveryParam:r.recoveryParam,r:(0,o.$m)("0x"+r.r.toString(16),32),s:(0,o.$m)("0x"+r.s.toString(16),32)})}computeSharedSecret(e){const t=$().keyFromPrivate((0,o.lE)(this.privateKey)),n=$().keyFromPublic((0,o.lE)(te(e)));return(0,o.$m)("0x"+t.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function te(e,t){const n=(0,o.lE)(e);if(32===n.length){const e=new ee(n);return t?"0x"+$().keyFromPrivate(n).getPublic(!0,"hex"):e.publicKey}return 33===n.length?t?(0,o.Dv)(n):"0x"+$().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+$().keyFromPublic(n).getPublic(!0,"hex"):(0,o.Dv)(n):J.throwArgumentError("invalid public or private key","key","[REDACTED]")}const ne=new X.Yd("transactions/5.7.0");var re;function ie(e){return"0x"===e?null:(0,r.getAddress)(e)}function oe(e){return"0x"===e?a._Y:i.O$.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(re||(re={}));function ae(e,t){return function(e){const t=te(e);return(0,r.getAddress)((0,o.p3)((0,s.w)((0,o.p3)(t,1)),12))}(function(e,t){const n=(0,o.N)(t),r={r:(0,o.lE)(n.r),s:(0,o.lE)(n.s)};return"0x"+$().recoverPubKey((0,o.lE)(e),r,n.recoveryParam).encode("hex",!1)}((0,o.lE)(e),t))}function se(e,t){const n=(0,o.G1)(i.O$.from(e).toHexString());return n.length>32&&ne.throwArgumentError("invalid length for "+t,"transaction:"+t,e),n}function le(e,t){return{address:(0,r.getAddress)(e),storageKeys:(t||[]).map(((t,n)=>(32!==(0,o.E1)(t)&&ne.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(n,"]"),t),t.toLowerCase())))}}function ce(e){if(Array.isArray(e))return e.map(((e,t)=>Array.isArray(e)?(e.length>2&&ne.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),le(e[0],e[1])):le(e.address,e.storageKeys)));const t=Object.keys(e).map((t=>{const n=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return le(t,Object.keys(n).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}function ue(e){return ce(e).map((e=>[e.address,e.storageKeys]))}function de(e,t){if(null!=e.gasPrice){const t=i.O$.from(e.gasPrice),n=i.O$.from(e.maxFeePerGas||0);t.eq(n)||ne.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:n})}const n=[se(e.chainId||0,"chainId"),se(e.nonce||0,"nonce"),se(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),se(e.maxFeePerGas||0,"maxFeePerGas"),se(e.gasLimit||0,"gasLimit"),null!=e.to?(0,r.getAddress)(e.to):"0x",se(e.value||0,"value"),e.data||"0x",ue(e.accessList||[])];if(t){const e=(0,o.N)(t);n.push(se(e.recoveryParam,"recoveryParam")),n.push((0,o.G1)(e.r)),n.push((0,o.G1)(e.s))}return(0,o.xs)(["0x02",l.c(n)])}function fe(e,t){const n=[se(e.chainId||0,"chainId"),se(e.nonce||0,"nonce"),se(e.gasPrice||0,"gasPrice"),se(e.gasLimit||0,"gasLimit"),null!=e.to?(0,r.getAddress)(e.to):"0x",se(e.value||0,"value"),e.data||"0x",ue(e.accessList||[])];if(t){const e=(0,o.N)(t);n.push(se(e.recoveryParam,"recoveryParam")),n.push((0,o.G1)(e.r)),n.push((0,o.G1)(e.s))}return(0,o.xs)(["0x01",l.c(n)])}function he(e,t,n){try{const n=oe(t[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");e.v=n}catch(r){ne.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,o.$m)(t[1],32),e.s=(0,o.$m)(t[2],32);try{const t=(0,s.w)(n(e));e.from=ae(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(r){}}function pe(e){const t=(0,o.lE)(e);if(t[0]>127)return function(e){const t=l.J(e);9!==t.length&&6!==t.length&&ne.throwArgumentError("invalid raw transaction","rawTransaction",e);const n={nonce:oe(t[0]).toNumber(),gasPrice:oe(t[1]),gasLimit:oe(t[2]),to:ie(t[3]),value:oe(t[4]),data:t[5],chainId:0};if(6===t.length)return n;try{n.v=i.O$.from(t[6]).toNumber()}catch(r){return n}if(n.r=(0,o.$m)(t[7],32),n.s=(0,o.$m)(t[8],32),i.O$.from(n.r).isZero()&&i.O$.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let i=n.v-27;const a=t.slice(0,6);0!==n.chainId&&(a.push((0,o.Dv)(n.chainId)),a.push("0x"),a.push("0x"),i-=2*n.chainId+8);const c=(0,s.w)(l.c(a));try{n.from=ae(c,{r:(0,o.Dv)(n.r),s:(0,o.Dv)(n.s),recoveryParam:i})}catch(r){}n.hash=(0,s.w)(e)}return n.type=null,n}(t);switch(t[0]){case 1:return function(e){const t=l.J(e.slice(1));8!==t.length&&11!==t.length&&ne.throwArgumentError("invalid component count for transaction type: 1","payload",(0,o.Dv)(e));const n={type:1,chainId:oe(t[0]).toNumber(),nonce:oe(t[1]).toNumber(),gasPrice:oe(t[2]),gasLimit:oe(t[3]),to:ie(t[4]),value:oe(t[5]),data:t[6],accessList:ce(t[7])};return 8===t.length||(n.hash=(0,s.w)(e),he(n,t.slice(8),fe)),n}(t);case 2:return function(e){const t=l.J(e.slice(1));9!==t.length&&12!==t.length&&ne.throwArgumentError("invalid component count for transaction type: 2","payload",(0,o.Dv)(e));const n=oe(t[2]),r=oe(t[3]),i={type:2,chainId:oe(t[0]).toNumber(),nonce:oe(t[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:oe(t[4]),to:ie(t[5]),value:oe(t[6]),data:t[7],accessList:ce(t[8])};return 9===t.length||(i.hash=(0,s.w)(e),he(i,t.slice(9),de)),i}(t)}return ne.throwError("unsupported transaction type: ".concat(t[0]),X.Yd.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},74185:(e,t,n)=>{"use strict";e.exports=n(46445)},46445:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i,o,a,s,l=r(n(77492)),c=r(n(42324)),u=(r(n(21292)),n(28552)),d=r(n(76791)),f=r(n(26997)),h=r(n(61759)),p=n(46684),m=n(39707),g=n(88133),y=n(46748),b=r(n(2212));(o=t.ChainId||(t.ChainId={}))[o.MAINNET=56]="MAINNET",o[o.BSCTESTNET=97]="BSCTESTNET",(a=t.YL||(t.YL={}))[a.EXACT_INPUT=0]="EXACT_INPUT",a[a.EXACT_OUTPUT=1]="EXACT_OUTPUT",(s=t.mL||(t.mL={}))[s.ROUND_DOWN=0]="ROUND_DOWN",s[s.ROUND_HALF_UP=1]="ROUND_HALF_UP",s[s.ROUND_UP=2]="ROUND_UP";var v,_="0x00fb7f630766e6a796048ea87d01acd3068e8ff67d078148a3fa3f4a84f69bd5",w=l.BigInt(1e3),x=l.BigInt(0),k=l.BigInt(1),T=l.BigInt(2),S=l.BigInt(3),A=l.BigInt(5),E=l.BigInt(10),C=l.BigInt(100),O=l.BigInt(9975),M=l.BigInt(1e4);!function(e){e.uint8="uint8",e.uint256="uint256"}(v||(v={}));var P=((i={})[v.uint8]=l.BigInt("0xff"),i[v.uint256]=l.BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),i);function I(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var H="setPrototypeOf"in Object,q=function(e){function t(){var n;return(n=e.call(this)||this).isInsufficientReservesError=!0,n.name=n.constructor.name,H&&Object.setPrototypeOf(U(n),(this instanceof t?this.constructor:void 0).prototype),n}return R(t,e),t}(L(Error)),G=function(e){function t(){var n;return(n=e.call(this)||this).isInsufficientInputAmountError=!0,n.name=n.constructor.name,H&&Object.setPrototypeOf(U(n),(this instanceof t?this.constructor:void 0).prototype),n}return R(t,e),t}(L(Error));function V(e,t){l.greaterThanOrEqual(e,x)||c(!1),l.lessThanOrEqual(e,P[t])||c(!1)}function Y(e){try{return u.getAddress(e)}catch(e){c(!1)}}function K(e){return e instanceof l?e:l.BigInt("bigint"==typeof e?e.toString():e)}function Z(e){V(e,v.uint256);var t,n=x;if(l.greaterThan(e,S))for(n=e,t=l.add(l.divide(e,T),k);l.lessThan(t,n);)n=t,t=l.divide(l.add(l.divide(e,t),t),T);else l.notEqual(e,x)&&(n=k);return n}function X(e,t,n,r){if(n>0||c(!1),e.length<=n||c(!1),0===e.length)return e.push(t),null;var i=e.length===n;if(i&&r(e[e.length-1],t)<=0)return t;for(var o=0,a=e.length;o>>1;r(e[s],t)<=0?o=s+1:a=s}return e.splice(o,0,t),i?e.pop():null}var J,Q=function(e,t,n){V(l.BigInt(e),v.uint8),this.decimals=e,this.symbol=t,this.name=n},$=Q.ETHER=new Q(18,"BNB","Binance"),ee=function(e){function t(t,n,r,i,o){var a;return(a=e.call(this,r,i,o)||this).chainId=t,a.address=Y(n),a}R(t,e);var n=t.prototype;return n.equals=function(e){return this===e||this.chainId===e.chainId&&this.address===e.address},n.sortsBefore=function(e){return this.chainId!==e.chainId&&c(!1),this.address===e.address&&c(!1),this.address.toLowerCase()0||c(!1),oe.set({precision:e+1,rounding:se[r]});var i=new oe(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(e);return i.toFormat(i.decimalPlaces(),n)},n.toFixed=function(e,n,r){return void 0===n&&(n={groupSeparator:""}),void 0===r&&(r=t.mL.ROUND_HALF_UP),Number.isInteger(e)||c(!1),e>=0||c(!1),ae.DP=e,ae.RM=le[r],new ae(this.numerator.toString()).div(this.denominator.toString()).toFormat(e,n)},N(e,[{key:"quotient",get:function(){return l.divide(this.numerator,this.denominator)}},{key:"remainder",get:function(){return new e(l.remainder(this.numerator,this.denominator),this.denominator)}}]),e}(),ue=f(d),de=function(e){function n(t,n){var r,i=K(n);return V(i,v.uint256),(r=e.call(this,i,l.exponentiate(E,l.BigInt(t.decimals)))||this).currency=t,r}R(n,e),n.ether=function(e){return new n($,e)};var r=n.prototype;return r.add=function(e){return te(this.currency,e.currency)||c(!1),new n(this.currency,l.add(this.raw,e.raw))},r.subtract=function(e){return te(this.currency,e.currency)||c(!1),new n(this.currency,l.subtract(this.raw,e.raw))},r.toSignificant=function(n,r,i){return void 0===n&&(n=6),void 0===i&&(i=t.mL.ROUND_DOWN),e.prototype.toSignificant.call(this,n,r,i)},r.toFixed=function(n,r,i){return void 0===n&&(n=this.currency.decimals),void 0===i&&(i=t.mL.ROUND_DOWN),n<=this.currency.decimals||c(!1),e.prototype.toFixed.call(this,n,r,i)},r.toExact=function(e){return void 0===e&&(e={groupSeparator:""}),ue.DP=this.currency.decimals,new ue(this.numerator.toString()).div(this.denominator.toString()).toFormat(e)},N(n,[{key:"raw",get:function(){return this.numerator}}]),n}(ce),fe=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).token=t,r}R(t,e);var n=t.prototype;return n.add=function(e){return this.token.equals(e.token)||c(!1),new t(this.token,l.add(this.raw,e.raw))},n.subtract=function(e){return this.token.equals(e.token)||c(!1),new t(this.token,l.subtract(this.raw,e.raw))},t}(de),he=function(e){function t(t,n,r,i){var o;return(o=e.call(this,i,r)||this).baseCurrency=t,o.quoteCurrency=n,o.scalar=new ce(l.exponentiate(E,l.BigInt(t.decimals)),l.exponentiate(E,l.BigInt(n.decimals))),o}R(t,e),t.fromRoute=function(e){for(var n,r=[],i=W(e.pairs.entries());!(n=i()).done;){var o=n.value,a=o[1];r.push(e.path[o[0]].equals(a.token0)?new t(a.reserve0.currency,a.reserve1.currency,a.reserve0.raw,a.reserve1.raw):new t(a.reserve1.currency,a.reserve0.currency,a.reserve1.raw,a.reserve0.raw))}return r.slice(1).reduce((function(e,t){return e.multiply(t)}),r[0])};var n=t.prototype;return n.invert=function(){return new t(this.quoteCurrency,this.baseCurrency,this.numerator,this.denominator)},n.multiply=function(n){te(this.quoteCurrency,n.baseCurrency)||c(!1);var r=e.prototype.multiply.call(this,n);return new t(this.baseCurrency,n.quoteCurrency,r.denominator,r.numerator)},n.quote=function(t){return te(t.currency,this.baseCurrency)||c(!1),this.quoteCurrency instanceof ee?new fe(this.quoteCurrency,e.prototype.multiply.call(this,t.raw).quotient):de.ether(e.prototype.multiply.call(this,t.raw).quotient)},n.toSignificant=function(e,t,n){return void 0===e&&(e=6),this.adjusted.toSignificant(e,t,n)},n.toFixed=function(e,t,n){return void 0===e&&(e=4),this.adjusted.toFixed(e,t,n)},N(t,[{key:"raw",get:function(){return new ce(this.numerator,this.denominator)}},{key:"adjusted",get:function(){return e.prototype.multiply.call(this,this.scalar)}}]),t}(ce),pe={},me=function(){function e(t,n){var r=t.token.sortsBefore(n.token)?[t,n]:[n,t];this.liquidityToken=new ee(r[0].token.chainId,e.getAddress(r[0].token,r[1].token),18,"UNI-V2","Uniswap V2"),this.tokenAmounts=r}e.getAddress=function(e,t){var n,r,i,o,a,s=e.sortsBefore(t)?[e,t]:[t,e];return void 0===(null===(n=pe)||void 0===n||null===(r=n[s[0].address])||void 0===r?void 0:r[s[1].address])&&(pe=j({},pe,((a={})[s[0].address]=j({},null===(i=pe)||void 0===i?void 0:i[s[0].address],((o={})[s[1].address]=u.getCreate2Address("0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73",p.keccak256(["bytes"],[p.pack(["address","address"],[s[0].address,s[1].address])]),_),o)),a))),pe[s[0].address][s[1].address]};var t=e.prototype;return t.involvesToken=function(e){return e.equals(this.token0)||e.equals(this.token1)},t.priceOf=function(e){return this.involvesToken(e)||c(!1),e.equals(this.token0)?this.token0Price:this.token1Price},t.reserveOf=function(e){return this.involvesToken(e)||c(!1),e.equals(this.token0)?this.reserve0:this.reserve1},t.getOutputAmount=function(t){if(this.involvesToken(t.token)||c(!1),l.equal(this.reserve0.raw,x)||l.equal(this.reserve1.raw,x))throw new q;var n=this.reserveOf(t.token),r=this.reserveOf(t.token.equals(this.token0)?this.token1:this.token0),i=l.multiply(t.raw,O),o=l.multiply(i,r.raw),a=l.add(l.multiply(n.raw,M),i),s=new fe(t.token.equals(this.token0)?this.token1:this.token0,l.divide(o,a));if(l.equal(s.raw,x))throw new G;return[s,new e(n.add(t),r.subtract(s))]},t.getInputAmount=function(t){if(this.involvesToken(t.token)||c(!1),l.equal(this.reserve0.raw,x)||l.equal(this.reserve1.raw,x)||l.greaterThanOrEqual(t.raw,this.reserveOf(t.token).raw))throw new q;var n=this.reserveOf(t.token),r=this.reserveOf(t.token.equals(this.token0)?this.token1:this.token0),i=l.multiply(l.multiply(r.raw,t.raw),M),o=l.multiply(l.subtract(n.raw,t.raw),O),a=new fe(t.token.equals(this.token0)?this.token1:this.token0,l.add(l.divide(i,o),k));return[a,new e(r.add(a),n.subtract(t))]},t.getLiquidityMinted=function(e,t,n){e.token.equals(this.liquidityToken)||c(!1);var r,i=t.token.sortsBefore(n.token)?[t,n]:[n,t];if(i[0].token.equals(this.token0)&&i[1].token.equals(this.token1)||c(!1),l.equal(e.raw,x))r=l.subtract(Z(l.multiply(i[0].raw,i[1].raw)),w);else{var o=l.divide(l.multiply(i[0].raw,e.raw),this.reserve0.raw),a=l.divide(l.multiply(i[1].raw,e.raw),this.reserve1.raw);r=l.lessThanOrEqual(o,a)?o:a}if(!l.greaterThan(r,x))throw new G;return new fe(this.liquidityToken,r)},t.getLiquidityValue=function(e,t,n,r,i){var o;if(void 0===r&&(r=!1),this.involvesToken(e)||c(!1),t.token.equals(this.liquidityToken)||c(!1),n.token.equals(this.liquidityToken)||c(!1),l.lessThanOrEqual(n.raw,t.raw)||c(!1),r){i||c(!1);var a=K(i);if(l.equal(a,x))o=t;else{var s=Z(l.multiply(this.reserve0.raw,this.reserve1.raw)),u=Z(a);if(l.greaterThan(s,u)){var d=l.multiply(t.raw,l.subtract(s,u)),f=l.add(l.multiply(s,A),u),h=l.divide(d,f);o=t.add(new fe(this.liquidityToken,h))}else o=t}}else o=t;return new fe(e,l.divide(l.multiply(n.raw,this.reserveOf(e).raw),o.raw))},N(e,[{key:"token0Price",get:function(){return new he(this.token0,this.token1,this.tokenAmounts[0].raw,this.tokenAmounts[1].raw)}},{key:"token1Price",get:function(){return new he(this.token1,this.token0,this.tokenAmounts[1].raw,this.tokenAmounts[0].raw)}},{key:"chainId",get:function(){return this.token0.chainId}},{key:"token0",get:function(){return this.tokenAmounts[0].token}},{key:"token1",get:function(){return this.tokenAmounts[1].token}},{key:"reserve0",get:function(){return this.tokenAmounts[0]}},{key:"reserve1",get:function(){return this.tokenAmounts[1]}}]),e}(),ge=function(){function e(e,t,n){e.length>0||c(!1),e.every((function(t){return t.chainId===e[0].chainId}))||c(!1),t instanceof ee&&e[0].involvesToken(t)||t===$&&e[0].involvesToken(ie[e[0].chainId])||c(!1),void 0===n||n instanceof ee&&e[e.length-1].involvesToken(n)||n===$&&e[e.length-1].involvesToken(ie[e[0].chainId])||c(!1);for(var r,i=[t instanceof ee?t:ie[e[0].chainId]],o=W(e.entries());!(r=o()).done;){var a=r.value,s=a[1],l=i[a[0]];l.equals(s.token0)||l.equals(s.token1)||c(!1);var u=l.equals(s.token0)?s.token1:s.token0;i.push(u)}this.pairs=e,this.path=i,this.midPrice=he.fromRoute(this),this.input=t,this.output=null!=n?n:i[i.length-1]}return N(e,[{key:"chainId",get:function(){return this.pairs[0].chainId}}]),e}(),ye=new ce(C),be=function(e){function t(){return e.apply(this,arguments)||this}R(t,e);var n=t.prototype;return n.toSignificant=function(e,t,n){return void 0===e&&(e=5),this.multiply(ye).toSignificant(e,t,n)},n.toFixed=function(e,t,n){return void 0===e&&(e=2),this.multiply(ye).toFixed(e,t,n)},t}(ce);function ve(e,t){return te(e.inputAmount.currency,t.inputAmount.currency)||c(!1),te(e.outputAmount.currency,t.outputAmount.currency)||c(!1),e.outputAmount.equalTo(t.outputAmount)?e.inputAmount.equalTo(t.inputAmount)?0:e.inputAmount.lessThan(t.inputAmount)?-1:1:e.outputAmount.lessThan(t.outputAmount)?1:-1}function _e(e,t){var n=ve(e,t);return 0!==n?n:e.priceImpact.lessThan(t.priceImpact)?-1:e.priceImpact.greaterThan(t.priceImpact)?1:e.route.path.length-t.route.path.length}function we(e,t){return e instanceof fe?e:e.currency===$?new fe(ie[t],e.raw):void c(!1)}function xe(e,t){return e instanceof ee?e:e===$?ie[t]:void c(!1)}var ke=function(){function e(e,n,r){var i,o,a,s=new Array(e.path.length),l=new Array(e.pairs.length);if(r===t.YL.EXACT_INPUT){te(n.currency,e.input)||c(!1),s[0]=we(n,e.chainId);for(var u=0;u0;h--){var p=e.pairs[h-1].getInputAmount(s[h]),m=p[1];s[h-1]=p[0],l[h-1]=m}}this.route=e,this.tradeType=r,this.inputAmount=r===t.YL.EXACT_INPUT?n:e.input===$?de.ether(s[0].raw):s[0],this.outputAmount=r===t.YL.EXACT_OUTPUT?n:e.output===$?de.ether(s[s.length-1].raw):s[s.length-1],this.executionPrice=new he(this.inputAmount.currency,this.outputAmount.currency,this.inputAmount.raw,this.outputAmount.raw),this.nextMidPrice=he.fromRoute(new ge(l,e.input)),this.priceImpact=(i=this.outputAmount,a=(o=e.midPrice.raw.multiply(this.inputAmount.raw)).subtract(i.raw).divide(o),new be(a.numerator,a.denominator))}e.exactIn=function(n,r){return new e(n,r,t.YL.EXACT_INPUT)},e.exactOut=function(n,r){return new e(n,r,t.YL.EXACT_OUTPUT)};var n=e.prototype;return n.minimumAmountOut=function(e){if(e.lessThan(x)&&c(!1),this.tradeType===t.YL.EXACT_OUTPUT)return this.outputAmount;var n=new ce(k).add(e).invert().multiply(this.outputAmount.raw).quotient;return this.outputAmount instanceof fe?new fe(this.outputAmount.token,n):de.ether(n)},n.maximumAmountIn=function(e){if(e.lessThan(x)&&c(!1),this.tradeType===t.YL.EXACT_INPUT)return this.inputAmount;var n=new ce(k).add(e).multiply(this.inputAmount.raw).quotient;return this.inputAmount instanceof fe?new fe(this.inputAmount.token,n):de.ether(n)},e.bestTradeExactIn=function(n,r,i,o,a,s,l){var u=void 0===o?{}:o,d=u.maxNumResults,f=void 0===d?3:d,h=u.maxHops,p=void 0===h?3:h;void 0===a&&(a=[]),void 0===s&&(s=r),void 0===l&&(l=[]),n.length>0||c(!1),p>0||c(!1),s===r||a.length>0||c(!1);var m=r instanceof fe?r.token.chainId:i instanceof ee?i.chainId:void 0;void 0===m&&c(!1);for(var g=we(r,m),y=xe(i,m),b=0;b1&&n.length>1){var w=n.slice(0,b).concat(n.slice(b+1,n.length));e.bestTradeExactIn(w,_,i,{maxNumResults:f,maxHops:p-1},[].concat(a,[v]),s,l)}}}return l},e.bestTradeExactOut=function(n,r,i,o,a,s,l){var u=void 0===o?{}:o,d=u.maxNumResults,f=void 0===d?3:d,h=u.maxHops,p=void 0===h?3:h;void 0===a&&(a=[]),void 0===s&&(s=i),void 0===l&&(l=[]),n.length>0||c(!1),p>0||c(!1),s===i||a.length>0||c(!1);var m=i instanceof fe?i.token.chainId:r instanceof ee?r.chainId:void 0;void 0===m&&c(!1);for(var g=we(i,m),y=xe(r,m),b=0;b1&&n.length>1){var w=n.slice(0,b).concat(n.slice(b+1,n.length));e.bestTradeExactOut(w,r,_,{maxNumResults:f,maxHops:p-1},[v].concat(a),s,l)}}}return l},e}();function Te(e){return"0x"+e.raw.toString(16)}var Se,Ae=function(){function e(){}return e.swapCallParameters=function(e,n){var r=e.inputAmount.currency===$,i=e.outputAmount.currency===$;r&&i&&c(!1),n.ttl>0||c(!1);var o,a,s,l=Y(n.recipient),u=Te(e.maximumAmountIn(n.allowedSlippage)),d=Te(e.minimumAmountOut(n.allowedSlippage)),f=e.route.path.map((function(e){return e.address})),h="0x"+(Math.floor((new Date).getTime()/1e3)+n.ttl).toString(16),p=Boolean(n.feeOnTransfer);switch(e.tradeType){case t.YL.EXACT_INPUT:r?(o=p?"swapExactETHForTokensSupportingFeeOnTransferTokens":"swapExactETHForTokens",a=[d,f,l,h],s=u):i?(o=p?"swapExactTokensForETHSupportingFeeOnTransferTokens":"swapExactTokensForETH",a=[u,d,f,l,h],s="0x0"):(o=p?"swapExactTokensForTokensSupportingFeeOnTransferTokens":"swapExactTokensForTokens",a=[u,d,f,l,h],s="0x0");break;case t.YL.EXACT_OUTPUT:p&&c(!1),r?(o="swapETHForExactTokens",a=[d,f,l,h],s=u):i?(o="swapTokensForExactETH",a=[d,u,f,l,h],s="0x0"):(o="swapTokensForExactTokens",a=[d,u,f,l,h],s="0x0")}return{methodName:o,args:a,value:s}},e}(),Ee=[{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}],Ce=((Se={})[t.ChainId.MAINNET]={"0xE0B7927c4aF23765Cb51314A0E0521A9645F0E2A":9},Se),Oe=function(){function e(){}return e.fetchTokenData=function(e,t,n,r,i){try{var o,a,s=function(n){return new ee(e,t,n,r,i)};void 0===n&&(n=y.getDefaultProvider(g.getNetwork(e)));var l="number"==typeof(null===(o=Ce)||void 0===o||null===(a=o[e])||void 0===a?void 0:a[t]);return Promise.resolve(l?s(Ce[e][t]):Promise.resolve(new m.Contract(t,Ee,n).decimals().then((function(n){var r,i,o;return Ce=j({},Ce,((o={})[e]=j({},null===(r=Ce)||void 0===r?void 0:r[e],((i={})[t]=n,i)),o)),n}))).then(s))}catch(e){return Promise.reject(e)}},e.fetchPairData=function(e,t,n){try{void 0===n&&(n=y.getDefaultProvider(g.getNetwork(e.chainId))),e.chainId!==t.chainId&&c(!1);var r=me.getAddress(e,t);return Promise.resolve(new m.Contract(r,b.abi,n).getReserves()).then((function(n){var r=n[0],i=n[1],o=e.sortsBefore(t)?[r,i]:[i,r];return new me(new fe(e,o[0]),new fe(t,o[1]))}))}catch(e){return Promise.reject(e)}},e}();t.JSBI=l,t.CurrencyAmount=de,t.ETHER=$,t.Pair=me,t.Percent=be,t.Token=ee,t.TokenAmount=fe,t.Trade=ke,t.WETH=ie},79734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(44654);function i(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}function o(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function l(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function c(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function d(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}function f(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),u(e/4294967296>>>0,t,n),u(e>>>0,t,n+4),t}function h(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),d(e>>>0,t,n),d(e/4294967296>>>0,t,n+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=o,t.writeInt16LE=o,t.readInt32BE=a,t.readUint32BE=s,t.readInt32LE=l,t.readUint32LE=c,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var n=a(e,t),r=a(e,t+4);return 4294967296*n+r-4294967296*(r>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var n=l(e,t);return 4294967296*l(e,t+4)+n-4294967296*(n>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var n=c(e,t);return 4294967296*c(e,t+4)+n},t.writeUint64BE=f,t.writeInt64BE=f,t.writeUint64LE=h,t.writeInt64LE=h,t.readUintBE=function(e,t,n){if(void 0===n&&(n=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,i=1,o=e/8+n-1;o>=n;o--)r+=t[o]*i,i*=256;return r},t.readUintLE=function(e,t,n){if(void 0===n&&(n=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,i=1,o=n;o=i;a--)n[a]=t/o&255,o*=256;return n},t.writeUintLE=function(e,t,n,i){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,a=i;a{"use strict";var r=n(42873),i=n(82625),o=n(63227),a=n(79734),s=n(46852);t.Cv=32,t.WH=12,t.pg=16;var l=new Uint8Array(16),c=function(){function e(e){if(this.nonceLength=t.WH,this.tagLength=t.pg,e.length!==t.Cv)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,n,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var a=new Uint8Array(16);a.set(e,a.length-e.length);var s=new Uint8Array(32);r.stream(this._key,a,s,4);var l,c=t.length+this.tagLength;if(i){if(i.length!==c)throw new Error("ChaCha20Poly1305: incorrect destination length");l=i}else l=new Uint8Array(c);return r.streamXOR(this._key,a,t,l,4),this._authenticate(l.subarray(l.length-this.tagLength,l.length),s,l.subarray(0,l.length-this.tagLength),n),o.wipe(a),l},e.prototype.open=function(e,t,n,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&s.update(l.subarray(r.length%16))),s.update(n),n.length%16>0&&s.update(l.subarray(n.length%16));var c=new Uint8Array(8);r&&a.writeUint64LE(r.length,c),s.update(c),a.writeUint64LE(n.length,c),s.update(c);for(var u=s.digest(),d=0;d{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(79734),i=n(63227),o=20;function a(e,t,n){for(var i=1634760805,a=857760878,s=2036477234,l=1797285236,c=n[3]<<24|n[2]<<16|n[1]<<8|n[0],u=n[7]<<24|n[6]<<16|n[5]<<8|n[4],d=n[11]<<24|n[10]<<16|n[9]<<8|n[8],f=n[15]<<24|n[14]<<16|n[13]<<8|n[12],h=n[19]<<24|n[18]<<16|n[17]<<8|n[16],p=n[23]<<24|n[22]<<16|n[21]<<8|n[20],m=n[27]<<24|n[26]<<16|n[25]<<8|n[24],g=n[31]<<24|n[30]<<16|n[29]<<8|n[28],y=t[3]<<24|t[2]<<16|t[1]<<8|t[0],b=t[7]<<24|t[6]<<16|t[5]<<8|t[4],v=t[11]<<24|t[10]<<16|t[9]<<8|t[8],_=t[15]<<24|t[14]<<16|t[13]<<8|t[12],w=i,x=a,k=s,T=l,S=c,A=u,E=d,C=f,O=h,M=p,P=m,I=g,N=y,j=b,R=v,B=_,F=0;F>>16|N<<16)|0)>>>20|S<<12,A=(A^=M=M+(j=(j^=x=x+A|0)>>>16|j<<16)|0)>>>20|A<<12,E=(E^=P=P+(R=(R^=k=k+E|0)>>>16|R<<16)|0)>>>20|E<<12,C=(C^=I=I+(B=(B^=T=T+C|0)>>>16|B<<16)|0)>>>20|C<<12,E=(E^=P=P+(R=(R^=k=k+E|0)>>>24|R<<8)|0)>>>25|E<<7,C=(C^=I=I+(B=(B^=T=T+C|0)>>>24|B<<8)|0)>>>25|C<<7,A=(A^=M=M+(j=(j^=x=x+A|0)>>>24|j<<8)|0)>>>25|A<<7,S=(S^=O=O+(N=(N^=w=w+S|0)>>>24|N<<8)|0)>>>25|S<<7,A=(A^=P=P+(B=(B^=w=w+A|0)>>>16|B<<16)|0)>>>20|A<<12,E=(E^=I=I+(N=(N^=x=x+E|0)>>>16|N<<16)|0)>>>20|E<<12,C=(C^=O=O+(j=(j^=k=k+C|0)>>>16|j<<16)|0)>>>20|C<<12,S=(S^=M=M+(R=(R^=T=T+S|0)>>>16|R<<16)|0)>>>20|S<<12,C=(C^=O=O+(j=(j^=k=k+C|0)>>>24|j<<8)|0)>>>25|C<<7,S=(S^=M=M+(R=(R^=T=T+S|0)>>>24|R<<8)|0)>>>25|S<<7,E=(E^=I=I+(N=(N^=x=x+E|0)>>>24|N<<8)|0)>>>25|E<<7,A=(A^=P=P+(B=(B^=w=w+A|0)>>>24|B<<8)|0)>>>25|A<<7;r.writeUint32LE(w+i|0,e,0),r.writeUint32LE(x+a|0,e,4),r.writeUint32LE(k+s|0,e,8),r.writeUint32LE(T+l|0,e,12),r.writeUint32LE(S+c|0,e,16),r.writeUint32LE(A+u|0,e,20),r.writeUint32LE(E+d|0,e,24),r.writeUint32LE(C+f|0,e,28),r.writeUint32LE(O+h|0,e,32),r.writeUint32LE(M+p|0,e,36),r.writeUint32LE(P+m|0,e,40),r.writeUint32LE(I+g|0,e,44),r.writeUint32LE(N+y|0,e,48),r.writeUint32LE(j+b|0,e,52),r.writeUint32LE(R+v|0,e,56),r.writeUint32LE(B+_|0,e,60)}function s(e,t,n,r,o){if(void 0===o&&(o=0),32!==e.length)throw new Error("ChaCha: key size must be 32 bytes");if(r.length>>=8,t++;if(r>0)throw new Error("ChaCha: counter overflow")}t.streamXOR=s,t.stream=function(e,t,n,r){return void 0===r&&(r=0),i.wipe(n),s(e,t,n,n,r)}},46852:(e,t)=>{"use strict";function n(e,t){if(e.length!==t.length)return 0;for(var n=0,r=0;r>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,n){return~(e-1)&t|e-1&n},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=n,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==n(e,t)}},15202:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return"undefined"!==typeof e.saveState&&"undefined"!==typeof e.restoreState&&"undefined"!==typeof e.cleanSavedState}},81791:(e,t,n)=>{"use strict";var r=n(51680),i=n(63227),o=function(){function e(e,t,n,i){void 0===n&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var o=r.hmac(this._hash,n,t);this._hmac=new r.HMAC(e,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw new Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(15202),i=n(46852),o=n(63227),a=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var n=65535&e,r=65535&t;return n*r+((e>>>16&65535)*r+n*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},82625:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(46852),i=n(63227);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var n=e[0]|e[1]<<8;this._r[0]=8191&n;var r=e[2]|e[3]<<8;this._r[1]=8191&(n>>>13|r<<3);var i=e[4]|e[5]<<8;this._r[2]=7939&(r>>>10|i<<6);var o=e[6]|e[7]<<8;this._r[3]=8191&(i>>>7|o<<9);var a=e[8]|e[9]<<8;this._r[4]=255&(o>>>4|a<<12),this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=8191&(a>>>14|s<<2);var l=e[12]|e[13]<<8;this._r[7]=8065&(s>>>11|l<<5);var c=e[14]|e[15]<<8;this._r[8]=8191&(l>>>8|c<<8),this._r[9]=c>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,n){for(var r=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],l=this._h[4],c=this._h[5],u=this._h[6],d=this._h[7],f=this._h[8],h=this._h[9],p=this._r[0],m=this._r[1],g=this._r[2],y=this._r[3],b=this._r[4],v=this._r[5],_=this._r[6],w=this._r[7],x=this._r[8],k=this._r[9];n>=16;){var T=e[t+0]|e[t+1]<<8;i+=8191&T;var S=e[t+2]|e[t+3]<<8;o+=8191&(T>>>13|S<<3);var A=e[t+4]|e[t+5]<<8;a+=8191&(S>>>10|A<<6);var E=e[t+6]|e[t+7]<<8;s+=8191&(A>>>7|E<<9);var C=e[t+8]|e[t+9]<<8;l+=8191&(E>>>4|C<<12),c+=C>>>1&8191;var O=e[t+10]|e[t+11]<<8;u+=8191&(C>>>14|O<<2);var M=e[t+12]|e[t+13]<<8;d+=8191&(O>>>11|M<<5);var P=e[t+14]|e[t+15]<<8,I=0,N=I;N+=i*p,N+=o*(5*k),N+=a*(5*x),N+=s*(5*w),I=(N+=l*(5*_))>>>13,N&=8191,N+=c*(5*v),N+=u*(5*b),N+=d*(5*y),N+=(f+=8191&(M>>>8|P<<8))*(5*g);var j=I+=(N+=(h+=P>>>5|r)*(5*m))>>>13;j+=i*m,j+=o*p,j+=a*(5*k),j+=s*(5*x),I=(j+=l*(5*w))>>>13,j&=8191,j+=c*(5*_),j+=u*(5*v),j+=d*(5*b),j+=f*(5*y),I+=(j+=h*(5*g))>>>13,j&=8191;var R=I;R+=i*g,R+=o*m,R+=a*p,R+=s*(5*k),I=(R+=l*(5*x))>>>13,R&=8191,R+=c*(5*w),R+=u*(5*_),R+=d*(5*v),R+=f*(5*b);var B=I+=(R+=h*(5*y))>>>13;B+=i*y,B+=o*g,B+=a*m,B+=s*p,I=(B+=l*(5*k))>>>13,B&=8191,B+=c*(5*x),B+=u*(5*w),B+=d*(5*_),B+=f*(5*v);var F=I+=(B+=h*(5*b))>>>13;F+=i*b,F+=o*y,F+=a*g,F+=s*m,I=(F+=l*p)>>>13,F&=8191,F+=c*(5*k),F+=u*(5*x),F+=d*(5*w),F+=f*(5*_);var D=I+=(F+=h*(5*v))>>>13;D+=i*v,D+=o*b,D+=a*y,D+=s*g,I=(D+=l*m)>>>13,D&=8191,D+=c*p,D+=u*(5*k),D+=d*(5*x),D+=f*(5*w);var L=I+=(D+=h*(5*_))>>>13;L+=i*_,L+=o*v,L+=a*b,L+=s*y,I=(L+=l*g)>>>13,L&=8191,L+=c*m,L+=u*p,L+=d*(5*k),L+=f*(5*x);var U=I+=(L+=h*(5*w))>>>13;U+=i*w,U+=o*_,U+=a*v,U+=s*b,I=(U+=l*y)>>>13,U&=8191,U+=c*g,U+=u*m,U+=d*p,U+=f*(5*k);var z=I+=(U+=h*(5*x))>>>13;z+=i*x,z+=o*w,z+=a*_,z+=s*v,I=(z+=l*b)>>>13,z&=8191,z+=c*y,z+=u*g,z+=d*m,z+=f*p;var W=I+=(z+=h*(5*k))>>>13;W+=i*k,W+=o*x,W+=a*w,W+=s*_,I=(W+=l*v)>>>13,W&=8191,W+=c*b,W+=u*y,W+=d*g,W+=f*m,i=N=8191&(I=(I=((I+=(W+=h*p)>>>13)<<2)+I|0)+(N&=8191)|0),o=j+=I>>>=13,a=R&=8191,s=B&=8191,l=F&=8191,c=D&=8191,u=L&=8191,d=U&=8191,f=z&=8191,h=W&=8191,t+=16,n-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=l,this._h[5]=c,this._h[6]=u,this._h[7]=d,this._h[8]=f,this._h[9]=h},e.prototype.finish=function(e,t){void 0===t&&(t=0);var n,r,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(n=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=n,n=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*n,n=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=n,n=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=n,a[0]=this._h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this._h[o]=this._h[o]&r|a[o];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),i=this._h[0]+this._pad[0],this._h[0]=65535&i,o=1;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,n=0,r=e.length;if(this._leftover){(t=16-this._leftover)>r&&(t=r);for(var i=0;i=16&&(t=r-r%16,this._blocks(e,n,t),n+=t,r-=t),r){for(i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const r=n(44239),i=n(79734),o=n(63227);function a(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.defaultRandomSource).randomBytes(e)}t.defaultRandomSource=new r.SystemRandomSource,t.randomBytes=a,t.randomUint32=function(){const e=a(4,arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.defaultRandomSource),n=(0,i.readUint32LE)(e);return(0,o.wipe)(e),n};const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function l(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultRandomSource;if(n.length<2)throw new Error("randomString charset is too short");if(n.length>256)throw new Error("randomString charset is too long");let i="";const l=n.length,c=256-256%l;for(;e>0;){const t=a(Math.ceil(256*e/c),r);for(let r=0;r0;r++){const o=t[r];o1&&void 0!==arguments[1]?arguments[1]:s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultRandomSource;return l(Math.ceil(e/(Math.log(n.length)/Math.LN2)),n,r)}},93687:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!==typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;const r=n(63227);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const e=n(35883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const n=new Uint8Array(e);for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;const r=n(93687),i=n(46846);t.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new r.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new i.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},49900:(e,t,n)=>{"use strict";var r=n(79734),i=n(63227);t.k=32,t.cn=64;var o=function(){function e(){this.digestLength=t.k,this.blockSize=t.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=s(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,i=t/536870912|0,o=t<<3,a=t%64<56?64:128;this._buffer[n]=128;for(var l=n+1;l0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=o;var a=new Int32Array([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 s(e,t,n,i,o){for(;o>=64;){for(var s=t[0],l=t[1],c=t[2],u=t[3],d=t[4],f=t[5],h=t[6],p=t[7],m=0;m<16;m++){var g=i+4*m;e[m]=r.readUint32BE(n,g)}for(m=16;m<64;m++){var y=e[m-2],b=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,v=((y=e[m-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;e[m]=(b+e[m-7]|0)+(v+e[m-16]|0)}for(m=0;m<64;m++){b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&f^~d&h)|0)+(p+(a[m]+e[m]|0)|0)|0,v=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&l^s&c^l&c)|0;p=h,h=f,f=d,d=u+b|0,u=c,c=l,l=s,s=b+v|0}t[0]+=s,t[1]+=l,t[2]+=c,t[3]+=u,t[4]+=d,t[5]+=f,t[6]+=h,t[7]+=p,i+=64,o-=64}return i}t.vp=function(e){var t=new o;t.update(e);var n=t.digest();return t.clean(),n}},63227:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t{"use strict";t.gi=t.Au=t.KS=t.kz=void 0;const r=n(14701),i=n(63227);function o(e){const t=new Float64Array(16);if(e)for(let n=0;n=0;--o){const e=n[o>>>3]>>>(7&o)&1;c(i,a,e),c(p,m,e),u(g,i,p),d(i,i,p),u(p,a,m),d(a,a,m),h(m,g),h(y,i),f(i,p,i),f(p,a,g),u(g,i,p),d(i,i,p),h(a,i),d(p,m,y),f(i,p,s),u(i,i,m),f(p,p,i),f(i,m,y),f(m,a,r),h(a,g),c(i,a,e),c(p,m,e)}for(let o=0;o<16;o++)r[o+16]=i[o],r[o+32]=p[o],r[o+48]=a[o],r[o+64]=m[o];const b=r.subarray(32),v=r.subarray(16);!function(e,t){const n=o();for(let r=0;r<16;r++)n[r]=t[r];for(let r=253;r>=0;r--)h(n,n),2!==r&&4!==r&&f(n,n,t);for(let r=0;r<16;r++)e[r]=n[r]}(b,b),f(v,v,b);const _=new Uint8Array(32);return function(e,t){const n=o(),r=o();for(let i=0;i<16;i++)r[i]=t[i];l(r),l(r),l(r);for(let i=0;i<2;i++){n[0]=r[0]-65517;for(let t=1;t<15;t++)n[t]=r[t]-65535-(n[t-1]>>16&1),n[t-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const e=n[15]>>16&1;n[14]&=65535,c(r,n,1-e)}for(let i=0;i<16;i++)e[2*i]=255&r[i],e[2*i+1]=r[i]>>8}(_,v),_}function m(e){return p(e,a)}function g(e){if(e.length!==t.KS)throw new Error("x25519: seed must be ".concat(t.KS," bytes"));const n=new Uint8Array(e);return{publicKey:m(n),secretKey:n}}t.Au=function(e){const t=(0,r.randomBytes)(32,e),n=g(t);return(0,i.wipe)(t),n},t.gi=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.length!==t.kz)throw new Error("X25519: incorrect secret key length");if(n.length!==t.kz)throw new Error("X25519: incorrect public key length");const i=p(e,n);if(r){let e=0;for(let t=0;t{},54813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(81397);r.__exportStar(n(6775),t),r.__exportStar(n(73403),t)},6775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},73403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},93659:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(81397);r.__exportStar(n(60271),t),r.__exportStar(n(36349),t),r.__exportStar(n(28886),t),r.__exportStar(n(54813),t)},28886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(81397).__exportStar(n(45780),t)},45780:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;t.IWatch=class{}},6317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;const r=n(54813);t.toMiliseconds=function(e){return e*r.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/r.ONE_THOUSAND)}},98083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise((t=>{setTimeout((()=>{t(!0)}),e)}))}},60271:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(81397);r.__exportStar(n(98083),t),r.__exportStar(n(6317),t)},36349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class n{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error("Watch already started for label: ".concat(e));this.timestamps.set(e,{started:Date.now()})}stop(e){const t=this.get(e);if("undefined"!==typeof t.elapsed)throw new Error("Watch already stopped for label: ".concat(e));const n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){const t=this.timestamps.get(e);if("undefined"===typeof t)throw new Error("No timestamp found for label: ".concat(e));return t}elapsed(e){const t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=n,t.default=n},81397:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>_,__asyncGenerator:()=>v,__asyncValues:()=>w,__await:()=>b,__awaiter:()=>u,__classPrivateFieldGet:()=>S,__classPrivateFieldSet:()=>A,__createBinding:()=>f,__decorate:()=>s,__exportStar:()=>h,__extends:()=>i,__generator:()=>d,__importDefault:()=>T,__importStar:()=>k,__makeTemplateObject:()=>x,__metadata:()=>c,__param:()=>l,__read:()=>m,__rest:()=>a,__spread:()=>g,__spreadArrays:()=>y,__values:()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(r){u(o[0][3],r)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function A(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},95935:(e,t,n)=>{"use strict";n.d(t,{AW:()=>I,O6:()=>Ut,rV:()=>B,gn:()=>Te,H1:()=>be,hF:()=>ve,WG:()=>V,pe:()=>K,m$:()=>H,vB:()=>Z,HI:()=>Y,E0:()=>Ae,Gq:()=>xe,$0:()=>pe,Z4:()=>we,Bv:()=>ze,Au:()=>z,jd:()=>W,gu:()=>O,D:()=>fe,Z7:()=>it,cO:()=>Pe,_H:()=>Me,fc:()=>Qe,D6:()=>ot,Hh:()=>Ce,Ym:()=>q,rj:()=>G,jU:()=>ue,gp:()=>$e,rF:()=>jt,Bw:()=>Se,UG:()=>le,Gg:()=>Ft,xW:()=>pt,b$:()=>ce,Ih:()=>dt,h1:()=>mt,Q8:()=>Q,o8:()=>lt,qt:()=>at,Dd:()=>gt,$t:()=>Et,nf:()=>Mt,Q0:()=>St,in:()=>xt,p8:()=>Pt,sI:()=>Nt,al:()=>It,L5:()=>st,EJ:()=>At,Z2:()=>kt,PM:()=>Tt,hH:()=>Ct,ON:()=>Bt,n:()=>wt,JT:()=>Ot,M_:()=>ct,jv:()=>ht,KC:()=>ge,eG:()=>Ee,fK:()=>tt,IP:()=>ye,DQ:()=>C,iP:()=>ke,M:()=>et,he:()=>Le,uw:()=>Dt,Ll:()=>X,EN:()=>J});var r=n(74533),i=n(81791),o=n(14701),a=n(49900),s=n(23539),l=n(91696),c=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i1&&void 0!==arguments[1]?arguments[1]:[];const n=[];return Object.keys(e).forEach((r=>{if(t.length&&!t.includes(r))return;const i=e[r];n.push(...i.accounts)})),n}function M(e,t){return e.includes(":")?[e]:t.chains||[]}const P="base10",I="base16",N="base64pad",j="utf8",R=0,B=1,F=0,D=1,L=12,U=32;function z(){const e=s.Au();return{privateKey:(0,l.BB)(e.secretKey,I),publicKey:(0,l.BB)(e.publicKey,I)}}function W(){const e=(0,o.randomBytes)(U);return(0,l.BB)(e,I)}function H(e,t){const n=s.gi((0,l.mL)(e,I),(0,l.mL)(t,I),!0),r=new i.t(a.mE,n).expand(U);return(0,l.BB)(r,I)}function q(e){const t=(0,a.vp)((0,l.mL)(e,I));return(0,l.BB)(t,I)}function G(e){const t=(0,a.vp)((0,l.mL)(e,j));return(0,l.BB)(t,I)}function V(e){return Number((0,l.BB)(e,P))}function Y(e){const t=function(e){return(0,l.mL)("".concat(e),P)}(typeof e.type<"u"?e.type:R);if(V(t)===B&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof e.senderPublicKey<"u"?(0,l.mL)(e.senderPublicKey,I):void 0,i=typeof e.iv<"u"?(0,l.mL)(e.iv,I):(0,o.randomBytes)(L);return function(e){if(V(e.type)===B){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return(0,l.BB)((0,l.zo)([e.type,e.senderPublicKey,e.iv,e.sealed]),N)}return(0,l.BB)((0,l.zo)([e.type,e.iv,e.sealed]),N)}({type:t,sealed:new r.OK((0,l.mL)(e.symKey,I)).seal(i,(0,l.mL)(e.message,j)),iv:i,senderPublicKey:n})}function K(e){const t=new r.OK((0,l.mL)(e.symKey,I)),{sealed:n,iv:i}=Z(e.encoded),o=t.open(i,n);if(null===o)throw new Error("Failed to decrypt");return(0,l.BB)(o,j)}function Z(e){const t=(0,l.mL)(e,N),n=t.slice(F,D),r=D;if(V(n)===B){const e=r+U,i=e+L,o=t.slice(r,e),a=t.slice(e,i);return{type:n,sealed:t.slice(i),iv:a,senderPublicKey:o}}const i=r+L,o=t.slice(r,i);return{type:n,sealed:t.slice(i),iv:o}}function X(e,t){const n=Z(e);return J({type:V(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?(0,l.BB)(n.senderPublicKey,I):void 0,receiverPublicKey:null===t||void 0===t?void 0:t.receiverPublicKey})}function J(e){const t=(null===e||void 0===e?void 0:e.type)||R;if(t===B){if(typeof(null===e||void 0===e?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(null===e||void 0===e?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:null===e||void 0===e?void 0:e.senderPublicKey,receiverPublicKey:null===e||void 0===e?void 0:e.receiverPublicKey}}function Q(e){return e.type===B&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var $=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,re=(e,t,n)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ie=(e,t)=>{for(var n in t||(t={}))te.call(t,n)&&re(e,n,t[n]);if(ee)for(var n of ee(t))ne.call(t,n)&&re(e,n,t[n]);return e};const oe="ReactNative",ae={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},se="js";function le(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function ce(){return!(0,k.getDocument)()&&!!(0,k.getNavigator)()&&navigator.product===oe}function ue(){return!le()&&!!(0,k.getNavigator)()}function de(){return ce()?ae.reactNative:le()?ae.node:ue()?ae.browser:ae.unknown}function fe(){return(0,T.D)()||{name:"",description:"",url:"",icons:[""]}}function he(e,t,r){const i=function(){if(de()===ae.reactNative&&typeof n.g<"u"&&typeof(null==n.g?void 0:n.g.Platform)<"u"){const{OS:e,Version:t}=n.g.Platform;return[e,t].join("-")}const e=v();if(null===e)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),o=function(){var e;const t=de();return t===ae.browser?[t,(null==(e=(0,k.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),[se,r].join("-"),i,o].join("/")}function pe(e){let{protocol:t,version:n,relayUrl:r,sdkVersion:i,auth:o,projectId:a,useOnCloseEvent:s}=e;const l=r.split("?"),c={auth:o,ua:he(t,n,i),projectId:a,useOnCloseEvent:s||void 0},u=function(e,t){let n=S.parse(e);return n=ie(ie({},n),t),S.stringify(n)}(l[1]||"",c);return l[0]+"?"+u}function me(e,t){return e.filter((e=>t.includes(e))).length===e.length}function ge(e){return Object.fromEntries(e.entries())}function ye(e){return new Map(Object.entries(e))}function be(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.FIVE_MINUTES,t=arguments.length>1?arguments[1]:void 0;const n=(0,x.toMiliseconds)(e||x.FIVE_MINUTES);let r,i,o;return{resolve:e=>{o&&r&&(clearTimeout(o),r(e))},reject:e=>{o&&i&&(clearTimeout(o),i(e))},done:()=>new Promise(((e,a)=>{o=setTimeout((()=>{a(new Error(t))}),n),r=e,i=a}))}}function ve(e,t,n){return new Promise((async(r,i)=>{const o=setTimeout((()=>i(new Error(n))),t);try{r(await e)}catch(a){i(a)}clearTimeout(o)}))}function _e(e,t){if("string"==typeof t&&t.startsWith("".concat(e,":")))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw new Error('Value must be "string" for expirer target type: topic');return"topic:".concat(t)}if("id"===e.toLowerCase()){if("number"!=typeof t)throw new Error('Value must be "number" for expirer target type: id');return"id:".concat(t)}throw new Error("Unknown expirer target type: ".concat(e))}function we(e){return _e("topic",e)}function xe(e){return _e("id",e)}function ke(e){const[t,n]=e.split(":"),r={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof n)r.topic=n;else{if("id"!==t||!Number.isInteger(Number(n)))throw new Error("Invalid target, expected id:number or topic:string, got ".concat(t,":").concat(n));r.id=Number(n)}return r}function Te(e,t){return(0,x.fromMiliseconds)((t||Date.now())+(0,x.toMiliseconds)(e))}function Se(e){return Date.now()>=(0,x.toMiliseconds)(e)}function Ae(e,t){return"".concat(e).concat(t?":".concat(t):"")}function Ee(){return[...new Set([...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]])]}async function Ce(e){let{id:t,topic:r,wcDeepLink:i}=e;try{if(!i)return;const e="string"==typeof i?JSON.parse(i):i;let o=null===e||void 0===e?void 0:e.href;if("string"!=typeof o)return;o.endsWith("/")&&(o=o.slice(0,-1));const a="".concat(o,"/wc?requestId=").concat(t,"&sessionTopic=").concat(r),s=de();s===ae.browser?a.startsWith("https://")?window.open(a,"_blank","noreferrer noopener"):window.open(a,"_self","noreferrer noopener"):s===ae.reactNative&&typeof(null==n.g?void 0:n.g.Linking)<"u"&&await n.g.Linking.openURL(a)}catch(o){console.error(o)}}const Oe="irn";function Me(e){return(null===e||void 0===e?void 0:e.relay)||{protocol:Oe}}function Pe(e){const t=A[e];if(typeof t>"u")throw new Error("Relay Protocol not supported: ".concat(e));return t}var Ie=Object.defineProperty,Ne=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Be=(e,t,n)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fe=(e,t)=>{for(var n in t||(t={}))je.call(t,n)&&Be(e,n,t[n]);if(Ne)for(var n of Ne(t))Re.call(t,n)&&Be(e,n,t[n]);return e};function De(e){const t={},n="relay"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-");return Object.keys(e).forEach((r=>{if(r.startsWith(n)){const i=r.replace(n,""),o=e[r];t[i]=o}})),t}function Le(e){const t=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),i=e.substring(t+1,n).split("@"),o=typeof n<"u"?e.substring(n):"",a=S.parse(o);return{protocol:r,topic:Ue(i[0]),version:parseInt(i[1],10),symKey:a.symKey,relay:De(a)}}function Ue(e){return e.startsWith("//")?e.substring(2):e}function ze(e){return"".concat(e.protocol,":").concat(e.topic,"@").concat(e.version,"?")+S.stringify(Fe({symKey:e.symKey},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";const n={};return Object.keys(e).forEach((r=>{const i="relay"+t+r;e[r]&&(n[i]=e[r])})),n}(e.relay)))}var We=Object.defineProperty,He=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ke=(e,t,n)=>t in e?We(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ze=(e,t)=>{for(var n in t||(t={}))Ve.call(t,n)&&Ke(e,n,t[n]);if(Ge)for(var n of Ge(t))Ye.call(t,n)&&Ke(e,n,t[n]);return e},Xe=(e,t)=>He(e,qe(t));function Je(e){const t=[];return e.forEach((e=>{const[n,r]=e.split(":");t.push("".concat(n,":").concat(r))})),t}function Qe(e,t){const n=xt(e,t);if(n)throw new Error(n.message);const r={};for(const[i,o]of Object.entries(e))r[i]={methods:o.methods,events:o.events,chains:o.accounts.map((e=>"".concat(e.split(":")[0],":").concat(e.split(":")[1])))};return r}function $e(e){return e.includes(":")}function et(e){return $e(e)?e.split(":")[0]:e}function tt(e){var t,n,r;const i={};if(!st(e))return i;for(const[o,a]of Object.entries(e)){const e=$e(o)?[o]:a.chains,s=a.methods||[],l=a.events||[],c=et(o);i[c]=Xe(Ze({},i[c]),{chains:Ee(e,null==(t=i[c])?void 0:t.chains),methods:Ee(s,null==(n=i[c])?void 0:n.methods),events:Ee(l,null==(r=i[c])?void 0:r.events)})}return i}const nt={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},rt={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function it(e,t){const{message:n,code:r}=rt[e];return{message:t?"".concat(n," ").concat(t):n,code:r}}function ot(e,t){const{message:n,code:r}=nt[e];return{message:t?"".concat(n," ").concat(t):n,code:r}}function at(e,t){return!!Array.isArray(e)&&(!(typeof t<"u"&&e.length)||e.every(t))}function st(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function lt(e){return typeof e>"u"}function ct(e,t){return!(!t||!lt(e))||"string"==typeof e&&!!e.trim().length}function ut(e,t){return!(!t||!lt(e))||"number"==typeof e&&!isNaN(e)}function dt(e,t){const{requiredNamespaces:n}=t,r=Object.keys(e.namespaces),i=Object.keys(n);let o=!0;return!!me(i,r)&&(r.forEach((t=>{const{accounts:r,methods:i,events:a}=e.namespaces[t],s=Je(r),l=n[t];(!me(M(t,l),s)||!me(l.methods,i)||!me(l.events,a))&&(o=!1)})),o)}function ft(e){return!(!ct(e,!1)||!e.includes(":"))&&2===e.split(":").length}function ht(e){if(ct(e,!1))try{return typeof new URL(e)<"u"}catch{return!1}return!1}function pt(e){var t;return null==(t=null===e||void 0===e?void 0:e.proposer)?void 0:t.publicKey}function mt(e){return null===e||void 0===e?void 0:e.topic}function gt(e,t){let n=null;return ct(null===e||void 0===e?void 0:e.publicKey,!1)||(n=it("MISSING_OR_INVALID","".concat(t," controller public key should be a string"))),n}function yt(e){let t=!0;return at(e)?e.length&&(t=e.every((e=>ct(e,!1)))):t=!1,t}function bt(e,t,n){let r=null;return Object.entries(e).forEach((e=>{let[i,o]=e;if(r)return;const a=function(e,t,n){let r=null;return at(t)&&t.length?t.forEach((e=>{r||ft(e)||(r=ot("UNSUPPORTED_CHAINS","".concat(n,", chain ").concat(e,' should be a string and conform to "namespace:chainId" format')))})):ft(e)||(r=ot("UNSUPPORTED_CHAINS","".concat(n,', chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }'))),r}(i,M(i,o),"".concat(t," ").concat(n));a&&(r=a)})),r}function vt(e,t){let n=null;return at(e)?e.forEach((e=>{n||function(e){if(ct(e,!1)&&e.includes(":")){const t=e.split(":");if(3===t.length){const e=t[0]+":"+t[1];return!!t[2]&&ft(e)}}return!1}(e)||(n=ot("UNSUPPORTED_ACCOUNTS","".concat(t,", account ").concat(e,' should be a string and conform to "namespace:chainId:address" format')))})):n=ot("UNSUPPORTED_ACCOUNTS","".concat(t,', accounts should be an array of strings conforming to "namespace:chainId:address" format')),n}function _t(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=function(e,t){let n=null;return yt(null===e||void 0===e?void 0:e.methods)?yt(null===e||void 0===e?void 0:e.events)||(n=ot("UNSUPPORTED_EVENTS","".concat(t,", events should be an array of strings or empty array for no events"))):n=ot("UNSUPPORTED_METHODS","".concat(t,", methods should be an array of strings or empty array for no methods")),n}(e,"".concat(t,", namespace"));r&&(n=r)})),n}function wt(e,t,n){let r=null;if(e&&st(e)){const i=_t(e,t);i&&(r=i);const o=bt(e,t,n);o&&(r=o)}else r=it("MISSING_OR_INVALID","".concat(t,", ").concat(n," should be an object with data"));return r}function xt(e,t){let n=null;if(e&&st(e)){const r=_t(e,t);r&&(n=r);const i=function(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=vt(null===e||void 0===e?void 0:e.accounts,"".concat(t," namespace"));r&&(n=r)})),n}(e,t);i&&(n=i)}else n=it("MISSING_OR_INVALID","".concat(t,", namespaces should be an object with data"));return n}function kt(e){return ct(e.protocol,!0)}function Tt(e,t){let n=!1;return t&&!e?n=!0:e&&at(e)&&e.length&&e.forEach((e=>{n=kt(e)})),n}function St(e){return"number"==typeof e}function At(e){return typeof e<"u"&&null!==typeof e}function Et(e){return!(!e||"object"!=typeof e||!e.code||!ut(e.code,!1)||!e.message||!ct(e.message,!1))}function Ct(e){return!(lt(e)||!ct(e.method,!1))}function Ot(e){return!(lt(e)||lt(e.result)&<(e.error)||!ut(e.id,!1)||!ct(e.jsonrpc,!1))}function Mt(e){return!(lt(e)||!ct(e.name,!1))}function Pt(e,t){return!(!ft(t)||!function(e){const t=[];return Object.values(e).forEach((e=>{t.push(...Je(e.accounts))})),t}(e).includes(t))}function It(e,t,n){return!!ct(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{Je(e.accounts).includes(t)&&n.push(...e.methods)})),n}(e,t).includes(n)}function Nt(e,t,n){return!!ct(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{Je(e.accounts).includes(t)&&n.push(...e.events)})),n}(e,t).includes(n)}function jt(e,t,n){let r=null;const i=function(e){const t={};return Object.keys(e).forEach((n=>{var r;n.includes(":")?t[n]=e[n]:null==(r=e[n].chains)||r.forEach((r=>{t[r]={methods:e[n].methods,events:e[n].events}}))})),t}(e),o=function(e){const t={};return Object.keys(e).forEach((n=>{if(n.includes(":"))t[n]=e[n];else{const r=Je(e[n].accounts);null===r||void 0===r||r.forEach((r=>{t[r]={accounts:e[n].accounts.filter((e=>e.includes("".concat(r,":")))),methods:e[n].methods,events:e[n].events}}))}})),t}(t),a=Object.keys(i),s=Object.keys(o),l=Rt(Object.keys(e)),c=Rt(Object.keys(t)),u=l.filter((e=>!c.includes(e)));return u.length&&(r=it("NON_CONFORMING_NAMESPACES","".concat(n," namespaces keys don't satisfy requiredNamespaces.\n Required: ").concat(u.toString(),"\n Received: ").concat(Object.keys(t).toString()))),me(a,s)||(r=it("NON_CONFORMING_NAMESPACES","".concat(n," namespaces chains don't satisfy required namespaces.\n Required: ").concat(a.toString(),"\n Approved: ").concat(s.toString()))),Object.keys(t).forEach((e=>{if(!e.includes(":")||r)return;const i=Je(t[e].accounts);i.includes(e)||(r=it("NON_CONFORMING_NAMESPACES","".concat(n," namespaces accounts don't satisfy namespace accounts for ").concat(e,"\n Required: ").concat(e,"\n Approved: ").concat(i.toString())))})),a.forEach((e=>{r||(me(i[e].methods,o[e].methods)?me(i[e].events,o[e].events)||(r=it("NON_CONFORMING_NAMESPACES","".concat(n," namespaces events don't satisfy namespace events for ").concat(e))):r=it("NON_CONFORMING_NAMESPACES","".concat(n," namespaces methods don't satisfy namespace methods for ").concat(e)))})),r}function Rt(e){return[...new Set(e.map((e=>e.includes(":")?e.split(":")[0]:e)))]}function Bt(e,t){return ut(e,!1)&&e<=t.max&&e>=t.min}function Ft(){const e=de();return new Promise((t=>{switch(e){case ae.browser:t(function(){var e;return ue()&&(null===(e=navigator)||void 0===e?void 0:e.onLine)}());break;case ae.reactNative:t(async function(){if(ce()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo){const e=await(null==n.g?void 0:n.g.NetInfo.fetch());return null===e||void 0===e?void 0:e.isConnected}return!0}());break;case ae.node:default:t(!0)}}))}function Dt(e){switch(de()){case ae.browser:!function(e){!ce()&&ue()&&(window.addEventListener("online",(()=>e(!0))),window.addEventListener("offline",(()=>e(!1))))}(e);break;case ae.reactNative:!function(e){var t;ce()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo&&(null===(t=n.g)||void 0===t||t.NetInfo.addEventListener((t=>e(null===t||void 0===t?void 0:t.isConnected))))}(e);case ae.node:}}const Lt={};class Ut{static get(e){return Lt[e]}static set(e,t){Lt[e]=t}static delete(e){delete Lt[e]}}},50274:(e,t,n)=>{"use strict";const r=n(82376),i=n(8271),o=n(94266),a=n(2214),s=Symbol("encodeFragmentIdentifier");function l(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"===typeof n&&n.includes(e.arrayFormatSeparator),o="string"===typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const i of Object.keys(r)){const e=r[i];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=p(e[n],t);else r[i]=p(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=h,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,e),t,c(i,e)].join("")]:[[r,c(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const a of Object.keys(e))n(a)||(i[a]=e[a]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(h(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=f(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let l=t.stringify(a,n);l&&(l="?".concat(l));let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(n[s]?c(e.fragmentIdentifier,n):e.fragmentIdentifier)),"".concat(r).concat(l).concat(u)},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:l}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:l},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},38783:(e,t)=>{"use strict";function n(e){let t;return"undefined"!==typeof window&&"undefined"!==typeof window[e]&&(t=window[e]),t}function r(e){const t=n(e);if(!t)throw new Error("".concat(e," is not defined in Window"));return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=n,t.getFromWindowOrThrow=r,t.getDocumentOrThrow=function(){return r("document")},t.getDocument=function(){return n("document")},t.getNavigatorOrThrow=function(){return r("navigator")},t.getNavigator=function(){return n("navigator")},t.getLocationOrThrow=function(){return r("location")},t.getLocation=function(){return n("location")},t.getCryptoOrThrow=function(){return r("crypto")},t.getCrypto=function(){return n("crypto")},t.getLocalStorageOrThrow=function(){return r("localStorage")},t.getLocalStorage=function(){return n("localStorage")}},55210:(e,t,n)=>{"use strict";t.D=void 0;const r=n(38783);t.D=function(){let e,t;try{e=r.getDocumentOrThrow(),t=r.getLocationOrThrow()}catch(o){return null}function n(){for(var t=arguments.length,n=new Array(t),r=0;rt.getAttribute(e))).filter((e=>!!e&&n.includes(e)));if(r.length&&r){const e=t.getAttribute("content");if(e)return e}}return""}const i=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),r=[];for(let e=0;e-1){const e=i.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const r=t.pathname.split("/");r.pop();n+=r.join("/")+"/"+e}r.push(n)}else if(0===e.indexOf("//")){const n=t.protocol+e;r.push(n)}else r.push(e)}}return r}(),name:i}}},92789:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0]&&(p=!0),p)return h=(0,d.default)(h,m),(0,u.default)(h,m.once),h},y=function(){h=(0,f.default)(),g()},b=function(){h.forEach((function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay")}))},v=function(e){return!0===e||"mobile"===e&&c.default.mobile()||"phone"===e&&c.default.phone()||"tablet"===e&&c.default.tablet()||"function"==typeof e&&!0===e()},_=function(e){m=i(m,e),h=(0,f.default)();var t=document.all&&!window.atob;return v(m.disable)||t?b():(m.disableMutationObserver||l.default.isSupported()||(console.info('\n aos: MutationObserver is not supported on this browser,\n code mutations observing has been disabled.\n You may have to call "refreshHard()" by yourself.\n '),m.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",m.easing),document.querySelector("body").setAttribute("data-aos-duration",m.duration),document.querySelector("body").setAttribute("data-aos-delay",m.delay),"DOMContentLoaded"===m.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?g(!0):"load"===m.startEvent?window.addEventListener(m.startEvent,(function(){g(!0)})):document.addEventListener(m.startEvent,(function(){g(!0)})),window.addEventListener("resize",(0,s.default)(g,m.debounceDelay,!0)),window.addEventListener("orientationchange",(0,s.default)(g,m.debounceDelay,!0)),window.addEventListener("scroll",(0,a.default)((function(){(0,u.default)(h,m.once)}),m.throttleDelay)),m.disableMutationObserver||l.default.ready("[data-aos]",y),h)};e.exports={init:_,refresh:g,refreshHard:y}},function(e,t){},,,,,function(e,t){(function(t){"use strict";function n(e,t,n){function r(t){var n=m,r=g;return m=g=void 0,T=t,b=e.apply(r,n)}function o(e){return T=e,v=setTimeout(u,t),S?r(e):b}function a(e){var n=t-(e-_);return A?x(n,y-(e-T)):n}function l(e){var n=e-_;return void 0===_||n>=t||n<0||A&&e-T>=y}function u(){var e=k();return l(e)?d(e):void(v=setTimeout(u,a(e)))}function d(e){return v=void 0,E&&m?r(e):(m=g=void 0,b)}function f(){void 0!==v&&clearTimeout(v),T=0,m=_=g=v=void 0}function h(){return void 0===v?b:d(k())}function p(){var e=k(),n=l(e);if(m=arguments,g=this,_=e,n){if(void 0===v)return o(_);if(A)return v=setTimeout(u,t),r(_)}return void 0===v&&(v=setTimeout(u,t)),b}var m,g,y,b,v,_,T=0,S=!1,A=!1,E=!0;if("function"!=typeof e)throw new TypeError(c);return t=s(t)||0,i(n)&&(S=!!n.leading,y=(A="maxWait"in n)?w(s(n.maxWait)||0,t):y,E="trailing"in n?!!n.trailing:E),p.cancel=f,p.flush=h,p}function r(e,t,r){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError(c);return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}function i(e){var t="undefined"==typeof e?"undefined":l(e);return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==("undefined"==typeof e?"undefined":l(e))}function a(e){return"symbol"==("undefined"==typeof e?"undefined":l(e))||o(e)&&_.call(e)==d}function s(e){if("number"==typeof e)return e;if(a(e))return u;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(f,"");var n=p.test(e);return n||m.test(e)?g(e.slice(2),n?2:8):h.test(e)?u:+e}var l="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},c="Expected a function",u=NaN,d="[object Symbol]",f=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,m=/^0o[0-7]+$/i,g=parseInt,y="object"==("undefined"==typeof t?"undefined":l(t))&&t&&t.Object===Object&&t,b="object"==("undefined"==typeof self?"undefined":l(self))&&self&&self.Object===Object&&self,v=y||b||Function("return this")(),_=Object.prototype.toString,w=Math.max,x=Math.min,k=function(){return v.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";function n(e,t,n){function i(t){var n=m,r=g;return m=g=void 0,T=t,b=e.apply(r,n)}function o(e){return T=e,v=setTimeout(u,t),S?i(e):b}function s(e){var n=t-(e-k);return A?w(n,y-(e-T)):n}function c(e){var n=e-k;return void 0===k||n>=t||n<0||A&&e-T>=y}function u(){var e=x();return c(e)?d(e):void(v=setTimeout(u,s(e)))}function d(e){return v=void 0,E&&m?i(e):(m=g=void 0,b)}function f(){void 0!==v&&clearTimeout(v),T=0,m=k=g=v=void 0}function h(){return void 0===v?b:d(x())}function p(){var e=x(),n=c(e);if(m=arguments,g=this,k=e,n){if(void 0===v)return o(k);if(A)return v=setTimeout(u,t),i(k)}return void 0===v&&(v=setTimeout(u,t)),b}var m,g,y,b,v,k,T=0,S=!1,A=!1,E=!0;if("function"!=typeof e)throw new TypeError(l);return t=a(t)||0,r(n)&&(S=!!n.leading,y=(A="maxWait"in n)?_(a(n.maxWait)||0,t):y,E="trailing"in n?!!n.trailing:E),p.cancel=f,p.flush=h,p}function r(e){var t="undefined"==typeof e?"undefined":s(e);return!!e&&("object"==t||"function"==t)}function i(e){return!!e&&"object"==("undefined"==typeof e?"undefined":s(e))}function o(e){return"symbol"==("undefined"==typeof e?"undefined":s(e))||i(e)&&v.call(e)==u}function a(e){if("number"==typeof e)return e;if(o(e))return c;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(d,"");var n=h.test(e);return n||p.test(e)?m(e.slice(2),n?2:8):f.test(e)?c:+e}var 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},l="Expected a function",c=NaN,u="[object Symbol]",d=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,m=parseInt,g="object"==("undefined"==typeof t?"undefined":s(t))&&t&&t.Object===Object&&t,y="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,b=g||y||Function("return this")(),v=Object.prototype.toString,_=Math.max,w=Math.min,x=function(){return b.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t){"use strict";function n(e){var t=void 0,r=void 0;for(t=0;te.position?e.node.classList.add("aos-animate"):"undefined"!=typeof r&&("false"===r||!n&&"true"!==r)&&e.node.classList.remove("aos-animate")},r=function(e,t){var r=window.pageYOffset,i=window.innerHeight;e.forEach((function(e,o){n(e,i+r,t)}))};t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(12)),o=function(e,t){return e.forEach((function(e,n){e.node.classList.add("aos-init"),e.position=(0,i.default)(e.node,t.offset)})),e};t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(13)),o=function(e,t){var n=0,r=0,o=window.innerHeight,a={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(a.offset&&!isNaN(a.offset)&&(r=parseInt(a.offset)),a.anchor&&document.querySelectorAll(a.anchor)&&(e=document.querySelectorAll(a.anchor)[0]),n=(0,i.default)(e).top,a.anchorPlacement){case"top-bottom":break;case"center-bottom":n+=e.offsetHeight/2;break;case"bottom-bottom":n+=e.offsetHeight;break;case"top-center":n+=o/2;break;case"bottom-center":n+=o/2+e.offsetHeight;break;case"center-center":n+=o/2+e.offsetHeight/2;break;case"top-top":n+=o;break;case"bottom-top":n+=e.offsetHeight+o;break;case"center-top":n+=e.offsetHeight/2+o}return a.anchorPlacement||a.offset||isNaN(t)||(r=t),n+r};t.default=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),n+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:n,left:t}};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e=e||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(e,(function(e){return{node:e}}))};t.default=n}])},75205:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}function i(e,t){for(var n=0;n1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;te.length)&&(n=e.length),e.substring(n-t.length,n)===t}var v="",_="",w="",x="",k={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function T(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function S(e){return g(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function A(e,t,n){var r="",i="",o=0,a="",s=!1,l=S(e),c=l.split("\n"),u=S(t).split("\n"),d=0,f="";if("strictEqual"===n&&"object"===m(e)&&"object"===m(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===c.length&&1===u.length&&c[0]!==u[0]){var h=c[0].length+u[0].length;if(h<=10){if(("object"!==m(e)||null===e)&&("object"!==m(t)||null===t)&&(0!==e||0!==t))return"".concat(k[n],"\n\n")+"".concat(c[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==n){if(h<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;c[0][d]===u[0][d];)d++;d>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}}for(var p=c[c.length-1],g=u[u.length-1];p===g&&(d++<2?a="\n ".concat(p).concat(a):r=p,c.pop(),u.pop(),0!==c.length&&0!==u.length);)p=c[c.length-1],g=u[u.length-1];var y=Math.max(c.length,u.length);if(0===y){var T=l.split("\n");if(T.length>30)for(T[26]="".concat(v,"...").concat(x);T.length>27;)T.pop();return"".concat(k.notIdentical,"\n\n").concat(T.join("\n"),"\n")}d>3&&(a="\n".concat(v,"...").concat(x).concat(a),s=!0),""!==r&&(a="\n ".concat(r).concat(a),r="");var A=0,E=k[n]+"\n".concat(_,"+ actual").concat(x," ").concat(w,"- expected").concat(x),C=" ".concat(v,"...").concat(x," Lines skipped");for(d=0;d1&&d>2&&(O>4?(i+="\n".concat(v,"...").concat(x),s=!0):O>3&&(i+="\n ".concat(u[d-2]),A++),i+="\n ".concat(u[d-1]),A++),o=d,r+="\n".concat(w,"-").concat(x," ").concat(u[d]),A++;else if(u.length1&&d>2&&(O>4?(i+="\n".concat(v,"...").concat(x),s=!0):O>3&&(i+="\n ".concat(c[d-2]),A++),i+="\n ".concat(c[d-1]),A++),o=d,i+="\n".concat(_,"+").concat(x," ").concat(c[d]),A++;else{var M=u[d],P=c[d],I=P!==M&&(!b(P,",")||P.slice(0,-1)!==M);I&&b(M,",")&&M.slice(0,-1)===P&&(I=!1,P+=","),I?(O>1&&d>2&&(O>4?(i+="\n".concat(v,"...").concat(x),s=!0):O>3&&(i+="\n ".concat(c[d-2]),A++),i+="\n ".concat(c[d-1]),A++),o=d,i+="\n".concat(_,"+").concat(x," ").concat(P),r+="\n".concat(w,"-").concat(x," ").concat(M),A+=2):(i+=r,r="",1!==O&&0!==d||(i+="\n ".concat(P),A++))}if(A>20&&d30)for(h[26]="".concat(v,"...").concat(x);h.length>27;)h.pop();t=1===h.length?s.call(this,"".concat(f," ").concat(h[0])):s.call(this,"".concat(f,"\n\n").concat(h.join("\n"),"\n"))}else{var p=S(o),g="",b=k[r];"notDeepEqual"===r||"notEqual"===r?(p="".concat(k[r],"\n\n").concat(p)).length>1024&&(p="".concat(p.slice(0,1021),"...")):(g="".concat(S(a)),p.length>512&&(p="".concat(p.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===r||"equal"===r?p="".concat(b,"\n\n").concat(p,"\n\nshould equal\n\n"):g=" ".concat(r," ").concat(g)),t=s.call(this,"".concat(p).concat(g))}return Error.stackTraceLimit=d,t.generatedMessage=!n,Object.defineProperty(c(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=o,t.expected=a,t.operator=r,Error.captureStackTrace&&Error.captureStackTrace(c(t),i),t.stack,t.name="AssertionError",l(t)}return n=u,(r=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return g(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&a(n.prototype,r),o&&a(n,o),Object.defineProperty(n,"prototype",{writable:!1}),u}(u(Error),g.custom);e.exports=E},13905:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}function i(e,t){for(var n=0;n2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,a,s,l;if(void 0===c&&(c=n(75205)),c("string"===typeof e,"'name' must be a string"),"string"===typeof t&&(a="not ",t.substr(!s||s<0?0:+s,a.length)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))l="The ".concat(e," ").concat(o," ").concat(h(t,"type"));else{var u=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(u," ").concat(o," ").concat(h(t,"type"))}return l+=". Received type ".concat(r(i))}),TypeError),f("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=n(97736));var i=u.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),f("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),f("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=d},88527:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function N(e){return Object.keys(e).filter(I).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function j(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;sc?c:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},65109:e=>{"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={},r=0;r<32;r++){var i=t.charAt(r);if(void 0!==n[i])throw new TypeError(i+" is ambiguous");n[i]=r}function o(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function a(e){for(var t=1,n=0;n126)return"Invalid prefix ("+e+")";t=o(t)^r>>5}for(t=o(t),n=0;nt)return"Exceeds length limit";var r=e.toLowerCase(),i=e.toUpperCase();if(e!==r&&e!==i)return"Mixed-case string "+e;var s=(e=r).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var l=e.slice(0,s),c=e.slice(s+1);if(c.length<6)return"Data too short";var u=a(l);if("string"===typeof u)return u;for(var d=[],f=0;f=c.length||d.push(p)}return 1!==u?"Invalid checksum for "+e:{prefix:l,words:d}}function l(e,t,n,r){for(var i=0,o=0,a=(1<=n;)o-=n,s.push(i>>o&a);if(r)o>0&&s.push(i<=t)return"Excess padding";if(i<r)throw new TypeError("Exceeds length limit");var i=a(e=e.toLowerCase());if("string"===typeof i)throw new Error(i);for(var s=e+"1",l=0;l>5!==0)throw new Error("Non 5-bit word");i=o(i)^c,s+=t.charAt(c)}for(l=0;l<6;++l)i=o(i);for(i^=1,l=0;l<6;++l){s+=t.charAt(i>>5*(5-l)&31)}return s},toWordsUnsafe:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},76791:function(e,t,n){var r;!function(i){"use strict";var o,a=1e6,s=1e6,l="[big.js] ",c=l+"Invalid ",u=c+"decimal places",d=c+"rounding mode",f=l+"Division by zero",h={},p=void 0,m=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function g(e,t,n,r){var i=e.c,o=e.e+t+1;if(o=5;else if(2===n)r=i[o]>5||5==i[o]&&(r||o<0||i[o+1]!==p||1&i[o-1]);else if(3===n)r=r||!!i[0];else if(r=!1,0!==n)throw Error(d);if(o<1)i.length=1,r?(e.e=-t,i[0]=1):i[0]=e.e=0;else{if(i.length=o--,r)for(;++i[o]>9;)i[o]=0,o--||(++e.e,i.unshift(1));for(o=i.length;!i[--o];)i.pop()}}else if(n<0||n>3||n!==~~n)throw Error(d);return e}function y(e,t,n,r){var i,o,s=e.constructor,l=!e.c[0];if(n!==p){if(n!==~~n||n<(3==t)||n>a)throw Error(3==t?c+"precision":u);for(n=r-(e=new s(e)).e,e.c.length>++r&&g(e,n,s.RM),2==t&&(r=e.e+n+1);e.c.length=s.PE))o=o.charAt(0)+(n>1?"."+o.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)o="0"+o;o="0."+o}else if(i>0)if(++i>n)for(i-=n;i--;)o+="0";else i1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&(!l||4==t)?"-"+o:o}h.abs=function(){var e=new this.constructor(this);return e.s=1,e},h.cmp=function(e){var t,n=this,r=n.c,i=(e=new n.constructor(e)).c,o=n.s,a=e.s,s=n.e,l=e.e;if(!r[0]||!i[0])return r[0]?o:i[0]?-a:0;if(o!=a)return o;if(t=o<0,s!=l)return s>l^t?1:-1;for(a=(s=r.length)<(l=i.length)?s:l,o=-1;++oi[o]^t?1:-1;return s==l?0:s>l^t?1:-1},h.div=function(e){var t=this,n=t.constructor,r=t.c,i=(e=new n(e)).c,o=t.s==e.s?1:-1,s=n.DP;if(s!==~~s||s<0||s>a)throw Error(u);if(!i[0])throw Error(f);if(!r[0])return new n(0*o);var l,c,d,h,m,y=i.slice(),b=l=i.length,v=r.length,_=r.slice(0,l),w=_.length,x=e,k=x.c=[],T=0,S=s+(x.e=t.e-e.e)+1;for(x.s=o,o=S<0?0:S,y.unshift(0);w++w?1:-1;else for(m=-1,h=0;++m_[m]?1:-1;break}if(!(h<0))break;for(c=w==l?i:y;w;){if(_[--w]S&&g(x,s,n.RM,_[0]!==p),x},h.eq=function(e){return!this.cmp(e)},h.gt=function(e){return this.cmp(e)>0},h.gte=function(e){return this.cmp(e)>-1},h.lt=function(e){return this.cmp(e)<0},h.lte=function(e){return this.cmp(e)<1},h.minus=h.sub=function(e){var t,n,r,i,o=this,a=o.constructor,s=o.s,l=(e=new a(e)).s;if(s!=l)return e.s=-l,o.plus(e);var c=o.c.slice(),u=o.e,d=e.c,f=e.e;if(!c[0]||!d[0])return d[0]?(e.s=-l,e):new a(c[0]?o:0);if(s=u-f){for((i=s<0)?(s=-s,r=c):(f=u,r=d),r.reverse(),l=s;l--;)r.push(0);r.reverse()}else for(n=((i=c.length0)for(;l--;)c[t++]=0;for(l=t;n>s;){if(c[--n]0?(l=a,t=c):(i=-i,t=s),t.reverse();i--;)t.push(0);t.reverse()}for(s.length-c.length<0&&(t=c,c=s,s=t),i=c.length,o=0;i;s[i]%=10)o=(s[--i]=s[i]+c[i]+o)/10|0;for(o&&(s.unshift(o),++l),i=s.length;0===s[--i];)s.pop();return e.c=s,e.e=l,e},h.pow=function(e){var t=this,n=new t.constructor(1),r=n,i=e<0;if(e!==~~e||e<-1e6||e>s)throw Error(c+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?n.div(r):r},h.round=function(e,t){var n=this.constructor;if(e===p)e=0;else if(e!==~~e||e<-a||e>a)throw Error(u);return g(new n(this),e,t===p?n.RM:t)},h.sqrt=function(){var e,t,n,r=this,i=r.constructor,o=r.s,a=r.e,s=new i(.5);if(!r.c[0])return new i(r);if(o<0)throw Error(l+"No square root");0===(o=Math.sqrt(r+""))||o===1/0?((t=r.c.join("")).length+a&1||(t+="0"),a=((a+1)/2|0)-(a<0||1&a),e=new i(((o=Math.sqrt(t))==1/0?"1e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+a)):e=new i(o),a=e.e+(i.DP+=4);do{n=e,e=s.times(n.plus(r.div(n)))}while(n.c.slice(0,a).join("")!==e.c.slice(0,a).join(""));return g(e,i.DP-=4,i.RM)},h.times=h.mul=function(e){var t,n=this,r=n.constructor,i=n.c,o=(e=new r(e)).c,a=i.length,s=o.length,l=n.e,c=e.e;if(e.s=n.s==e.s?1:-1,!i[0]||!o[0])return new r(0*e.s);for(e.e=l+c,al;)s=t[c]+o[l]*i[c-l-1]+s,t[c--]=s%10,s=s/10|0;t[c]=(t[c]+s)%10}for(s?++e.e:t.shift(),l=t.length;!t[--l];)t.pop();return e.c=t,e},h.toExponential=function(e){return y(this,1,e,e)},h.toFixed=function(e){return y(this,2,e,this.e+e)},h.toPrecision=function(e){return y(this,3,e,e-1)},h.toString=function(){return y(this)},h.valueOf=h.toJSON=function(){return y(this,4)},o=function e(){function t(n){var r=this;if(!(r instanceof t))return n===p?e():new t(n);n instanceof t?(r.s=n.s,r.e=n.e,r.c=n.c.slice()):function(e,t){var n,r,i;if(0===t&&1/t<0)t="-0";else if(!m.test(t+=""))throw Error(c+"number");e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".",""));(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length);for(i=t.length,r=0;r0&&"0"==t.charAt(--i););for(e.e=n-r-1,e.c=[],n=0;r<=i;)e.c[n++]=+t.charAt(r++)}}(r,n),r.constructor=t}return t.prototype=h,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.version="5.2.2",t}(),o.default=o.Big=o,void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},64166:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(46601).Buffer}catch(C){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function l(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,n,i){for(var o=0,a=0,s=Math.min(e.length,n),l=t;l=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=l(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2===0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(C){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var f=["","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"],h=[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];o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?f[6-l.length]+l+n:l+n}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],u=p[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(u).toString(e);n=(d=d.idivn(u)).isZero()?m+n:f[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,l=0|u}return 0!==l?n.words[c]=0|l:n.length--,n._strip()}o.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],_=8191&v,w=v>>>13,x=0|a[4],k=8191&x,T=x>>>13,S=0|a[5],A=8191&S,E=S>>>13,C=0|a[6],O=8191&C,M=C>>>13,P=0|a[7],I=8191&P,N=P>>>13,j=0|a[8],R=8191&j,B=j>>>13,F=0|a[9],D=8191&F,L=F>>>13,U=0|s[0],z=8191&U,W=U>>>13,H=0|s[1],q=8191&H,G=H>>>13,V=0|s[2],Y=8191&V,K=V>>>13,Z=0|s[3],X=8191&Z,J=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,W))+Math.imul(f,z)|0))<<13)|0;c=((o=Math.imul(f,W))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,W))+Math.imul(m,z)|0,o=Math.imul(m,W);var ye=(c+(r=r+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,q)|0))<<13)|0;c=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,W))+Math.imul(b,z)|0,o=Math.imul(b,W),r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,G)|0;var be=(c+(r=r+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,Y)|0))<<13)|0;c=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(_,z),i=(i=Math.imul(_,W))+Math.imul(w,z)|0,o=Math.imul(w,W),r=r+Math.imul(y,q)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0;var ve=(c+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,W))+Math.imul(T,z)|0,o=Math.imul(T,W),r=r+Math.imul(_,q)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,K)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0;var _e=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,$)|0))<<13)|0;c=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,W))+Math.imul(E,z)|0,o=Math.imul(E,W),r=r+Math.imul(k,q)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,K)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var we=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;c=((o=o+Math.imul(f,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,W))+Math.imul(M,z)|0,o=Math.imul(M,W),r=r+Math.imul(A,q)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,K)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var xe=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;c=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(I,z),i=(i=Math.imul(I,W))+Math.imul(N,z)|0,o=Math.imul(N,W),r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,G)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,K)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,r=r+Math.imul(_,$)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(b,ne)|0,o=o+Math.imul(b,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var ke=(c+(r=r+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((o=o+Math.imul(f,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,W))+Math.imul(B,z)|0,o=Math.imul(B,W),r=r+Math.imul(I,q)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(N,q)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,K)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,J)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ce)|0;var Te=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(D,z),i=(i=Math.imul(D,W))+Math.imul(L,z)|0,o=Math.imul(L,W),r=r+Math.imul(R,q)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,K)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,r=r+Math.imul(y,le)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,ce)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,fe)|0;var Se=(c+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((o=o+Math.imul(f,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,G))+Math.imul(L,q)|0,o=Math.imul(L,G),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,K)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(E,ne)|0,o=o+Math.imul(E,re)|0,r=r+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(_,le)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(w,le)|0,o=o+Math.imul(w,ce)|0,r=r+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ae=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(D,Y),i=(i=Math.imul(D,K))+Math.imul(L,Y)|0,o=Math.imul(L,K),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,r=r+Math.imul(k,le)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(T,le)|0,o=o+Math.imul(T,ce)|0,r=r+Math.imul(_,de)|0,i=(i=i+Math.imul(_,fe)|0)+Math.imul(w,de)|0,o=o+Math.imul(w,fe)|0;var Ee=(c+(r=r+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(L,X)|0,o=Math.imul(L,J),r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(A,le)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(E,le)|0,o=o+Math.imul(E,ce)|0,r=r+Math.imul(k,de)|0,i=(i=i+Math.imul(k,fe)|0)+Math.imul(T,de)|0,o=o+Math.imul(T,fe)|0;var Ce=(c+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,$),i=(i=Math.imul(D,ee))+Math.imul(L,$)|0,o=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(B,ne)|0,o=o+Math.imul(B,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(O,le)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(A,de)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,de)|0,o=o+Math.imul(E,fe)|0;var Oe=(c+(r=r+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(T,pe)|0))<<13)|0;c=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(D,ne),i=(i=Math.imul(D,re))+Math.imul(L,ne)|0,o=Math.imul(L,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,r=r+Math.imul(I,le)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(N,le)|0,o=o+Math.imul(N,ce)|0,r=r+Math.imul(O,de)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(c+(r=r+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(D,oe),i=(i=Math.imul(D,ae))+Math.imul(L,oe)|0,o=Math.imul(L,ae),r=r+Math.imul(R,le)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(B,le)|0,o=o+Math.imul(B,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var Pe=(c+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(D,le),i=(i=Math.imul(D,ce))+Math.imul(L,le)|0,o=Math.imul(L,ce),r=r+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(B,de)|0,o=o+Math.imul(B,fe)|0;var Ie=(c+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(D,de),i=(i=Math.imul(D,fe))+Math.imul(L,de)|0,o=Math.imul(L,fe);var Ne=(c+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(B,pe)|0))<<13)|0;c=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var je=(c+(r=Math.imul(D,pe))|0)+((8191&(i=(i=Math.imul(D,me))+Math.imul(L,pe)|0))<<13)|0;return c=((o=Math.imul(L,me))+(i>>>13)|0)+(je>>>26)|0,je&=67108863,l[0]=ge,l[1]=ye,l[2]=be,l[3]=ve,l[4]=_e,l[5]=we,l[6]=xe,l[7]=ke,l[8]=Te,l[9]=Se,l[10]=Ae,l[11]=Ee,l[12]=Ce,l[13]=Oe,l[14]=Me,l[15]=Pe,l[16]=Ie,l[17]=Ne,l[18]=je,0!==c&&(l[19]=c,n.length++),n};function y(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function b(e,t,n){return y(e,t,n)}function v(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):n<63?m(this,e,t):n<1024?y(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},v.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i&1}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;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},o.prototype.isubn=function(e){if(r("number"===typeof e),r(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>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0===(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(l)):(n.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0===(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new A(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var _={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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 o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(x,w),x.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(_[e])return _[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new k;else if("p192"===e)t=new T;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return _[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},A.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g=0;r--){for(var c=t.words[r],u=l-1;u>=0;u--){var d=c>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,A),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},23883:(e,t,n)=>{var r;function i(e){this.rand=e}if(e.exports=function(e){return r||(r=new i(null)),r.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n{"use strict";const r=n(2470),i=n(60545),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||X(e.length)?s(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(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 d(e){return u(e),s(e<0?0:0|p(e))}function f(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(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);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return r?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n);for(let l=0;l>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function C(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let o=t;on)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i){W(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function R(e,t,n,r,i){W(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function B(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,o){return t=+t,n>>>=0,o||B(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,o){return t=+t,n>>>=0,o||B(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||I(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(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},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(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},l.prototype.writeBigUInt64LE=Q((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(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},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function W(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(o+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(o+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new L.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,i,o)}function H(e,t){if("number"!==typeof e)throw new L.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new L.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new L.ERR_BUFFER_OUT_OF_BOUNDS;throw new L.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i),r}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function V(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Y(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function K(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!==e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"===typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},44680:(e,t,n)=>{"use strict";var r=n(28476),i=n(59962),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},59962:(e,t,n)=>{"use strict";var r=n(1199),i=n(28476),o=n(51267),a=i("%TypeError%"),s=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||r.call(l,s),u=i("%Object.defineProperty%",!0),d=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(h){u=null}e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=c(r,l,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(r,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},63656:(e,t,n)=>{var r=n(65734).Buffer,i=n(42961).Transform,o=n(68570).s;function a(e){i.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}n(80273)(a,i),a.prototype.update=function(e,t,n){"string"===typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},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,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){r=i}finally{n(r)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(n){t=n}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=a},83061:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;ti,default:()=>o});const o=i},92229:(e,t,n)=>{"use strict";var r=n(43071),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},64448:(e,t,n)=>{"use strict";var r=n(80273),i=n(91075),o=n(72190),a=n(90590),s=n(63656);function l(e){s.call(this,"digest"),this._hash=e}r(l,s),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new l(a(e))}},61759:function(e,t,n){var r;!function(i){"use strict";var o,a=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,c="[DecimalError] ",u=c+"Invalid argument: ",d=c+"Exponent out of range: ",f=Math.floor,h=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=1e7,g=7,y=9007199254740991,b=f(y/g),v={};function _(e,t){var n,r,i,o,a,s,c,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),l?M(t,f):t;if(c=e.d,u=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i){for(o<0?(r=c,o=-o,s=u.length):(r=u,i=a,s=c.length),o>(s=(a=Math.ceil(f/g))>s?a+1:s+1)&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((s=c.length)-(o=u.length)<0&&(o=s,r=u,u=c,c=r),n=0;o;)n=(c[--o]=c[o]+u[o]+n)/m|0,c[o]%=m;for(n&&(c.unshift(n),++i),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=i,l?M(t,f):t}function w(e,t,n){if(e!==~~e||en)throw Error(u+e)}function x(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;te.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;te.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},v.decimalPlaces=v.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*g;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},v.dividedBy=v.div=function(e){return k(this,new this.constructor(e))},v.dividedToIntegerBy=v.idiv=function(e){var t=this.constructor;return M(k(this,new t(e),0,1),t.precision)},v.equals=v.eq=function(e){return!this.cmp(e)},v.exponent=function(){return S(this)},v.greaterThan=v.gt=function(e){return this.cmp(e)>0},v.greaterThanOrEqualTo=v.gte=function(e){return this.cmp(e)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(e){return this.cmp(e)<0},v.lessThanOrEqualTo=v.lte=function(e){return this.cmp(e)<1},v.logarithm=v.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(l=!1,t=k(C(n,a),C(e,a),a),l=!0,M(t,i))},v.minus=v.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):_(t,(e.s=-e.s,e))},v.modulo=v.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(c+"NaN");return n.s?(l=!1,t=k(n,e,0,1).times(e),l=!0,n.minus(t)):M(new r(n),i)},v.naturalExponential=v.exp=function(){return T(this)},v.naturalLogarithm=v.ln=function(){return C(this)},v.negated=v.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},v.plus=v.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):P(t,(e.s=-e.s,e))},v.precision=v.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(u+e);if(t=S(i)+1,n=(r=i.d.length-1)*g+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},v.squareRoot=v.sqrt=function(){var e,t,n,r,i,o,a,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(c+"NaN")}for(e=S(s),l=!1,0==(i=Math.sqrt(+s))||i==1/0?(((t=x(s.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),r=new u(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(i.toString()),i=a=(n=u.precision)+3;;)if(r=(o=r).plus(k(s,o,a+2)).times(.5),x(o.d).slice(0,a)===(t=x(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(M(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if("9999"!=t)break;a+=4}return l=!0,M(r,n)},v.times=v.mul=function(e){var t,n,r,i,o,a,s,c,u,d=this,f=d.constructor,h=d.d,p=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,n=d.e+e.e,(c=h.length)<(u=p.length)&&(o=h,h=p,p=o,a=c,c=u,u=a),o=[],r=a=c+u;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=c+r;i>r;)s=o[i]+p[r]*h[i-r-1]+t,o[i--]=s%m|0,t=s/m|0;o[i]=(o[i]+t)%m|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,l?M(e,f.precision):e},v.toDecimalPlaces=v.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(w(e,0,a),void 0===t?t=r.rounding:w(t,0,8),M(n,e+S(n)+1,t))},v.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=I(r,!0):(w(e,0,a),void 0===t?t=i.rounding:w(t,0,8),n=I(r=M(new i(r),e+1,t),!0,e+1)),n},v.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?I(i):(w(e,0,a),void 0===t?t=o.rounding:w(t,0,8),n=I((r=M(new o(i),e+S(i)+1,t)).abs(),!1,e+S(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},v.toInteger=v.toint=function(){var e=this,t=e.constructor;return M(new t(e),S(e)+1,t.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(e){var t,n,r,i,a,s,u=this,d=u.constructor,h=+(e=new d(e));if(!e.s)return new d(o);if(!(u=new d(u)).s){if(e.s<1)throw Error(c+"Infinity");return u}if(u.eq(o))return u;if(r=d.precision,e.eq(o))return M(u,r);if(s=(t=e.e)>=(n=e.d.length-1),a=u.s,s){if((n=h<0?-h:h)<=y){for(i=new d(o),t=Math.ceil(r/g+4),l=!1;n%2&&N((i=i.times(u)).d,t),0!==(n=f(n/2));)N((u=u.times(u)).d,t);return l=!0,e.s<0?new d(o).div(i):M(i,r)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,l=!1,i=e.times(C(u,r+12)),l=!0,(i=T(i)).s=a,i},v.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=I(i,(n=S(i))<=o.toExpNeg||n>=o.toExpPos):(w(e,1,a),void 0===t?t=o.rounding:w(t,0,8),r=I(i=M(new o(i),e,t),e<=(n=S(i))||n<=o.toExpNeg,e)),r},v.toSignificantDigits=v.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(w(e,1,a),void 0===t?t=n.rounding:w(t,0,8)),M(new n(this),e,t)},v.toString=v.valueOf=v.val=v.toJSON=function(){var e=this,t=S(e),n=e.constructor;return I(e,t<=n.toExpNeg||t>=n.toExpPos)};var k=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%m|0,r=n/m|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,i,o,a){var s,l,u,d,f,h,p,y,b,v,_,w,x,k,T,A,E,C,O=r.constructor,P=r.s==i.s?1:-1,I=r.d,N=i.d;if(!r.s)return new O(r);if(!i.s)throw Error(c+"Division by zero");for(l=r.e-i.e,E=N.length,T=I.length,y=(p=new O(P)).d=[],u=0;N[u]==(I[u]||0);)++u;if(N[u]>(I[u]||0)&&--l,(w=null==o?o=O.precision:a?o+(S(r)-S(i))+1:o)<0)return new O(0);if(w=w/g+2|0,u=0,1==E)for(d=0,N=N[0],w++;(u1&&(N=e(N,d),I=e(I,d),E=N.length,T=I.length),k=E,v=(b=I.slice(0,E)).length;v=m/2&&++A;do{d=0,(s=t(N,b,E,v))<0?(_=b[0],E!=v&&(_=_*m+(b[1]||0)),(d=_/A|0)>1?(d>=m&&(d=m-1),1==(s=t(f=e(N,d),b,h=f.length,v=b.length))&&(d--,n(f,E16)throw Error(d+S(e));if(!e.s)return new f(o);for(null==t?(l=!1,s=p):s=t,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(s+=Math.log(h(2,u))/Math.LN10*2+5|0,n=r=i=new f(o),f.precision=s;;){if(r=M(r.times(e),s),n=n.times(++c),x((a=i.plus(k(r,n,s))).d).slice(0,s)===x(i.d).slice(0,s)){for(;u--;)i=M(i.times(i),s);return f.precision=p,null==t?(l=!0,M(i,p)):i}i=a}}function S(e){for(var t=e.e*g,n=e.d[0];n>=10;n/=10)t++;return t}function A(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(c+"LN10 precision limit exceeded");return M(new e(e.LN10),t)}function E(e){for(var t="";e--;)t+="0";return t}function C(e,t){var n,r,i,a,s,u,d,f,h,p=1,m=e,g=m.d,y=m.constructor,b=y.precision;if(m.s<1)throw Error(c+(m.s?"NaN":"-Infinity"));if(m.eq(o))return new y(0);if(null==t?(l=!1,f=b):f=t,m.eq(10))return null==t&&(l=!0),A(y,f);if(f+=10,y.precision=f,r=(n=x(g)).charAt(0),a=S(m),!(Math.abs(a)<15e14))return d=A(y,f+2,b).times(a+""),m=C(new y(r+"."+n.slice(1)),f-10).plus(d),y.precision=b,null==t?(l=!0,M(m,b)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=x((m=m.times(e)).d)).charAt(0),p++;for(a=S(m),r>1?(m=new y("0."+n),a++):m=new y(r+"."+n.slice(1)),u=s=m=k(m.minus(o),m.plus(o),f),h=M(m.times(m),f),i=3;;){if(s=M(s.times(h),f),x((d=u.plus(k(s,new y(i),f))).d).slice(0,f)===x(u.d).slice(0,f))return u=u.times(2),0!==a&&(u=u.plus(A(y,f+2,b).times(a+""))),u=k(u,new y(p),f),y.precision=b,null==t?(l=!0,M(u,b)):u;u=d,i+=2}}function O(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=f(n/g),e.d=[],r=(n+1)%g,n<0&&(r+=g),rb||e.e<-b))throw Error(d+n)}else e.s=0,e.e=0,e.d=[0];return e}function M(e,t,n){var r,i,o,a,s,c,u,p,y=e.d;for(a=1,o=y[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=g,i=t,u=y[p=0];else{if((p=Math.ceil((r+1)/g))>=(o=y.length))return e;for(u=o=y[p],a=1;o>=10;o/=10)a++;i=(r%=g)-g+a}if(void 0!==n&&(s=u/(o=h(10,a-i-1))%10|0,c=t<0||void 0!==y[p+1]||u%o,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?i>0?u/h(10,a-i):0:y[p-1])%10&1||n==(e.s<0?8:7))),t<1||!y[0])return c?(o=S(e),y.length=1,t=t-o-1,y[0]=h(10,(g-t%g)%g),e.e=f(-t/g)||0):(y.length=1,y[0]=e.e=e.s=0),e;if(0==r?(y.length=p,o=1,p--):(y.length=p+1,o=h(10,g-r),y[p]=i>0?(u/h(10,a-i)%h(10,i)|0)*o:0),c)for(;;){if(0==p){(y[0]+=o)==m&&(y[0]=1,++e.e);break}if(y[p]+=o,y[p]!=m)break;y[p--]=0,o=1}for(r=y.length;0===y[--r];)y.pop();if(l&&(e.e>b||e.e<-b))throw Error(d+S(e));return e}function P(e,t){var n,r,i,o,a,s,c,u,d,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),l?M(t,p):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((d=a<0)?(n=c,a=-a,s=f.length):(n=f,r=u,s=c.length),a>(i=Math.max(Math.ceil(p/g),s)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((d=(i=c.length)<(s=f.length))&&(s=i),i=0;i0;--i)c[s++]=0;for(i=f.length;i>a;){if(c[--i]0?o=o.charAt(0)+"."+o.slice(1)+E(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+E(-i-1)+o,n&&(r=n-a)>0&&(o+=E(r))):i>=a?(o+=E(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+E(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=E(r))),e.s<0?"-"+o:o}function N(e,t){if(e.length>t)return e.length=t,!0}function j(e){if(!e||"object"!==typeof e)throw Error(c+"Object expected");var t,n,r,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=i[t+1]&&r<=i[t+2]))throw Error(u+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(u+n+": "+r);this[n]=new this(r)}return this}s=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(u+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):O(t,e.toString())}if("string"!==typeof e)throw Error(u+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(u+e);O(t,e)}if(o.prototype=v,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=j,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(o){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r{"use strict";var r=n(82926)(),i=n(28476),o=r&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(c){o=!1}var a=i("%SyntaxError%"),s=i("%TypeError%"),l=n(56103);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new s("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!l&&l(e,t);if(o)o(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===r&&d?d.enumerable:!r,value:n,writable:null===i&&d?d.writable:!i});else{if(!u&&(r||i||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},89959:(e,t,n)=>{"use strict";var r=n(66328),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(5150),l=n(82926)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!==typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?s(e,t,n,!0):s(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s{"use strict";var t={single_source_shortest_paths:function(e,n,r){var i={},o={};o[n]=0;var a,s,l,c,u,d,f,h=t.PriorityQueue.make();for(h.push(n,0);!h.empty();)for(l in s=(a=h.pop()).value,c=a.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],f=o[l],("undefined"===typeof o[l]||f>d)&&(o[l]=d,h.push(l,d),i[l]=s));if("undefined"!==typeof r&&"undefined"===typeof o[r]){var p=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(p)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var i=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,i={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=e.sorter||r.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},50626:(e,t,n)=>{"use strict";var r=t;r.version=n(18597).i8,r.utils=n(42115),r.rand=n(23883),r.curve=n(49022),r.curves=n(51455),r.ec=n(59679),r.eddsa=n(52709)},7242:(e,t,n)=>{"use strict";var r=n(4646),i=n(42115),o=i.getNAF,a=i.getJSF,s=i.assert;function l(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(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;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?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}e.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=o(t,1,this._bitLength),i=(1<=a;u--)l=(l<<1)+r[u];c.push(l)}for(var d=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=i;h>0;h--){for(a=0;a=0;c--){for(var u=0;c>=0&&0===a[c];c--)u++;if(c>=0&&u++,l=l.dblp(u),c<0)break;var d=a[c];s(0!==d),l="affine"===e.type?d>0?l.mixedAdd(i[d-1>>1]):l.mixedAdd(i[-d-1>>1].neg()):d>0?l.add(i[d-1>>1]):l.add(i[-d-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,n,r,i){var s,l,c,u=this._wnafT1,d=this._wnafT2,f=this._wnafT3,h=0;for(s=0;s=1;s-=2){var m=s-1,g=s;if(1===u[m]&&1===u[g]){var y=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(y[1]=t[m].add(t[g]),y[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(y[1]=t[m].toJ().mixedAdd(t[g]),y[2]=t[m].add(t[g].neg())):(y[1]=t[m].toJ().mixedAdd(t[g]),y[2]=t[m].toJ().mixedAdd(t[g].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=a(n[m],n[g]);for(h=Math.max(v[0].length,h),f[m]=new Array(h),f[g]=new Array(h),l=0;l=0;s--){for(var T=0;s>=0;){var S=!0;for(l=0;l=0&&T++,x=x.dblp(T),s<0)break;for(l=0;l0?c=d[l][A-1>>1]:A<0&&(c=d[l][-A-1>>1].neg()),x="affine"===c.type?x.mixedAdd(c):x.add(c))}}for(s=0;s=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 n=[this],r=this,i=0;i{"use strict";var r=n(42115),i=n(4646),o=n(80273),a=n(7242),s=r.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 i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|e.c)}function c(e,t,n,r,o){a.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(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 i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=o&&new i(o,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()))))}o(l,a),e.exports=l,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,n,r){return this.point(e,t,n,r)},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var l=s.fromRed().isOdd();return(t&&!l||!t&&l)&&(s=s.redNeg()),this.point(e,s)},l.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=r.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},o(c,a.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,n,r){return new c(this,e,t,n,r)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},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(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=r.redAdd(t),a=o.redSub(n),s=r.redSub(t),l=i.redMul(a),c=o.redMul(s),u=i.redMul(s),d=a.redMul(o);return this.curve.point(l,c,d,u)},c.prototype._projDbl=function(){var e,t,n,r,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var c=(r=this.curve._mulA(s)).redAdd(l);this.zOne?(e=a.redSub(s).redSub(l).redMul(c.redSub(this.curve.two)),t=c.redMul(r.redSub(l)),n=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),e=a.redSub(s).redISub(l).redMul(o),t=c.redMul(r.redSub(l)),n=c.redMul(o))}else r=s.redAdd(l),i=this.curve._mulC(this.z).redSqr(),o=r.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(r)).redMul(o),t=this.curve._mulC(r).redMul(s.redISub(l)),n=r.redMul(o);return this.curve.point(e,t,n)},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)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),a=i.redSub(r),s=i.redAdd(r),l=n.redAdd(t),c=o.redMul(a),u=s.redMul(l),d=o.redMul(l),f=a.redMul(s);return this.curve.point(c,u,f,d)},c.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),l=i.redSub(s),c=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=r.redMul(l).redMul(u);return this.curve.twisted?(t=r.redMul(c).redMul(a.redSub(this.curve._mulA(o))),n=l.redMul(c)):(t=r.redMul(c).redMul(a.redSub(o)),n=this.curve._mulC(l).redMul(c)),this.curve.point(d,t,n)},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,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},c.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return 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 n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},49022:(e,t,n)=>{"use strict";var r=t;r.base=n(7242),r.short=n(14463),r.mont=n(92620),r.edwards=n(76971)},92620:(e,t,n)=>{"use strict";var r=n(4646),i=n(80273),o=n(7242),a=n(42115);function s(e){o.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,n){o.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(l,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new l(this,e,t)},s.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()?"":""},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(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),a=i.redMul(r),s=t.z.redMul(o.redAdd(a).redSqr()),l=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,l)},l.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},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()}},14463:(e,t,n)=>{"use strict";var r=n(42115),i=n(4646),o=n(80273),a=n(7242),s=r.assert;function l(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(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,n,r){a.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(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 u(e,t,n,r){a.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,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}o(l,a),e.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?n=o[0]:(n=o[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,n,r,o,a,s,l,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,h=this.n.clone(),p=new i(1),m=new i(0),g=new i(0),y=new i(1),b=0;0!==f.cmpn(0);){var v=h.div(f);c=h.sub(v.mul(f)),u=g.sub(v.mul(p));var _=y.sub(v.mul(m));if(!r&&c.cmp(d)<0)t=l.neg(),n=p,r=c.neg(),o=u;else if(r&&2===++b)break;l=c,h=f,f=c,g=p,p=u,y=m,m=_}a=c.neg(),s=u;var w=r.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=t,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a:a,b:s}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),l=i.mul(n.b),c=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:l.add(c).neg()}},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(t&&!o||!t&&o)&&(r=r.redNeg()),this.point(e,r)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(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,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},c.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,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){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,a.BasePoint),l.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=r.redMul(c),f=l.redSqr().redIAdd(u).redISub(d).redISub(d),h=l.redMul(d.redISub(f)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),u=n.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),f=s.redMul(u.redISub(d)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(d,f,h)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},51455:(e,t,n)=>{"use strict";var r,i=t,o=n(37553),a=n(49022),s=n(42115).assert;function l(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new l(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=l,c("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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:o.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"]}),c("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:o.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(36418)}catch(u){r=void 0}c("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},59679:(e,t,n)=>{"use strict";var r=n(4646),i=n(31355),o=n(42115),a=n(51455),s=n(23883),l=o.assert,c=n(57891),u=n(66058);function d(e){if(!(this instanceof d))return new d(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}e.exports=d,d.prototype.keyPair=function(e){return new c(this,e)},d.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),o=this.n.sub(new r(2));;){var a=new r(t.generate(n));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,n,o){"object"===typeof n&&(o=n,n=null),o||(o={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),l=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:l,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new r(1)),f=0;;f++){var h=o.k?o.k(f):new r(c.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(d)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var y=h.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),b^=1),new u({r:g,s:y,recoveryParam:b})}}}}}},d.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,l=a.invm(this.n),c=l.mul(e).umod(this.n),d=l.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,n.getPublic(),d)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,n.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,n,i){l((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,a=new r(e),s=t.r,c=t.s,d=1&n,f=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),m=c.mul(h).umod(o);return this.g.mulAdd(p,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},57891:(e,t,n)=>{"use strict";var r=n(4646),i=n(42115).assert;function o(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)}e.exports=o,o.fromPublic=function(e,t,n){return t instanceof o?t:new o(e,{pub:t,pubEnc:n})},o.fromPrivate=function(e,t,n){return t instanceof o?t:new o(e,{priv:t,privEnc:n})},o.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"}},o.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},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return""}},66058:(e,t,n)=>{"use strict";var r=n(4646),i=n(42115),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function l(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var o=l(e,n);if(!1===o)return!1;if(o+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=l(e,n);if(!1===a)return!1;var c=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var u=l(e,n);if(!1===u)return!1;if(e.length!==u+n.place)return!1;var d=e.slice(n.place,u+n.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new r(c),this.s=new r(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=c(t),n=c(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var o=r.concat(n),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,e)}},52709:(e,t,n)=>{"use strict";var r=n(37553),i=n(51455),o=n(42115),a=o.assert,s=o.parseBytes,l=n(44513),c=n(49528);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[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=r.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),l=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:o})},u.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";var r=n(42115),i=r.assert,o=r.parseBytes,a=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=s},49528:(e,t,n)=>{"use strict";var r=n(4646),i=n(42115),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function l(e,t){this.eddsa=e,"object"!==typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(l,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(l,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(l,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(l,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=l},36418:e=>{e.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"]]}}},42115:(e,t,n)=>{"use strict";var r=t,i=n(4646),o=n(65701),a=n(42679);r.assert=o,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,l=e.andln(3)+i&3,c=t.andln(3)+o&3;3===l&&(l=-1),3===c&&(c=-1),a=0===(1&l)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==c?l:-l,n[0].push(a),s=0===(1&c)?0:3!==(r=t.andln(7)+o&7)&&5!==r||2!==l?c:-c,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"===typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},4646:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(85568).Buffer}catch(S){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function l(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)i=l(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2===0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","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"],d=[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],f=[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 h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,l=0|u}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?u[6-l.length]+l+n:l+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],h=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?m+n:u[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,c=new e(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],_=8191&v,w=v>>>13,x=0|a[4],k=8191&x,T=x>>>13,S=0|a[5],A=8191&S,E=S>>>13,C=0|a[6],O=8191&C,M=C>>>13,P=0|a[7],I=8191&P,N=P>>>13,j=0|a[8],R=8191&j,B=j>>>13,F=0|a[9],D=8191&F,L=F>>>13,U=0|s[0],z=8191&U,W=U>>>13,H=0|s[1],q=8191&H,G=H>>>13,V=0|s[2],Y=8191&V,K=V>>>13,Z=0|s[3],X=8191&Z,J=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,W))+Math.imul(f,z)|0))<<13)|0;c=((o=Math.imul(f,W))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,W))+Math.imul(m,z)|0,o=Math.imul(m,W);var ye=(c+(r=r+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,q)|0))<<13)|0;c=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,W))+Math.imul(b,z)|0,o=Math.imul(b,W),r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,G)|0;var be=(c+(r=r+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,Y)|0))<<13)|0;c=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(_,z),i=(i=Math.imul(_,W))+Math.imul(w,z)|0,o=Math.imul(w,W),r=r+Math.imul(y,q)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0;var ve=(c+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,W))+Math.imul(T,z)|0,o=Math.imul(T,W),r=r+Math.imul(_,q)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,K)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0;var _e=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,$)|0))<<13)|0;c=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,W))+Math.imul(E,z)|0,o=Math.imul(E,W),r=r+Math.imul(k,q)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,K)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var we=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;c=((o=o+Math.imul(f,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,W))+Math.imul(M,z)|0,o=Math.imul(M,W),r=r+Math.imul(A,q)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,K)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var xe=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;c=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(I,z),i=(i=Math.imul(I,W))+Math.imul(N,z)|0,o=Math.imul(N,W),r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,G)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,K)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,r=r+Math.imul(_,$)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(b,ne)|0,o=o+Math.imul(b,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var ke=(c+(r=r+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((o=o+Math.imul(f,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,W))+Math.imul(B,z)|0,o=Math.imul(B,W),r=r+Math.imul(I,q)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(N,q)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,K)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,J)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ce)|0;var Te=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(D,z),i=(i=Math.imul(D,W))+Math.imul(L,z)|0,o=Math.imul(L,W),r=r+Math.imul(R,q)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,K)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,r=r+Math.imul(y,le)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,ce)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,fe)|0;var Se=(c+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((o=o+Math.imul(f,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,G))+Math.imul(L,q)|0,o=Math.imul(L,G),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,K)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(E,ne)|0,o=o+Math.imul(E,re)|0,r=r+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(_,le)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(w,le)|0,o=o+Math.imul(w,ce)|0,r=r+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ae=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(D,Y),i=(i=Math.imul(D,K))+Math.imul(L,Y)|0,o=Math.imul(L,K),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,r=r+Math.imul(k,le)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(T,le)|0,o=o+Math.imul(T,ce)|0,r=r+Math.imul(_,de)|0,i=(i=i+Math.imul(_,fe)|0)+Math.imul(w,de)|0,o=o+Math.imul(w,fe)|0;var Ee=(c+(r=r+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(L,X)|0,o=Math.imul(L,J),r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(A,le)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(E,le)|0,o=o+Math.imul(E,ce)|0,r=r+Math.imul(k,de)|0,i=(i=i+Math.imul(k,fe)|0)+Math.imul(T,de)|0,o=o+Math.imul(T,fe)|0;var Ce=(c+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,$),i=(i=Math.imul(D,ee))+Math.imul(L,$)|0,o=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(B,ne)|0,o=o+Math.imul(B,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(O,le)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(A,de)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,de)|0,o=o+Math.imul(E,fe)|0;var Oe=(c+(r=r+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(T,pe)|0))<<13)|0;c=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(D,ne),i=(i=Math.imul(D,re))+Math.imul(L,ne)|0,o=Math.imul(L,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,r=r+Math.imul(I,le)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(N,le)|0,o=o+Math.imul(N,ce)|0,r=r+Math.imul(O,de)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(c+(r=r+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(D,oe),i=(i=Math.imul(D,ae))+Math.imul(L,oe)|0,o=Math.imul(L,ae),r=r+Math.imul(R,le)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(B,le)|0,o=o+Math.imul(B,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var Pe=(c+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(D,le),i=(i=Math.imul(D,ce))+Math.imul(L,le)|0,o=Math.imul(L,ce),r=r+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(B,de)|0,o=o+Math.imul(B,fe)|0;var Ie=(c+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(D,de),i=(i=Math.imul(D,fe))+Math.imul(L,de)|0,o=Math.imul(L,fe);var Ne=(c+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(B,pe)|0))<<13)|0;c=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var je=(c+(r=Math.imul(D,pe))|0)+((8191&(i=(i=Math.imul(D,me))+Math.imul(L,pe)|0))<<13)|0;return c=((o=Math.imul(L,me))+(i>>>13)|0)+(je>>>26)|0,je&=67108863,l[0]=ge,l[1]=ye,l[2]=be,l[3]=ve,l[4]=_e,l[5]=we,l[6]=xe,l[7]=ke,l[8]=Te,l[9]=Se,l[10]=Ae,l[11]=Ee,l[12]=Ce,l[13]=Oe,l[14]=Me,l[15]=Pe,l[16]=Ie,l[17]=Ne,l[18]=je,0!==c&&(l[19]=c,n.length++),n};function m(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):m(this,e,t),n},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;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},o.prototype.isubn=function(e){if(r("number"===typeof e),r(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>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0===(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(l)):(n.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0===(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(v,b),v.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?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,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new _;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return y[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):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){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},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(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g=0;r--){for(var c=t.words[r],u=l-1;u>=0;u--){var d=c>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new T(e)},i(T,k),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},77654:e=>{"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r=55296&&i<=56319&&n>r+1){var o=e.charCodeAt(r+1);o>=56320&&o<=57343&&(i=1024*(i-55296)+o-56320+65536,r+=1)}i<128?t.push(i):i<2048?(t.push(i>>6|192),t.push(63&i|128)):i<55296||i>=57344&&i<65536?(t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128)):i>=65536&&i<=1114111?(t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},9643:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(51468);function i(e){return"string"===typeof e&&(!!/^(0x)?[0-9a-f]{512}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e)))}function o(e,t){"object"===typeof t&&t.constructor===Uint8Array&&(t=r.bytesToHex(t));const n=r.keccak256(t).replace("0x","");for(let r=0;r<12;r+=4){const t=(parseInt(n.substr(r,2),16)<<8)+parseInt(n.substr(r+2,2),16)&2047,i=1<=48&&e<=57)return e-48;if(e>=65&&e<=70)return e-55;if(e>=97&&e<=102)return e-87;throw new Error("invalid bloom")}function s(e){return"string"===typeof e&&(!!/^(0x)?[0-9a-f]{64}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e)))}function l(e){return"string"===typeof e&&(!!e.match(/^(0x)?[0-9a-fA-F]{40}$/)||!!e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}t.isBloom=i,t.isInBloom=o,t.isUserEthereumAddressInBloom=function(e,t){if(!i(e))throw new Error("Invalid bloom given");if(!l(t))throw new Error('Invalid ethereum address given: "'.concat(t,'"'));return o(e,r.padLeft(t,64))},t.isContractAddressInBloom=function(e,t){if(!i(e))throw new Error("Invalid bloom given");if(!l(t))throw new Error('Invalid contract address given: "'.concat(t,'"'));return o(e,t)},t.isTopicInBloom=function(e,t){if(!i(e))throw new Error("Invalid bloom given");if(!s(t))throw new Error("Invalid topic");return o(e,t)},t.isTopic=s,t.isAddress=l},51468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(37676);function i(e){if(null==e)throw new Error("cannot convert null value to array");if("string"===typeof e){const t=e.match(/^(0x)?[0-9a-fA-F]*$/);if(!t)throw new Error("invalid hexidecimal string");if("0x"!==t[1])throw new Error("hex string must have 0x prefix");(e=e.substring(2)).length%2&&(e="0"+e);const n=[];for(let r=0;r=256||parseInt(String(n))!=n)return!1}return!0}(e))return o(new Uint8Array(e));throw new Error("invalid arrayify value")}function o(e){return void 0!==e.slice||(e.slice=()=>{const t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}t.keccak256=function(e){return"0x"+r.keccak_256(i(e))},t.padLeft=(e,t)=>{const n=/^0x/i.test(e)||"number"===typeof e,r=t-(e=e.toString().replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(n?"0x":"")+new Array(r).join("0")+e},t.bytesToHex=function(e){const t=[];for(let n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return"0x".concat(t.join("").replace(/^0+/,""))},t.toByteArray=i},61403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHashFunction=function(e){return function(t){var n=e();return n.update(t),Buffer.from(n.digest())}}},54496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(61403),i=n(98094);t.keccak224=r.createHashFunction((function(){return i("keccak224")})),t.keccak256=r.createHashFunction((function(){return i("keccak256")})),t.keccak384=r.createHashFunction((function(){return i("keccak384")})),t.keccak512=r.createHashFunction((function(){return i("keccak512")}))},99377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(77171);t.getRandomBytes=function(e){return new Promise((function(t,n){r(e,(function(e,r){e?n(e):t(r)}))}))},t.getRandomBytesSync=function(e){return r(e)}},63564:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";var r=n(4413),i=n(5770),o=new r(0),a=new r(-1),s={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function l(e){var t=e?e.toLowerCase():"ether",n=s[t];if("string"!==typeof n)throw new Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(s,null,2));return new r(n,10)}function c(e){if("string"===typeof e){if(!e.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).");return e}if("number"===typeof e)return String(e);if("object"===typeof e&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10);throw new Error("while converting number to string, invalid number value '"+e+"' type "+typeof e+".")}e.exports={unitMap:s,numberToString:c,getValueOfUnit:l,fromWei:function(e,t,n){var r=i(e),c=r.lt(o),u=l(t),d=s[t].length-1||1,f=n||{};c&&(r=r.mul(a));for(var h=r.mod(u).toString(10);h.length2)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points");var f=d[0],h=d[1];if(f||(f="0"),h||(h="0"),h.length>o)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;h.length=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function l(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("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=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","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,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,l=0|u}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-l.length]+l+n:l+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var f=u[e],h=d[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?m+n:c[f-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,c=new e(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],_=8191&v,w=v>>>13,x=0|a[4],k=8191&x,T=x>>>13,S=0|a[5],A=8191&S,E=S>>>13,C=0|a[6],O=8191&C,M=C>>>13,P=0|a[7],I=8191&P,N=P>>>13,j=0|a[8],R=8191&j,B=j>>>13,F=0|a[9],D=8191&F,L=F>>>13,U=0|s[0],z=8191&U,W=U>>>13,H=0|s[1],q=8191&H,G=H>>>13,V=0|s[2],Y=8191&V,K=V>>>13,Z=0|s[3],X=8191&Z,J=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,W))+Math.imul(f,z)|0))<<13)|0;c=((o=Math.imul(f,W))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,W))+Math.imul(m,z)|0,o=Math.imul(m,W);var ye=(c+(r=r+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,q)|0))<<13)|0;c=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,W))+Math.imul(b,z)|0,o=Math.imul(b,W),r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,G)|0;var be=(c+(r=r+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,Y)|0))<<13)|0;c=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(_,z),i=(i=Math.imul(_,W))+Math.imul(w,z)|0,o=Math.imul(w,W),r=r+Math.imul(y,q)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0;var ve=(c+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,W))+Math.imul(T,z)|0,o=Math.imul(T,W),r=r+Math.imul(_,q)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,K)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0;var _e=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,$)|0))<<13)|0;c=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,W))+Math.imul(E,z)|0,o=Math.imul(E,W),r=r+Math.imul(k,q)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,K)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var we=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;c=((o=o+Math.imul(f,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,W))+Math.imul(M,z)|0,o=Math.imul(M,W),r=r+Math.imul(A,q)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,K)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var xe=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;c=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(I,z),i=(i=Math.imul(I,W))+Math.imul(N,z)|0,o=Math.imul(N,W),r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,G)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,K)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,r=r+Math.imul(_,$)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(b,ne)|0,o=o+Math.imul(b,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var ke=(c+(r=r+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((o=o+Math.imul(f,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,W))+Math.imul(B,z)|0,o=Math.imul(B,W),r=r+Math.imul(I,q)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(N,q)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,K)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,J)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ce)|0;var Te=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(D,z),i=(i=Math.imul(D,W))+Math.imul(L,z)|0,o=Math.imul(L,W),r=r+Math.imul(R,q)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,K)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,r=r+Math.imul(y,le)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,ce)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,fe)|0;var Se=(c+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((o=o+Math.imul(f,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,G))+Math.imul(L,q)|0,o=Math.imul(L,G),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,K)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(E,ne)|0,o=o+Math.imul(E,re)|0,r=r+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(_,le)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(w,le)|0,o=o+Math.imul(w,ce)|0,r=r+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ae=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(D,Y),i=(i=Math.imul(D,K))+Math.imul(L,Y)|0,o=Math.imul(L,K),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,r=r+Math.imul(k,le)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(T,le)|0,o=o+Math.imul(T,ce)|0,r=r+Math.imul(_,de)|0,i=(i=i+Math.imul(_,fe)|0)+Math.imul(w,de)|0,o=o+Math.imul(w,fe)|0;var Ee=(c+(r=r+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(L,X)|0,o=Math.imul(L,J),r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(A,le)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(E,le)|0,o=o+Math.imul(E,ce)|0,r=r+Math.imul(k,de)|0,i=(i=i+Math.imul(k,fe)|0)+Math.imul(T,de)|0,o=o+Math.imul(T,fe)|0;var Ce=(c+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,$),i=(i=Math.imul(D,ee))+Math.imul(L,$)|0,o=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(B,ne)|0,o=o+Math.imul(B,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(O,le)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(A,de)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,de)|0,o=o+Math.imul(E,fe)|0;var Oe=(c+(r=r+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(T,pe)|0))<<13)|0;c=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(D,ne),i=(i=Math.imul(D,re))+Math.imul(L,ne)|0,o=Math.imul(L,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,r=r+Math.imul(I,le)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(N,le)|0,o=o+Math.imul(N,ce)|0,r=r+Math.imul(O,de)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(c+(r=r+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(D,oe),i=(i=Math.imul(D,ae))+Math.imul(L,oe)|0,o=Math.imul(L,ae),r=r+Math.imul(R,le)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(B,le)|0,o=o+Math.imul(B,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var Pe=(c+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(D,le),i=(i=Math.imul(D,ce))+Math.imul(L,le)|0,o=Math.imul(L,ce),r=r+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(B,de)|0,o=o+Math.imul(B,fe)|0;var Ie=(c+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(D,de),i=(i=Math.imul(D,fe))+Math.imul(L,de)|0,o=Math.imul(L,fe);var Ne=(c+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(B,pe)|0))<<13)|0;c=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var je=(c+(r=Math.imul(D,pe))|0)+((8191&(i=(i=Math.imul(D,me))+Math.imul(L,pe)|0))<<13)|0;return c=((o=Math.imul(L,me))+(i>>>13)|0)+(je>>>26)|0,je&=67108863,l[0]=ge,l[1]=ye,l[2]=be,l[3]=ve,l[4]=_e,l[5]=we,l[6]=xe,l[7]=ke,l[8]=Te,l[9]=Se,l[10]=Ae,l[11]=Ee,l[12]=Ce,l[13]=Oe,l[14]=Me,l[15]=Pe,l[16]=Ie,l[17]=Ne,l[18]=je,0!==c&&(l[19]=c,n.length++),n};function p(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=f),o.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?h(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):p(this,e,t),n},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;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},o.prototype.isubn=function(e){if(r("number"===typeof e),r(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>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0===(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(l)):(n.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0===(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(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 o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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 o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(b,y),b.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new v;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return g[e]=t,t},x.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g=0;r--){for(var c=t.words[r],u=l-1;u>=0;u--){var d=c>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,x),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},20548:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i{"use strict";var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&m(e,"error",t,n)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"===typeof l)r(l,this,t);else{var c=l.length,u=p(l,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},35538:(e,t,n)=>{var r;!function(){"use strict";var i=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},1831:function(e,t){!function(e){"use strict";function t(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function n(e){return function(t,n,r,i){if(!t||!n||"object"!==typeof t||"object"!==typeof n)return e(t,n,r,i);var o=i.get(t),a=i.get(n);if(o&&a)return o===n&&a===t;i.set(t,n),i.set(n,t);var s=e(t,n,r,i);return i.delete(t),i.delete(n),s}}function r(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function i(e){return e.constructor===Object||null==e.constructor}function o(e){return"function"===typeof e.then}function a(e,t){return e===t||e!==e&&t!==t}var s="[object Arguments]",l="[object Boolean]",c="[object Date]",u="[object RegExp]",d="[object Map]",f="[object Number]",h="[object Object]",p="[object Set]",m="[object String]",g=Object.prototype.toString;function y(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,y=e.areObjectsEqual,b=e.areRegExpsEqual,v=e.areSetsEqual,_=(0,e.createIsNestedEqual)(w);function w(e,w,x){if(e===w)return!0;if(!e||!w||"object"!==typeof e||"object"!==typeof w)return e!==e&&w!==w;if(i(e)&&i(w))return y(e,w,_,x);var k=Array.isArray(e),T=Array.isArray(w);if(k||T)return k===T&&t(e,w,_,x);var S=g.call(e);return S===g.call(w)&&(S===c?n(e,w,_,x):S===u?b(e,w,_,x):S===d?r(e,w,_,x):S===p?v(e,w,_,x):S===h||S===s?!o(e)&&!o(w)&&y(e,w,_,x):(S===l||S===f||S===m)&&a(e.valueOf(),w.valueOf()))}return w}function b(e,t,n,r){var i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!n(e[i],t[i],i,i,e,t,r))return!1;return!0}var v=n(b);function _(e,t){return a(e.valueOf(),t.valueOf())}function w(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var o={},a=0;return e.forEach((function(s,l){if(i){var c=!1,u=0;t.forEach((function(i,d){c||o[u]||!(c=n(l,d,a,u,e,t,r)&&n(s,i,l,d,e,t,r))||(o[u]=!0),u++})),a++,i=c}})),i}var x=n(w),k="_owner",T=Object.prototype.hasOwnProperty;function S(e,t,n,r){var i,o=Object.keys(e),a=o.length;if(Object.keys(t).length!==a)return!1;for(;a-- >0;){if((i=o[a])===k){var s=!!e.$$typeof,l=!!t.$$typeof;if((s||l)&&s!==l)return!1}if(!T.call(t,i)||!n(e[i],t[i],i,i,e,t,r))return!1}return!0}var A=n(S);function E(e,t){return e.source===t.source&&e.flags===t.flags}function C(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var o={};return e.forEach((function(a,s){if(i){var l=!1,c=0;t.forEach((function(i,u){l||o[c]||!(l=n(a,i,s,u,e,t,r))||(o[c]=!0),c++})),i=l}})),i}var O=n(C),M=Object.freeze({areArraysEqual:b,areDatesEqual:_,areMapsEqual:w,areObjectsEqual:S,areRegExpsEqual:E,areSetsEqual:C,createIsNestedEqual:t}),P=Object.freeze({areArraysEqual:v,areDatesEqual:_,areMapsEqual:x,areObjectsEqual:A,areRegExpsEqual:E,areSetsEqual:O,createIsNestedEqual:t}),I=y(M);function N(e,t){return I(e,t,void 0)}var j=y(r(M,{createIsNestedEqual:function(){return a}}));function R(e,t){return j(e,t,void 0)}var B=y(P);function F(e,t){return B(e,t,new WeakMap)}var D=y(r(P,{createIsNestedEqual:function(){return a}}));function L(e,t){return D(e,t,new WeakMap)}function U(e){return y(r(M,e(M)))}function z(e){var t=y(r(P,e(P)));return function(e,n,r){return void 0===r&&(r=new WeakMap),t(e,n,r)}}e.circularDeepEqual=F,e.circularShallowEqual=L,e.createCustomCircularEqual=z,e.createCustomEqual=U,e.deepEqual=N,e.sameValueZeroEqual=a,e.shallowEqual=R,Object.defineProperty(e,"__esModule",{value:!0})}(t)},2214:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o{"use strict";var r=n(8866),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r{"use strict";var r=n(2781);e.exports=Function.prototype.bind||r},28476:(e,t,n)=>{"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(M){l=null}var c=function(){throw new a},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(t){return c}}}():c,d=n(95520)(),f=n(87593)(),h=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),p={},m="undefined"!==typeof Uint8Array&&h?h(Uint8Array):r,g={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d&&h?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&h?h(h([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d&&h?h((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d&&h?h((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&h?h(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(h)try{null.error}catch(M){var y=h(h(M));g["%Error.prototype%"]=y}var b=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&h&&(n=h(i.prototype))}return g[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=n(1199),w=n(26834),x=_.call(Function.call,Array.prototype.concat),k=_.call(Function.apply,Array.prototype.splice),T=_.call(Function.call,String.prototype.replace),S=_.call(Function.call,String.prototype.slice),A=_.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,O=function(e,t){var n,r=e;if(w(v,r)&&(r="%"+(n=v[r])[0]+"%"),w(g,r)){var o=g[r];if(o===p&&(o=b(r)),"undefined"===typeof o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=S(e,0,1),n=S(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return T(e,E,(function(e,t,n,i){r[r.length]=n?T(i,C,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=O("%"+r+"%",t),s=o.name,c=o.value,u=!1,d=o.alias;d&&(r=d[0],k(n,x([0,1],d)));for(var f=1,h=!0;f=n.length){var b=l(c,p);c=(h=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[p]}else h=w(c,p),c=c[p];h&&!u&&(g[s]=c)}}return c}},56103:(e,t,n)=>{"use strict";var r=n(28476)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},82926:(e,t,n)=>{"use strict";var r=n(28476)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},87593:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},95520:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(80541);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},80541:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},48857:(e,t,n)=>{"use strict";var r=n(80541);e.exports=function(){return r()&&!!Symbol.toStringTag}},99834:(e,t,n)=>{"use strict";var r=n(65734).Buffer,i=n(61881).Transform;function o(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(80273)(o,i),o.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(i){r=i}n(r)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(n){t=n}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!==typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.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),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},37553:(e,t,n)=>{var r=t;r.utils=n(67657),r.common=n(43345),r.sha=n(90395),r.ripemd=n(85751),r.hmac=n(79161),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},43345:(e,t,n)=>{"use strict";var r=n(67657),i=n(65701);function o(){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}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o{"use strict";var r=n(67657),i=n(65701);function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t{"use strict";var r=n(67657),i=n(43345),o=r.rotl32,a=r.sum32,s=r.sum32_3,l=r.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function f(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],b=n,v=r,_=i,w=c,x=u,k=0;k<80;k++){var T=a(o(l(n,d(k,r,i,c),e[p[k]+t],f(k)),g[k]),u);n=u,u=c,c=o(i,10),i=r,r=T,T=a(o(l(b,d(79-k,v,_,w),e[m[k]+t],h(k)),y[k]),x),b=x,x=w,w=o(_,10),_=v,v=T}T=s(this.h[1],i,w),this.h[1]=s(this.h[2],c,x),this.h[2]=s(this.h[3],u,b),this.h[3]=s(this.h[4],n,v),this.h[4]=s(this.h[0],r,_),this.h[0]=T},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[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],m=[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],g=[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],y=[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]},90395:(e,t,n)=>{"use strict";t.sha1=n(21405),t.sha224=n(97452),t.sha256=n(51611),t.sha384=n(40996),t.sha512=n(166)},21405:(e,t,n)=>{"use strict";var r=n(67657),i=n(43345),o=n(53089),a=r.rotl32,s=r.sum32,l=r.sum32_5,c=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,u),e.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r{"use strict";var r=n(67657),i=n(51611);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},51611:(e,t,n)=>{"use strict";var r=n(67657),i=n(43345),o=n(53089),a=n(65701),s=r.sum32,l=r.sum32_4,c=r.sum32_5,u=o.ch32,d=o.maj32,f=o.s0_256,h=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,y=[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 b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r.inherits(b,g),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r{"use strict";var r=n(67657),i=n(166);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},166:(e,t,n)=>{"use strict";var r=n(67657),i=n(43345),o=n(65701),a=r.rotr64_hi,s=r.rotr64_lo,l=r.shr64_hi,c=r.shr64_lo,u=r.sum64,d=r.sum64_hi,f=r.sum64_lo,h=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,g=r.sum64_5_lo,y=i.BlockHash,b=[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;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function _(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}function w(e,t,n,r,i,o){var a=t&r^~t&o;return a<0&&(a+=4294967296),a}function x(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}function k(e,t,n,r,i,o){var a=t&r^t&o^r&o;return a<0&&(a+=4294967296),a}function T(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function S(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function A(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function E(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function C(e,t){var n=a(e,t,1)^a(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function O(e,t){var n=s(e,t,1)^s(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function M(e,t){var n=a(e,t,19)^a(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}function P(e,t){var n=s(e,t,19)^s(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r{"use strict";var r=n(67657).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},67657:(e,t,n)=>{"use strict";var r=n(65701),i=n(80273);function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(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 l(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}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,s){var l=0,c=t;return l+=(c=c+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,l,c){var u=0,d=t;return u+=(d=d+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,l,c){return t+r+o+s+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},26834:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(1199);e.exports=o.call(r,i)},97548:function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(47313),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nparseInt(n.userAgent.split("Firefox/")[1],10),n.hasTouch=!!n.win.TouchEvent,n.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],n.noop=function(){},n.supportsPassiveEvents=function(){let e=!1;if(!n.isMS){let t=Object.defineProperty({},"passive",{get:function(){e=!0}});n.win.addEventListener&&n.win.removeEventListener&&(n.win.addEventListener("testPassive",n.noop,t),n.win.removeEventListener("testPassive",n.noop,t))}return e}(),n.charts=[],n.dateFormats={},n.seriesTypes={},n.symbolSizes={},n.chartCount=0,t})),n(t,"Core/Utilities.js",[t["Core/Globals.js"]],(function(e){let t,{charts:n,doc:r,win:i}=e;function o(t,n,r,a){let s=n?"Highcharts error":"Highcharts warning";32===t&&(t="".concat(s,": Deprecated member"));let l=f(t),c=l?"".concat(s," #").concat(t,": www.highcharts.com/errors/").concat(t,"/"):t.toString();if(void 0!==a){let e="";l&&(c+="?"),x(a,(function(t,n){e+="\n - ".concat(n,": ").concat(t),l&&(c+=encodeURI(n)+"="+encodeURI(t))})),c+=e}T(e,"displayError",{chart:r,code:t,message:c,params:a},(function(){if(n)throw Error(c);i.console&&-1===o.messages.indexOf(c)&&console.warn(c)})),o.messages.push(c)}function a(e,t){return parseInt(e,t||10)}function s(e){return"string"==typeof e}function l(e){let t=Object.prototype.toString.call(e);return"[object Array]"===t||"[object Array Iterator]"===t}function c(e,t){return!!e&&"object"==typeof e&&(!t||!l(e))}function u(e){return c(e)&&"number"==typeof e.nodeType}function d(e){let t=e&&e.constructor;return!(!c(e,!0)||u(e)||!t||!t.name||"Object"===t.name)}function f(e){return"number"==typeof e&&!isNaN(e)&&e<1/0&&e>-1/0}function h(e){return null!=e}function p(e,t,n){let r,i=s(t)&&!h(n),o=(t,n)=>{h(t)?e.setAttribute(n,t):i?(r=e.getAttribute(n))||"class"!==n||(r=e.getAttribute(n+"Name")):e.removeAttribute(n)};return s(t)?o(n,t):x(t,o),r}function m(e){return l(e)?e:[e]}function g(e,t){let n;for(n in e||(e={}),t)e[n]=t[n];return e}function y(){let e=arguments,t=e.length;for(let n=0;n1e14?e:parseFloat(e.toPrecision(t||14))}(o||(o={})).messages=[],Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};let w=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){let n,r=e.length;for(n=0;ne.order-t.order)),e.forEach((e=>{!1===e.fn.call(t,i)&&i.preventDefault()}))}o&&!i.defaultPrevented&&o.call(t,i)}x({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(t,n){e[n]=function(e){return o(32,!1,void 0,{["Highcharts.".concat(n)]:"use Array.".concat(t)}),Array.prototype[t].apply(e,[].slice.call(arguments,1))}}));let S=function(){let e=Math.random().toString(36).substring(2,9)+"-",n=0;return function(){return"highcharts-"+(t?"":e)+n++}}();i.jQuery&&(i.jQuery.fn.highcharts=function(){let t=[].slice.call(arguments);if(this[0])return t[0]?(new(e[s(t[0])?t.shift():"Chart"])(this[0],t[0],t[1]),this):n[p(this[0],"data-highcharts-chart")]});let A={addEvent:function(t,n,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let a=o.hcEvents;e.Point&&t instanceof e.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let s=t.addEventListener;s&&s.call(t,n,r,!!e.supportsPassiveEvents&&{passive:void 0===i.passive?-1!==n.indexOf("touch"):i.passive,capture:!1}),a[n]||(a[n]=[]);let l={fn:r,order:"number"==typeof i.order?i.order:1/0};return a[n].push(l),a[n].sort(((e,t)=>e.order-t.order)),function(){k(t,n,r)}},arrayMax:function(e){let t=e.length,n=e[0];for(;t--;)e[t]>n&&(n=e[t]);return n},arrayMin:function(e){let t=e.length,n=e[0];for(;t--;)e[t]t?e-1&&i[u]){n=m(n),o[u]=[];for(let t=0;t{if(e.length>1)for(i=e.length-1;i>0;i--){var a;(r=e[i]-e[i-1])<0&&!o?(null!==(a=t)&&void 0!==a&&a(),t=void 0):r&&(void 0===n||r=n-1&&(n=Math.floor(r)),Math.max(0,n-(e(t,"padding-left",!0)||0)-(e(t,"padding-right",!0)||0))}if("height"===n)return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(e(t,"padding-top",!0)||0)-(e(t,"padding-bottom",!0)||0));let s=i.getComputedStyle(t,void 0);return s&&(o=s.getPropertyValue(n),y(r,"opacity"!==n)&&(o=a(o))),o},inArray:function(e,t,n){return o(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),t.indexOf(e,n)},insertItem:function(e,t){let n,r=e.options.index,i=t.length;for(n=e.options.isInternal?i:0;n=e))&&(i||!(s<=(t[o]+(t[o+1]||t[o]))/2)));o++);return _(a*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:x,offset:function(e){let t=r.documentElement,n=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(i.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(i.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:n.width,height:n.height}},pad:function(e,t,n){return Array((t||2)+1-String(e).replace("-","").length).join(n||"0")+e},pick:y,pInt:a,pushUnique:function(e,t){return 0>e.indexOf(t)&&!!e.push(t)},relativeLength:function(e,t,n){return/%$/.test(e)?t*parseFloat(e)/100+(n||0):parseFloat(e)},removeEvent:k,splat:m,stableSort:function(e,t){let n,r,i=e.length;for(r=0;r0?setTimeout(e,t,n):(e.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:S,useSerialIds:function(e){return t=y(e,t)},wrap:function(e,t,n){let r=e[t];e[t]=function(){let e=arguments,t=this;return n.apply(this,[function(){return r.apply(t,arguments.length?arguments:e)}].concat([].slice.call(arguments)))}}};return A})),n(t,"Core/Chart/ChartDefaults.js",[],(function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}})),n(t,"Core/Color/Palettes.js",[],(function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}})),n(t,"Core/Time.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t){let{win:n}=e,{defined:r,error:i,extend:o,isObject:a,merge:s,objectEach:l,pad:c,pick:u,splat:d,timeUnits:f}=t,h=e.isSafari&&n.Intl&&n.Intl.DateTimeFormat.prototype.formatRange,p=e.isSafari&&n.Intl&&!n.Intl.DateTimeFormat.prototype.formatRange;return class{constructor(e){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=n.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(e)}get(e,t){if(this.variableTimezone||this.timezoneOffset){let n=t.getTime(),r=n-this.getTimezoneOffset(t);t.setTime(r);let i=t["getUTC"+e]();return t.setTime(n),i}return this.useUTC?t["getUTC"+e]():t["get"+e]()}set(e,t,n){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===e||"Seconds"===e||"Minutes"===e&&this.getTimezoneOffset(t)%36e5==0)return t["setUTC"+e](n);let r=this.getTimezoneOffset(t),i=t.getTime()-r;t.setTime(i),t["setUTC"+e](n);let o=this.getTimezoneOffset(t);return i=t.getTime()+o,t.setTime(i)}return this.useUTC||h&&"FullYear"===e?t["setUTC"+e](n):t["set"+e](n)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=u(e.useUTC,!0);this.options=e=s(!0,this.options,e),this.Date=e.Date||n.Date||Date,this.useUTC=t,this.timezoneOffset=t&&e.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=t&&!(!e.getTimezoneOffset&&!e.timezone)}makeTime(e,t,n,r,i,o){let a,s,l;return this.useUTC?(a=this.Date.UTC.apply(0,arguments),s=this.getTimezoneOffset(a),a+=s,s!==(l=this.getTimezoneOffset(a))?a+=l-s:s-36e5!==this.getTimezoneOffset(a-36e5)||p||(a-=36e5)):a=new this.Date(e,t,u(n,1),u(r,0),u(i,0),u(o,0)).getTime(),a}timezoneOffsetFunction(){let e=this,t=this.options,r=t.getTimezoneOffset,o=t.moment||n.moment;if(!this.useUTC)return function(e){return 6e4*new Date(e.toString()).getTimezoneOffset()};if(t.timezone){if(o)return function(e){return-6e4*o.tz(e,t.timezone).utcOffset()};i(25)}return this.useUTC&&r?function(e){return 6e4*r(e.valueOf())}:function(){return 6e4*(e.timezoneOffset||0)}}dateFormat(t,n,i){if(!r(n)||isNaN(n))return e.defaultOptions.lang&&e.defaultOptions.lang.invalidDate||"";t=u(t,"%Y-%m-%d %H:%M:%S");let a=this,s=new this.Date(n),d=this.get("Hours",s),f=this.get("Day",s),h=this.get("Date",s),p=this.get("Month",s),m=this.get("FullYear",s),g=e.defaultOptions.lang,y=g&&g.weekdays,b=g&&g.shortWeekdays,v=o({a:b?b[f]:y[f].substr(0,3),A:y[f],d:c(h),e:c(h,2," "),w:f,b:g.shortMonths[p],B:g.months[p],m:c(p+1),o:p+1,y:m.toString().substr(2,2),Y:m,H:c(d),k:d,I:c(d%12||12),l:d%12||12,M:c(this.get("Minutes",s)),p:d<12?"AM":"PM",P:d<12?"am":"pm",S:c(this.get("Seconds",s)),L:c(Math.floor(n%1e3),3)},e.dateFormats);return l(v,(function(e,r){for(;-1!==t.indexOf("%"+r);)t=t.replace("%"+r,"function"==typeof e?e.call(a,n):e)})),i?t.substr(0,1).toUpperCase()+t.substr(1):t}resolveDTLFormat(e){return a(e,!0)?e:{main:(e=d(e))[0],from:e[1],to:e[2]}}getTimeTicks(e,t,n,i){let a,s,l,c,d=this,h=d.Date,p=[],m={},g=new h(t),y=e.unitRange,b=e.count||1;if(i=u(i,1),r(t)){d.set("Milliseconds",g,y>=f.second?0:b*Math.floor(d.get("Milliseconds",g)/b)),y>=f.second&&d.set("Seconds",g,y>=f.minute?0:b*Math.floor(d.get("Seconds",g)/b)),y>=f.minute&&d.set("Minutes",g,y>=f.hour?0:b*Math.floor(d.get("Minutes",g)/b)),y>=f.hour&&d.set("Hours",g,y>=f.day?0:b*Math.floor(d.get("Hours",g)/b)),y>=f.day&&d.set("Date",g,y>=f.month?1:Math.max(1,b*Math.floor(d.get("Date",g)/b))),y>=f.month&&(d.set("Month",g,y>=f.year?0:b*Math.floor(d.get("Month",g)/b)),s=d.get("FullYear",g)),y>=f.year&&(s-=s%b,d.set("FullYear",g,s)),y===f.week&&(c=d.get("Day",g),d.set("Date",g,d.get("Date",g)-c+i+(c4*f.month||d.getTimezoneOffset(t)!==d.getTimezoneOffset(n));let h=g.getTime();for(a=1;h1?h=d.makeTime(s,e,o,u+a*b):h+=y*b:h=d.makeTime(s,e,o+a*b*(y===f.day?1:7)),a++;p.push(h),y<=f.hour&&p.length<1e4&&p.forEach((function(e){e%18e5==0&&"000000000"===d.dateFormat("%H%M%S%L",e)&&(m[e]="day")}))}return p.info=o(e,{higherRanks:m,totalRange:y*b}),p}getDateFormat(e,t,n,r){let i=this.dateFormat("%m-%d %H:%M:%S.%L",t),o="01-01 00:00:00.000",a={millisecond:15,second:12,minute:9,hour:6,day:3},s="millisecond",l=s;for(s in f){if(e===f.week&&+this.dateFormat("%w",t)===n&&i.substr(6)===o.substr(6)){s="week";break}if(f[s]>e){s=l;break}if(a[s]&&i.substr(a[s])!==o.substr(a[s]))break;"week"!==s&&(l=s)}return this.resolveDTLFormat(r[s]).main}}})),n(t,"Core/Defaults.js",[t["Core/Chart/ChartDefaults.js"],t["Core/Globals.js"],t["Core/Color/Palettes.js"],t["Core/Time.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i){let{isTouchDevice:o,svg:a}=t,{merge:s}=i,l={colors:n.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:e,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:a,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:o?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};l.chart.styledMode=!1;let c=new r(l.time);return{defaultOptions:l,defaultTime:c,getOptions:function(){return l},setOptions:function(e){return s(!0,l,e),(e.time||e.global)&&(t.time?t.time.update(s(l.global,l.time,e.global,e.time)):t.time=c),l}}})),n(t,"Core/Color/Color.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t){let{isNumber:n,merge:r,pInt:i}=t;class o{static parse(e){return e?new o(e):o.None}constructor(t){this.rgba=[NaN,NaN,NaN,NaN],this.input=t;let n=e.Color;if(n&&n!==o)return new n(t);this.init(t)}init(e){let t,n,r,i;if("object"==typeof e&&void 0!==e.stops)this.stops=e.stops.map((e=>new o(e[1])));else if("string"==typeof e){if(this.input=e=o.names[e.toLowerCase()]||e,"#"===e.charAt(0)){let t=e.length,r=parseInt(e.substr(1),16);7===t?n=[(16711680&r)>>16,(65280&r)>>8,255&r,1]:4===t&&(n=[(3840&r)>>4|(3840&r)>>8,(240&r)>>4|240&r,(15&r)<<4|15&r,1])}if(!n)for(r=o.parsers.length;r--&&!n;)(t=(i=o.parsers[r]).regex.exec(e))&&(n=i.parse(t))}n&&(this.rgba=n)}get(e){let t=this.input,i=this.rgba;if("object"==typeof t&&void 0!==this.stops){let n=r(t);return n.stops=[].slice.call(n.stops),this.stops.forEach(((t,r)=>{n.stops[r]=[n.stops[r][0],t.get(e)]})),n}return i&&n(i[0])?"rgb"===e||!e&&1===i[3]?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===e?"".concat(i[3]):"rgba("+i.join(",")+")":t}brighten(e){let t=this.rgba;if(this.stops)this.stops.forEach((function(t){t.brighten(e)}));else if(n(e)&&0!==e)for(let n=0;n<3;n++)t[n]+=i(255*e),t[n]<0&&(t[n]=0),t[n]>255&&(t[n]=255);return this}setOpacity(e){return this.rgba[3]=e,this}tweenTo(e,t){let r=this.rgba,i=e.rgba;if(!n(r[0])||!n(i[0]))return e.input||"none";let o=1!==i[3]||1!==r[3];return(o?"rgba(":"rgb(")+Math.round(i[0]+(r[0]-i[0])*(1-t))+","+Math.round(i[1]+(r[1]-i[1])*(1-t))+","+Math.round(i[2]+(r[2]-i[2])*(1-t))+(o?","+(i[3]+(r[3]-i[3])*(1-t)):"")+")"}}return o.names={white:"#ffffff",black:"#000000"},o.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(e){return[i(e[1]),i(e[2]),i(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(e){return[i(e[1]),i(e[2]),i(e[3]),1]}}],o.None=new o(""),o})),n(t,"Core/Animation/Fx.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t,n){let{parse:r}=e,{win:i}=t,{isNumber:o,objectEach:a}=n;class s{constructor(e,t,n){this.pos=NaN,this.options=t,this.elem=e,this.prop=n}dSetter(){let e=this.paths,t=e&&e[0],n=e&&e[1],r=this.now||0,i=[];if(1!==r&&t&&n)if(t.length===n.length&&r<1)for(let a=0;a=l+this.startTime?(this.now=this.end,this.pos=1,this.update(),c[this.prop]=!0,n=!0,a(c,(function(e){!0!==e&&(n=!1)})),n&&s&&s.call(o),t=!1):(this.pos=i.easing((r-this.startTime)/l),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0),t}initPath(e,t,n){let r,i,a,s,l=e.startX,c=e.endX,u=n.slice(),d=e.isArea,f=d?2:1,h=t&&t.slice();if(!h)return[u,u];function p(e,t){for(;e.length{let r=u(e.options.animation);a=t&&n(t.defer)?i.defer:Math.max(a,r.duration+r.defer),s=Math.min(i.duration,r.duration)})),e.renderer.forExport&&(a=0),{defer:Math.max(0,a-s),duration:Math.min(a,s)}},setAnimation:function(e,t){t.renderer.globalAnimation=c(e,t.options.chart.animation,!0)},stop:d}})),n(t,"Core/Renderer/HTML/AST.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t){let{SVG_NS:n,win:r}=e,{attr:i,createElement:o,css:a,error:s,isFunction:l,isString:c,objectEach:u,splat:d}=t,{trustedTypes:f}=r,h=f&&l(f.createPolicy)&&f.createPolicy("highcharts",{createHTML:e=>e}),p=h?h.createHTML(""):"",m=function(){try{return!!(new DOMParser).parseFromString(p,"text/html")}catch(e){return!1}}();class g{static filterUserAttributes(e){return u(e,((t,n)=>{let r=!0;-1===g.allowedAttributes.indexOf(n)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(n)&&(r=c(t)&&g.allowedReferences.some((e=>0===t.indexOf(e)))),r||(s(33,!1,void 0,{"Invalid attribute in config":"".concat(n)}),delete e[n]),c(t)&&e[n]&&(e[n]=t.replace(/{let n=t.split(":").map((e=>e.trim())),r=n.shift();return r&&n.length&&(e[r.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))]=n.join(":")),e}),{})}static setElementHTML(e,t){e.innerHTML=g.emptyHTML,t&&new g(t).addToDOM(e)}constructor(e){this.nodes="string"==typeof e?this.parseMarkup(e):e}addToDOM(t){return function t(r,o){let l;return d(r).forEach((function(r){let c,d=r.tagName,f=r.textContent?e.doc.createTextNode(r.textContent):void 0,h=g.bypassHTMLFiltering;if(d)if("#text"===d)c=f;else if(-1!==g.allowedTags.indexOf(d)||h){let s="svg"===d?n:o.namespaceURI||n,l=e.doc.createElementNS(s,d),p=r.attributes||{};u(r,(function(e,t){"tagName"!==t&&"attributes"!==t&&"children"!==t&&"style"!==t&&"textContent"!==t&&(p[t]=e)})),i(l,h?p:g.filterUserAttributes(p)),r.style&&a(l,r.style),f&&l.appendChild(f),t(r.children||[],l),c=l}else s(33,!1,void 0,{"Invalid tagName in config":d});c&&o.appendChild(c),l=c})),l}(this.nodes,t)}parseMarkup(e){let t,n=[];if(e=e.trim().replace(/ style=(["'])/g," data-style=$1"),m)t=(new DOMParser).parseFromString(h?h.createHTML(e):e,"text/html");else{let n=o("div");n.innerHTML=e,t={body:n}}let r=(e,t)=>{let n=e.nodeName.toLowerCase(),i={tagName:n};"#text"===n&&(i.textContent=e.textContent||"");let o=e.attributes;if(o){let e={};[].forEach.call(o,(t=>{"data-style"===t.name?i.style=g.parseStyle(t.value):e[t.name]=t.value})),i.attributes=e}if(e.childNodes.length){let t=[];[].forEach.call(e.childNodes,(e=>{r(e,t)})),t.length&&(i.children=t)}t.push(i)};return[].forEach.call(t.body.childNodes,(e=>r(e,n))),n}}return g.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","markerHeight","markerWidth","offset","opacity","orient","padding","paddingLeft","paddingRight","patternUnits","r","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],g.allowedReferences=["https://","http://","mailto:","/","../","./","#"],g.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feDropShadow","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],g.emptyHTML=p,g.bypassHTMLFiltering=!1,g})),n(t,"Core/Templating.js",[t["Core/Defaults.js"],t["Core/Utilities.js"]],(function(e,t){let{defaultOptions:n,defaultTime:r}=e,{extend:i,getNestedProperty:o,isArray:a,isNumber:s,isObject:l,isString:c,pick:u,pInt:d}=t,f={add:(e,t)=>e+t,divide:(e,t)=>0!==t?e/t:"",eq:(e,t)=>e==t,each:function(e){let t=arguments[arguments.length-1];return!!a(e)&&e.map(((n,r)=>h(t.body,i(l(n)?n:{"@this":n},{"@index":r,"@first":0===r,"@last":r===e.length-1})))).join("")},ge:(e,t)=>e>=t,gt:(e,t)=>e>t,if:e=>!!e,le:(e,t)=>e<=t,lt:(e,t)=>ee*t,ne:(e,t)=>e!=t,subtract:(e,t)=>e-t,unless:e=>!e};function h(){let e,t,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,c=/\{([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= #\(\)]+)\}/g,d=/\(([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= ]+)\)/g,m=[],g=/f$/,y=/\.([0-9])/,b=n.lang,v=l&&l.time||r,_=l&&l.numberFormatter||p,w=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"true"===t||"false"!==t&&((e=Number(t)).toString()===t?e:o(t,s))},x=0;for(;null!==(e=c.exec(a));){var k;let n=d.exec(e[1]);n&&(e=n,i=!0),t&&t.isBlock||(t={ctx:s,expression:e[1],find:e[0],isBlock:"#"===e[1].charAt(0),start:e.index,startInner:e.index+e[0].length,length:e[0].length});let r=e[1].split(" ")[0].replace("#","");f[r]&&(t.isBlock&&r===t.fn&&x++,t.fn||(t.fn=r));let o="else"===e[1];if(t.isBlock&&t.fn&&(e[1]==="/".concat(t.fn)||o))if(x)!o&&x--;else{let n=t.startInner,r=a.substr(n,e.index-n);void 0===t.body?(t.body=r,t.startInner=e.index+e[0].length):t.elseBody=r,t.find+=r+e[0],o||(m.push(t),t=void 0)}else t.isBlock||m.push(t);if(n&&(null===(k=t)||void 0===k||!k.isBlock))break}return m.forEach((e=>{let t,n,{body:r,elseBody:i,expression:o,fn:l}=e;if(l){let a=[e],c=o.split(" ");for(n=f[l].length;n--;)a.unshift(w(c[n+1]));t=f[l].apply(s,a),e.isBlock&&"boolean"==typeof t&&(t=h(t?r:i,s))}else{let e=o.split(":");if(t=w(e.shift()||""),e.length&&"number"==typeof t){let n=e.join(":");if(g.test(n)){let e=parseInt((n.match(y)||["","-1"])[1],10);null!==t&&(t=_(t,e,b.decimalPoint,n.indexOf(",")>-1?b.thousandsSep:""))}else t=v.dateFormat(n,t)}}a=a.replace(e.find,u(t,""))})),i?h(a,s,l):a}function p(e,t,r,i){let o,a;e=+e||0,t=+t;let l=n.lang,c=(e.toString().split(".")[1]||"").split("e")[0].length,f=e.toString().split("e"),h=t;-1===t?t=Math.min(c,20):s(t)?t&&f[1]&&f[1]<0&&((a=t+ +f[1])>=0?(f[0]=(+f[0]).toExponential(a).split("e")[0],t=a):(f[0]=f[0].split(".")[0]||0,e=t<20?(f[0]*Math.pow(10,f[1])).toFixed(t):0,f[1]=0)):t=2;let p=(Math.abs(f[1]?f[0]:e)+Math.pow(10,-Math.max(t,c)-1)).toFixed(t),m=String(d(p)),g=m.length>3?m.length%3:0;return r=u(r,l.decimalPoint),i=u(i,l.thousandsSep),o=(e<0?"-":"")+(g?m.substr(0,g)+i:""),0>+f[1]&&!h?o="0":o+=m.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+i),t&&(o+=r+p.slice(-t)),f[1]&&0!=+o&&(o+="e"+f[1]),o}return{dateFormat:function(e,t,n){return r.dateFormat(e,t,n)},format:h,helpers:f,numberFormat:p}})),n(t,"Core/Renderer/RendererUtilities.js",[t["Core/Utilities.js"]],(function(e){var t;let{clamp:n,pick:r,pushUnique:i,stableSort:o}=e;return(t||(t={})).distribute=function e(t,a,s){let l,c,u,d,f,h,p=t,m=p.reducedLen||a,g=(e,t)=>e.target-t.target,y=[],b=t.length,v=[],_=y.push,w=!0,x=0;for(l=b;l--;)x+=t[l].size;if(x>m){for(o(t,((e,t)=>(t.rank||0)-(e.rank||0))),u=(h=t[0].rank===t[t.length-1].rank)?b/2:-1,c=h?u:b-1;u&&x>m;)d=t[l=Math.floor(c)],i(v,l)&&(x-=d.size),c+=u,h&&c>=t.length&&(u/=2,c=u);v.sort(((e,t)=>t-e)).forEach((e=>_.apply(y,t.splice(e,1))))}for(o(t,g),t=t.map((e=>({size:e.size,targets:[e.target],align:r(e.align,.5)})));w;){for(l=t.length;l--;)d=t[l],f=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/2,d.pos=n(f-d.size*d.align,0,a-d.size);for(l=t.length,w=!1;l--;)l>0&&t[l-1].pos+t[l-1].size>t[l].pos&&(t[l-1].size+=t[l].size,t[l-1].targets=t[l-1].targets.concat(t[l].targets),t[l-1].align=.5,t[l-1].pos+t[l-1].size>a&&(t[l-1].pos=a-t[l-1].size),t.splice(l,1),w=!0)}return _.apply(p,y),l=0,t.some((t=>{let n=0;return(t.targets||[]).some((()=>(p[l].pos=t.pos+n,void 0!==s&&Math.abs(p[l].pos-p[l].target)>s?(p.slice(0,l+1).forEach((e=>delete e.pos)),p.reducedLen=(p.reducedLen||a)-.1*a,p.reducedLen>.1*a&&e(p,a,s),!0):(n+=p[l].size,l++,!1))))})),o(p,g),p},t})),n(t,"Core/Renderer/SVG/SVGElement.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t,n,r){let{animate:i,animObject:o,stop:a}=e,{deg2rad:s,doc:l,noop:c,svg:u,SVG_NS:d,win:f}=n,{addEvent:h,attr:p,createElement:m,css:g,defined:y,erase:b,extend:v,fireEvent:_,isArray:w,isFunction:x,isObject:k,isString:T,merge:S,objectEach:A,pick:E,pInt:C,syncTimeout:O,uniqueKey:M}=r;class P{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=d}_defaultGetter(e){let t=E(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);return/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t}_defaultSetter(e,t,n){n.setAttribute(t,e)}add(e){let t,n=this.renderer,r=this.element;return e&&(this.parentGroup=e),void 0!==this.textStr&&"text"===this.element.nodeName&&n.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(t=this.zIndexSetter()),t||(e?e.element:n.box).appendChild(r),this.onAdd&&this.onAdd(),this}addClass(e,t){let n=t?"":this.attr("class")||"";return(e=(e||"").split(/ /g).reduce((function(e,t){return-1===n.indexOf(t)&&e.push(t),e}),n?[n]:[]).join(" "))!==n&&this.attr("class",e),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(e,t,n){let r,i,o,a,s,l={},c=this.renderer,u=c.alignedObjects;e?(this.alignOptions=e,this.alignByTranslate=t,(!n||T(n))&&(this.alignTo=o=n||"renderer",b(u,this),u.push(this),n=void 0)):(e=this.alignOptions,t=this.alignByTranslate,o=this.alignTo),n=E(n,c[o],"scrollablePlotBox"===o?c.plotBox:void 0,c);let d=e.align,f=e.verticalAlign;return r=(n.x||0)+(e.x||0),i=(n.y||0)+(e.y||0),"right"===d?a=1:"center"===d&&(a=2),a&&(r+=(n.width-(e.width||0))/a),l[t?"translateX":"x"]=Math.round(r),"bottom"===f?s=1:"middle"===f&&(s=2),s&&(i+=(n.height-(e.height||0))/s),l[t?"translateY":"y"]=Math.round(i),this[this.placed?"animate":"attr"](l),this.placed=!0,this.alignAttr=l,this}alignSetter(e){let t={left:"start",center:"middle",right:"end"};t[e]&&(this.alignValue=e,this.element.setAttribute("text-anchor",t[e]))}animate(e,t,n){let r=o(E(t,this.renderer.globalAnimation,!0)),a=r.defer;return l.hidden&&(r.duration=0),0!==r.duration?(n&&(r.complete=n),O((()=>{this.element&&i(this,e,r)}),a)):(this.attr(e,void 0,n||r.complete),A(e,(function(e,t){r.step&&r.step.call(this,e,{prop:t,pos:1,elem:this})}),this)),this}applyTextOutline(e){let t=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(t.style.fill)));let r=e.split(" "),i=r[r.length-1],o=r[0];if(o&&"none"!==o&&n.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,(function(e,t,n){return 2*Number(t)+n})),this.removeTextOutline();let e=l.createElementNS(d,"tspan");p(e,{class:"highcharts-text-outline",fill:i,stroke:i,"stroke-width":o,"stroke-linejoin":"round"});let n=t.querySelector("textPath")||t;[].forEach.call(n.childNodes,(t=>{let n=t.cloneNode(!0);n.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((e=>n.removeAttribute(e))),e.appendChild(n)}));let r=0;[].forEach.call(n.querySelectorAll("text tspan"),(e=>{r+=Number(e.getAttribute("dy"))}));let a=l.createElementNS(d,"tspan");a.textContent="\u200b",p(a,{x:Number(t.getAttribute("x")),dy:-r}),e.appendChild(a),n.insertBefore(e,n.firstChild)}}attr(e,t,n,r){let i,o,s,l=this.element,c=P.symbolCustomAttribs,u=this;return"string"==typeof e&&void 0!==t&&(i=e,(e={})[i]=t),"string"==typeof e?u=(this[e+"Getter"]||this._defaultGetter).call(this,e,l):(A(e,(function(t,n){s=!1,r||a(this,n),this.symbolName&&-1!==c.indexOf(n)&&(o||(this.symbolAttr(e),o=!0),s=!0),this.rotation&&("x"===n||"y"===n)&&(this.doTransform=!0),s||(this[n+"Setter"]||this._defaultSetter).call(this,t,n,l)}),this),this.afterSetters()),n&&n.call(this),u}clip(e){return this.attr("clip-path",e?"url("+this.renderer.url+"#"+e.id+")":"none")}crisp(e,t){t=t||e.strokeWidth||0;let n=Math.round(t)%2/2;return e.x=Math.floor(e.x||this.x||0)+n,e.y=Math.floor(e.y||this.y||0)+n,e.width=Math.floor((e.width||this.width||0)-2*n),e.height=Math.floor((e.height||this.height||0)-2*n),y(e.strokeWidth)&&(e.strokeWidth=t),e}complexColor(e,n,r){let i,o,a,s,l,c,u,d,f,h,p,m=this.renderer,g=[];_(this.renderer,"complexColor",{args:arguments},(function(){if(e.radialGradient?o="radialGradient":e.linearGradient&&(o="linearGradient"),o){if(a=e[o],l=m.gradients,c=e.stops,f=r.radialReference,w(a)&&(e[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&f&&!y(a.gradientUnits)&&(s=a,a=S(a,m.getRadialAttr(f,s),{gradientUnits:"userSpaceOnUse"})),A(a,(function(e,t){"id"!==t&&g.push(t,e)})),A(c,(function(e){g.push(e)})),l[g=g.join(",")])h=l[g].attr("id");else{a.id=h=M();let e=l[g]=m.createElement(o).attr(a).add(m.defs);e.radAttr=s,e.stops=[],c.forEach((function(n){0===n[1].indexOf("rgba")?(u=(i=t.parse(n[1])).get("rgb"),d=i.get("a")):(u=n[1],d=1);let r=m.createElement("stop").attr({offset:n[0],"stop-color":u,"stop-opacity":d}).add(e);e.stops.push(r)}))}p="url("+m.url+"#"+h+")",r.setAttribute(n,p),r.gradient=g,e.toString=function(){return p}}}))}css(e){let t,n=this.styles,r={},i=this.element,o=!n;if(n&&A(e,(function(e,t){n&&n[t]!==e&&(r[t]=e,o=!0)})),o){n&&(e=v(n,r)),null===e.width||"auto"===e.width?delete this.textWidth:"text"===i.nodeName.toLowerCase()&&e.width&&(t=this.textWidth=C(e.width)),this.styles=e,t&&!u&&this.renderer.forExport&&delete e.width;let o=S(e);i.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach((e=>o&&delete o[e])),o.color&&(o.fill=o.color)),g(i,o)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}dashstyleSetter(e){let t,n=this["stroke-width"];if("inherit"===n&&(n=1),e=e&&e.toLowerCase()){let r=e.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=r.length;t--;)r[t]=""+C(r[t])*E(n,NaN);e=r.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}}destroy(){var e;let t,n,r=this,i=r.element||{},o=r.renderer,s=i.ownerSVGElement,l="SPAN"===i.nodeName&&r.parentGroup||void 0;if(i.onclick=i.onmouseout=i.onmouseover=i.onmousemove=i.point=null,a(r),r.clipPath&&s){let e=r.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){t.getAttribute("clip-path").indexOf(e.element.id)>-1&&t.removeAttribute("clip-path")})),r.clipPath=e.destroy()}if(r.connector=null===(e=r.connector)||void 0===e?void 0:e.destroy(),r.stops){for(n=0;nt&&t.join?(n?e+" ":"")+t.join(" "):(t||"").toString()),"")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0"),this[t]!==e&&(n.setAttribute(t,e),this[t]=e)}fillSetter(e,t,n){"string"==typeof e?n.setAttribute(t,e):e&&this.complexColor(e,t,n)}hrefSetter(e,t,n){n.setAttributeNS("http://www.w3.org/1999/xlink",t,e)}getBBox(e,t){let n,r,i,o,a,{alignValue:l,element:c,renderer:u,styles:d,textStr:f}=this,{cache:h,cacheKeys:p}=u,m=c.namespaceURI===this.SVG_NS,b=E(t,this.rotation,0),_=u.styledMode?c&&P.prototype.getStyle.call(c,"font-size"):d&&d.fontSize;if(y(f)&&(-1===(a=f.toString()).indexOf("<")&&(a=a.replace(/[0-9]/g,"0")),a+=["",u.rootFontSize,_,b,this.textWidth,l,d&&d.textOverflow,d&&d.fontWeight].join(",")),a&&!e&&(n=h[a]),!n){if(m||u.forExport){try{o=this.fakeTS&&function(e){let t=c.querySelector(".highcharts-text-outline");t&&g(t,{display:e})},x(o)&&o("none"),n=c.getBBox?v({},c.getBBox()):{width:c.offsetWidth,height:c.offsetHeight,x:0,y:0},x(o)&&o("")}catch(e){}(!n||n.width<0)&&(n={x:0,y:0,width:0,height:0})}else n=this.htmlGetBBox();if(r=n.width,i=n.height,m&&(n.height=i={"11px,17":14,"13px,20":16}["".concat(_||"",",").concat(Math.round(i))]||i),b){let e=Number(c.getAttribute("y")||0)-n.y,t={right:1,center:.5}[l||0]||0,o=b*s,a=(b-90)*s,u=r*Math.cos(o),d=r*Math.sin(o),f=Math.cos(a),h=Math.sin(a),p=n.x+t*(r-u)+e*f,m=p+u,g=m-i*f,y=g-u,v=n.y+e-t*d+e*h,_=v+d,w=_-i*h,x=w-d;n.x=Math.min(p,m,g,y),n.y=Math.min(v,_,w,x),n.width=Math.max(p,m,g,y)-n.x,n.height=Math.max(v,_,w,x)-n.y}}if(a&&(""===f||n.height>0)){for(;p.length>250;)delete h[p.shift()];h[a]||p.push(a),h[a]=n}return n}getStyle(e){return f.getComputedStyle(this.element||this,"").getPropertyValue(e)}hasClass(e){return-1!==(""+this.attr("class")).split(" ").indexOf(e)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}init(e,t){this.element="span"===t?m(t):l.createElementNS(this.SVG_NS,t),this.renderer=e,_(this,"afterInit")}on(e,t){let{onEvents:n}=this;return n[e]&&n[e](),n[e]=h(this.element,e,t),this}opacitySetter(e,t,n){let r=Number(Number(e).toFixed(3));this.opacity=r,n.setAttribute(t,r)}removeClass(e){return this.attr("class",(""+this.attr("class")).replace(T(e)?RegExp("(^| )".concat(e,"( |$)")):e," ").replace(/ +/g," ").trim())}removeTextOutline(){let e=this.element.querySelector("tspan.highcharts-text-outline");e&&this.safeRemoveChild(e)}safeRemoveChild(e){let t=e.parentNode;t&&t.removeChild(e)}setRadialReference(e){let t=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=e,t&&t.radAttr&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this}setTextPath(e,t){t=S(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},t);let n=this.renderer.url,r=this.text||this,i=r.textPath,{attributes:o,enabled:a}=t;if(e=e||i&&i.path,i&&i.undo(),e&&a){let t=h(r,"afterModifyTree",(t=>{if(e&&a){let i=e.attr("id");i||e.attr("id",i=M());let a={x:0,y:0};y(o.dx)&&(a.dx=o.dx,delete o.dx),y(o.dy)&&(a.dy=o.dy,delete o.dy),r.attr(a),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let s=t.nodes.slice(0);t.nodes.length=0,t.nodes[0]={tagName:"textPath",attributes:v(o,{"text-anchor":o.textAnchor,href:"".concat(n,"#").concat(i)}),children:s}}}));r.textPath={path:e,undo:t}}else r.attr({dx:0,dy:0}),delete r.textPath;return this.added&&(r.textCache="",this.renderer.buildText(r)),this}shadow(e){var t;let{renderer:n}=this,r=S(90===(null===(t=this.parentGroup)||void 0===t?void 0:t.rotation)?{offsetX:-1,offsetY:-1}:{},k(e)?e:{}),i=n.shadowDefinition(r);return this.attr({filter:e?"url(".concat(n.url,"#").concat(i,")"):"none"})}show(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.attr({visibility:e?"inherit":"visible"})}"stroke-widthSetter"(e,t,n){this[t]=e,n.setAttribute(t,e)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let e,t=this.getStyle("stroke-width"),n=0;return t.indexOf("px")===t.length-2?n=C(t):""!==t&&(p(e=l.createElementNS(d,"rect"),{width:t,"stroke-width":0}),this.element.parentNode.appendChild(e),n=e.getBBox().width,e.parentNode.removeChild(e)),n}symbolAttr(e){let t=this;P.symbolCustomAttribs.forEach((function(n){t[n]=E(e[n],t[n])})),t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})}textSetter(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this))}titleSetter(e){let t=this.element,n=t.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");t.insertBefore?t.insertBefore(n,t.firstChild):t.appendChild(n),n.textContent=String(E(e,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")}toFront(){let e=this.element;return e.parentNode.appendChild(e),this}translate(e,t){return this.attr({translateX:e,translateY:t})}updateTransform(){let{element:e,matrix:t,rotation:n=0,scaleX:r,scaleY:i,translateX:o=0,translateY:a=0}=this,s=["translate("+o+","+a+")"];y(t)&&s.push("matrix("+t.join(",")+")"),n&&s.push("rotate("+n+" "+E(this.rotationOriginX,e.getAttribute("x"),0)+" "+E(this.rotationOriginY,e.getAttribute("y")||0)+")"),(y(r)||y(i))&&s.push("scale("+E(r,1)+" "+E(i,1)+")"),s.length&&!(this.text||this).textPath&&e.setAttribute("transform",s.join(" "))}visibilitySetter(e,t,n){"inherit"===e?n.removeAttribute(t):this[t]!==e&&n.setAttribute(t,e),this[t]=e}xGetter(e){return"circle"===this.element.nodeName&&("x"===e?e="cx":"y"===e&&(e="cy")),this._defaultGetter(e)}zIndexSetter(e,t){let n,r,i,o,a,s=this.renderer,l=this.parentGroup,c=(l||s).element||s.box,u=this.element,d=c===s.box,f=!1,h=this.added;if(y(e)?(u.setAttribute("data-z-index",e),e=+e,this[t]===e&&(h=!1)):y(this[t])&&u.removeAttribute("data-z-index"),this[t]=e,h){for((e=this.zIndex)&&l&&(l.handleZ=!0),a=(n=c.childNodes).length-1;a>=0&&!f;a--)o=!y(i=(r=n[a]).getAttribute("data-z-index")),r!==u&&(e<0&&o&&!d&&!a?(c.insertBefore(u,n[a]),f=!0):(C(i)<=e||o&&(!y(e)||e>=0))&&(c.insertBefore(u,n[a+1]),f=!0));f||(c.insertBefore(u,n[d?3:0]),f=!0)}return f}}return P.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],P.prototype.strokeSetter=P.prototype.fillSetter,P.prototype.yGetter=P.prototype.xGetter,P.prototype.matrixSetter=P.prototype.rotationOriginXSetter=P.prototype.rotationOriginYSetter=P.prototype.rotationSetter=P.prototype.scaleXSetter=P.prototype.scaleYSetter=P.prototype.translateXSetter=P.prototype.translateYSetter=P.prototype.verticalAlignSetter=function(e,t){this[t]=e,this.doTransform=!0},P})),n(t,"Core/Renderer/RendererRegistry.js",[t["Core/Globals.js"]],(function(e){var t,n;let r;return(n=t||(t={})).rendererTypes={},n.getRendererType=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return n.rendererTypes[e]||n.rendererTypes[r]},n.registerRendererType=function(t,i,o){n.rendererTypes[t]=i,(!r||o)&&(r=t,e.Renderer=i)},t})),n(t,"Core/Renderer/SVG/SVGLabel.js",[t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],(function(e,t){let{defined:n,extend:r,isNumber:i,merge:o,pick:a,removeEvent:s}=t;class l extends e{constructor(e,t,n,r,i,o,a,s,c,u){let d;super(),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.init(e,"g"),this.textStr=t,this.x=n,this.y=r,this.anchorX=o,this.anchorY=a,this.baseline=c,this.className=u,this.addClass("button"===u?"highcharts-no-tooltip":"highcharts-label"),u&&this.addClass("highcharts-"+u),this.text=e.text(void 0,0,0,s).attr({zIndex:1}),"string"==typeof i&&((d=/^url\((.*?)\)$/.test(i))||this.renderer.symbols[i])&&(this.symbolKey=i),this.bBox=l.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=e.styledMode||d,this.deferredAttr={},this.alignFactor=0}alignSetter(e){let t={left:0,center:.5,right:1}[e];t!==this.alignFactor&&(this.alignFactor=t,this.bBox&&i(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(e,t){this.anchorX=e,this.boxAttr(t,Math.round(e)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(e,t){this.anchorY=e,this.boxAttr(t,e-this.ySetting)}boxAttr(e,t){this.box?this.box.attr(e,t):this.deferredAttr[e]=t}css(t){if(t){let e={};t=o(t),l.textProps.forEach((n=>{void 0!==t[n]&&(e[n]=t[n],delete t[n])})),this.text.css(e),"fontSize"in e||"fontWeight"in e?this.updateTextPadding():("width"in e||"textOverflow"in e)&&this.updateBoxSize()}return e.prototype.css.call(this,t)}destroy(){s(this.element,"mouseenter"),s(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),e.prototype.destroy.call(this)}fillSetter(e,t){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(t,e)}getBBox(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();let e=this.padding,t=a(this.paddingLeft,e);return{width:this.width||0,height:this.height||0,x:this.bBox.x-t,y:this.bBox.y-e}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(e){this.heightSetting=e}onAdd(){this.text.add(this),this.attr({text:a(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&n(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(e,t){i(e)?e!==this[t]&&(this[t]=e,this.updateTextPadding()):this[t]=void 0}rSetter(e,t){this.boxAttr(t,e)}strokeSetter(e,t){this.stroke=e,this.boxAttr(t,e)}"stroke-widthSetter"(e,t){e&&(this.needsBox=!0),this["stroke-width"]=e,this.boxAttr(t,e)}"text-alignSetter"(e){this.textAlign=e}textSetter(e){void 0!==e&&this.text.attr({text:e}),this.updateTextPadding()}updateBoxSize(){let e,t=this.text,o={},a=this.padding,s=this.bBox=i(this.widthSetting)&&i(this.heightSetting)&&!this.textAlign||!n(t.textStr)?l.emptyBBox:t.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||s.height||0)+2*a;let c=this.renderer.fontMetrics(t);if(this.baselineOffset=a+Math.min((this.text.firstLineMetrics||c).b,s.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-c.h)/2),this.needsBox&&!t.textPath){if(!this.box){let e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();e.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),e.add(this)}e=this.getCrispAdjust(),o.x=e,o.y=(this.baseline?-this.baselineOffset:0)+e,o.width=Math.round(this.width),o.height=Math.round(this.height),this.box.attr(r(o,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let e=this.text;if(!e.textPath){this.updateBoxSize();let t=this.baseline?0:this.baselineOffset,r=a(this.paddingLeft,this.padding);n(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(r+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(r!==e.x||t!==e.y)&&(e.attr("x",r),e.hasBoxWidthChanged&&(this.bBox=e.getBBox(!0)),void 0!==t&&e.attr("y",t)),e.x=r,e.y=t}}widthSetter(e){this.widthSetting=i(e)?e:void 0}getPaddedWidth(){let e=this.padding,t=a(this.paddingLeft,e),n=a(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+t+n}xSetter(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(e),this.attr("translateX",this.xSetting)}ySetter(e){this.ySetting=this.y=Math.round(e),this.attr("translateY",this.ySetting)}}return l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],l})),n(t,"Core/Renderer/SVG/Symbols.js",[t["Core/Utilities.js"]],(function(e){let{defined:t,isNumber:n,pick:r}=e;function i(e,n,i,o,a){let s=[];if(a){let l=a.start||0,c=r(a.r,i),u=r(a.r,o||i),d=.001>Math.abs((a.end||0)-l-2*Math.PI),f=(a.end||0)-.001,h=a.innerR,p=r(a.open,d),m=Math.cos(l),g=Math.sin(l),y=Math.cos(f),b=Math.sin(f),v=r(a.longArc,f-l-Math.PI<.001?0:1),_=["A",c,u,0,v,r(a.clockwise,1),e+c*y,n+u*b];_.params={start:l,end:f,cx:e,cy:n},s.push(["M",e+c*m,n+u*g],_),t(h)&&((_=["A",h,h,0,v,t(a.clockwise)?1-a.clockwise:0,e+h*m,n+h*g]).params={start:f,end:l,cx:e,cy:n},s.push(p?["M",e+h*y,n+h*b]:["L",e+h*y,n+h*b],_)),p||s.push(["Z"])}return s}function o(e,t,n,r,i){return i&&i.r?a(e,t,n,r,i):[["M",e,t],["L",e+n,t],["L",e+n,t+r],["L",e,t+r],["Z"]]}function a(e,t,n,r,i){let o=(null===i||void 0===i?void 0:i.r)||0;return[["M",e+o,t],["L",e+n-o,t],["A",o,o,0,0,1,e+n,t+o],["L",e+n,t+r-o],["A",o,o,0,0,1,e+n-o,t+r],["L",e+o,t+r],["A",o,o,0,0,1,e,t+r-o],["L",e,t+o],["A",o,o,0,0,1,e+o,t],["Z"]]}return{arc:i,callout:function(e,t,r,i,o){let s=Math.min(o&&o.r||0,r,i),l=s+6,c=o&&o.anchorX,u=o&&o.anchorY||0,d=a(e,t,r,i,{r:s});if(!n(c)||c0&&u0)return d;if(e+c>r-l)if(u>t+l&&ut+l&&u0){let n=ui&&cl&&d.splice(1,1,["L",c-6,t],["L",c,t-6],["L",c+6,t],["L",r-s,t]);return d},circle:function(e,t,n,r){return i(e+n/2,t+r/2,n/2,r/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(e,t,n,r){return[["M",e+n/2,t],["L",e+n,t+r/2],["L",e+n/2,t+r],["L",e,t+r/2],["Z"]]},rect:o,roundedRect:a,square:o,triangle:function(e,t,n,r){return[["M",e+n/2,t],["L",e+n,t+r],["L",e,t+r],["Z"]]},"triangle-down":function(e,t,n,r){return[["M",e,t],["L",e+n,t],["L",e+n/2,t+r],["Z"]]}}})),n(t,"Core/Renderer/SVG/TextBuilder.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t,n){let{doc:r,SVG_NS:i,win:o}=t,{attr:a,extend:s,fireEvent:l,isString:c,objectEach:u,pick:d}=n;return class{constructor(e){let t=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=t&&t.lineHeight,this.textOutline=t&&t.textOutline,this.ellipsis=!(!t||"ellipsis"!==t.textOverflow),this.noWrap=!(!t||"nowrap"!==t.whiteSpace)}buildSVG(){let t=this.svgElement,n=t.element,i=t.renderer,o=d(t.textStr,"").toString(),a=-1!==o.indexOf("<"),s=n.childNodes,l=!t.added&&i.box,u=[o,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,t.getStyle("font-size"),this.width].join(",");if(u!==t.textCache){t.textCache=u,delete t.actualWidth;for(let e=s.length;e--;)n.removeChild(s[e]);if(a||this.ellipsis||this.width||t.textPath||-1!==o.indexOf(" ")&&(!this.noWrap||//g.test(o))){if(""!==o){l&&l.appendChild(n);let r=new e(o);this.modifyTree(r.nodes),r.addToDOM(n),this.modifyDOM(),this.ellipsis&&-1!==(n.textContent||"").indexOf("\u2026")&&t.attr("title",this.unescapeEntities(t.textStr||"",["<",">"])),l&&l.removeChild(n)}}else n.appendChild(r.createTextNode(this.unescapeEntities(o)));c(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}}modifyDOM(){let e,t=this.svgElement,n=a(t.element,"x");for(t.firstLineMetrics=void 0;(e=t.element.firstChild)&&/^[\s\u200B]*$/.test(e.textContent||" ");)t.element.removeChild(e);[].forEach.call(t.element.querySelectorAll("tspan.highcharts-br"),((e,r)=>{e.nextSibling&&e.previousSibling&&(0===r&&1===e.previousSibling.nodeType&&(t.firstLineMetrics=t.renderer.fontMetrics(e.previousSibling)),a(e,{dy:this.getLineHeight(e.nextSibling),x:n}))}));let s=this.width||0;if(!s)return;let l=(e,o)=>{let l=e.textContent||"",c=l.replace(/([^\^])-/g,"$1- ").split(" "),u=!this.noWrap&&(c.length>1||t.element.childNodes.length>1),d=this.getLineHeight(o),f=0,h=t.actualWidth;if(this.ellipsis)l&&this.truncate(e,l,void 0,0,Math.max(0,s-.8*d),((e,t)=>e.substring(0,t)+"\u2026"));else if(u){let l=[],u=[];for(;o.firstChild&&o.firstChild!==e;)u.push(o.firstChild),o.removeChild(o.firstChild);for(;c.length;)c.length&&!this.noWrap&&f>0&&(l.push(e.textContent||""),e.textContent=c.join(" ").replace(/- /g,"-")),this.truncate(e,void 0,c,0===f&&h||0,s,((e,t)=>c.slice(0,t).join(" ").replace(/- /g,"-"))),h=t.actualWidth,f++;u.forEach((t=>{o.insertBefore(t,e)})),l.forEach((t=>{o.insertBefore(r.createTextNode(t),e);let s=r.createElementNS(i,"tspan");s.textContent="\u200b",a(s,{dy:d,x:n}),o.insertBefore(s,e)}))}},c=e=>{[].slice.call(e.childNodes).forEach((n=>{n.nodeType===o.Node.TEXT_NODE?l(n,e):(-1!==n.className.baseVal.indexOf("highcharts-br")&&(t.actualWidth=0),c(n))}))};c(t.element)}getLineHeight(e){let t=e.nodeType===o.Node.TEXT_NODE?e.parentElement:e;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}modifyTree(e){let t=(n,r)=>{let{attributes:i={},children:o,style:a={},tagName:l}=n,c=this.renderer.styledMode;if("b"===l||"strong"===l?c?i.class="highcharts-strong":a.fontWeight="bold":("i"===l||"em"===l)&&(c?i.class="highcharts-emphasized":a.fontStyle="italic"),a&&a.color&&(a.fill=a.color),"br"===l){i.class="highcharts-br",n.textContent="\u200b";let t=e[r+1];t&&t.textContent&&(t.textContent=t.textContent.replace(/^ +/gm,""))}else"a"===l&&o&&o.some((e=>"#text"===e.tagName))&&(n.children=[{children:o,tagName:"tspan"}]);"#text"!==l&&"a"!==l&&(n.tagName="tspan"),s(n,{attributes:i,style:a}),o&&o.filter((e=>"#text"!==e.tagName)).forEach(t)};e.forEach(t),l(this.svgElement,"afterModifyTree",{nodes:e})}truncate(e,t,n,r,i,o){let a,s,l=this.svgElement,{renderer:c,rotation:u}=l,d=[],f=n?1:0,h=(t||n||"").length,p=h,m=function(t,i){let o=i||t,a=e.parentNode;if(a&&void 0===d[o]&&a.getSubStringLength)try{d[o]=r+a.getSubStringLength(0,n?o+1:o)}catch(e){}return d[o]};if(l.rotation=0,r+(s=m(e.textContent.length))>i){for(;f<=h;)p=Math.ceil((f+h)/2),n&&(a=o(n,p)),s=m(p,a&&a.length-1),f===h?f=h+1:s>i?h=p-1:f=p;0===h?e.textContent="":t&&h===t.length-1||(e.textContent=a||o(t||n,p))}n&&n.splice(0,p),l.actualWidth=s,l.rotation=u}unescapeEntities(e,t){return u(this.renderer.escapes,(function(n,r){t&&-1!==t.indexOf(n)||(e=e.toString().replace(RegExp(n,"g"),r))})),e}}})),n(t,"Core/Renderer/SVG/SVGRenderer.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGLabel.js"],t["Core/Renderer/SVG/Symbols.js"],t["Core/Renderer/SVG/TextBuilder.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i,o,a,s,l){let c,{charts:u,deg2rad:d,doc:f,isFirefox:h,isMS:p,isWebKit:m,noop:g,SVG_NS:y,symbolSizes:b,win:v}=n,{addEvent:_,attr:w,createElement:x,css:k,defined:T,destroyObjectProperties:S,extend:A,isArray:E,isNumber:C,isObject:O,isString:M,merge:P,pick:I,pInt:N,uniqueKey:j}=l;class R{constructor(e,t,n,r,i,o,a){this.alignedObjects=void 0,this.box=void 0,this.boxWrapper=void 0,this.cache=void 0,this.cacheKeys=void 0,this.chartIndex=void 0,this.defs=void 0,this.globalAnimation=void 0,this.gradients=void 0,this.height=void 0,this.imgCount=void 0,this.style=void 0,this.url=void 0,this.width=void 0,this.init(e,t,n,r,i,o,a)}init(e,t,n,r,i,o,a){let s,l,c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),u=c.element;a||c.css(this.getStyle(r)),e.appendChild(u),w(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&w(u,"xmlns",this.SVG_NS),this.box=u,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(f.createTextNode("Created with Highcharts 11.2.0")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=i,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=c.getStyle("font-size"),this.setSize(t,n,!1),h&&e.getBoundingClientRect&&((s=function(){k(e,{left:0,top:0}),l=e.getBoundingClientRect(),k(e,{left:Math.ceil(l.left)-l.left+"px",top:Math.ceil(l.top)-l.top+"px"})})(),this.unSubPixelFix=_(v,"resize",s))}definition(t){return new e([t]).addToDOM(this.defs.element)}getReferenceURL(){if((h||m)&&f.getElementsByTagName("base").length){if(!T(c)){let t=j(),n=new e([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:t},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(t,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(f.body);k(n,{position:"fixed",top:0,left:0,zIndex:9e5});let r=f.elementFromPoint(6,6);c="hitme"===(r&&r.id),f.body.removeChild(n)}if(c)return v.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(e){return this.style=A({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},e),this.style}setStyle(e){this.boxWrapper.css(this.getStyle(e))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),S(this.gradients||{}),this.gradients=null,this.defs=e.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(e){let t=new this.Element;return t.init(this,e),t}getRadialAttr(e,t){return{cx:e[0]-e[2]/2+(t.cx||0)*e[2],cy:e[1]-e[2]/2+(t.cy||0)*e[2],r:(t.r||0)*e[2]}}shadowDefinition(e){let t=["highcharts-drop-shadow-".concat(this.chartIndex),...Object.keys(e).map((t=>"".concat(t,"-").concat(e[t])))].join("-").toLowerCase().replace(/[^a-z0-9\-]/g,""),n=P({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector("#".concat(t))||this.definition({tagName:"filter",attributes:{id:t,filterUnits:n.filterUnits},children:[{tagName:"feDropShadow",attributes:{dx:n.offsetX,dy:n.offsetY,"flood-color":n.color,"flood-opacity":Math.min(5*n.opacity,1),stdDeviation:n.width/2}}]}),t}buildText(e){new s(e).buildSVG()}getContrast(e){let n=t.parse(e).rgba.map((e=>{let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),r=.2126*n[0]+.7152*n[1]+.0722*n[2];return 1.05/(r+.05)>(r+.05)/.05?"#FFFFFF":"#000000"}button(t,n,r,i){let o,a,s,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=arguments.length>5?arguments[5]:void 0,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,f=arguments.length>8?arguments[8]:void 0,h=arguments.length>9?arguments[9]:void 0,m=this.label(t,n,r,f,void 0,void 0,h,void 0,"button"),g=this.styledMode,y=l.states||{},b=0;l=P(l),delete l.states;let v=P({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},l.style);delete l.style;let w=e.filterUserAttributes(l);return m.attr(P({padding:8,r:2},w)),g||(w=P({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},w),o=(c=P(w,{fill:"#e6e6e6"},e.filterUserAttributes(c||y.hover||{}))).style,delete c.style,a=(u=P(w,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},e.filterUserAttributes(u||y.select||{}))).style,delete u.style,s=(d=P(w,{style:{color:"#cccccc"}},e.filterUserAttributes(d||y.disabled||{}))).style,delete d.style),_(m.element,p?"mouseover":"mouseenter",(function(){3!==b&&m.setState(1)})),_(m.element,p?"mouseout":"mouseleave",(function(){3!==b&&m.setState(b)})),m.setState=function(e){if(1!==e&&(m.state=b=e),m.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][e||0]),!g){m.attr([w,c,u,d][e||0]);let t=[v,o,a,s][e||0];O(t)&&m.css(t)}},!g&&(m.attr(w).css(A({cursor:"default"},v)),h&&m.text.css({pointerEvents:"none"})),m.on("touchstart",(e=>e.stopPropagation())).on("click",(function(e){3!==b&&i.call(m,e)}))}crispLine(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"round",r=e[0],i=e[1];return T(r[1])&&r[1]===i[1]&&(r[1]=i[1]=Math[n](r[1])-t%2/2),T(r[2])&&r[2]===i[2]&&(r[2]=i[2]=Math[n](r[2])+t%2/2),e}path(e){let t=this.styledMode?{}:{fill:"none"};return E(e)?t.d=e:O(e)&&A(t,e),this.createElement("path").attr(t)}circle(e,t,n){let r=O(e)?e:void 0===e?{}:{x:e,y:t,r:n},i=this.createElement("circle");return i.xSetter=i.ySetter=function(e,t,n){n.setAttribute("c"+t,e)},i.attr(r)}arc(e,t,n,r,i,o){let a;O(e)?(t=(a=e).y,n=a.r,r=a.innerR,i=a.start,o=a.end,e=a.x):a={innerR:r,start:i,end:o};let s=this.symbol("arc",e,t,n,n,a);return s.r=n,s}rect(e,t,n,r,i,o){let a=O(e)?e:void 0===e?{}:{x:e,y:t,r:i,width:Math.max(n||0,0),height:Math.max(r||0,0)},s=this.createElement("rect");return this.styledMode||(void 0!==o&&(a["stroke-width"]=o,A(a,s.crisp(a))),a.fill="none"),s.rSetter=function(e,t,n){s.r=e,w(n,{rx:e,ry:e})},s.rGetter=function(){return s.r||0},s.attr(a)}roundedRect(e){return this.symbol("roundedRect").attr(e)}setSize(e,t,n){this.width=e,this.height=t,this.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:I(n,!0)?void 0:0}),this.alignElements()}g(e){let t=this.createElement("g");return e?t.attr({class:"highcharts-"+e}):t}image(e,t,n,r,i,o){let a={preserveAspectRatio:"none"};C(t)&&(a.x=t),C(n)&&(a.y=n),C(r)&&(a.width=r),C(i)&&(a.height=i);let s=this.createElement("image").attr(a),l=function(t){s.attr({href:e}),o.call(s,t)};if(o){s.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let t=new v.Image;_(t,"load",l),t.src=e,t.complete&&l({})}else s.attr({href:e});return s}symbol(e,t,n,r,i,o){let a,s,l,c,d=this,h=/^url\((.*?)\)$/,p=h.test(e),m=!p&&(this.symbols[e]?e:"circle"),g=m&&this.symbols[m];if(g)"number"==typeof t&&(s=g.call(this.symbols,Math.round(t||0),Math.round(n||0),r||0,i||0,o)),a=this.path(s),d.styledMode||a.attr("fill","none"),A(a,{symbolName:m||void 0,x:t,y:n,width:r,height:i}),o&&A(a,o);else if(p){l=e.match(h)[1];let r=a=this.image(l);r.imgwidth=I(o&&o.width,b[l]&&b[l].width),r.imgheight=I(o&&o.height,b[l]&&b[l].height),c=e=>e.attr({width:e.width,height:e.height}),["width","height"].forEach((e=>{r["".concat(e,"Setter")]=function(e,t){this[t]=e;let{alignByTranslate:n,element:r,width:i,height:a,imgwidth:s,imgheight:l}=this,c="width"===t?s:l,u=1;o&&"within"===o.backgroundSize&&i&&a&&s&&l?(u=Math.min(i/s,a/l),w(r,{width:Math.round(s*u),height:Math.round(l*u)})):r&&c&&r.setAttribute(t,c),!n&&s&&l&&this.translate(((i||0)-s*u)/2,((a||0)-l*u)/2)}})),T(t)&&r.attr({x:t,y:n}),r.isImg=!0,T(r.imgwidth)&&T(r.imgheight)?c(r):(r.attr({width:0,height:0}),x("img",{onload:function(){let e=u[d.chartIndex];0===this.width&&(k(this,{position:"absolute",top:"-999em"}),f.body.appendChild(this)),b[l]={width:this.width,height:this.height},r.imgwidth=this.width,r.imgheight=this.height,r.element&&c(r),this.parentNode&&this.parentNode.removeChild(this),d.imgCount--,d.imgCount||!e||e.hasLoaded||e.onload()},src:l}),this.imgCount++)}return a}clipRect(e,t,n,r){let i=j()+"-",o=this.createElement("clipPath").attr({id:i}).add(this.defs),a=this.rect(e,t,n,r,0).add(o);return a.id=i,a.clipPath=o,a.count=0,a}text(e,t,n,r){let i={};if(r&&(this.allowHTML||!this.forExport))return this.html(e,t,n);i.x=Math.round(t||0),n&&(i.y=Math.round(n)),T(e)&&(i.text=e);let o=this.createElement("text").attr(i);return r&&(!this.forExport||this.allowHTML)||(o.xSetter=function(e,t,n){let r=n.getElementsByTagName("tspan"),i=n.getAttribute(t);for(let o,a=0;ae.align()))}}return A(R.prototype,{Element:i,SVG_NS:y,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:a,draw:g}),r.registerRendererType("svg",R,!0),R})),n(t,"Core/Renderer/HTML/HTMLElement.js",[t["Core/Globals.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],(function(e,t,n){let{isFirefox:r,isMS:i,isWebKit:o,win:a}=e,{css:s,defined:l,extend:c,pick:u,pInt:d}=n,f=[];class h extends t{static compose(e){if(n.pushUnique(f,e)){let t=h.prototype,n=e.prototype;n.getSpanCorrection=t.getSpanCorrection,n.htmlCss=t.htmlCss,n.htmlGetBBox=t.htmlGetBBox,n.htmlUpdateTransform=t.htmlUpdateTransform,n.setSpanRotation=t.setSpanRotation}return e}getSpanCorrection(e,t,n){this.xCorr=-e*n,this.yCorr=-t}htmlCss(e){let t,n="SPAN"===this.element.tagName&&e&&"width"in e,r=u(n&&e.width,void 0);return n&&(delete e.width,this.textWidth=r,t=!0),e&&"ellipsis"===e.textOverflow&&(e.whiteSpace="nowrap",e.overflow="hidden"),this.styles=c(this.styles,e),s(this.element,e),t&&this.htmlUpdateTransform(),this}htmlGetBBox(){let e=this.element;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}htmlUpdateTransform(){if(!this.added)return void(this.alignOnAdd=!0);let e=this.renderer,t=this.element,n=this.translateX||0,r=this.translateY||0,i=this.x||0,o=this.y||0,a=this.textAlign||"left",c={left:0,center:.5,right:1}[a],u=this.styles,f=u&&u.whiteSpace;if(s(t,{marginLeft:n,marginTop:r}),"SPAN"===t.tagName){let n,r=this.rotation,u=this.textWidth&&d(this.textWidth),h=[r,a,t.innerHTML,this.textWidth,this.textAlign].join(","),p=!1;if(u!==this.oldTextWidth){let e=this.textPxLength?this.textPxLength:(s(t,{width:"",whiteSpace:f||"nowrap"}),t.offsetWidth);(u>this.oldTextWidth||e>u)&&(/[ \-]/.test(t.textContent||t.innerText)||"ellipsis"===t.style.textOverflow)&&(s(t,{width:e>u||r?u+"px":"auto",display:"block",whiteSpace:f||"normal"}),this.oldTextWidth=u,p=!0)}this.hasBoxWidthChanged=p,h!==this.cTT&&(n=e.fontMetrics(t).b,l(r)&&(r!==(this.oldRotation||0)||a!==this.oldAlign)&&this.setSpanRotation(r,c,n),this.getSpanCorrection(!l(r)&&this.textPxLength||t.offsetWidth,n,c,r,a)),s(t,{left:i+(this.xCorr||0)+"px",top:o+(this.yCorr||0)+"px"}),this.cTT=h,this.oldRotation=r,this.oldAlign=a}}setSpanRotation(e,t,n){let l={},c=i&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":o?"-webkit-transform":r?"MozTransform":a.opera?"-o-transform":void 0;c&&(l[c]=l.transform="rotate("+e+"deg)",l[c+(r?"Origin":"-origin")]=l.transformOrigin=100*t+"% "+n+"px",s(this.element,l))}}return h})),n(t,"Core/Renderer/HTML/HTMLRenderer.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],(function(e,t,n,r){let{attr:i,createElement:o,extend:a,pick:s}=r,l=[];class c extends n{static compose(e){if(r.pushUnique(l,e)){let t=c.prototype;e.prototype.html=t.html}return e}html(n,r,l){let c=this.createElement("span"),u=c.element,d=c.renderer,f=function(e,n){["opacity","visibility"].forEach((function(r){e[r+"Setter"]=function(i,o,a){let s=e.div?e.div.style:n;t.prototype[r+"Setter"].call(this,i,o,a),s&&(s[o]=i)}})),e.addedSetters=!0};return c.textSetter=function(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,e.setElementHTML(this.element,s(t,"")),this.textStr=t,c.doTransform=!0)},f(c,c.element.style),c.xSetter=c.ySetter=c.alignSetter=c.rotationSetter=function(e,t){"align"===t?c.alignValue=c.textAlign=e:c[t]=e,c.doTransform=!0},c.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},c.attr({text:n,x:Math.round(r),y:Math.round(l)}).css({position:"absolute"}),d.styledMode||c.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),u.style.whiteSpace="nowrap",c.css=c.htmlCss,c.add=function(e){let t,n,r=d.box.parentNode,s=[];if(this.parentGroup=e,e){if(!(t=e.div)){for(n=e;n;)s.push(n),n=n.parentGroup;s.reverse().forEach((function(e){var n;let l=i(e.element,"class"),u=e.css;function d(t,n){e[n]=t,"translateX"===n?p.left=t+"px":p.top=t+"px",e.doTransform=!0}let h=e.styles||{};t=e.div=e.div||o("div",l?{className:l}:void 0,{position:"absolute",left:(e.translateX||0)+"px",top:(e.translateY||0)+"px",display:e.display,opacity:e.opacity,visibility:e.visibility},t||r);let p=t.style;a(e,{classSetter:(n=t,function(e){this.element.setAttribute("class",e),n.className=e}),css:function(t){return u.call(e,t),["cursor","pointerEvents"].forEach((e=>{t[e]&&(p[e]=t[e])})),e},on:function(){return s[0].div&&c.on.apply({element:s[0].div,onEvents:e.onEvents},arguments),e},translateXSetter:d,translateYSetter:d}),e.addedSetters||f(e),e.css(h)}))}}else t=r;return t.appendChild(u),c.added=!0,c.alignOnAdd&&c.htmlUpdateTransform(),c},c}}return c})),n(t,"Core/Axis/AxisDefaults.js",[],(function(){var e,t;return(t=e||(e={})).defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},t.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:e}=this.axis.chart;return e(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={title:{rotation:270}},t.defaultRightAxisOptions={title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},e})),n(t,"Core/Foundation.js",[t["Core/Utilities.js"]],(function(e){var t;let{addEvent:n,isFunction:r,objectEach:i,removeEvent:o}=e;return(t||(t={})).registerEventOptions=function(e,t){e.eventOptions=e.eventOptions||{},i(t.events,(function(t,i){e.eventOptions[i]!==t&&(e.eventOptions[i]&&(o(e,i,e.eventOptions[i]),delete e.eventOptions[i]),r(t)&&(e.eventOptions[i]=t,n(e,i,t,{order:0})))}))},t})),n(t,"Core/Axis/Tick.js",[t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t,n){let{deg2rad:r}=t,{clamp:i,correctFloat:o,defined:a,destroyObjectProperties:s,extend:l,fireEvent:c,isNumber:u,merge:d,objectEach:f,pick:h}=n;return class{constructor(e,t,n,r,i){this.isNew=!0,this.isNewLabel=!0,this.axis=e,this.pos=t,this.type=n||"",this.parameters=i||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,c(this,"init"),n||r||this.addLabel()}addLabel(){let t,n,r,i=this,s=i.axis,d=s.options,f=s.chart,p=s.categories,m=s.logarithmic,g=s.names,y=i.pos,b=h(i.options&&i.options.labels,d.labels),v=s.tickPositions,_=y===v[0],w=y===v[v.length-1],x=(!b.step||1===b.step)&&1===s.tickInterval,k=v.info,T=i.label,S=this.parameters.category||(p?h(p[y],g[y],y):y);m&&u(S)&&(S=o(m.lin2log(S))),s.dateTime&&(k?t=(n=f.time.resolveDTLFormat(d.dateTimeLabelFormats[!d.grid&&k.higherRanks[y]||k.unitName])).main:u(S)&&(t=s.dateTime.getXDateFormat(S,d.dateTimeLabelFormats||{}))),i.isFirst=_,i.isLast=w;let A={axis:s,chart:f,dateTimeLabelFormat:t,isFirst:_,isLast:w,pos:y,tick:i,tickPositionInfo:k,value:S};c(this,"labelFormat",A);let E=t=>b.formatter?b.formatter.call(t,t):b.format?(t.text=s.defaultLabelFormatter.call(t,t),e.format(b.format,t,f)):s.defaultLabelFormatter.call(t,t),C=E.call(A,A),O=n&&n.list;i.shortenLabel=O?function(){for(r=0;r0&&o+f*p>c&&(t=Math.round((a-o)/Math.cos(d*r))):(o-f*pc&&(y=c-e.x+y*f,b=-1),(y=Math.min(m,y))y||n.autoRotation&&(u.styles||{}).width)&&(t=y)),t&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(t)+"px",(i.style||{}).textOverflow||(g.textOverflow="ellipsis"),u.css(g)))}moveLabel(e,t){let n,r=this,i=r.label,o=r.axis,a=!1;i&&i.textStr===e?(r.movedLabel=i,a=!0,delete r.label):f(o.ticks,(function(t){a||t.isNew||t===r||!t.label||t.label.textStr!==e||(r.movedLabel=t.label,a=!0,t.labelPos=r.movedLabel.xy,delete t.label)})),!a&&(r.labelPos||i)&&(n=r.labelPos||i.xy,r.movedLabel=r.createLabel(n,e,t),r.movedLabel&&r.movedLabel.attr({opacity:0}))}render(e,t,n){let r=this.axis,i=r.horiz,o=this.pos,a=h(this.tickmarkOffset,r.tickmarkOffset),s=this.getPosition(i,o,a,t),l=s.x,u=s.y,d=i&&l===r.pos+r.len||!i&&u===r.pos?-1:1,f=h(n,this.label&&this.label.newOpacity,1);n=h(n,1),this.isActive=!0,this.renderGridLine(t,n,d),this.renderMark(s,n,d),this.renderLabel(s,t,f,e),this.isNew=!1,c(this,"afterRender")}renderGridLine(e,t,n){let r,i=this.axis,o=i.options,a={},s=this.pos,l=this.type,c=h(this.tickmarkOffset,i.tickmarkOffset),u=i.chart.renderer,d=this.gridLine,f=o.gridLineWidth,p=o.gridLineColor,m=o.gridLineDashStyle;"minor"===this.type&&(f=o.minorGridLineWidth,p=o.minorGridLineColor,m=o.minorGridLineDashStyle),d||(i.chart.styledMode||(a.stroke=p,a["stroke-width"]=f||0,a.dashstyle=m),l||(a.zIndex=1),e&&(t=0),this.gridLine=d=u.path().attr(a).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(i.gridGroup)),d&&(r=i.getPlotLinePath({value:s+c,lineWidth:d.strokeWidth()*n,force:"pass",old:e,acrossPanes:!1}))&&d[e||this.isNew?"attr":"animate"]({d:r,opacity:t})}renderMark(e,t,n){let r=this.axis,i=r.options,o=r.chart.renderer,a=this.type,s=r.tickSize(a?a+"Tick":"tick"),l=e.x,c=e.y,u=h(i["minor"!==a?"tickWidth":"minorTickWidth"],!a&&r.isXAxis?1:0),d=i["minor"!==a?"tickColor":"minorTickColor"],f=this.mark,p=!f;s&&(r.opposite&&(s[0]=-s[0]),f||(this.mark=f=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(r.axisGroup),r.chart.styledMode||f.attr({stroke:d,"stroke-width":u})),f[p?"attr":"animate"]({d:this.getMarkPath(l,c,s[0],f.strokeWidth()*n,r.horiz,o),opacity:t}))}renderLabel(e,t,n,r){let i=this.axis,o=i.horiz,a=i.options,s=this.label,l=a.labels,c=l.step,d=h(this.tickmarkOffset,i.tickmarkOffset),f=e.x,p=e.y,m=!0;s&&u(f)&&(s.xy=e=this.getLabelPosition(f,p,s,o,l,d,r,c),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?m=!1:!o||l.step||l.rotation||t||0===n||this.handleOverflow(e),c&&r%c&&(m=!1),m&&u(e.y)?(e.opacity=n,s[this.isNewLabel?"attr":"animate"](e).show(!0),this.isNewLabel=!1):(s.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let e=this.label,t=this.axis;e&&!this.isNew&&(e.animate({opacity:0},void 0,e.destroy),delete this.label),t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}})),n(t,"Core/Axis/Axis.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/AxisDefaults.js"],t["Core/Color/Color.js"],t["Core/Defaults.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Axis/Tick.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i,o,a,s){let{animObject:l}=e,{defaultOptions:c}=r,{registerEventOptions:u}=i,{deg2rad:d}=o,{arrayMax:f,arrayMin:h,clamp:p,correctFloat:m,defined:g,destroyObjectProperties:y,erase:b,error:v,extend:_,fireEvent:w,getClosestDistance:x,insertItem:k,isArray:T,isNumber:S,isString:A,merge:E,normalizeTickInterval:C,objectEach:O,pick:M,relativeLength:P,removeEvent:I,splat:N,syncTimeout:j}=s,R=(e,t)=>C(t,void 0,void 0,M(e.options.allowDecimals,t<.5||void 0!==e.tickAmount),!!e.tickAmount);class B{constructor(e,t,n){this.alternateBands=void 0,this.bottom=void 0,this.chart=void 0,this.closestPointRange=void 0,this.coll=void 0,this.eventOptions=void 0,this.hasNames=void 0,this.hasVisibleSeries=void 0,this.height=void 0,this.index=void 0,this.isLinked=void 0,this.labelEdge=void 0,this.labelFormatter=void 0,this.left=void 0,this.len=void 0,this.max=void 0,this.maxLabelLength=void 0,this.min=void 0,this.minorTickInterval=void 0,this.minorTicks=void 0,this.minPixelPadding=void 0,this.names=void 0,this.offset=void 0,this.options=void 0,this.overlap=void 0,this.paddedTicks=void 0,this.plotLinesAndBands=void 0,this.plotLinesAndBandsGroups=void 0,this.pointRange=void 0,this.pointRangePadding=void 0,this.pos=void 0,this.positiveValuesOnly=void 0,this.right=void 0,this.series=void 0,this.side=void 0,this.tickAmount=void 0,this.tickInterval=void 0,this.tickmarkOffset=void 0,this.tickPositions=void 0,this.tickRotCorr=void 0,this.ticks=void 0,this.top=void 0,this.transA=void 0,this.transB=void 0,this.translationSlope=void 0,this.userOptions=void 0,this.visible=void 0,this.width=void 0,this.zoomEnabled=void 0,this.init(e,t,n)}init(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.coll,r="xAxis"===n;this.chart=e,this.horiz=this.isZAxis||(e.inverted?!r:r),this.isXAxis=r,this.coll=n,w(this,"init",{userOptions:t}),this.opposite=M(t.opposite,this.opposite),this.side=M(t.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(t);let i=this.options,o=i.labels,a=i.type;this.userOptions=t,this.minPixelPadding=0,this.reversed=M(i.reversed,this.reversed),this.visible=i.visible,this.zoomEnabled=i.zoomEnabled,this.hasNames="category"===a||!0===i.categories,this.categories=i.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=g(i.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=i.minRange||i.maxZoom,this.range=i.range,this.offset=i.offset||0,this.max=null,this.min=null;let s=M(i.crosshair,N(e.options.tooltip.crosshairs)[r?0:1]);this.crosshair=!0===s?{}:s,-1===e.axes.indexOf(this)&&(r?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),k(this,e[this.coll])),e.orderItems(this.coll),this.series=this.series||[],e.inverted&&!this.isZAxis&&r&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=S(o.rotation)?o.rotation:void 0,u(this,i),w(this,"afterInit")}setOptions(e){this.options=E(t.defaultXAxisOptions,"yAxis"===this.coll&&t.defaultYAxisOptions,[t.defaultTopAxisOptions,t.defaultRightAxisOptions,t.defaultBottomAxisOptions,t.defaultLeftAxisOptions][this.side],E(c[this.coll],e)),w(this,"afterSetOptions",{userOptions:e})}defaultLabelFormatter(e){let t,n,r=this.axis,i=this.chart,{numberFormatter:o}=i,a=S(this.value)?this.value:NaN,s=r.chart.time,l=r.categories,u=this.dateTimeLabelFormat,d=c.lang,f=d.numericSymbols,h=d.numericSymbolMagnitude||1e3,p=r.logarithmic?Math.abs(a):r.tickInterval,m=f&&f.length;if(l)n="".concat(this.value);else if(u)n=s.dateFormat(u,a);else if(m&&p>=1e3)for(;m--&&void 0===n;)p>=(t=Math.pow(h,m+1))&&10*a%t==0&&null!==f[m]&&0!==a&&(n=o(a/t,-1)+f[m]);return void 0===n&&(n=Math.abs(a)>=1e4?o(a,-1):o(a,-1,void 0,"")),n}getSeriesExtremes(){let e,t=this;t.chart,w(this,"getSeriesExtremes",null,(function(){t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=null,t.softThreshold=!t.isXAxis,t.series.forEach((function(n){if(n.reserveSpace()){let r,i,o,a=n.options,s=a.threshold;if(t.hasVisibleSeries=!0,t.positiveValuesOnly&&s<=0&&(s=null),t.isXAxis)(r=n.xData)&&r.length&&(r=t.logarithmic?r.filter((e=>e>0)):r,i=(e=n.getXExtremes(r)).min,o=e.max,S(i)||i instanceof Date||(r=r.filter(S),i=(e=n.getXExtremes(r)).min,o=e.max),r.length&&(t.dataMin=Math.min(M(t.dataMin,i),i),t.dataMax=Math.max(M(t.dataMax,o),o)));else{let e=n.applyExtremes();S(e.dataMin)&&(i=e.dataMin,t.dataMin=Math.min(M(t.dataMin,i),i)),S(e.dataMax)&&(o=e.dataMax,t.dataMax=Math.max(M(t.dataMax,o),o)),g(s)&&(t.threshold=s),(!a.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1)}}}))})),w(this,"afterGetSeriesExtremes")}translate(e,t,n,r,i,o){let a=this.linkedParent||this,s=r&&a.old?a.old.min:a.min;if(!S(s))return NaN;let l=a.minPixelPadding,c=(a.isOrdinal||a.brokenAxis&&a.brokenAxis.hasBreaks||a.logarithmic&&i)&&a.lin2val,u=1,d=0,f=r&&a.old?a.old.transA:a.transA,h=0;if(f||(f=a.transA),n&&(u*=-1,d=a.len),a.reversed&&(u*=-1,d-=u*(a.sector||a.len)),t)h=(e=e*u+d-l)/f+s,c&&(h=a.lin2val(h));else{c&&(e=a.val2lin(e));let t=u*(e-s)*f;h=(a.isRadial?t:m(t))+d+u*l+(S(o)?f*o:0)}return h}toPixels(e,t){return this.translate(e,!1,!this.horiz,void 0,!0)+(t?0:this.pos)}toValue(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(e){let t,n,r,i,o,a=this,s=a.chart,l=a.left,c=a.top,u=e.old,d=e.value,f=e.lineWidth,h=u&&s.oldChartHeight||s.chartHeight,m=u&&s.oldChartWidth||s.chartWidth,g=a.transB,y=e.translatedValue,b=e.force;function v(e,t,n){return"pass"!==b&&(en)&&(b?e=p(e,t,n):o=!0),e}let _={value:d,lineWidth:f,old:u,force:b,acrossPanes:e.acrossPanes,translatedValue:y};return w(this,"getPlotLinePath",_,(function(e){t=r=Math.round((y=p(y=M(y,a.translate(d,void 0,void 0,u)),-1e5,1e5))+g),n=i=Math.round(h-y-g),S(y)?a.horiz?(n=c,i=h-a.bottom,t=r=v(t,l,l+a.width)):(t=l,r=m-a.right,n=i=v(n,c,c+a.height)):(o=!0,b=!1),e.path=o&&!b?void 0:s.renderer.crispLine([["M",t,n],["L",r,i]],f||1)})),_.path||null}getLinearTickPositions(e,t,n){let r,i,o,a=m(Math.floor(t/e)*e),s=m(Math.ceil(n/e)*e),l=[];if(m(a+e)===a&&(o=20),this.single)return[t];for(r=a;r<=s&&(l.push(r),(r=m(r+e,o))!==i);)i=r;return l}getMinorTickInterval(){let e=this.options;return!0===e.minorTicks?M(e.minorTickInterval,"auto"):!1===e.minorTicks?null:e.minorTickInterval}getMinorTickPositions(){let e,t=this.options,n=this.tickPositions,r=this.minorTickInterval,i=this.pointRangePadding||0,o=this.min-i,a=this.max+i,s=a-o,l=[];if(s&&s/r{var t;return(e.xIncrement?null===(t=e.xData)||void 0===t?void 0:t.slice(0,2):e.xData)||[]})))||0,this.minRange=Math.min(5*n,this.dataMax-this.dataMin))),c-l=this.minRange,e=((o=this.minRange)-c+l)/2,r=[l-e,M(a.min,l-e)],t&&(r[2]=s?s.log2lin(this.dataMin):this.dataMin),i=[(l=f(r))+o,M(a.max,l+o)],t&&(i[2]=s?s.log2lin(this.dataMax):this.dataMax),(c=h(i))-le-t)),e=x([n]))}return e&&t?Math.min(e,t):e||t}nameToX(e){let t,n=T(this.options.categories),r=n?this.categories:this.names,i=e.options.x;return e.series.requireSorting=!1,g(i)||(i=this.options.uniqueNames&&r?n?r.indexOf(e.name):M(r.keys[e.name],-1):e.series.autoIncrement()),-1===i?!n&&r&&(t=r.length):t=i,void 0!==t?(this.names[t]=e.name,this.names.keys[e.name]=t):e.x&&(t=e.x),t}updateNames(){let e=this,t=this.names;t.length>0&&(Object.keys(t.keys).forEach((function(e){delete t.keys[e]})),t.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(t){t.xIncrement=null,(!t.points||t.isDirtyData)&&(e.max=Math.max(e.max,t.xData.length-1),t.processData(),t.generatePoints()),t.data.forEach((function(n,r){let i;n&&n.options&&void 0!==n.name&&void 0!==(i=e.nameToX(n))&&i!==n.x&&(n.x=i,t.xData[r]=i)}))})))}setAxisTranslation(){let e,t,n=this,r=n.max-n.min,i=n.linkedParent,o=!!n.categories,a=n.isXAxis,s=n.axisPointRange||0,l=0,c=0,u=n.transA;(a||o||s)&&(e=n.getClosest(),i?(l=i.minPointOffset,c=i.pointRangePadding):n.series.forEach((function(t){let r=o?1:a?M(t.options.pointRange,e,0):n.axisPointRange||0,i=t.options.pointPlacement;if(s=Math.max(s,r),!n.single||o){let e=t.is("xrange")?!a:a;l=Math.max(l,e&&A(i)?0:r/2),c=Math.max(c,e&&"on"===i?0:r)}})),t=n.ordinal&&n.ordinal.slope&&e?n.ordinal.slope/e:1,n.minPointOffset=l*=t,n.pointRangePadding=c*=t,n.pointRange=Math.min(s,n.single&&o?1:r),a&&e&&(n.closestPointRange=e)),n.translationSlope=n.transA=u=n.staticScale||n.len/(r+c||1),n.transB=n.horiz?n.left:n.bottom,n.minPixelPadding=u*l,w(this,"afterSetAxisTranslation")}minFromRange(){return this.max-this.range}setTickInterval(e){let t,n,r,i,o,a,s=this.chart,l=this.logarithmic,c=this.options,u=this.isXAxis,d=this.isLinked,f=c.tickPixelInterval,h=this.categories,p=this.softThreshold,y=c.maxPadding,b=c.minPadding,_=S(c.tickInterval)&&c.tickInterval>=0?c.tickInterval:void 0,x=S(this.threshold)?this.threshold:null;if(this.dateTime||h||d||this.getTickAmount(),o=M(this.userMin,c.min),a=M(this.userMax,c.max),d?(this.linkedParent=s[this.coll][c.linkedTo],n=this.linkedParent.getExtremes(),this.min=M(n.min,n.dataMin),this.max=M(n.max,n.dataMax),c.type!==this.linkedParent.options.type&&v(11,1,s)):(p&&g(x)&&(this.dataMin>=x?(r=x,b=0):this.dataMax<=x&&(i=x,y=0)),this.min=M(o,r,this.dataMin),this.max=M(a,i,this.dataMax)),l&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,M(this.dataMin,this.min))&&v(10,1,s),this.min=m(l.log2lin(this.min),16),this.max=m(l.log2lin(this.max),16)),this.range&&g(this.max)&&(this.userMin=this.min=o=Math.max(this.dataMin,this.minFromRange()),this.userMax=a=this.max,this.range=null),w(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!S(this.userMin)&&S(c.softMin)&&c.softMinthis.max&&(this.max=a=c.softMax),!h&&!this.axisPointRange&&!(this.stacking&&this.stacking.usePercentage)&&!d&&g(this.min)&&g(this.max)&&(t=this.max-this.min)&&(!g(o)&&b&&(this.min-=t*b),!g(a)&&y&&(this.max+=t*y)),!S(this.userMin)&&S(c.floor)&&(this.min=Math.max(this.min,c.floor)),!S(this.userMax)&&S(c.ceiling)&&(this.max=Math.min(this.max,c.ceiling)),p&&g(this.dataMin)&&(x=x||0,!g(o)&&this.min=x?this.min=this.options.minRange?Math.min(x,this.max-this.minRange):x:!g(a)&&this.max>x&&this.dataMax<=x&&(this.max=this.options.minRange?Math.max(x,this.min+this.minRange):x)),S(this.min)&&S(this.max)&&!this.chart.polar&&this.min>this.max&&(g(this.options.min)?this.max=this.min:g(this.options.max)&&(this.min=this.max)),this.min===this.max||void 0===this.min||void 0===this.max?this.tickInterval=1:d&&this.linkedParent&&!_&&f===this.linkedParent.options.tickPixelInterval?this.tickInterval=_=this.linkedParent.tickInterval:this.tickInterval=M(_,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,h?1:(this.max-this.min)*f/Math.max(this.len,f)),u&&!e){let e=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(e)})),w(this,"postProcessData",{hasExtremesChanged:e})}this.setAxisTranslation(),w(this,"initialAxisTranslation"),this.pointRange&&!_&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let k=M(c.minTickInterval,this.dateTime&&!this.series.some((e=>e.noSharedTooltip))?this.closestPointRange:0);!_&&this.tickIntervalMath.max(2*this.len,200)))if(this.dateTime)c=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)c=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let e=this.tickInterval,t=e;for(;t<=2*e&&(c=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&c.length>this.tickAmount);)this.tickInterval=R(this,t*=1.1)}else c=[this.min,this.max],v(19,!1,this.chart);c.length>this.len&&(c=[c[0],c[c.length-1]])[0]===c[1]&&(c.length=1),r&&(this.tickPositions=c,(e=r.apply(this,[this.min,this.max]))&&(c=e))}this.tickPositions=c,this.paddedTicks=c.slice(0),this.trimTicks(c,s,l),!this.isLinked&&S(this.min)&&S(this.max)&&(this.single&&c.length<2&&!this.categories&&!this.series.some((e=>e.is("heatmap")&&"between"===e.options.pointPlacement))&&(this.min-=.5,this.max+=.5),n||e||this.adjustTickAmount()),w(this,"afterSetTickPositions")}trimTicks(e,t,n){let r=e[0],i=e[e.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(w(this,"trimTicks"),!this.isLinked){if(t&&r!==-1/0)this.min=r;else for(;this.min-o>e[0];)e.shift();if(n)this.max=i;else for(;this.max+o{let{horiz:t,options:n}=e;return[t?n.left:n.top,n.width,n.height,n.pane].join(",")},i=r(this);this.chart[this.coll].forEach((function(o){let{series:a}=o;a.length&&a.some((e=>e.visible))&&o!==t&&r(o)===i&&(e=!0,n.push(o))}))}if(e&&i){n.forEach((e=>{let n=e.getThresholdAlignment(t);S(n)&&o.push(n)}));let e=o.length>1?o.reduce(((e,t)=>e+t),0)/o.length:void 0;n.forEach((t=>{t.thresholdAlignment=e}))}return e}getThresholdAlignment(e){if((!S(this.dataMin)||this!==e&&this.series.some((e=>e.isDirty||e.isDirtyData)))&&this.getSeriesExtremes(),S(this.threshold)){let e=p((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}}getTickAmount(){let e=this.options,t=e.tickPixelInterval,n=e.tickAmount;g(e.tickInterval)||n||!(this.lenl.push(m(l[l.length-1]+h)),y=()=>l.unshift(m(l[0]-h));if(S(u)&&(n=u<.5?Math.ceil(u*(c-1)):Math.floor(u*(c-1)),s.reversed&&(n=c-1-n)),r.hasData()&&S(a)&&S(o)){let u=()=>{r.transA*=(d-1)/(c-1),r.min=s.startOnTick?l[0]:Math.min(a,l[0]),r.max=s.endOnTick?l[l.length-1]:Math.max(o,l[l.length-1])};if(S(n)&&S(r.threshold)){for(;l[n]!==f||l.length!==c||l[0]>a||l[l.length-1]r.threshold?y():p();if(h>8*r.tickInterval)break;h*=2}u()}else if(d0&&t{n=n||e.isDirtyData||e.isDirty,r=r||e.xAxis&&e.xAxis.isDirty||!1})),this.setAxisSize();let i=this.len!==(this.old&&this.old.len);i||n||r||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(t&&"yAxis"===e&&t.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),t&&"xAxis"===e&&t.buildStacks(),this.isDirty||(this.isDirty=i||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):t&&t.cleanStacks(),n&&this.panningState&&(this.panningState.isDirty=!0),w(this,"afterSetScale")}setExtremes(e,t,n,r,i){let o=this,a=o.chart;n=M(n,!0),o.series.forEach((function(e){delete e.kdTree})),w(o,"setExtremes",i=_(i,{min:e,max:t}),(function(){o.userMin=e,o.userMax=t,o.eventArgs=i,n&&a.redraw(r)}))}zoom(e,t){let n=this,r=this.dataMin,i=this.dataMax,o=this.options,a=Math.min(r,M(o.min,r)),s=Math.max(i,M(o.max,i)),l={newMin:e,newMax:t};return w(this,"zoom",l,(function(e){let t=e.newMin,o=e.newMax;(t!==n.min||o!==n.max)&&(!n.allowZoomOutside&&(g(r)&&(ts&&(t=s)),g(i)&&(os&&(o=s))),n.displayBtn=void 0!==t||void 0!==o,n.setExtremes(t,o,!1,void 0,{trigger:"zoom"})),e.zoomed=!0})),l.zoomed}setAxisSize(){let e=this.chart,t=this.options,n=t.offsets||[0,0,0,0],r=this.horiz,i=this.width=Math.round(P(M(t.width,e.plotWidth-n[3]+n[1]),e.plotWidth)),o=this.height=Math.round(P(M(t.height,e.plotHeight-n[0]+n[2]),e.plotHeight)),a=this.top=Math.round(P(M(t.top,e.plotTop+n[0]),e.plotHeight,e.plotTop)),s=this.left=Math.round(P(M(t.left,e.plotLeft+n[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-o-a,this.right=e.chartWidth-i-s,this.len=Math.max(r?i:o,0),this.pos=r?s:a}getExtremes(){let e=this.logarithmic;return{min:e?m(e.lin2log(this.min)):this.min,max:e?m(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(e){let t=this.logarithmic,n=t?t.lin2log(this.min):this.min,r=t?t.lin2log(this.max):this.max;return null===e||e===-1/0?e=n:e===1/0?e=r:n>e?e=n:r15&&t<165?e.align="right":t>195&&t<345&&(e.align="left")})),n.align}tickSize(e){let t,n=this.options,r=M(n["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),i=n["tick"===e?"tickLength":"minorTickLength"];r&&i&&("inside"===n[e+"Position"]&&(i=-i),t=[i,r]);let o={tickSize:t};return w(this,"afterTickSize",o),o.tickSize}labelMetrics(){let e=this.chart.renderer,t=this.ticks,n=t[Object.keys(t)[0]]||{};return this.chart.renderer.fontMetrics(n.label||n.movedLabel||e.box)}unsquish(){let e,t,n=this.options.labels,r=this.horiz,i=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/i),a=n.rotation,s=.75*this.labelMetrics().h,l=Math.max(this.max-this.min,0),c=function(e){let t=e/(o||1);return(t=t>1?Math.ceil(t):1)*i>l&&e!==1/0&&o!==1/0&&l&&(t=Math.ceil(l/i)),m(t*i)},u=i,f=Number.MAX_VALUE;if(r){if(!n.staggerLines&&(S(a)?t=[a]:o=-90&&i<=90)&&(r=(n=c(Math.abs(s/Math.sin(d*i))))+Math.abs(i/360))g&&(g=t.label.textPxLength)})),this.maxLabelLength=g,this.autoRotation)g>f&&g>p.h?h.rotation=this.labelRotation:this.labelRotation=0;else if(d&&(e=f,!m))for(t="clip",r=a.length;!u&&r--;)(n=s[a[r]].label)&&(n.styles&&"ellipsis"===n.styles.textOverflow?n.css({textOverflow:"clip"}):n.textPxLength>d&&n.css({width:d+"px"}),n.getBBox().height>this.len/a.length-(p.h-p.f)&&(n.specificTextOverflow="ellipsis"));h.rotation&&(e=g>.5*i.chartHeight?.33*i.chartHeight:g,m||(t="ellipsis")),this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(h.align=this.labelAlign),a.forEach((function(n){let r=s[n],i=r&&r.label,o=c.width,a={};i&&(i.attr(h),r.shortenLabel?r.shortenLabel():e&&!o&&"nowrap"!==c.whiteSpace&&(eh.g(e).attr({zIndex:n}).addClass("highcharts-".concat(d.toLowerCase()).concat(t," ")+(this.isRadial?"highcharts-radial-axis".concat(t," "):"")+(T||"")).add(f);i.gridGroup=e("grid","-grid",s.gridZIndex),i.axisGroup=e("axis","",s.zIndex),i.labelGroup=e("axis-labels","-labels",b.zIndex)}if(m||i.isLinked?(u.forEach((function(e){i.generateTick(e)})),i.renderUnsquish(),i.reserveSpaceDefault=0===l||2===l||{1:"left",3:"right"}[l]===i.labelAlign,M(b.reserveSpace,!v&&null,"center"===i.labelAlign||null,i.reserveSpaceDefault)&&u.forEach((function(e){C=Math.max(c[e].getLabelSize(),C)})),i.staggerLines&&(C*=i.staggerLines),i.labelOffset=C*(i.opposite?-1:1)):O(c,(function(e,t){e.destroy(),delete c[t]})),y&&y.text&&!1!==y.enabled&&(i.addTitle(e),e&&!v&&!1!==y.reserveSpace&&(i.titleOffset=A=i.axisTitle.getBBox()[a?"height":"width"],E=g(t=y.offset)?0:M(y.margin,a?5:10))),i.renderLine(),i.offset=k*M(s.offset,_[l]?_[l]+(s.margin||0):0),i.tickRotCorr=i.tickRotCorr||{x:0,y:0},r=0===l?-i.labelMetrics().h:2===l?i.tickRotCorr.y:0,n=Math.abs(C)+E,C&&(n-=r,n+=k*(a?M(b.y,i.tickRotCorr.y+k*b.distance):M(b.x,k*b.distance))),i.axisTitleMargin=M(t,n),i.getMaxLabelDimensions&&(i.maxLabelDimensions=i.getMaxLabelDimensions(c,u)),"colorAxis"!==d){let e=this.tickSize("tick");_[l]=Math.max(_[l],(i.axisTitleMargin||0)+A+k*i.offset,n,u&&u.length&&e?e[0]+k*i.offset:0);let t=!i.axisLine||s.offset?0:2*Math.floor(i.axisLine.strokeWidth()/2);x[p]=Math.max(x[p],t)}w(this,"afterGetOffset")}getLinePath(e){let t=this.chart,n=this.opposite,r=this.offset,i=this.horiz,o=this.left+(n?this.width:0)+r,a=t.chartHeight-this.bottom-(n?this.height:0)+r;return n&&(e*=-1),t.renderer.crispLine([["M",i?this.left:o,i?a:this.top],["L",i?t.chartWidth-this.right:o,i?a:t.chartHeight-this.bottom]],e)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(e){let t=this.horiz,n=this.left,r=this.top,i=this.len,o=this.options.title,a=t?n:r,s=this.opposite,l=this.offset,c=o.x,u=o.y,d=this.chart.renderer.fontMetrics(e),f=e?Math.max(e.getBBox(!1,0).height-d.h-1,0):0,h={low:a+(t?0:i),middle:a+i/2,high:a+(t?i:0)}[o.align],p=(t?r+this.height:n)+(t?1:-1)*(s?-1:1)*(this.axisTitleMargin||0)+[-f,f,d.f,-f][this.side],m={x:t?h+c:p+(s?this.width:0)+l+c,y:t?p+u-(s?this.height:0)+l:h+u};return w(this,"afterGetTitlePosition",{titlePosition:m}),m}renderMinorTick(e,t){let n=this.minorTicks;n[e]||(n[e]=new a(this,e,"minor")),t&&n[e].isNew&&n[e].render(null,!0),n[e].render(null,!1,1)}renderTick(e,t,n){let r=this.isLinked,i=this.ticks;(!r||e>=this.min&&e<=this.max||this.grid&&this.grid.isColumn)&&(i[e]||(i[e]=new a(this,e)),n&&i[e].isNew&&i[e].render(t,!0,-1),i[e].render(t))}render(){let e,t,n=this,r=n.chart,i=n.logarithmic,s=r.renderer,c=n.options,u=n.isLinked,d=n.tickPositions,f=n.axisTitle,h=n.ticks,p=n.minorTicks,m=n.alternateBands,g=c.stackLabels,y=c.alternateGridColor,b=c.crossing,v=n.tickmarkOffset,_=n.axisLine,x=n.showAxis,k=l(s.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[h,p,m].forEach((function(e){O(e,(function(e){e.isActive=!1}))})),S(b)){let e=this.isXAxis?r.yAxis[0]:r.xAxis[0],t=[1,-1,-1,1][this.side];if(e){let r=e.toPixels(b,!0);n.horiz&&(r=e.len-r),n.offset=t*r}}if(n.hasData()||u){let s=n.chart.hasRendered&&n.old&&S(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach((function(e){n.renderMinorTick(e,s)})),d.length&&(d.forEach((function(e,t){n.renderTick(e,t,s)})),v&&(0===n.min||n.single)&&(h[-1]||(h[-1]=new a(n,-1,null,!0)),h[-1].render(-1))),y&&d.forEach((function(a,s){t=void 0!==d[s+1]?d[s+1]+v:n.max-v,s%2==0&&a=.5)e=Math.round(e),c=a.getLinearTickPositions(e,t,n);else if(e>=.08){let r,i,a,s,l,u,d;for(r=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],i=Math.floor(t);it&&(!o||u<=n)&&void 0!==u&&c.push(u),u>n&&(d=!0),u=l}else{let u=this.lin2log(t),d=this.lin2log(n),f=o?a.getMinorTickInterval():l.tickInterval,h="auto"===f?null:f,p=l.tickPixelInterval/(o?5:1),m=o?s/a.tickPositions.length:s;e=r(e=i(h,this.minorAutoInterval,(d-u)*p/(m||1))),c=a.getLinearTickPositions(e,u,d).map(this.log2lin),o||(this.minorAutoInterval=e/5)}return o||(a.tickInterval=e),c}lin2log(e){return Math.pow(10,e)}log2lin(e){return Math.log(e)/Math.LN10}}t.Additions=l}(t||(t={})),t})),n(t,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[t["Core/Utilities.js"]],(function(e){var t;let{erase:n,extend:r,isNumber:i}=e;return function(t){let o,a=[];function s(e){return this.addPlotBandOrLine(e,"plotBands")}function l(e,t){let n=this.userOptions,r=new o(this,e);if(this.visible&&(r=r.render()),r){if(this._addedPlotLB||(this._addedPlotLB=!0,(n.plotLines||[]).concat(n.plotBands||[]).forEach((e=>{this.addPlotBandOrLine(e)}))),t){let r=n[t]||[];r.push(e),n[t]=r}this.plotLinesAndBands.push(r)}return r}function c(e){return this.addPlotBandOrLine(e,"plotLines")}function u(e,t,n){n=n||this.options;let r,o,a=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),s=[],l=this.horiz,c=!i(this.min)||!i(this.max)||ethis.max&&t>this.max,u=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),d=1;if(u&&a)for(c&&(o=u.toString()===a.toString(),d=0),r=0;r0&&n.height>0&&!x.isFlat?(g=l({align:r&&k&&"center",x:r?!k&&4:10,verticalAlign:!r&&k&&"middle",y:r?k?16:10:k?6:-4,rotation:r&&!k&&90},g),this.renderLabel(g,x,k,f)):y&&y.hide(),t}renderLabel(e,t,i,o){let a=this.axis,s=a.chart.renderer,c=this.label;c||(this.label=c=s.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(e.className||""),zIndex:o}),a.chart.styledMode||c.css(l({fontSize:"0.8em",textOverflow:"ellipsis"},e.style)),c.add());let u=t.xBounds||[t[0][1],t[1][1],i?t[2][1]:t[0][1]],d=t.yBounds||[t[0][2],t[1][2],i?t[2][2]:t[0][2]],f=r(u),h=r(d);if(c.align(e,!1,{x:f,y:h,width:n(u)-f,height:n(d)-h}),!c.alignValue||"left"===c.alignValue){let t=e.clip?a.width:a.chart.chartWidth;c.css({width:(90===c.rotation?a.height-(c.alignAttr.y-a.top):t-(c.alignAttr.x-a.left))+"px"})}c.show(!0)}getLabelText(e){return i(e.formatter)?e.formatter.call(this):e.text}destroy(){a(this.axis.plotLinesAndBands,this),delete this.axis,o(this)}}return d})),n(t,"Core/Tooltip.js",[t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i){let{format:o}=e,{doc:a,isSafari:s}=t,{distribute:l}=n,{addEvent:c,clamp:u,css:d,discardElement:f,extend:h,fireEvent:p,isArray:m,isNumber:g,isString:y,merge:b,pick:v,splat:_,syncTimeout:w}=i;class x{constructor(e,t){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=e,this.init(e,t)}bodyFormatter(e){return e.map((function(e){let t=e.series.tooltipOptions;return(t[(e.point.formatPrefix||"point")+"Formatter"]||e.point.tooltipFormatter).call(e.point,t[(e.point.formatPrefix||"point")+"Format"]||"")}))}cleanSplit(e){this.chart.series.forEach((function(t){let n=t&&t.tt;n&&(!n.isActive||e?t.tt=n.destroy():n.isActive=!1)}))}defaultFormatter(e){let t,n=this.points||_(this);return(t=(t=[e.tooltipFooterHeaderFormatter(n[0])]).concat(e.bodyFormatter(n))).push(e.tooltipFooterHeaderFormatter(n[0],!0)),t}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),f(this.container)),i.clearTimeout(this.hideTimer),i.clearTimeout(this.tooltipTimeout)}getAnchor(e,t){let n,r=this.chart,i=r.pointer,o=r.inverted,a=r.plotTop,s=r.plotLeft;if((e=_(e))[0].series&&e[0].series.yAxis&&!e[0].series.yAxis.options.reversedStacks&&(e=e.slice().reverse()),this.followPointer&&t)void 0===t.chartX&&(t=i.normalize(t)),n=[t.chartX-s,t.chartY-a];else if(e[0].tooltipPos)n=e[0].tooltipPos;else{let r=0,i=0;e.forEach((function(e){let t=e.pos(!0);t&&(r+=t[0],i+=t[1])})),r/=e.length,i/=e.length,this.shared&&e.length>1&&t&&(o?r=t.chartX:i=t.chartY),n=[r-s,i-a]}return n.map(Math.round)}getClassName(e,t,n){let r=this.options,i=e.series,o=i.options;return[r.className,"highcharts-label",n&&"highcharts-tooltip-header",t?"highcharts-tooltip-box":"highcharts-tooltip",!n&&"highcharts-color-"+v(e.colorIndex,i.colorIndex),o&&o.className].filter(y).join(" ")}getLabel(){let e=this,n=this.chart.styledMode,i=this.options,o=this.split&&this.allowShared,a=this.container,s=this.chart.renderer;if(this.label){let e=!this.label.hasClass("highcharts-label");(!o&&e||o&&!e)&&this.destroy()}if(!this.label){if(this.outside){let e=this.chart.options.chart.style,n=r.getRendererType();this.container=a=t.doc.createElement("div"),a.className="highcharts-tooltip-container",d(a,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(e&&e.zIndex||0)+3)}),this.renderer=s=new n(a,0,0,e,void 0,void 0,s.styledMode)}if(o?this.label=s.g("tooltip"):(this.label=s.label("",0,0,i.shape,void 0,void 0,i.useHTML,void 0,"tooltip").attr({padding:i.padding,r:i.borderRadius}),n||this.label.attr({fill:i.backgroundColor,"stroke-width":i.borderWidth||0}).css(i.style).css({pointerEvents:i.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),e.outside){let t=this.label,{xSetter:n,ySetter:r}=t;t.xSetter=function(r){n.call(t,e.distance),a&&(a.style.left=r+"px")},t.ySetter=function(n){r.call(t,e.distance),a&&(a.style.top=n+"px")}}this.label.attr({zIndex:8}).shadow(i.shadow).add()}return a&&!a.parentElement&&t.doc.body.appendChild(a),this.label}getPlayingField(){let{body:e,documentElement:t}=a,{chart:n,distance:r,outside:i}=this;return{width:i?Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)-2*r:n.chartWidth,height:i?Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight):n.chartHeight}}getPosition(e,t,n){let r,i=this.chart,o=this.distance,a={},s=i.inverted&&n.h||0,l=this.outside,c=this.getPlayingField(),u=c.width,d=c.height,f=i.pointer.getChartPosition(),h=e=>e*f.scaleX,p=e=>e*f.scaleY,m=r=>{let a="x"===r;return[r,a?u:d,a?e:t].concat(l?[a?h(e):p(t),a?f.left-o+h(n.plotX+i.plotLeft):f.top-o+p(n.plotY+i.plotTop),0,a?u:d]:[a?e:t,a?n.plotX+i.plotLeft:n.plotY+i.plotTop,a?i.plotLeft:i.plotTop,a?i.plotLeft+i.plotWidth:i.plotTop+i.plotHeight])},g=m("y"),y=m("x"),b=!!n.negative;!i.polar&&i.hoverSeries&&i.hoverSeries.yAxis&&i.hoverSeries.yAxis.reversed&&(b=!b);let _=!this.followPointer&&v(n.ttBelow,!i.inverted===b),w=function(e,t,n,r,i,c,u){let d=l?"y"===e?p(o):h(o):o,f=(n-r)/2,m=rt?b:b+s)}},x=function(e,t,n,r,i){let s;return it-o?s=!1:a[e]=it-r/2?t-r-2:i-n/2,s},k=function(e){let t=g;g=y,y=t,r=e},T=function(){!1!==w.apply(0,g)?!1!==x.apply(0,y)||r||(k(!0),T()):r?a.x=a.y=0:(k(!0),T())};return(i.inverted||this.len>1)&&k(),T(),a}hide(e){let t=this;i.clearTimeout(this.hideTimer),e=v(e,this.options.hideDelay),this.isHidden||(this.hideTimer=w((function(){let n=t.getLabel();t.getLabel().animate({opacity:0},{duration:e?150:e,complete:()=>{n.hide(),t.container&&t.container.remove()}}),t.isHidden=!0}),e))}init(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=t.split&&!e.inverted&&!e.polar,this.shared=t.shared||this.split,this.outside=v(t.outside,!(!e.scrollablePixelsX&&!e.scrollablePixelsY))}shouldStickOnContact(e){return!(this.followPointer||!this.options.stickOnContact||e&&!this.chart.pointer.inClass(e.target,"highcharts-tooltip"))}move(e,t,n,r){let o=this,a=o.now,s=!1!==o.options.animation&&!o.isHidden&&(Math.abs(e-a.x)>1||Math.abs(t-a.y)>1),l=o.followPointer||o.len>1;h(a,{x:s?(2*a.x+e)/3:e,y:s?(a.y+t)/2:t,anchorX:l?void 0:s?(2*a.anchorX+n)/3:n,anchorY:l?void 0:s?(a.anchorY+r)/2:r}),o.getLabel().attr(a),o.drawTracker(),s&&(i.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){o&&o.move(e,t,n,r)}),32))}refresh(e,t){let n=this.chart,r=this.options,a=n.pointer,s=_(e),l=s[0],c=[],u=r.format,d=r.formatter||this.defaultFormatter,f=this.shared,h=n.styledMode,g={};if(!r.enabled||!l.series)return;i.clearTimeout(this.hideTimer),this.allowShared=!(!m(e)&&e.series&&e.series.noSharedTooltip),this.followPointer=!this.split&&l.series.tooltipOptions.followPointer;let b=this.getAnchor(e,t),w=b[0],x=b[1];f&&this.allowShared?(a.applyInactiveState(s),s.forEach((function(e){e.setState("hover"),c.push(e.getLabelConfig())})),(g=l.getLabelConfig()).points=c):g=l.getLabelConfig(),this.len=c.length;let k=y(u)?o(u,g,n):d.call(g,this),T=l.series;if(this.distance=v(T.tooltipOptions.distance,16),!1===k)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(k,s);else{let e=w,i=x;if(t&&a.isDirectTouch&&(e=t.chartX-n.plotLeft,i=t.chartY-n.plotTop),!n.polar&&!1!==T.options.clip&&!s.some((t=>a.isDirectTouch||t.series.shouldShowTooltip(e,i))))return void this.hide();{let e=this.getLabel();(!r.style.width||h)&&e.css({width:(this.outside?this.getPlayingField():n.spacingBox).width+"px"}),e.attr({text:k&&k.join?k.join(""):k}),e.addClass(this.getClassName(l),!0),h||e.attr({stroke:r.borderColor||l.color||T.color||"#666666"}),this.updatePosition({plotX:w,plotY:x,negative:l.negative,ttBelow:l.ttBelow,h:b[2]||0})}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}p(this,"refresh")}renderSplit(e,t){let n=this,{chart:r,chart:{chartWidth:i,chartHeight:o,plotHeight:c,plotLeft:d,plotTop:f,pointer:p,scrollablePixelsY:m=0,scrollablePixelsX:g,scrollingContainer:{scrollLeft:b,scrollTop:_}={scrollLeft:0,scrollTop:0},styledMode:w},distance:x,options:k,options:{positioner:T}}=n,S=n.outside&&"number"!=typeof g?a.documentElement.getBoundingClientRect():{left:b,right:b+i,top:_,bottom:_+o},A=n.getLabel(),E=this.renderer||r.renderer,C=!(!r.xAxis[0]||!r.xAxis[0].opposite),{left:O,top:M}=p.getChartPosition(),P=f+_,I=0,N=c-m;function j(e,t,r,i){let o,a,s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return r?(o=C?0:N,a=u(e-i/2,S.left,S.right-i-(n.outside?O:0))):(o=t-P,a=u(a=s?e-i-x:e+x,s?a:S.left,S.right)),{x:a,y:o}}y(e)&&(e=[!1,e]);let R=e.slice(0,t.length+1).reduce((function(e,r,i){if(!1!==r&&""!==r){let o=t[i-1]||{isHeader:!0,plotX:t[0].plotX,plotY:c,series:{}},a=o.isHeader,s=a?n:o.series,l=s.tt=function(e,t,r){let i=e,{isHeader:o,series:a}=t;if(!i){var s;let e={padding:k.padding,r:k.borderRadius};w||(e.fill=k.backgroundColor,e["stroke-width"]=null!==(s=k.borderWidth)&&void 0!==s?s:1),i=E.label("",0,0,k[o?"headerShape":"shape"],void 0,void 0,k.useHTML).addClass(n.getClassName(t,!0,o)).attr(e).add(A)}return i.isActive=!0,i.attr({text:r}),w||i.css(k.style).attr({stroke:k.borderColor||t.color||a.color||"#333333"}),i}(s.tt,o,r.toString()),h=l.getBBox(),p=h.width+l.strokeWidth();a&&(I=h.height,N+=I,C&&(P-=I));let{anchorX:m,anchorY:g}=function(e){let t,n,{isHeader:r,plotX:i=0,plotY:o=0,series:a}=e;if(r)t=Math.max(d+i,d),n=f+c/2;else{let{xAxis:e,yAxis:r}=a;t=e.pos+u(i,-x,e.len+x),a.shouldShowTooltip(0,r.pos-f+o,{ignoreX:!0})&&(n=r.pos+o)}return{anchorX:t=u(t,S.left-x,S.right+x),anchorY:n}}(o);if("number"==typeof g){let t=h.height+1,r=T?T.call(n,p,t,o):j(m,g,a,p);e.push({align:T?0:void 0,anchorX:m,anchorY:g,boxWidth:p,point:o,rank:v(r.rank,a?1:0),size:t,target:r.y,tt:l,x:r.x})}else l.isActive=!1}return e}),[]);!T&&R.some((e=>{let{outside:t}=n,r=(t?O:0)+e.anchorX;return rr}))&&(R=R.map((e=>{let{x:t,y:n}=j(e.anchorX,e.anchorY,e.point.isHeader,e.boxWidth,!1);return h(e,{target:n,x:t})}))),n.cleanSplit(),l(R,N);let B={left:O,right:O};R.forEach((function(e){let{x:t,boxWidth:r,isHeader:i}=e;!i&&(n.outside&&O+tB.right&&(B.right=O+t))})),R.forEach((function(e){let{x:t,anchorX:r,anchorY:i,pos:o,point:{isHeader:a}}=e,s={visibility:void 0===o?"hidden":"inherit",x:t,y:(o||0)+P,anchorX:r,anchorY:i};if(n.outside&&t0&&(a||(s.x=t+e,s.anchorX=r+e),a&&(s.x=(B.right-B.left)/2,s.anchorX=r+e))}e.tt.attr(s)}));let{container:F,outside:D,renderer:L}=n;if(D&&F&&L){let{width:e,height:t,x:n,y:r}=A.getBBox();L.setSize(e+n,t+r,!1),F.style.left=B.left+"px",F.style.top=M+"px"}s&&A.attr({opacity:1===A.opacity?.999:1})}drawTracker(){if(!this.shouldStickOnContact())return void(this.tracker&&(this.tracker=this.tracker.destroy()));let e=this.chart,t=this.label,n=this.shared?e.hoverPoints:e.hoverPoint;if(!t||!n)return;let r={x:0,y:0,width:0,height:0},i=this.getAnchor(n),o=t.getBBox();i[0]+=e.plotLeft-(t.translateX||0),i[1]+=e.plotTop-(t.translateY||0),r.x=Math.min(0,i[0]),r.y=Math.min(0,i[1]),r.width=i[0]<0?Math.max(Math.abs(i[0]),o.width-i[0]):Math.max(Math.abs(i[0]),o.width),r.height=i[1]<0?Math.max(Math.abs(i[1]),o.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),o.height),this.tracker?this.tracker.attr(r):(this.tracker=t.renderer.rect(r).addClass("highcharts-tracker").add(t),e.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(e){return e.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(e,t){let n=e.series,r=n.tooltipOptions,i=n.xAxis,a=i&&i.dateTime,s={isFooter:t,labelConfig:e},l=r.xDateFormat,c=r[t?"footerFormat":"headerFormat"];return p(this,"headerFormatter",s,(function(t){a&&!l&&g(e.key)&&(l=a.getXDateFormat(e.key,r.dateTimeLabelFormats)),a&&l&&(e.point&&e.point.tooltipDateKeys||["key"]).forEach((function(e){c=c.replace("{point."+e+"}","{point."+e+":"+l+"}")})),n.chart.styledMode&&(c=this.styledModeFormat(c)),t.text=o(c,{point:e,series:n},this.chart)})),s.text}update(e){this.destroy(),this.init(this.chart,b(!0,this.options,e))}updatePosition(e){let t,{chart:n,container:r,distance:i,options:o,renderer:a}=this,{height:s=0,width:l=0}=this.getLabel(),c=n.pointer,{left:u,top:f,scaleX:h,scaleY:p}=c.getChartPosition(),m=(o.positioner||this.getPosition).call(this,l,s,e),g=(e.plotX||0)+n.plotLeft,y=(e.plotY||0)+n.plotTop;a&&r&&(o.positioner&&(m.x+=u-i,m.y+=f-i),t=(o.borderWidth||0)+2*i+2,a.setSize(l+t,s+t,!1),(1!==h||1!==p)&&(d(r,{transform:"scale(".concat(h,", ").concat(p,")")}),g*=h,y*=p),g+=u-m.x,y+=f-m.y),this.move(Math.round(m.x),Math.round(m.y||0),g,y)}}return function(e){let t=[];e.compose=function(n){i.pushUnique(t,n)&&c(n,"afterInit",(function(){let t=this.chart;t.options.tooltip&&(t.tooltip=new e(t,t.options.tooltip))}))}}(x||(x={})),x})),n(t,"Core/Series/Point.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Animation/AnimationUtilities.js"],t["Core/Defaults.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i){let{animObject:o}=t,{defaultOptions:a}=n,{format:s}=r,{addEvent:l,defined:c,erase:u,extend:d,fireEvent:f,getNestedProperty:h,isArray:p,isFunction:m,isNumber:g,isObject:y,merge:b,objectEach:v,pick:_,syncTimeout:w,removeEvent:x,uniqueKey:k}=i;class T{constructor(){this.category=void 0,this.destroyed=!1,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.name=void 0,this.options=void 0,this.percentage=void 0,this.selected=!1,this.series=void 0,this.shapeArgs=void 0,this.total=void 0,this.visible=!0,this.x=void 0}animateBeforeDestroy(){let e=this,t={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach((function(n){e[n]=e[n].animate("dataLabel"===n?{x:e[n].startXPos,y:e[n].startYPos,opacity:0}:t)})),n.plural.forEach((function(t){e[t].forEach((function(t){t.element&&t.animate(d({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))}))}))}applyOptions(e,t){let n=this.series,r=n.options.pointValKey||n.pointValKey;return d(this,e=T.prototype.optionsToObject.call(this,e)),this.options=this.options?d(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,r&&(this.y=T.prototype.getNestedProperty.call(this,r)),this.selected&&(this.state="select"),"name"in this&&void 0===t&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),void 0===this.x&&n?this.x=void 0===t?n.autoIncrement():t:g(e.x)&&n.options.relativeXValue&&(this.x=n.autoIncrement(e.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let e=this,t=e.series,n=t.chart,r=t.options.dataSorting,i=n.hoverPoints,a=e.series.chart.renderer.globalAnimation,s=o(a),l=()=>{for(let t in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(x(e),e.destroyElements()),e)delete e[t]};e.legendItem&&n.legend.destroyItem(e),i&&(e.setState(),u(i,e),i.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),r&&r.enabled?(this.animateBeforeDestroy(),w(l,s.duration)):l(),n.pointCount--}this.destroyed=!0}destroyElements(e){let t=this,n=t.getGraphicalProps(e);n.singular.forEach((function(e){t[e]=t[e].destroy()})),n.plural.forEach((function(e){t[e].forEach((function(e){e&&e.element&&e.destroy()})),delete t[e]}))}firePointEvent(e,t,n){let r=this,i=this.series.options;(i.point.events[e]||r.options&&r.options.events&&r.options.events[e])&&r.importEvents(),"click"===e&&i.allowPointSelect&&(n=function(e){!r.destroyed&&r.select&&r.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),f(r,e,t,n)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){let t,n,r=this,i=[],o={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&i.push("graphic","connector"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper"),n=i.length;n--;)r[t=i[n]]&&o.singular.push(t);return["graphic","dataLabel"].forEach((function(t){let n=t+"s";e[t]&&r[n]&&o.plural.push(n)})),o}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(e){return e?0===e.indexOf("custom.")?h(e,this.options):this[e]:void 0}getZone(){let e,t=this.series,n=t.zones,r=t.zoneAxis||"y",i=0;for(e=n[0];this[r]>=e.value;)e=n[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),e&&e.color&&!this.options.color?this.color=e.color:this.color=this.nonZonedColor,e}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}init(e,t,n){return this.series=e,this.applyOptions(t,n),this.id=c(this.id)?this.id:k(),this.resolveColor(),e.chart.pointCount++,f(this,"afterInit"),this}isValid(){return(g(this.x)||this.x instanceof Date)&&g(this.y)}optionsToObject(e){let t,n=this.series,r=n.options.keys,i=r||n.pointArrayMap||["y"],o=i.length,a={},s=0,l=0;if(g(e)||null===e)a[i[0]]=e;else if(p(e))for(!r&&e.length>o&&("string"==(t=typeof e[0])?a.name=e[0]:"number"===t&&(a.x=e[0]),s++);l0?T.prototype.setNestedProperty(a,e[s],i[l]):a[i[l]]=e[s]),s++,l++;else"object"==typeof e&&(a=e,e.dataLabels&&(n.hasDataLabels=()=>!0),e.marker&&(n._hasPointMarkers=!0));return a}pos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.plotY;if(!this.destroyed){let{plotX:n,series:r}=this,{chart:i,xAxis:o,yAxis:a}=r,s=0,l=0;if(g(n)&&g(t))return e&&(s=o?o.pos:i.plotLeft,l=a?a.pos:i.plotTop),i.inverted&&o&&a?[a.len-t+l,o.len-n+s]:[n+s,t+l]}}resolveColor(){let e,t,n,r=this.series,i=r.chart.options.chart,o=r.chart.styledMode,a=i.colorCount;delete this.nonZonedColor,r.options.colorByPoint?(o||(e=(t=r.options.colors||r.chart.options.colors)[r.colorCounter],a=t.length),n=r.colorCounter,r.colorCounter++,r.colorCounter===a&&(r.colorCounter=0)):(o||(e=r.color),n=r.colorIndex),this.colorIndex=_(this.options.colorIndex,n),this.color=_(this.options.color,e)}setNestedProperty(e,t,n){return n.split(".").reduce((function(e,n,r,i){let o=i.length-1===r;return e[n]=o?t:y(e[n],!0)?e[n]:{},e[n]}),e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){let t=this.series,n=t.tooltipOptions,r=_(n.valueDecimals,""),i=n.valuePrefix||"",o=n.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach((function(t){t="{point."+t,(i||o)&&(e=e.replace(RegExp(t+"}","g"),i+t+"}"+o)),e=e.replace(RegExp(t+"}","g"),t+":,."+r+"f}")})),s(e,{point:this,series:this.series},t.chart)}update(e,t,n,r){let i,o=this,a=o.series,s=o.graphic,l=a.chart,c=a.options;function u(){o.applyOptions(e);let r=s&&o.hasMockGraphic,u=null===o.y?!r:r;s&&u&&(o.graphic=s.destroy(),delete o.hasMockGraphic),y(e,!0)&&(s&&s.element&&e&&e.marker&&void 0!==e.marker.symbol&&(o.graphic=s.destroy()),null!==e&&void 0!==e&&e.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy())),i=o.index,a.updateParallelArrays(o,i),c.data[i]=y(c.data[i],!0)||y(e,!0)?o.options:_(e,c.data[i]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===c.legendType&&(l.isDirtyLegend=!0),t&&l.redraw(n)}t=_(t,!0),!1===r?u():o.firePointEvent("update",{options:e},u)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){let n=this,r=n.series,i=r.chart;e=_(e,!n.selected),this.selectedStaging=e,n.firePointEvent(e?"select":"unselect",{accumulate:t},(function(){n.selected=n.options.selected=e,r.options.data[r.data.indexOf(n)]=n.options,n.setState(e&&"select"),t||i.getSelectedPoints().forEach((function(e){let t=e.series;e.selected&&e!==n&&(e.selected=e.options.selected=!1,t.options.data[t.data.indexOf(e)]=e.options,e.setState(i.hoverPoints&&t.options.inactiveOtherPoints?"inactive":""),e.firePointEvent("unselect"))}))})),delete this.selectedStaging}onMouseOver(e){let t=this.series.chart,n=t.pointer;e=e?n.normalize(e):n.getChartCoordinatesFromPoint(this,t.inverted),n.runPointActions(e,this)}onMouseOut(){let e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach((function(e){e.setState()})),e.hoverPoints=e.hoverPoint=null}importEvents(){if(!this.hasImportedEvents){let e=this,t=b(e.series.options.point,e.options).events;e.events=t,v(t,(function(t,n){m(t)&&l(e,n,t)})),this.hasImportedEvents=!0}}setState(t,n){let r,i,o,s,l=this.series,c=this.state,u=l.options.states[t||"normal"]||{},h=a.plotOptions[l.type].marker&&l.options.marker,p=h&&!1===h.enabled,m=h&&h.states&&h.states[t||"normal"]||{},y=!1===m.enabled,b=this.marker||{},v=l.chart,w=h&&l.markerAttribs,x=l.halo,k=l.stateMarkerGraphic;if((t=t||"")===this.state&&!n||this.selected&&"select"!==t||!1===u.enabled||t&&(y||p&&!1===m.enabled)||t&&b.states&&b.states[t]&&!1===b.states[t].enabled)return;if(this.state=t,w&&(r=l.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(c&&this.graphic.removeClass("highcharts-point-"+c),t&&this.graphic.addClass("highcharts-point-"+t),!v.styledMode){i=l.pointAttribs(this,t),o=_(v.options.chart.animation,u.animation);let e=i.opacity;l.options.inactiveOtherPoints&&g(e)&&(this.dataLabels||[]).forEach((function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&(t.animate({opacity:e},o),t.connector&&t.connector.animate({opacity:e},o))})),this.graphic.animate(i,o)}r&&this.graphic.animate(r,_(v.options.chart.animation,m.animation,h.animation)),k&&k.hide()}else t&&m&&(s=b.symbol||l.symbol,k&&k.currentSymbol!==s&&(k=k.destroy()),r&&(k?k[n?"animate":"attr"]({x:r.x,y:r.y}):s&&(l.stateMarkerGraphic=k=v.renderer.symbol(s,r.x,r.y,r.width,r.height).add(l.markerGroup),k.currentSymbol=s)),!v.styledMode&&k&&"inactive"!==this.state&&k.attr(l.pointAttribs(this,t))),k&&(k[t&&this.isInside?"show":"hide"](),k.element.point=this,k.addClass(this.getClassName(),!0));let T=u.halo,S=this.graphic||k,A=S&&S.visibility||"inherit";T&&T.size&&S&&"hidden"!==A&&!this.isCluster?(x||(l.halo=x=v.renderer.path().add(S.parentGroup)),x.show()[n?"animate":"attr"]({d:this.haloPath(T.size)}),x.attr({class:"highcharts-halo highcharts-color-"+_(this.colorIndex,l.colorIndex)+(this.className?" "+this.className:""),visibility:A,zIndex:-1}),x.point=this,v.styledMode||x.attr(d({fill:this.color||l.color,"fill-opacity":T.opacity},e.filterUserAttributes(T.attributes||{})))):x&&x.point&&x.point.haloPath&&x.animate({d:x.point.haloPath(0)},null,x.hide),f(this,"afterSetState",{state:t})}haloPath(e){let t=this.pos();return t?this.series.chart.renderer.symbols.circle(Math.floor(t[0])-e,t[1]-e,2*e,2*e):[]}}return T})),n(t,"Core/Pointer.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t,n){let{parse:r}=e,{charts:i,noop:o}=t,{addEvent:a,attr:s,css:l,defined:c,extend:u,find:d,fireEvent:f,isNumber:h,isObject:p,objectEach:m,offset:g,pick:y,splat:b}=n;class v{constructor(e,t){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=e,this.hasDragged=!1,this.options=t,this.init(e,t)}applyInactiveState(e){let t,n=[];(e||[]).forEach((function(e){t=e.series,n.push(t),t.linkedParent&&n.push(t.linkedParent),t.linkedSeries&&(n=n.concat(t.linkedSeries)),t.navigatorSeries&&n.push(t.navigatorSeries)})),this.chart.series.forEach((function(e){-1===n.indexOf(e)?e.setState("inactive",!0):e.options.inactiveOtherPoints&&e.setAllPointsToState("inactive")}))}destroy(){let e=this;this.eventsToUnbind.forEach((e=>e())),this.eventsToUnbind=[],!t.chartCount&&(v.unbindDocumentMouseUp&&(v.unbindDocumentMouseUp=v.unbindDocumentMouseUp()),v.unbindDocumentTouchEnd&&(v.unbindDocumentTouchEnd=v.unbindDocumentTouchEnd())),clearInterval(e.tooltipTimeout),m(e,(function(t,n){e[n]=void 0}))}getSelectionMarkerAttrs(e,t){let n={args:{chartX:e,chartY:t},attrs:{},shapeType:"rect"};return f(this,"getSelectionMarkerAttrs",n,(n=>{let r,{chart:i,mouseDownX:o=0,mouseDownY:a=0,zoomHor:s,zoomVert:l}=this,c=n.attrs;c.x=i.plotLeft,c.y=i.plotTop,c.width=s?1:i.plotWidth,c.height=l?1:i.plotHeight,s&&(r=e-o,c.width=Math.abs(r),c.x=(r>0?0:r)+o),l&&(r=t-a,c.height=Math.abs(r),c.y=(r>0?0:r)+a)})),n}drag(e){let t,n=this.chart,i=n.options.chart,o=n.plotLeft,a=n.plotTop,s=n.plotWidth,l=n.plotHeight,c=this.mouseDownX||0,u=this.mouseDownY||0,d=p(i.panning)?i.panning&&i.panning.enabled:i.panning,f=i.panKey&&e[i.panKey+"Key"],h=e.chartX,m=e.chartY,g=this.selectionMarker;if((!g||!g.touch)&&(ho+s&&(h=o+s),ma+l&&(m=a+l),this.hasDragged=Math.sqrt(Math.pow(c-h,2)+Math.pow(u-m,2)),this.hasDragged>10)){t=n.isInsidePlot(c-o,u-a,{visiblePlotOnly:!0});let{shapeType:s,attrs:l}=this.getSelectionMarkerAttrs(h,m);(n.hasCartesianSeries||n.mapView)&&(this.zoomX||this.zoomY)&&t&&!f&&!g&&(this.selectionMarker=g=n.renderer[s](),g.attr({class:"highcharts-selection-marker",zIndex:7}).add(),n.styledMode||g.attr({fill:i.selectionMarkerFill||r("#334eff").setOpacity(.25).get()})),g&&g.attr(l),t&&!g&&d&&n.pan(e,i.panning)}}dragStart(e){let t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=this.mouseDownX=e.chartX,t.mouseDownY=this.mouseDownY=e.chartY}getSelectionBox(e){let t={args:{marker:e},result:{}};return f(this,"getSelectionBox",t,(t=>{t.result={x:e.attr?+e.attr("x"):e.x,y:e.attr?+e.attr("y"):e.y,width:e.attr?e.attr("width"):e.width,height:e.attr?e.attr("height"):e.height}})),t.result}drop(e){let t=this,n=this.chart,r=this.hasPinched;if(this.selectionMarker){let{x:i,y:o,width:a,height:s}=this.getSelectionBox(this.selectionMarker),l={originalEvent:e,xAxis:[],yAxis:[],x:i,y:o,width:a,height:s},d=!!n.mapView;(this.hasDragged||r)&&(n.axes.forEach((function(n){if(n.zoomEnabled&&c(n.min)&&(r||t[{xAxis:"zoomX",yAxis:"zoomY"}[n.coll]])&&h(i)&&h(o)&&h(a)&&h(s)){let t=n.horiz,r="touchend"===e.type?n.minPixelPadding:0,c=n.toValue((t?i:o)+r),u=n.toValue((t?i+a:o+s)-r);l[n.coll].push({axis:n,min:Math.min(c,u),max:Math.max(c,u)}),d=!0}})),d&&f(n,"selection",l,(function(e){n.zoom(u(e,r?{animation:!1}:null))}))),h(n.index)&&(this.selectionMarker=this.selectionMarker.destroy()),r&&this.scaleGroups()}n&&h(n.index)&&(l(n.container,{cursor:n._cursor}),n.cancelClick=+this.hasDragged>10,n.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(e,t,n){let r;return e.forEach((function(e){let i=!(e.noSharedTooltip&&t)&&0>e.options.findNearestPointBy.indexOf("y"),o=e.searchPoint(n,i);p(o,!0)&&o.series&&(!p(r,!0)||function(e,n){let r=e.distX-n.distX,i=e.dist-n.dist,o=(n.series.group&&n.series.group.zIndex)-(e.series.group&&e.series.group.zIndex);return 0!==r&&t?r:0!==i?i:0!==o?o:e.series.index>n.series.index?-1:1}(r,o)>0)&&(r=o)})),r}getChartCoordinatesFromPoint(e,t){let n=e.series,r=n.xAxis,i=n.yAxis,o=e.shapeArgs;if(r&&i){let n=y(e.clientX,e.plotX),a=e.plotY||0;return e.isNode&&o&&h(o.x)&&h(o.y)&&(n=o.x,a=o.y),t?{chartX:i.len+i.pos-a,chartY:r.len+r.pos-n}:{chartX:n+r.pos,chartY:a+i.pos}}if(o&&o.x&&o.y)return{chartX:o.x,chartY:o.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:e}=this.chart,t=g(e);this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1};let n=e.offsetWidth,r=e.offsetHeight;return n>2&&r>2&&(this.chartPosition.scaleX=t.width/n,this.chartPosition.scaleY=t.height/r),this.chartPosition}getCoordinates(e){let t={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(n){t[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(e[n.horiz?"chartX":"chartY"])})})),t}getHoverData(e,t,n,r,i,o){let a,s=[],l=function(e){return e.visible&&!(!i&&e.directTouch)&&y(e.options.enableMouseTracking,!0)},c=t,u={chartX:o?o.chartX:void 0,chartY:o?o.chartY:void 0,shared:i};f(this,"beforeGetHoverData",u),a=c&&!c.stickyTracking?[c]:n.filter((e=>e.stickyTracking&&(u.filter||l)(e)));let h=r&&e||!o?e:this.findNearestKDPoint(a,i,o);return c=h&&h.series,h&&(i&&!c.noSharedTooltip?(a=n.filter((function(e){return u.filter?u.filter(e):l(e)&&!e.noSharedTooltip}))).forEach((function(e){let t=d(e.points,(function(e){return e.x===h.x&&!e.isNull}));p(t)&&(e.boosted&&e.boost&&(t=e.boost.getPoint(t)),s.push(t))})):s.push(h)),f(this,"afterGetHoverData",u={hoverPoint:h}),{hoverPoint:u.hoverPoint,hoverSeries:c,hoverPoints:s}}getPointFromEvent(e){let t,n=e.target;for(;n&&!t;)t=n.point,n=n.parentNode;return t}onTrackerMouseOut(e){let t=this.chart,n=e.relatedTarget,r=t.hoverSeries;this.isDirectTouch=!1,!r||!n||r.stickyTracking||this.inClass(n,"highcharts-tooltip")||this.inClass(n,"highcharts-series-"+r.index)&&this.inClass(n,"highcharts-tracker")||r.onMouseOut()}inClass(e,t){let n,r=e;for(;r;){if(n=s(r,"class")){if(-1!==n.indexOf(t))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}r=r.parentElement}}init(e,t){this.options=t,this.chart=e,this.runChartClick=!(!t.chart.events||!t.chart.events.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),f(this,"afterInit")}normalize(e,t){let n=e.touches,r=n?n.length?n.item(0):y(n.changedTouches,e.changedTouches)[0]:e;t||(t=this.getChartPosition());let i=r.pageX-t.left,o=r.pageY-t.top;return u(e,{chartX:Math.round(i/=t.scaleX),chartY:Math.round(o/=t.scaleY)})}onContainerClick(e){let t=this.chart,n=t.hoverPoint,r=this.normalize(e),i=t.plotLeft,o=t.plotTop;!t.cancelClick&&(n&&this.inClass(r.target,"highcharts-tracker")?(f(n.series,"click",u(r,{point:n})),t.hoverPoint&&n.firePointEvent("click",r)):(u(r,this.getCoordinates(r)),t.isInsidePlot(r.chartX-i,r.chartY-o,{visiblePlotOnly:!0})&&f(t,"click",r)))}onContainerMouseDown(e){let n=1==(1&(e.buttons||e.button));e=this.normalize(e),t.isFirefox&&0!==e.button&&this.onContainerMouseMove(e),(void 0===e.button||n)&&(this.zoomOption(e),n&&e.preventDefault&&e.preventDefault(),this.dragStart(e))}onContainerMouseLeave(e){let t=i[y(v.hoverChartIndex,-1)];e=this.normalize(e),this.onContainerMouseMove(e),t&&e.relatedTarget&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(t.pointer.reset(),t.pointer.chartPosition=void 0)}onContainerMouseEnter(e){delete this.chartPosition}onContainerMouseMove(e){let t=this.chart,n=t.tooltip,r=this.normalize(e);this.setHoverChartIndex(e),("mousedown"===t.mouseIsDown||this.touchSelect(r))&&this.drag(r),!t.openMenu&&(this.inClass(r.target,"highcharts-tracker")||t.isInsidePlot(r.chartX-t.plotLeft,r.chartY-t.plotTop,{visiblePlotOnly:!0}))&&(!n||!n.shouldStickOnContact(r))&&(this.inClass(r.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(r))}onDocumentTouchEnd(e){let t=i[y(v.hoverChartIndex,-1)];t&&t.pointer.drop(e)}onContainerTouchMove(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)}onContainerTouchStart(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))}onDocumentMouseMove(e){let t=this.chart,n=t.tooltip,r=this.chartPosition,i=this.normalize(e,r);!r||t.isInsidePlot(i.chartX-t.plotLeft,i.chartY-t.plotTop,{visiblePlotOnly:!0})||n&&n.shouldStickOnContact(i)||this.inClass(i.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(e){let t=i[y(v.hoverChartIndex,-1)];t&&t.pointer.drop(e)}pinch(e){let t=this,n=t.chart,r=t.pinchDown,i=e.touches||[],a=i.length,s=t.lastValidTouch,l=t.hasZoom,c={},d=1===a&&(t.inClass(e.target,"highcharts-tracker")&&n.runTrackerClick||t.runChartClick),h={},p=t.chart.tooltip,m=1===a&&y(p&&p.options.followTouchMove,!0),g=t.selectionMarker;a>1?t.initiated=!0:m&&(t.initiated=!1),l&&t.initiated&&!d&&!1!==e.cancelable&&e.preventDefault(),[].map.call(i,(function(e){return t.normalize(e)})),"touchstart"===e.type?([].forEach.call(i,(function(e,t){r[t]={chartX:e.chartX,chartY:e.chartY}})),s.x=[r[0].chartX,r[1]&&r[1].chartX],s.y=[r[0].chartY,r[1]&&r[1].chartY],n.axes.forEach((function(e){if(e.zoomEnabled){let t=n.bounds[e.horiz?"h":"v"],r=e.minPixelPadding,i=e.toPixels(Math.min(y(e.options.min,e.dataMin),e.dataMin)),o=e.toPixels(Math.max(y(e.options.max,e.dataMax),e.dataMax)),a=Math.min(i,o),s=Math.max(i,o);t.min=Math.min(e.pos,a-r),t.max=Math.max(e.pos+e.len,s+r)}})),t.res=!0):m?this.runPointActions(t.normalize(e)):r.length&&(f(n,"touchpan",{originalEvent:e},(()=>{g||(t.selectionMarker=g=u({destroy:o,touch:!0},n.plotBox)),t.pinchTranslate(r,i,c,g,h,s),t.hasPinched=l,t.scaleGroups(c,h)})),t.res&&(t.res=!1,this.reset(!1,0)))}pinchTranslate(e,t,n,r,i,o){this.zoomHor&&this.pinchTranslateDirection(!0,e,t,n,r,i,o),this.zoomVert&&this.pinchTranslateDirection(!1,e,t,n,r,i,o)}pinchTranslateDirection(e,t,n,r,i,o,a,s){let l,c,u,d,f=this.chart,h=e?"x":"y",p=e?"X":"Y",m="chart"+p,g=e?"width":"height",y=f["plot"+(e?"Left":"Top")],b=f.inverted,v=f.bounds[e?"h":"v"],_=1===t.length,w=t[0][m],x=!_&&t[1][m],k=function(){"number"==typeof A&&Math.abs(w-x)>20&&(T=s||Math.abs(S-A)/Math.abs(w-x)),u=(y-S)/T+w,l=f["plot"+(e?"Width":"Height")]/T},T=s||1,S=n[0][m],A=!_&&n[1][m];k(),(c=u)v.max&&(c=v.max-l,d=!0),d?(S-=.8*(S-a[h][0]),"number"==typeof A&&(A-=.8*(A-a[h][1])),k()):a[h]=[S,A],b||(o[h]=u-y,o[g]=l);let E=b?e?"scaleY":"scaleX":"scale"+p,C=b?1/T:T;i[g]=l,i[h]=c,r[E]=T*(b&&!e?-1:1),r["translate"+p]=C*y+(S-C*w)}reset(e,t){let n=this.chart,r=n.hoverSeries,i=n.hoverPoint,o=n.hoverPoints,a=n.tooltip,s=a&&a.shared?o:i;e&&s&&b(s).forEach((function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)})),e?a&&s&&b(s).length&&(a.refresh(s),a.shared&&o?o.forEach((function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))})):i&&(i.setState(i.state,!0),n.axes.forEach((function(e){e.crosshair&&i.series[e.coll]===e&&e.drawCrosshair(null,i)})))):(i&&i.onMouseOut(),o&&o.forEach((function(e){e.setState()})),r&&r.onMouseOut(),a&&a.hide(t),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach((function(e){e.hideCrosshair()})),this.hoverX=n.hoverPoints=n.hoverPoint=null)}runPointActions(e,t,n){let r=this.chart,o=r.series,s=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,l=!!s&&s.shared,c=t||r.hoverPoint,u=c&&c.series||r.hoverSeries,f=(!e||"touchmove"!==e.type)&&(!!t||u&&u.directTouch&&this.isDirectTouch),h=this.getHoverData(c,u,o,f,l,e);c=h.hoverPoint,u=h.hoverSeries;let p=h.hoverPoints,m=u&&u.tooltipOptions.followPointer&&!u.tooltipOptions.split,g=l&&u&&!u.noSharedTooltip;if(c&&(n||c!==r.hoverPoint||s&&s.isHidden)){if((r.hoverPoints||[]).forEach((function(e){-1===p.indexOf(e)&&e.setState()})),r.hoverSeries!==u&&u.onMouseOver(),this.applyInactiveState(p),(p||[]).forEach((function(e){e.setState("hover")})),r.hoverPoint&&r.hoverPoint.firePointEvent("mouseOut"),!c.series)return;r.hoverPoints=p,r.hoverPoint=c,c.firePointEvent("mouseOver",void 0,(()=>{s&&c&&s.refresh(g?p:c,e)}))}else if(m&&s&&!s.isHidden){let t=s.getAnchor([{}],e);r.isInsidePlot(t[0],t[1],{visiblePlotOnly:!0})&&s.updatePosition({plotX:t[0],plotY:t[1]})}this.unDocMouseMove||(this.unDocMouseMove=a(r.container.ownerDocument,"mousemove",(function(e){let t=i[v.hoverChartIndex];t&&t.pointer.onDocumentMouseMove(e)})),this.eventsToUnbind.push(this.unDocMouseMove)),r.axes.forEach((function(t){let n,i=y((t.crosshair||{}).snap,!0);!i||(n=r.hoverPoint)&&n.series[t.coll]===t||(n=d(p,(e=>e.series&&e.series[t.coll]===t))),n||!i?t.drawCrosshair(e,n):t.hideCrosshair()}))}scaleGroups(e,t){let n=this.chart;n.series.forEach((function(r){let i=e||r.getPlotBox("series");r.group&&(r.xAxis&&r.xAxis.zoomEnabled||n.mapView)&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(e||r.getPlotBox("marker")),r.markerGroup.clip(t?n.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))})),n.clipRect.attr(t||n.clipBox)}setDOMEvents(){let e=this.chart.container,n=e.ownerDocument;e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(a(e,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(a(e,"mouseleave",this.onContainerMouseLeave.bind(this))),v.unbindDocumentMouseUp||(v.unbindDocumentMouseUp=a(n,"mouseup",this.onDocumentMouseUp.bind(this)));let r=this.chart.renderTo.parentElement;for(;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(a(r,"scroll",(()=>{delete this.chartPosition}))),r=r.parentElement;t.hasTouch&&(this.eventsToUnbind.push(a(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(a(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),v.unbindDocumentTouchEnd||(v.unbindDocumentTouchEnd=a(n,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(e){let n=this.chart,r=t.charts[y(v.hoverChartIndex,-1)];r&&r!==n&&r.pointer.onContainerMouseLeave(e||{relatedTarget:n.container}),r&&r.mouseIsDown||(v.hoverChartIndex=n.index)}touch(e,t){let n,r,i=this.chart;this.setHoverChartIndex(),1===e.touches.length?(e=this.normalize(e),i.isInsidePlot(e.chartX-i.plotLeft,e.chartY-i.plotTop,{visiblePlotOnly:!0})&&!i.openMenu?(t&&this.runPointActions(e),"touchmove"===e.type&&(n=!!(r=this.pinchDown)[0]&&Math.sqrt(Math.pow(r[0].chartX-e.chartX,2)+Math.pow(r[0].chartY-e.chartY,2))>=4),y(n,!0)&&this.pinch(e)):t&&this.reset()):2===e.touches.length&&this.pinch(e)}touchSelect(e){return!(!this.chart.zooming.singleTouch||!e.touches||1!==e.touches.length)}zoomOption(e){let t,n,r=this.chart,i=(r.options.chart,r.inverted),o=r.zooming.type||"";/touch/.test(e.type)&&(o=y(r.zooming.pinchType,o)),this.zoomX=t=/x/.test(o),this.zoomY=n=/y/.test(o),this.zoomHor=t&&!i||n&&i,this.zoomVert=n&&!i||t&&i,this.hasZoom=t||n}}return function(e){let t=[],r=[];e.compose=function(t){n.pushUnique(r,t)&&a(t,"beforeRender",(function(){this.pointer=new e(this,this.options)}))},e.dissolve=function(){for(let e=0,n=t.length;e{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(e){let t=_(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=v(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=_(e.symbolWidth,16),this.pages=[],this.proximate="proximate"===e.layout&&!this.chart.inverted,this.baseline=void 0}update(e,t){let n=this.chart;this.setOptions(v(!0,this.options,e)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,_(t,!0)&&n.redraw(),y(this,"afterUpdate",{redraw:t})}colorizeItem(e,t){let{group:n,label:r,line:i,symbol:o}=e.legendItem||{};if(n&&n[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:n}=this,a=n.color,s=t&&e.color||a,l=e.options&&e.options.marker,c={fill:s};null!==r&&void 0!==r&&r.css(v(t?this.itemStyle:n)),null!==i&&void 0!==i&&i.attr({stroke:s}),o&&(l&&o.isMarker&&(c=e.pointAttribs(),t||(c.stroke=c.fill=a)),o.attr(c))}y(this,"afterColorizeItem",{item:e,visible:t})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){let{group:t,x:n=0,y:r=0}=e.legendItem||{},i=this.options,o=i.symbolPadding,a=!i.rtl,s=e.checkbox;if(t&&t.element){let i={translateX:a?n:this.legendWidth-n-2*o-4,translateY:r};t[p(t.translateY)?"animate":"attr"](i,void 0,(()=>{y(this,"afterPositionItem",{item:e})}))}s&&(s.x=n,s.y=r)}destroyItem(e){let t=e.checkbox,n=e.legendItem||{};for(let r of["group","label","line","symbol"])n[r]&&(n[r]=n[r].destroy());t&&m(t),e.legendItem=void 0}destroy(){for(let e of this.getAllItems())this.destroyItem(e);for(let e of["clipRect","up","down","pager","nav","box","title","group"])this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){let e,t=this.group&&this.group.alignAttr,n=this.clipHeight||this.legendHeight,r=this.titleHeight;t&&(e=t.translateY,this.allItems.forEach((function(i){let o,a=i.checkbox;a&&(o=e+r+a.y+(this.scrollOffset||0)+3,h(a,{left:t.translateX+i.checkboxOffset+a.x-20+"px",top:o+"px",display:this.proximate||o>e-6&&o1.5*k?x.height:k))}layoutItem(e){let t=this.options,n=this.padding,r="horizontal"===t.layout,i=e.itemHeight,o=this.itemMarginBottom,a=this.itemMarginTop,s=r?_(t.itemDistance,20):0,l=this.maxLegendWidth,c=t.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:e.itemWidth,u=e.legendItem||{};r&&this.itemX-n+c>l&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=a+this.itemY+o,this.lastLineHeight=Math.max(i,this.lastLineHeight),u.x=this.itemX,u.y=this.itemY,r?this.itemX+=c:(this.itemY+=a+i+o,this.lastLineHeight=i),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(e.checkbox?0:s):c)+n,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach((function(t){let n=t&&t.options;t&&_(n.showInLegend,!p(n.linkedTo)&&void 0,!0)&&(e=e.concat((t.legendItem||{}).labels||("point"===n.legendType?t.data:t)))})),y(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){let e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,t){let n=this.chart,r=this.options,i=this.getAlignment();i&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(o,a){o.test(i)&&!p(e[a])&&(n[c[a]]=Math.max(n[c[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*r[a%2?"x":"y"]+_(r.margin,12)+t[a]+(n.titleOffset[a]||0)))}))}proximatePositions(){let e,t=this.chart,n=[],r="left"===this.options.align;for(let i of(this.allItems.forEach((function(e){let i,o,a,s,l=r;e.yAxis&&(e.xAxis.options.reversed&&(l=!l),e.points&&(i=g(l?e.points:e.points.slice(0).reverse(),(function(e){return b(e.plotY)}))),o=this.itemMarginTop+e.legendItem.label.getBBox().height+this.itemMarginBottom,s=e.yAxis.top-t.plotTop,a=e.visible?(i?i.plotY:e.yAxis.height)+(s-.3*o):s+e.yAxis.height,n.push({target:a,size:o,item:e}))}),this),u(n,t.plotHeight)))e=i.item.legendItem||{},b(i.pos)&&(e.y=t.plotTop-t.spacing[0]+i.pos)}render(){let e,t,n,r,i=this.chart,o=i.renderer,a=this.options,s=this.padding,l=this.getAllItems(),c=this.group,u=this.box;this.itemX=s,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=w(a.width,i.spacingBox.width-s),r=i.spacingBox.width-2*s-a.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(r/=2),this.maxLegendWidth=this.widthOption||r,c||(this.group=c=o.g("legend").addClass(a.className||"").attr({zIndex:7}).add(),this.contentGroup=o.g().attr({zIndex:1}).add(c),this.scrollGroup=o.g().add(this.contentGroup)),this.renderTitle(),x(l,((e,t)=>(e.options&&e.options.legendIndex||0)-(t.options&&t.options.legendIndex||0))),a.reversed&&l.reverse(),this.allItems=l,this.display=e=!!l.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),t=(this.widthOption||this.offsetWidth)+s,n=this.lastItemY+this.lastLineHeight+this.titleHeight,n=this.handleOverflow(n)+s,u||(this.box=u=o.rect().addClass("highcharts-legend-box").attr({r:a.borderRadius}).add(c)),i.styledMode||u.attr({stroke:a.borderColor,"stroke-width":a.borderWidth||0,fill:a.backgroundColor||"none"}).shadow(a.shadow),t>0&&n>0&&u[u.placed?"animate":"attr"](u.crisp.call({},{x:0,y:0,width:t,height:n},u.strokeWidth())),c[e?"show":"hide"](),i.styledMode&&"none"===c.getStyle("display")&&(t=n=0),this.legendWidth=t,this.legendHeight=n,e&&this.align(),this.proximate||this.positionItems(),y(this,"afterRender")}align(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chart.spacingBox,t=this.chart,n=this.options,r=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&t.titleOffset[0]>0?r+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&t.titleOffset[2]>0&&(r-=t.titleOffset[2]),r!==e.y&&(e=v(e,{y:r})),t.hasRendered||(this.group.placed=!1),this.group.align(v(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,e)}handleOverflow(e){let t,n,r,i=this,o=this.chart,a=o.renderer,s=this.options,l=s.y,c="top"===s.verticalAlign,u=this.padding,d=s.maxHeight,f=s.navigation,h=_(f.animation,!0),p=f.arrowSize||12,m=this.pages,g=this.allItems,y=function(e){"number"==typeof e?x.attr({height:e}):x&&(i.clipRect=x.destroy(),i.contentGroup.clip()),i.contentGroup.div&&(i.contentGroup.div.style.clip=e?"rect("+u+"px,9999px,"+(u+e)+"px,0)":"auto")},b=function(e){return i[e]=a.circle(0,0,1.3*p).translate(p/2,p/2).add(w),o.styledMode||i[e].attr("fill","rgba(0,0,0,0.0001)"),i[e]},v=o.spacingBox.height+(c?-l:l)-u,w=this.nav,x=this.clipRect;return"horizontal"!==s.layout||"middle"===s.verticalAlign||s.floating||(v/=2),d&&(v=Math.min(v,d)),m.length=0,e&&v>0&&e>v&&!1!==f.enabled?(this.clipHeight=t=Math.max(v-20-this.titleHeight-u,0),this.currentPage=_(this.currentPage,1),this.fullHeight=e,g.forEach(((e,i)=>{r=e.legendItem||{};let o=r.y||0,a=Math.round(r.label.getBBox().height),s=m.length;(!s||o-m[s-1]>t&&(n||o)!==m[s-1])&&(m.push(n||o),s++),r.pageIx=s-1,n&&((g[i-1].legendItem||{}).pageIx=s-1),i===g.length-1&&o+a-m[s-1]>t&&o>m[s-1]&&(m.push(o),r.pageIx=s),o!==n&&(n=o)})),x||(x=i.clipRect=a.clipRect(0,u-2,9999,0),i.contentGroup.clip(x)),y(t),w||(this.nav=w=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,p,p).add(w),b("upTracker").on("click",(function(){i.scroll(-1,h)})),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),!o.styledMode&&f.style&&this.pager.css(f.style),this.pager.add(w),this.down=a.symbol("triangle-down",0,0,p,p).add(w),b("downTracker").on("click",(function(){i.scroll(1,h)}))),i.scroll(0),e=v):w&&(y(),this.nav=w.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){let n=this.chart,r=this.pages,i=r.length,o=this.clipHeight,l=this.options.navigation,c=this.pager,u=this.padding,d=this.currentPage+e;if(d>i&&(d=i),d>0){void 0!==t&&s(t,n),this.nav.attr({translateX:u,translateY:o+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach((function(e){e.attr({class:1===d?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),c.attr({text:d+"/"+i}),[this.down,this.downTracker].forEach((function(e){e.attr({x:18+this.pager.getBBox().width,class:d===i?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),n.styledMode||(this.up.attr({fill:1===d?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===d?"default":"pointer"}),this.down.attr({fill:d===i?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:d===i?"default":"pointer"})),this.scrollOffset=-r[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes();let e=a(_(t,n.renderer.globalAnimation,!0));k((()=>{y(this,"afterScroll",{currentPage:d})}),e.duration)}}setItemEvents(e,t,n){let i=this,o=e.legendItem||{},a=i.chart.renderer.boxWrapper,s=e instanceof r,l="highcharts-legend-"+(s?"point":"series")+"-active",c=i.chart.styledMode,u=n?[t,o.symbol]:[o.group],d=t=>{i.allItems.forEach((n=>{e!==n&&[n].concat(n.linkedSeries||[]).forEach((e=>{e.setState(t,!s)}))}))};for(let r of u)r&&r.on("mouseover",(function(){e.visible&&d("inactive"),e.setState("hover"),e.visible&&a.addClass(l),c||t.css(i.options.itemHoverStyle)})).on("mouseout",(function(){i.chart.styledMode||t.css(v(e.visible?i.itemStyle:i.itemHiddenStyle)),d(""),a.removeClass(l),e.setState()})).on("click",(function(t){let n="legendItemClick",r=function(){e.setVisible&&e.setVisible(),d(e.visible?"inactive":"")};a.removeClass(l),t={browserEvent:t},e.firePointEvent?e.firePointEvent(n,t,r):y(e,n,t,r)}))}createCheckboxForItem(e){e.checkbox=f("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),d(e.checkbox,"click",(function(t){let n=t.target;y(e.series||e,"checkboxClick",{checked:n.checked,item:e},(function(){e.select()}))}))}}return function(e){let t=[];e.compose=function(n){o.pushUnique(t,n)&&d(n,"beforeMargins",(function(){this.legend=new e(this,this.options.legend)}))}}(T||(T={})),T})),n(t,"Core/Legend/LegendSymbol.js",[t["Core/Utilities.js"]],(function(e){var t,n;let{extend:r,merge:i,pick:o}=e;return(n=t||(t={})).lineMarker=function(e,t){let n,a=this.legendItem=this.legendItem||{},s=this.options,l=e.symbolWidth,c=e.symbolHeight,u=this.symbol||"circle",d=c/2,f=this.chart.renderer,h=a.group,p=e.baseline-Math.round(.3*e.fontMetrics.b),m={},g=s.marker,y=0;if(this.chart.styledMode||(m={"stroke-width":Math.min(s.lineWidth||0,24)},s.dashStyle?m.dashstyle=s.dashStyle:"square"===s.linecap||(m["stroke-linecap"]="round")),a.line=f.path().addClass("highcharts-graph").attr(m).add(h),m["stroke-linecap"]&&(y=Math.min(a.line.strokeWidth(),l)/2),l&&a.line.attr({d:[["M",y,p],["L",l-y,p]]}),g&&!1!==g.enabled&&l){let e=Math.min(o(g.radius,d),d);0===u.indexOf("url")&&(g=i(g,{width:c,height:c}),e=0),a.symbol=n=f.symbol(u,l/2-e,p-e,2*e,2*e,r({context:"legend"},g)).addClass("highcharts-point").add(h),n.isMarker=!0}},n.rectangle=function(e,t){let n=t.legendItem||{},r=e.options,i=e.symbolHeight,a=r.squareSymbol,s=a?i:e.symbolWidth;n.symbol=this.chart.renderer.rect(a?(e.symbolWidth-i)/2:0,e.baseline-i+1,s,i,o(e.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(n.group)},t})),n(t,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:e}=this.series.chart;return"number"!=typeof this.y?"":e(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}})),n(t,"Core/Series/SeriesRegistry.js",[t["Core/Globals.js"],t["Core/Defaults.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],(function(e,t,n,r){var i;let{defaultOptions:o}=t,{extendClass:a,merge:s}=r;return function(t){function r(e,r){let i=o.plotOptions||{},a=r.defaultOptions,s=r.prototype;s.type=e,s.pointClass||(s.pointClass=n),a&&(i[e]=a),t.seriesTypes[e]=r}t.seriesTypes=e.seriesTypes,t.registerSeriesType=r,t.seriesType=function(e,i,l,c,u){let d=o.plotOptions||{};return i=i||"",d[e]=s(d[i],l),r(e,a(t.seriesTypes[i]||function(){},c)),t.seriesTypes[e].prototype.type=e,u&&(t.seriesTypes[e].prototype.pointClass=a(n,u)),t.seriesTypes[e]}}(i||(i={})),i})),n(t,"Core/Series/Series.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Defaults.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i,o,a,s,l,c){let{animObject:u,setAnimation:d}=e,{defaultOptions:f}=t,{registerEventOptions:h}=n,{hasTouch:p,svg:m,win:g}=r,{seriesTypes:y}=s,{addEvent:b,arrayMax:v,arrayMin:_,clamp:w,correctFloat:x,defined:k,diffObjects:T,erase:S,error:A,extend:E,find:C,fireEvent:O,getClosestDistance:M,getNestedProperty:P,insertItem:I,isArray:N,isNumber:j,isString:R,merge:B,objectEach:F,pick:D,removeEvent:L,splat:U,syncTimeout:z}=c;class W{constructor(){this._i=void 0,this.chart=void 0,this.data=void 0,this.eventOptions=void 0,this.eventsToUnbind=void 0,this.index=void 0,this.linkedSeries=void 0,this.options=void 0,this.points=void 0,this.processedXData=void 0,this.processedYData=void 0,this.tooltipOptions=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zones=void 0}init(e,t){let n;O(this,"init",{options:t});let r=this,i=e.series;this.eventsToUnbind=[],r.chart=e,r.options=r.setOptions(t);let o=r.options,a=!1!==o.visible;r.linkedSeries=[],r.bindAxes(),E(r,{name:o.name,state:"",visible:a,selected:!0===o.selected}),h(this,o);let s=o.events;(s&&s.click||o.point&&o.point.events&&o.point.events.click||o.allowPointSelect)&&(e.runTrackerClick=!0),r.getColor(),r.getSymbol(),r.parallelArrays.forEach((function(e){r[e+"Data"]||(r[e+"Data"]=[])})),r.isCartesian&&(e.hasCartesianSeries=!0),i.length&&(n=i[i.length-1]),r._i=D(n&&n._i,-1)+1,r.opacity=r.options.opacity,e.orderItems("series",I(this,i)),o.dataSorting&&o.dataSorting.enabled?r.setDataSortingOptions():r.points||r.data||r.setData(o.data,!1),O(this,"afterInit")}is(e){return y[e]&&this instanceof y[e]}bindAxes(){let e,t=this,n=t.options,r=t.chart;O(this,"bindAxes",null,(function(){(t.axisTypes||[]).forEach((function(i){r[i].forEach((function(r){e=r.options,(D(n[i],0)===r.index||void 0!==n[i]&&n[i]===e.id)&&(I(t,r.series),t[i]=r,r.isDirty=!0)})),t[i]||t.optionalAxis===i||A(18,!0,r)}))})),O(this,"afterBindAxes")}updateParallelArrays(e,t,n){let r=e.series,i=j(t)?function(n){let i="y"===n&&r.toYData?r.toYData(e):e[n];r[n+"Data"][t]=i}:function(e){Array.prototype[t].apply(r[e+"Data"],n)};r.parallelArrays.forEach(i)}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(e,t){let n=e.marker,r=t.marker||{};return n&&(r.enabled&&!n.enabled||r.symbol!==n.symbol||r.height!==n.height||r.width!==n.width)}autoIncrement(e){let t,n,r=this.options,i=r.pointIntervalUnit,o=r.relativeXValue,a=this.chart.time,s=this.xIncrement;return s=D(s,r.pointStart,0),this.pointInterval=n=D(this.pointInterval,r.pointInterval,1),o&&j(e)&&(n*=e),i&&(t=new a.Date(s),"day"===i?a.set("Date",t,a.get("Date",t)+n):"month"===i?a.set("Month",t,a.get("Month",t)+n):"year"===i&&a.set("FullYear",t,a.get("FullYear",t)+n),n=t.getTime()-s),o&&j(e)?s+n:(this.xIncrement=s+n,s)}setDataSortingOptions(){let e=this.options;E(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),k(e.pointRange)||(e.pointRange=1)}setOptions(e){var t,n;let r,i=this.chart,o=i.options.plotOptions,a=i.userOptions||{},s=B(e),l=i.styledMode,c={plotOptions:o,userOptions:s};O(this,"setOptions",c);let u=c.plotOptions[this.type],d=a.plotOptions||{},h=d.series||{},p=f.plotOptions[this.type]||{},m=d[this.type]||{};this.userOptions=c.userOptions;let g=B(u,o.series,m,s);this.tooltipOptions=B(f.tooltip,null===(t=f.plotOptions.series)||void 0===t?void 0:t.tooltip,null===p||void 0===p?void 0:p.tooltip,i.userOptions.tooltip,null===(n=d.series)||void 0===n?void 0:n.tooltip,m.tooltip,s.tooltip),this.stickyTracking=D(s.stickyTracking,m.stickyTracking,h.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||g.stickyTracking),null===u.marker&&delete g.marker,this.zoneAxis=g.zoneAxis;let y=this.zones=(g.zones||[]).slice();return(g.negativeColor||g.negativeFillColor)&&!g.zones&&(r={value:g[this.zoneAxis+"Threshold"]||g.threshold||0,className:"highcharts-negative"},l||(r.color=g.negativeColor,r.fillColor=g.negativeFillColor),y.push(r)),y.length&&k(y[y.length-1].value)&&y.push(l?{}:{color:this.color,fillColor:this.fillColor}),O(this,"afterSetOptions",{options:g}),g}getName(){return D(this.options.name,"Series "+(this.index+1))}getCyclic(e,t,n){let r,i,o=this.chart,a="".concat(e,"Index"),s="".concat(e,"Counter"),l=(null===n||void 0===n?void 0:n.length)||o.options.chart.colorCount;!t&&(k(i=D("color"===e?this.options.colorIndex:void 0,this[a]))?r=i:(o.series.length||(o[s]=0),r=o[s]%l,o[s]+=1),n&&(t=n[r])),void 0!==r&&(this[a]=r),this[e]=t}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||f.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let e=this.options.marker;this.getCyclic("symbol",e.symbol,this.chart.options.symbols)}findPointIndex(e,t){let n,r,i,a=e.id,s=e.x,l=this.points,c=this.options.dataSorting;if(a){let e=this.chart.get(a);e instanceof o&&(n=e)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let t=t=>!t.touched&&t.index===e.index;if(c&&c.matchByName?t=t=>!t.touched&&t.name===e.name:this.options.relativeXValue&&(t=t=>!t.touched&&t.options.x===e.x),!(n=C(l,t)))return}return n&&void 0!==(i=n&&n.index)&&(r=!0),void 0===i&&j(s)&&(i=this.xData.indexOf(s,t)),-1!==i&&void 0!==i&&this.cropped&&(i=i>=this.cropStart?i-this.cropStart:i),!r&&j(i)&&l[i]&&l[i].touched&&(i=void 0),i}updateData(e,t){let n,r,i,o,a=this.options,s=a.dataSorting,l=this.points,c=[],u=this.requireSorting,d=e.length===l.length,f=!0;if(this.xIncrement=null,e.forEach((function(e,t){let r,i=k(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},f=i.x;i.id||j(f)?(-1===(r=this.findPointIndex(i,o))||void 0===r?c.push(e):l[r]&&e!==a.data[r]?(l[r].update(e,!1,null,!1),l[r].touched=!0,u&&(o=r+1)):l[r]&&(l[r].touched=!0),(!d||t!==r||s&&s.enabled||this.hasDerivedData)&&(n=!0)):c.push(e)}),this),n)for(r=l.length;r--;)(i=l[r])&&!i.touched&&i.remove&&i.remove(!1,t);else!d||s&&s.enabled?f=!1:(e.forEach((function(e,t){e===l[t].y||l[t].destroyed||l[t].update(e,!1,null,!1)})),c.length=0);return l.forEach((function(e){e&&(e.touched=!1)})),!!f&&(c.forEach((function(e){this.addPoint(e,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=v(this.xData),this.autoIncrement()),!0)}setData(e){let t,n,r,i,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,l=this,c=l.points,u=c&&c.length||0,d=l.options,f=l.chart,h=d.dataSorting,p=l.xAxis,m=d.turboThreshold,g=this.xData,y=this.yData,b=l.pointArrayMap,v=b&&b.length,_=d.keys,w=0,x=1,k=null;f.options.chart.allowMutatingData||(d.data&&delete l.options.data,l.userOptions.data&&delete l.userOptions.data,i=B(!0,e));let T=(e=i||e||[]).length;if(h&&h.enabled&&(e=this.sortData(e)),f.options.chart.allowMutatingData&&!1!==s&&T&&u&&!l.cropped&&!l.hasGroupedData&&l.visible&&!l.boosted&&(r=this.updateData(e,a)),!r){if(l.xIncrement=null,l.colorCounter=0,this.parallelArrays.forEach((function(e){l[e+"Data"].length=0})),m&&T>m)if(j(k=l.getFirstValidPoint(e)))for(t=0;t=0?w:0,x=x>=0?x:1),1===k.length&&(x=0),w===x)for(t=0;t{let r=P(n,e),i=P(n,t);return ir?1:0}));return i.forEach((function(e,t){e.x=t}),this),t.linkedSeries&&t.linkedSeries.forEach((function(t){let n=t.options,i=n.data;n.dataSorting&&n.dataSorting.enabled||!i||(i.forEach((function(n,o){i[o]=r(t,n),e[o]&&(i[o].x=e[o].x,i[o].index=o)})),t.setData(i,!1))})),e}getProcessedData(e){let t,n,r,i,o,a=this,s=a.xAxis,l=a.options,c=l.cropThreshold,u=e||a.getExtremesFromAll||l.getExtremesFromAll,d=null===s||void 0===s?void 0:s.logarithmic,f=a.isCartesian,h=0,p=a.xData,m=a.yData,g=!1,y=p.length;s&&(i=(r=s.getExtremes()).min,o=r.max,g=!(!s.categories||s.names.length)),f&&a.sorted&&!u&&(!c||y>c||a.forceCrop)&&(p[y-1]o?(p=[],m=[]):a.yData&&(p[0]o)&&(p=(t=this.cropData(a.xData,a.yData,i,o)).xData,m=t.yData,h=t.start,n=!0));let b=M([d?p.map(d.log2lin):p],(()=>a.requireSorting&&!g&&A(15,!1,a.chart)));return{xData:p,yData:m,cropped:n,cropStart:h,closestPointRange:b}}processData(e){let t=this.xAxis;if(this.isCartesian&&!this.isDirty&&!t.isDirty&&!this.yAxis.isDirty&&!e)return!1;let n=this.getProcessedData();this.cropped=n.cropped,this.cropStart=n.cropStart,this.processedXData=n.xData,this.processedYData=n.yData,this.closestPointRange=this.basePointRange=n.closestPointRange,O(this,"afterProcessData")}cropData(e,t,n,r){let i,o,a=e.length,s=0,l=a;for(i=0;i=n){s=Math.max(0,i-1);break}for(o=i;or){l=o+1;break}return{xData:e.slice(s,l),yData:t.slice(s,l),start:s,end:l}}generatePoints(){let e,t,n,r,i=this.options,o=this.processedData||i.data,a=this.processedXData,s=this.processedYData,l=this.pointClass,c=a.length,u=this.cropStart||0,d=this.hasGroupedData,f=i.keys,h=[],p=i.dataGrouping&&i.dataGrouping.groupAll?u:0,m=this.data;if(!m&&!d){let e=[];e.length=o.length,m=this.data=e}for(f&&d&&(this.options.keys=!1),r=0;r0:a.length)||!p),i=t||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!c||(d[s+h]||o)>=m&&(d[s-h]||o)<=g,r&&i)if(l=a.length)for(;l--;)j(a[l])&&(f[y++]=a[l]);else f[y++]=a;let w={activeYData:f,dataMin:_(f),dataMax:v(f)};return O(this,"afterGetExtremes",{dataExtremes:w}),w}applyExtremes(){let e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}getFirstValidPoint(e){let t=e.length,n=0,r=null;for(;null===r&&n{e&&!this.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete n[t])})),this.finishedAnimating=!0,O(this,"afterAnimate")}drawPoints(){let e,t,n,r,i,o,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.points,l=this.chart,c=l.styledMode,{colorAxis:u,options:d}=this,f=d.marker,h=this[this.specialGroup||"markerGroup"],p=this.xAxis,m=D(f.enabled,!p||!!p.isRadial||null,this.closestPointRangePx>=f.enabledThreshold*f.radius);if(!1!==f.enabled||this._hasPointMarkers)for(e=0;e0||t.hasImage)&&(t.graphic=n=l.renderer.symbol(e,a.x,a.y,a.width,a.height,o?i:f).add(h),this.enabledDataSorting&&l.hasRendered&&(n.attr({x:t.startXPos}),r="animate")),n&&"animate"===r&&n[s?"show":"hide"](s).animate(a),n){let e=this.pointAttribs(t,c||!t.selected?void 0:"select");c?u&&n.css({fill:e.fill}):n[r](e)}n&&n.addClass(t.getClassName(),!0)}else n&&(t.graphic=n.destroy())}markerAttribs(e,t){let n,r,i=this.options,o=i.marker,a=e.marker||{},s=a.symbol||o.symbol,l={},c=D(a.radius,o&&o.radius);t&&(n=o.states[t],c=D((r=a.states&&a.states[t])&&r.radius,n&&n.radius,c&&c+(n&&n.radiusPlus||0))),e.hasImage=s&&0===s.indexOf("url"),e.hasImage&&(c=0);let u=e.pos();return j(c)&&u&&(l.x=u[0]-c,l.y=u[1]-c,i.crisp&&(l.x=Math.floor(l.x))),c&&(l.width=l.height=2*c),l}pointAttribs(e,t){let n,r,i,o,a=this.options.marker,s=e&&e.options,l=s&&s.marker||{},c=s&&s.color,u=e&&e.color,d=e&&e.zone&&e.zone.color,f=this.color,h=D(l.lineWidth,a.lineWidth),p=1;return f=c||d||u||f,i=l.fillColor||a.fillColor||f,o=l.lineColor||a.lineColor||f,t=t||"normal",n=a.states[t]||{},h=D((r=l.states&&l.states[t]||{}).lineWidth,n.lineWidth,h+D(r.lineWidthPlus,n.lineWidthPlus,0)),i=r.fillColor||n.fillColor||i,{stroke:o=r.lineColor||n.lineColor||o,"stroke-width":h,fill:i,opacity:p=D(r.opacity,n.opacity,p)}}destroy(e){let t,n,r,i=this,o=i.chart,a=/AppleWebKit\/533/.test(g.navigator.userAgent),s=i.data||[];for(O(i,"destroy",{keepEventsForUpdate:e}),this.removeEvents(e),(i.axisTypes||[]).forEach((function(e){(r=i[e])&&r.series&&(S(r.series,i),r.isDirty=r.forceRedraw=!0)})),i.legendItem&&i.chart.legend.destroyItem(i),t=s.length;t--;)(n=s[t])&&n.destroy&&n.destroy();i.clips&&i.clips.forEach((e=>e.destroy())),c.clearTimeout(i.animationTimeout),F(i,(function(e,t){e instanceof l&&!e.survive&&e[a&&"group"===t?"hide":"destroy"]()})),o.hoverSeries===i&&(o.hoverSeries=void 0),S(o.series,i),o.orderItems("series"),F(i,(function(t,n){e&&"hcEvents"===n||delete i[n]}))}applyZones(){let e,t,n,r,i,o,a,s,l,c,u,d=this,f=this.chart,h=f.renderer,p=this.zones,m=this.clips||[],g=this.graph,y=this.area,b=Math.max(f.plotWidth,f.plotHeight),v=this[(this.zoneAxis||"y")+"Axis"],_=f.inverted,x=!1;p.length&&(g||y)&&v&&void 0!==v.min?(i=v.reversed,o=v.horiz,g&&!this.showLine&&g.hide(),y&&y.hide(),r=v.getExtremes(),p.forEach((function(p,k){e=i?o?f.plotWidth:0:o?0:v.toPixels(r.min)||0,e=w(D(t,e),0,b),t=w(Math.round(v.toPixels(D(p.value,r.max),!0)||0),0,b),x&&(e=t=v.toPixels(r.max)),a=Math.abs(e-t),s=Math.min(e,t),l=Math.max(e,t),v.isXAxis?(n={x:_?l:s,y:0,width:a,height:b},o||(n.x=f.plotHeight-n.x)):(n={x:0,y:_?l:s,width:b,height:a},o&&(n.y=f.plotWidth-n.y)),m[k]?m[k].animate(n):m[k]=h.clipRect(n),c=d["zone-area-"+k],u=d["zone-graph-"+k],g&&u&&u.clip(m[k]),y&&c&&c.clip(m[k]),x=p.value>r.max,d.resetZones&&0===t&&(t=void 0)})),this.clips=m):d.visible&&(g&&g.show(),y&&y.show())}plotGroup(e,t,n,r,i){let o=this[e],a=!o,s={visibility:n,zIndex:r||.1};return void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(s.opacity=this.opacity),a&&(this[e]=o=this.chart.renderer.g().add(i)),o.addClass("highcharts-"+t+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(k(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(s)[a?"attr":"animate"](this.getPlotBox(t)),o}getPlotBox(e){let t=this.xAxis,n=this.yAxis,r=this.chart,i=r.inverted&&!r.polar&&t&&!1!==this.invertible&&"series"===e;return r.inverted&&(t=n,n=this.xAxis),{translateX:t?t.left:r.plotLeft,translateY:n?n.top:r.plotTop,rotation:i?90:0,rotationOriginX:i?(t.len-n.len)/2:0,rotationOriginY:i?(t.len+n.len)/2:0,scaleX:i?-1:1,scaleY:1}}removeEvents(e){e||L(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(e){e()})),this.eventsToUnbind.length=0)}render(){let e=this,t=e.chart,n=e.options,r=u(n.animation),i=e.visible?"inherit":"hidden",o=n.zIndex,a=e.hasRendered,s=t.seriesGroup;t.inverted;let l=e.finishedAnimating?0:r.duration;O(this,"render"),e.plotGroup("group","series",i,o,s),e.markerGroup=e.plotGroup("markerGroup","markers",i,o,s),!1!==n.clip&&e.setClip(),e.animate&&l&&e.animate(!0),e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels&&e.drawDataLabels(),e.redrawPoints&&e.redrawPoints(),e.drawTracker&&n.enableMouseTracking&&e.drawTracker(),e.animate&&l&&e.animate(),a||(l&&r.defer&&(l+=r.defer),e.animationTimeout=z((function(){e.afterAnimate()}),l||0)),e.isDirty=!1,e.hasRendered=!0,O(e,"afterRender")}redraw(){let e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(e,t){let n=this.xAxis,r=this.yAxis,i=this.chart.inverted;return this.searchKDTree({clientX:i?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:i?r.len-e.chartX+r.pos:e.chartY-r.pos},t,e)}buildKDTree(e){this.buildingKdTree=!0;let t=this,n=t.options.findNearestPointBy.indexOf("y")>-1?2:1;delete t.kdTree,z((function(){t.kdTree=function e(n,r,i){let o,a,s=n&&n.length;if(s)return o=t.kdAxisArray[r%i],n.sort((function(e,t){return e[o]-t[o]})),{point:n[a=Math.floor(s/2)],left:e(n.slice(0,a),r+1,i),right:e(n.slice(a+1),r+1,i)}}(t.getValidPoints(null,!t.directTouch),n,n),t.buildingKdTree=!1}),t.options.kdNow||e&&"touchstart"===e.type?0:1)}searchKDTree(e,t,n){let r=this,[i,o]=this.kdAxisArray,a=t?"distX":"dist",s=(r.options.findNearestPointBy||"").indexOf("y")>-1?2:1,l=!!r.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return function e(t,n,s,c,u){let d,f,h=n.point,p=r.kdAxisArray[s%c],m=h;!function(e,t,n){let r=e[i],a=t[i],s=k(r)&&k(a)?r-a:null,c=e[o],u=t[o],d=k(c)&&k(u)?c-u:0,f=l&&(null===(n=t.marker)||void 0===n?void 0:n.radius)||0;t.dist=Math.sqrt((s&&s*s||0)+d*d)-f,t.distX=k(s)?Math.abs(s)-f:Number.MAX_VALUE}(t,h);let g=(t[p]||0)-(h[p]||0)+(l&&(null===(u=h.marker)||void 0===u?void 0:u.radius)||0),y=g<0?"left":"right",b=g<0?"right":"left";return n[y]&&(m=(d=e(t,n[y],s+1,c))[a]=0&&e.plotY<=(r?r.len:t.plotHeight)&&e.plotX>=0&&e.plotX<=(n?n.len:t.plotWidth)}drawTracker(){let e=this,t=e.options,n=t.trackByArea,r=[].concat(n?e.areaPath:e.graphPath),i=e.chart,o=i.pointer,a=i.renderer,s=i.options.tooltip.snap,l=e.tracker,c=function(n){t.enableMouseTracking&&i.hoverSeries!==e&&e.onMouseOver()},u="rgba(192,192,192,"+(m?1e-4:.002)+")";l?l.attr({d:r}):e.graph&&(e.tracker=a.path(r).attr({visibility:e.visible?"inherit":"hidden",zIndex:2}).addClass(n?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),i.styledMode||e.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:u,fill:n?u:"none","stroke-width":e.graph.strokeWidth()+(n?0:2*s)}),[e.tracker,e.markerGroup,e.dataLabelsGroup].forEach((function(e){e&&(e.addClass("highcharts-tracker").on("mouseover",c).on("mouseout",(function(e){o.onTrackerMouseOut(e)})),t.cursor&&!i.styledMode&&e.css({cursor:t.cursor}),p&&e.on("touchstart",c))}))),O(this,"afterDrawTracker")}addPoint(e,t,n,r,i){let o,a,s=this.options,l=this.data,c=this.chart,u=this.xAxis,d=u&&u.hasNames&&u.names,f=s.data,h=this.xData;t=D(t,!0);let p={series:this};this.pointClass.prototype.applyOptions.apply(p,[e]);let m=p.x;if(a=h.length,this.requireSorting&&mm;)a--;this.updateParallelArrays(p,"splice",[a,0,0]),this.updateParallelArrays(p,a),d&&p.name&&(d[m]=p.name),f.splice(a,0,e),(o||this.processedData)&&(this.data.splice(a,0,null),this.processData()),"point"===s.legendType&&this.generatePoints(),n&&(l[0]&&l[0].remove?l[0].remove(!1):(l.shift(),this.updateParallelArrays(p,"shift"),f.shift())),!1!==i&&O(this,"addPoint",{point:p}),this.isDirty=!0,this.isDirtyData=!0,t&&c.redraw(r)}removePoint(e,t,n){let r=this,i=r.data,o=i[e],a=r.points,s=r.chart,l=function(){a&&a.length===i.length&&a.splice(e,1),i.splice(e,1),r.options.data.splice(e,1),r.updateParallelArrays(o||{series:r},"splice",[e,1]),o&&o.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&s.redraw()};d(n,s),t=D(t,!0),o?o.firePointEvent("remove",null,l):l()}remove(e,t,n,r){let i=this,o=i.chart;function a(){i.destroy(r),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(r),D(e,!0)&&o.redraw(t)}!1!==n?O(i,"remove",null,a):a()}update(e,t){var n;O(this,"update",{options:e=T(e,this.userOptions)});let r,i,o=this,a=o.chart,s=o.userOptions,l=o.initialType||o.type,c=a.options.plotOptions,u=y[l].prototype,d=o.finishedAnimating&&{animation:!1},f={},h=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],p=e.type||s.type||a.options.chart.type,m=!(this.hasDerivedData||p&&p!==this.type||void 0!==e.pointStart||void 0!==e.pointInterval||void 0!==e.relativeXValue||e.joinBy||e.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some((e=>o.hasOptionChanged(e))));p=p||l,m&&(h.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==e.visible&&h.push("area","graph"),o.parallelArrays.forEach((function(e){h.push(e+"Data")})),e.data&&(e.dataSorting&&E(o.options.dataSorting,e.dataSorting),this.setData(e.data,!1))),e=B(s,d,{index:void 0===s.index?o.index:s.index,pointStart:D(null===c||void 0===c||null===(n=c.series)||void 0===n?void 0:n.pointStart,s.pointStart,o.xData[0])},!m&&{data:o.options.data},e),m&&e.data&&(e.data=o.options.data),(h=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(h)).forEach((function(e){h[e]=o[e],delete o[e]}));let g=!1;if(y[p]){if(g=p!==o.type,o.remove(!1,!1,!1,!0),g)if(Object.setPrototypeOf)Object.setPrototypeOf(o,y[p].prototype);else{let e=Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents;for(i in u)o[i]=void 0;E(o,y[p].prototype),e?o.hcEvents=e:delete o.hcEvents}}else A(17,!0,a,{missingModuleFor:p});if(h.forEach((function(e){o[e]=h[e]})),o.init(a,e),m&&this.points)for(let y of(!1===(r=o.options).visible?(f.graphic=1,f.dataLabel=1):(this.hasMarkerChanged(r,s)&&(f.graphic=1),(null===(b=o.hasDataLabels)||void 0===b?void 0:b.call(o))||(f.dataLabel=1)),this.points)){var b;y&&y.series&&(y.resolveColor(),Object.keys(f).length&&y.destroyElements(f),!1===r.showInLegend&&y.legendItem&&a.legend.destroyItem(y))}o.initialType=l,a.linkSeries(),g&&o.linkedSeries.length&&(o.isDirtyData=!0),O(this,"afterUpdate"),D(t,!0)&&a.redraw(!!m&&void 0)}setName(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}hasOptionChanged(e){var t,n;let r=this.chart,i=this.options[e],o=r.options.plotOptions,a=this.userOptions[e],s=D(null===o||void 0===o||null===(t=o[this.type])||void 0===t?void 0:t[e],null===o||void 0===o||null===(n=o.series)||void 0===n?void 0:n[e]);return a&&!k(s)?i!==a:i!==D(s,i)}onMouseOver(){let e=this.chart,t=e.hoverSeries;e.pointer.setHoverChartIndex(),t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&O(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this}onMouseOut(){let e=this.options,t=this.chart,n=t.tooltip,r=t.hoverPoint;t.hoverSeries=null,r&&r.onMouseOut(),this&&e.events.mouseOut&&O(this,"mouseOut"),n&&!this.stickyTracking&&(!n.shared||this.noSharedTooltip)&&n.hide(),t.series.forEach((function(e){e.setState("",!0)}))}setState(e,t){let n,r=this,i=r.options,o=r.graph,a=i.inactiveOtherPoints,s=i.states,l=D(s[e||"normal"]&&s[e||"normal"].animation,r.chart.options.chart.animation),c=i.lineWidth,u=0,d=i.opacity;if(e=e||"",r.state!==e&&([r.group,r.markerGroup,r.dataLabelsGroup].forEach((function(t){t&&(r.state&&t.removeClass("highcharts-series-"+r.state),e&&t.addClass("highcharts-series-"+e))})),r.state=e,!r.chart.styledMode)){if(s[e]&&!1===s[e].enabled)return;if(e&&(c=s[e].lineWidth||c+(s[e].lineWidthPlus||0),d=D(s[e].opacity,d)),o&&!o.dashstyle&&j(c))for(n={"stroke-width":c},o.animate(n,l);r["zone-graph-"+u];)r["zone-graph-"+u].animate(n,l),u+=1;a||[r.group,r.markerGroup,r.dataLabelsGroup,r.labelBySeries].forEach((function(e){e&&e.animate({opacity:d},l)}))}t&&a&&r.points&&r.setAllPointsToState(e||void 0)}setAllPointsToState(e){this.points.forEach((function(t){t.setState&&t.setState(e)}))}setVisible(e,t){var n;let r=this,i=r.chart,o=i.options.chart.ignoreHiddenSeries,a=r.visible;r.visible=e=r.options.visible=r.userOptions.visible=void 0===e?!a:e;let s=e?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((e=>{var t;null===(t=r[e])||void 0===t||t[s]()})),(i.hoverSeries===r||(null===(n=i.hoverPoint)||void 0===n?void 0:n.series)===r)&&r.onMouseOut(),r.legendItem&&i.legend.colorizeItem(r,e),r.isDirty=!0,r.options.stacking&&i.series.forEach((e=>{e.options.stacking&&e.visible&&(e.isDirty=!0)})),r.linkedSeries.forEach((t=>{t.setVisible(e,!1)})),o&&(i.isDirtyBox=!0),O(r,s),!1!==t&&i.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(e){this.selected=e=this.options.selected=void 0===e?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),O(this,e?"select":"unselect")}shouldShowTooltip(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(e,t,n)}drawLegendSymbol(e,t){var n;null===(n=i[this.options.legendSymbol||"rectangle"])||void 0===n||n.call(this,e,t)}}return W.defaultOptions=a,W.types=s.seriesTypes,W.registerType=s.registerSeriesType,E(W.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:o,requireSorting:!0,sorted:!0}),s.series=W,W})),n(t,"Core/Chart/Chart.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Templating.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Time.js"],t["Core/Utilities.js"],t["Core/Renderer/HTML/AST.js"]],(function(e,t,n,r,i,o,a,s,l,c,u,d,f){let{animate:h,animObject:p,setAnimation:m}=e,{defaultOptions:g,defaultTime:y}=n,{numberFormat:b}=r,{registerEventOptions:v}=i,{charts:_,doc:w,marginNames:x,svg:k,win:T}=o,{seriesTypes:S}=l,{addEvent:A,attr:E,createElement:C,css:O,defined:M,diffObjects:P,discardElement:I,erase:N,error:j,extend:R,find:B,fireEvent:F,getStyle:D,isArray:L,isNumber:U,isObject:z,isString:W,merge:H,objectEach:q,pick:G,pInt:V,relativeLength:Y,removeEvent:K,splat:Z,syncTimeout:X,uniqueKey:J}=d;class Q{static chart(e,t,n){return new Q(e,t,n)}constructor(e,t,n){this.axes=void 0,this.axisOffset=void 0,this.bounds=void 0,this.chartHeight=void 0,this.chartWidth=void 0,this.clipBox=void 0,this.colorCounter=void 0,this.container=void 0,this.eventOptions=void 0,this.index=void 0,this.isResizing=void 0,this.labelCollectors=void 0,this.margin=void 0,this.numberFormatter=void 0,this.options=void 0,this.plotBox=void 0,this.plotHeight=void 0,this.plotLeft=void 0,this.plotTop=void 0,this.plotWidth=void 0,this.pointCount=void 0,this.pointer=void 0,this.renderer=void 0,this.renderTo=void 0,this.series=void 0,this.sharedClips={},this.spacing=void 0,this.spacingBox=void 0,this.symbolCounter=void 0,this.time=void 0,this.titleOffset=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zooming=void 0,this.getArgs(e,t,n)}getArgs(e,t,n){W(e)||e.nodeName?(this.renderTo=e,this.init(t,n)):this.init(e,t)}setZoomOptions(){let e=this.options.chart,t=e.zooming;this.zooming={...t,type:G(e.zoomType,t.type),key:G(e.zoomKey,t.key),pinchType:G(e.pinchType,t.pinchType),singleTouch:G(e.zoomBySingleTouch,t.singleTouch,!1),resetButton:H(t.resetButton,e.resetZoomButton)}}init(e,t){F(this,"init",{args:arguments},(function(){let n=H(g,e),r=n.chart;this.userOptions=R({},e),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=t,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.time=e.time&&Object.keys(e.time).length?new u(e.time):o.time,this.numberFormatter=r.numberFormatter||b,this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes,this.index=_.length,_.push(this),o.chartCount++,v(this,r),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),F(this,"afterInit"),this.firstRender()}))}initSeries(e){let t=this.options.chart,n=e.type||t.type,r=S[n];r||j(17,!0,this,{missingModuleFor:n});let i=new r;return"function"==typeof i.init&&i.init(this,e),i}setSeriesData(){this.getSeriesOrderByLinks().forEach((function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)}))}getSeriesOrderByLinks(){return this.series.concat().sort((function(e,t){return e.linkedSeries.length||t.linkedSeries.length?t.linkedSeries.length-e.linkedSeries.length:0}))}orderItems(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this[e],r=this.options[e]=Z(this.options[e]).slice(),i=this.userOptions[e]=this.userOptions[e]?Z(this.userOptions[e]).slice():[];if(this.hasRendered&&(r.splice(t),i.splice(t)),n)for(let o=t,a=n.length;o2&&void 0!==arguments[2]?arguments[2]:{},{inverted:r,plotBox:i,plotLeft:o,plotTop:a,scrollablePlotBox:s}=this,l=0,c=0;n.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:l,scrollTop:c}=this.scrollingContainer);let u=n.series,d=n.visiblePlotOnly&&s||i,f=n.inverted?t:e,h=n.inverted?e:t,p={x:f,y:h,isInsidePlot:!0,options:n};if(!n.ignoreX){let e=u&&(r&&!this.polar?u.yAxis:u.xAxis)||{pos:o,len:1/0},t=n.paneCoordinates?e.pos+f:o+f;t>=Math.max(l+o,e.pos)&&t<=Math.min(l+o+d.width,e.pos+e.len)||(p.isInsidePlot=!1)}if(!n.ignoreY&&p.isInsidePlot){let e=!r&&n.axis&&!n.axis.isXAxis&&n.axis||u&&(r?u.xAxis:u.yAxis)||{pos:a,len:1/0},t=n.paneCoordinates?e.pos+h:a+h;t>=Math.max(c+a,e.pos)&&t<=Math.min(c+a+d.height,e.pos+e.len)||(p.isInsidePlot=!1)}return F(this,"afterIsInsidePlot",p),p.isInsidePlot}redraw(e){F(this,"beforeRedraw");let t,n,r,i,o=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,s=this.pointer,l=this.legend,c=this.userOptions.legend,u=this.renderer,d=u.isHidden(),f=[],h=this.isDirtyBox,p=this.isDirtyLegend;for(u.rootFontSize=u.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),m(!!this.hasRendered&&e,this),d&&this.temporaryDisplay(),this.layOutTitles(!1),r=a.length;r--;)if(((i=a[r]).options.stacking||i.options.centerInCategory)&&(n=!0,i.isDirty)){t=!0;break}if(t)for(r=a.length;r--;)(i=a[r]).options.stacking&&(i.isDirty=!0);a.forEach((function(e){e.isDirty&&("point"===e.options.legendType?("function"==typeof e.updateTotals&&e.updateTotals(),p=!0):c&&(c.labelFormatter||c.labelFormat)&&(p=!0)),e.isDirtyData&&F(e,"updatedData")})),p&&l&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),n&&this.getStacks(),o.forEach((function(e){e.updateNames(),e.setScale()})),this.getMargins(),o.forEach((function(e){e.isDirty&&(h=!0)})),o.forEach((function(e){let t=e.min+","+e.max;e.extKey!==t&&(e.extKey=t,f.push((function(){F(e,"afterSetExtremes",R(e.eventArgs,e.getExtremes())),delete e.eventArgs}))),(h||n)&&e.redraw()})),h&&this.drawChartBox(),F(this,"predraw"),a.forEach((function(e){(h||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1})),s&&s.reset(!0),u.draw(),F(this,"redraw"),F(this,"render"),d&&this.temporaryDisplay(!0),f.forEach((function(e){e.call()}))}get(e){let t=this.series;function n(t){return t.id===e||t.options&&t.options.id===e}let r=B(this.axes,n)||B(this.series,n);for(let i=0;!r&&i(t.getPointsCollection().forEach((t=>{G(t.selectedStaging,t.selected)&&e.push(t)})),e)),[])}getSelectedSeries(){return this.series.filter((function(e){return e.selected}))}setTitle(e,t,n){this.applyDescription("title",e),this.applyDescription("subtitle",t),this.applyDescription("caption",void 0),this.layOutTitles(n)}applyDescription(e,t){let n=this,r=this.options[e]=H(this.options[e],t),i=this[e];i&&t&&(this[e]=i=i.destroy()),r&&!i&&((i=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:"highcharts-"+e,zIndex:r.zIndex||4}).add()).update=function(t,r){n.applyDescription(e,t),n.layOutTitles(r)},this.styledMode||i.css(R("title"===e?{fontSize:this.options.isStock?"1em":"1.2em"}:{},r.style)),this[e]=i)}layOutTitles(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=[0,0,0],n=this.renderer,r=this.spacingBox;["title","subtitle","caption"].forEach((function(e){let i=this[e],o=this.options[e],a=o.verticalAlign||"top",s="title"===e?"top"===a?-3:0:"top"===a?t[0]+2:0;if(i){i.css({width:(o.width||r.width+(o.widthAdjust||0))+"px"});let e=n.fontMetrics(i).b,l=Math.round(i.getBBox(o.useHTML).height);i.align(R({y:"bottom"===a?e:s+e,height:l},o),!1,"spacingBox"),o.floating||("top"===a?t[0]=Math.ceil(t[0]+l):"bottom"===a&&(t[2]=Math.ceil(t[2]+l)))}}),this),t[0]&&"top"===(this.options.title.verticalAlign||"top")&&(t[0]+=this.options.title.margin),t[2]&&"bottom"===this.options.caption.verticalAlign&&(t[2]+=this.options.caption.margin);let i=!this.titleOffset||this.titleOffset.join(",")!==t.join(",");this.titleOffset=t,F(this,"afterLayOutTitles"),!this.isDirtyBox&&i&&(this.isDirtyBox=this.isDirtyLegend=i,this.hasRendered&&e&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:D(this.renderTo,"width",!0)||0,height:D(this.renderTo,"height",!0)||0}}getChartSize(){let e=this.options.chart,t=e.width,n=e.height,r=this.getContainerBox();this.chartWidth=Math.max(0,t||r.width||600),this.chartHeight=Math.max(0,Y(n,this.chartWidth)||(r.height>1?r.height:400)),this.containerBox=r}temporaryDisplay(e){let t,n=this.renderTo;if(e)for(;n&&n.style;)n.hcOrigStyle&&(O(n,n.hcOrigStyle),delete n.hcOrigStyle),n.hcOrigDetached&&(w.body.removeChild(n),n.hcOrigDetached=!1),n=n.parentNode;else for(;n&&n.style&&(w.body.contains(n)||n.parentNode||(n.hcOrigDetached=!0,w.body.appendChild(n)),("none"===D(n,"display",!1)||n.hcOricDetached)&&(n.hcOrigStyle={display:n.style.display,height:n.style.height,overflow:n.style.overflow},t={display:"block",overflow:"hidden"},n!==this.renderTo&&(t.height=0),O(n,t),n.offsetWidth||n.style.setProperty("display","block","important")),(n=n.parentNode)!==w.body););}setClassName(e){this.container.className="highcharts-container "+(e||"")}getContainer(){let e,t=this.options,n=t.chart,r="data-highcharts-chart",i=J(),o=this.renderTo;o||(this.renderTo=o=n.renderTo),W(o)&&(this.renderTo=o=w.getElementById(o)),o||j(13,!0,this);let s=V(E(o,r));U(s)&&_[s]&&_[s].hasRendered&&_[s].destroy(),E(o,r,this.index),o.innerHTML=f.emptyHTML,n.skipClone||o.offsetWidth||this.temporaryDisplay(),this.getChartSize();let l=this.chartWidth,u=this.chartHeight;O(o,{overflow:"hidden"}),this.styledMode||(e=R({position:"relative",overflow:"hidden",width:l+"px",height:u+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},n.style||{}));let d=C("div",{id:i},e,o);this.container=d,this._cursor=d.style.cursor;let h=n.renderer||!k?a.getRendererType(n.renderer):c;if(this.renderer=new h(d,l,u,void 0,n.forExport,t.exporting&&t.exporting.allowHTML,this.styledMode),this.containerBox=this.getContainerBox(),m(void 0,this),this.setClassName(n.className),this.styledMode)for(let a in t.defs)this.renderer.definition(t.defs[a]);else this.renderer.setStyle(n.style);this.renderer.chartIndex=this.index,F(this,"afterGetContainer")}getMargins(e){let{spacing:t,margin:n,titleOffset:r}=this;this.resetMargins(),r[0]&&!M(n[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+t[0])),r[2]&&!M(n[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+t[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(n,t),F(this,"getMargins"),e||this.getAxisMargins()}getAxisMargins(){let e=this,t=e.axisOffset=[0,0,0,0],n=e.colorAxis,r=e.margin,i=function(e){e.forEach((function(e){e.visible&&e.getOffset()}))};e.hasCartesianSeries?i(e.axes):n&&n.length&&i(n),x.forEach((function(n,i){M(r[i])||(e[n]+=t[i])})),e.setChartSize()}getOptions(){return P(this.userOptions,g)}reflow(e){let t=this,n=t.containerBox,r=t.getContainerBox();delete t.pointer.chartPosition,!t.isPrinting&&!t.isResizing&&n&&r.width&&((r.width!==n.width||r.height!==n.height)&&(d.clearTimeout(t.reflowTimeout),t.reflowTimeout=X((function(){t.container&&t.setSize(void 0,void 0,!1)}),e?100:0)),t.containerBox=r)}setReflow(){let e=this,t=t=>{var n;(null===(n=e.options)||void 0===n?void 0:n.chart.reflow)&&e.hasLoaded&&e.reflow(t)};if("function"==typeof ResizeObserver)new ResizeObserver(t).observe(e.renderTo);else{let e=A(T,"resize",t);A(this,"destroy",e)}}setSize(e,t,n){let r=this,i=r.renderer;r.isResizing+=1,m(n,r);let o=i.globalAnimation;r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,void 0!==e&&(r.options.chart.width=e),void 0!==t&&(r.options.chart.height=t),r.getChartSize(),r.styledMode||(o?h:O)(r.container,{width:r.chartWidth+"px",height:r.chartHeight+"px"},o),r.setChartSize(!0),i.setSize(r.chartWidth,r.chartHeight,o),r.axes.forEach((function(e){e.isDirty=!0,e.setScale()})),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(o),r.oldChartHeight=null,F(r,"resize"),setTimeout((()=>{r&&F(r,"endResize",void 0,(()=>{r.isResizing-=1}))}),p(o).duration)}setChartSize(e){let t,n,r,i,o=this.inverted,a=this.renderer,s=this.chartWidth,l=this.chartHeight,c=this.options.chart,u=this.spacing,d=this.clipOffset;this.plotLeft=t=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=r=Math.max(0,Math.round(s-t-this.marginRight)),this.plotHeight=i=Math.max(0,Math.round(l-n-this.marginBottom)),this.plotSizeX=o?i:r,this.plotSizeY=o?r:i,this.plotBorderWidth=c.plotBorderWidth||0,this.spacingBox=a.spacingBox={x:u[3],y:u[0],width:s-u[3]-u[1],height:l-u[0]-u[2]},this.plotBox=a.plotBox={x:t,y:n,width:r,height:i};let f=2*Math.floor(this.plotBorderWidth/2),h=Math.ceil(Math.max(f,d[3])/2),p=Math.ceil(Math.max(f,d[0])/2);this.clipBox={x:h,y:p,width:Math.floor(this.plotSizeX-Math.max(f,d[1])/2-h),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(f,d[2])/2-p))},e||(this.axes.forEach((function(e){e.setAxisSize(),e.setAxisTranslation()})),a.alignElements()),F(this,"afterSetChartSize",{skipAxes:e})}resetMargins(){F(this,"resetMargins");let e=this,t=e.options.chart;["margin","spacing"].forEach((function(n){let r=t[n],i=z(r)?r:[r,r,r,r];["Top","Right","Bottom","Left"].forEach((function(r,o){e[n][o]=G(t[n+r],i[o])}))})),x.forEach((function(t,n){e[t]=G(e.margin[n],e.spacing[n])})),e.axisOffset=[0,0,0,0],e.clipOffset=[0,0,0,0]}drawChartBox(){let e,t,n,r=this.options.chart,i=this.renderer,o=this.chartWidth,a=this.chartHeight,s=this.styledMode,l=this.plotBGImage,c=r.backgroundColor,u=r.plotBackgroundColor,d=r.plotBackgroundImage,f=this.plotLeft,h=this.plotTop,p=this.plotWidth,m=this.plotHeight,g=this.plotBox,y=this.clipRect,b=this.clipBox,v=this.chartBackground,_=this.plotBackground,w=this.plotBorder,x="animate";v||(this.chartBackground=v=i.rect().addClass("highcharts-background").add(),x="attr"),s?e=t=v.strokeWidth():(t=(e=r.borderWidth||0)+(r.shadow?8:0),n={fill:c||"none"},(e||v["stroke-width"])&&(n.stroke=r.borderColor,n["stroke-width"]=e),v.attr(n).shadow(r.shadow)),v[x]({x:t/2,y:t/2,width:o-t-e%2,height:a-t-e%2,r:r.borderRadius}),x="animate",_||(x="attr",this.plotBackground=_=i.rect().addClass("highcharts-plot-background").add()),_[x](g),!s&&(_.attr({fill:u||"none"}).shadow(r.plotShadow),d&&(l?(d!==l.attr("href")&&l.attr("href",d),l.animate(g)):this.plotBGImage=i.image(d,f,h,p,m).add())),y?y.animate({width:b.width,height:b.height}):this.clipRect=i.clipRect(b),x="animate",w||(x="attr",this.plotBorder=w=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),s||w.attr({stroke:r.plotBorderColor,"stroke-width":r.plotBorderWidth||0,fill:"none"}),w[x](w.crisp({x:f,y:h,width:p,height:m},-w.strokeWidth())),this.isDirtyBox=!1,F(this,"afterDrawChartBox")}propFromSeries(){let e,t,n,r=this,i=r.options.chart,o=r.options.series;["inverted","angular","polar"].forEach((function(a){for(t=S[i.type],n=i[a]||t&&t.prototype[a],e=o&&o.length;!n&&e--;)(t=S[o[e].type])&&t.prototype[a]&&(n=!0);r[a]=n}))}linkSeries(e){let t=this,n=t.series;n.forEach((function(e){e.linkedSeries.length=0})),n.forEach((function(e){let n=e.options.linkedTo;W(n)&&(n=":previous"===n?t.series[e.index-1]:t.get(n))&&n.linkedParent!==e&&(n.linkedSeries.push(e),e.linkedParent=n,n.enabledDataSorting&&e.setDataSortingOptions(),e.visible=G(e.options.visible,n.options.visible,e.visible))})),F(this,"afterLinkSeries",{isUpdating:e})}renderSeries(){this.series.forEach((function(e){e.translate(),e.render()}))}render(){let e=this.axes,t=this.colorAxis,n=this.renderer,r=function(e){e.forEach((function(e){e.visible&&e.render()}))},i=0;this.setTitle(),F(this,"beforeMargins"),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize();let o=this.plotWidth;e.some((function(e){if(e.horiz&&e.visible&&e.options.labels.enabled&&e.series.length)return i=21,!0})),this.plotHeight=Math.max(this.plotHeight-i,0);let a=this.plotHeight;e.forEach((function(e){e.setScale()})),this.getAxisMargins();let s=o/this.plotWidth>1.1,l=a/this.plotHeight>1.05;(s||l)&&(e.forEach((function(e){(e.horiz&&s||!e.horiz&&l)&&e.setTickInterval(!0)})),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?r(e):t&&t.length&&r(t),this.seriesGroup||(this.seriesGroup=n.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(e){let t=this,n=H(!0,this.options.credits,e);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){n.href&&(T.location.href=n.href)})).attr({align:n.position.align,zIndex:8}),t.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(e){t.credits=t.credits.destroy(),t.addCredits(e)})}destroy(){let e,t=this,n=t.axes,r=t.series,i=t.container,a=i&&i.parentNode;for(F(t,"destroy"),t.renderer.forExport?N(_,t):_[t.index]=void 0,o.chartCount--,t.renderTo.removeAttribute("data-highcharts-chart"),K(t),e=n.length;e--;)n[e]=n[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=r.length;e--;)r[e]=r[e].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach((function(e){let n=t[e];n&&n.destroy&&(t[e]=n.destroy())})),i&&(i.innerHTML=f.emptyHTML,K(i),a&&I(i)),q(t,(function(e,n){delete t[n]}))}firstRender(){let e=this,t=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.getAxes();let n=L(t.series)?t.series:[];t.series=[],n.forEach((function(t){e.initSeries(t)})),e.linkSeries(),e.setSeriesData(),F(e,"beforeRender"),e.render(),e.pointer.getChartPosition(),e.renderer.imgCount||e.hasLoaded||e.onload(),e.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach((function(e){e&&void 0!==this.index&&e.apply(this,[this])}),this),F(this,"load"),F(this,"render"),M(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:e,title:t}=this;!e||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(t&&t.element.textContent||"").replace(/0&&(v+=i,b=w),(i=v-x)>0&&(v=x,b-=i),t.series.length&&b!==h.min&&v!==h.max&&b>=w&&v<=x&&(t.setExtremes(b,v,!1,!1,{trigger:"pan"}),!r.resetZoomButton&&b!==w&&v!==x&&s.match("y")&&(r.showResetZoom(),t.displayBtn=!1),n=!0),o[c]=l)})),q(o,((e,t)=>{r[t]=e})),n&&r.redraw(!1),O(r.container,{cursor:"move"})}))}}return R(Q.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Q.prototype.addAxis,[!0]],yAxis:[Q.prototype.addAxis,[!1]],series:[Q.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),Q})),n(t,"Extensions/ScrollablePlotArea.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Chart/Chart.js"],t["Core/Series/Series.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i,o){let{stop:a}=e,{addEvent:s,createElement:l,defined:c,merge:u,pick:d}=o;s(n,"afterSetChartSize",(function(e){let n,r,i,o=this.options.chart.scrollablePlotArea,a=o&&o.minWidth,s=o&&o.minHeight;this.renderer.forExport||(a?(this.scrollablePixelsX=n=Math.max(0,a-this.chartWidth),n&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=u(this.plotBox),this.plotBox.width=this.plotWidth+=n,this.inverted?this.clipBox.height+=n:this.clipBox.width+=n,i={1:{name:"right",value:n}})):s&&(this.scrollablePixelsY=r=Math.max(0,s-this.chartHeight),c(r)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=u(this.plotBox),this.plotBox.height=this.plotHeight+=r,this.inverted?this.clipBox.width+=r:this.clipBox.height+=r,i={2:{name:"bottom",value:r}})),i&&!e.skipAxes&&this.axes.forEach((function(e){i[e.side]?e.getPlotLinePath=function(){let n,r=i[e.side].name,o=i[e.side].value,a=this[r];return this[r]=a-o,n=t.prototype.getPlotLinePath.apply(this,arguments),this[r]=a,n}:(e.setAxisSize(),e.setAxisTranslation())})))})),s(n,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),n.prototype.setUpScrolling=function(){let e,t={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(t.overflowX="auto"),this.scrollablePixelsY&&(t.overflowY="auto"),this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=l("div",{className:"highcharts-scrolling"},t,this.scrollingParent),s(this.scrollingContainer,"scroll",(()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(e=this.hoverPoint),this.pointer.runPointActions(void 0,e,!0))})),this.innerContainer=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},n.prototype.moveFixedElements=function(){let e,t=this.container,n=this.fixedRenderer,r=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-credits",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-reset-zoom",".highcharts-drillup-button",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];this.scrollablePixelsX&&!this.inverted?e=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(e=".highcharts-yaxis"),e&&r.push("".concat(e,":not(.highcharts-radial-axis)"),"".concat(e,"-labels:not(.highcharts-radial-axis-labels)")),r.forEach((function(e){[].forEach.call(t.querySelectorAll(e),(function(e){(e.namespaceURI===n.SVG_NS?n.box:n.box.parentNode).appendChild(e),e.style.pointerEvents="auto"}))}))},n.prototype.applyFixed=function(){let e,t,n,r=!this.fixedDiv,o=this.options.chart,c=o.scrollablePlotArea,u=i.getRendererType();r?(this.fixedDiv=l("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(o.style&&o.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new u(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":d(c.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),s(this,"afterShowResetZoom",this.moveFixedElements),s(this,"afterApplyDrilldown",this.moveFixedElements),s(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||r)&&(this.scrollableDirty=!1,this.moveFixedElements()),t=this.chartWidth+(this.scrollablePixelsX||0),n=this.chartHeight+(this.scrollablePixelsY||0),a(this.container),this.container.style.width=t+"px",this.container.style.height=n+"px",this.renderer.boxWrapper.attr({width:t,height:n,viewBox:[0,0,t,n].join(" ")}),this.chartBackground.attr({width:t,height:n}),this.scrollingContainer.style.height=this.chartHeight+"px",r&&(c.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*c.scrollPositionX),c.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*c.scrollPositionY));let f,h=this.axisOffset,p=this.plotTop-h[0]-1,m=this.plotLeft-h[3]-1,g=this.plotTop+this.plotHeight+h[2]+1,y=this.plotLeft+this.plotWidth+h[1]+1,b=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),v=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);f=this.scrollablePixelsX?[["M",0,p],["L",this.plotLeft-1,p],["L",this.plotLeft-1,g],["L",0,g],["Z"],["M",b,p],["L",this.chartWidth,p],["L",this.chartWidth,g],["L",b,g],["Z"]]:this.scrollablePixelsY?[["M",m,0],["L",m,this.plotTop-1],["L",y,this.plotTop-1],["L",y,0],["Z"],["M",m,v],["L",m,this.chartHeight],["L",y,this.chartHeight],["L",y,v],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:f})},s(t,"afterInit",(function(){this.chart.scrollableDirty=!0})),s(r,"show",(function(){this.chart.scrollableDirty=!0}))})),n(t,"Core/Axis/Stacking/StackItem.js",[t["Core/Templating.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n){let{format:r}=e,{series:i}=t,{destroyObjectProperties:o,fireEvent:a,isNumber:s,pick:l}=n;return class{constructor(e,t,n,r,i){let o=e.chart.inverted,a=e.reversed;this.axis=e;let s=this.isNegative=!!n!=!!a;this.options=t=t||{},this.x=r,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=i,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:t.align||(o?s?"left":"right":"center"),verticalAlign:t.verticalAlign||(o?"middle":s?"bottom":"top"),y:t.y,x:t.x},this.textAlign=t.textAlign||(o?s?"right":"left":"center")}destroy(){o(this,this.axis)}render(e){let t=this.axis.chart,n=this.options,i=n.format,o=i?r(i,this,t):n.formatter.call(this);if(this.label)this.label.attr({text:o,visibility:"hidden"});else{this.label=t.renderer.label(o,null,void 0,n.shape,void 0,void 0,n.useHTML,!1,"stack-labels");let r={r:n.borderRadius||0,text:o,padding:l(n.padding,5),visibility:"hidden"};t.styledMode||(r.fill=n.backgroundColor,r.stroke=n.borderColor,r["stroke-width"]=n.borderWidth,this.label.css(n.style||{})),this.label.attr(r),this.label.added||this.label.add(e)}this.label.labelrank=t.plotSizeY,a(this,"afterRender")}setOffset(e,t,n,r,o,c){let{alignOptions:u,axis:d,label:f,options:h,textAlign:p}=this,m=d.chart,g=this.getStackBox({xOffset:e,width:t,boxBottom:n,boxTop:r,defaultX:o,xAxis:c}),{verticalAlign:y}=u;if(f&&g){let e,t=f.getBBox(),n=f.padding,r="justify"===l(h.overflow,"justify");u.x=h.x||0,u.y=h.y||0;let{x:o,y:a}=this.adjustStackPosition({labelBox:t,verticalAlign:y,textAlign:p});g.x-=o,g.y-=a,f.align(u,!1,g),(e=m.isInsidePlot(f.alignAttr.x+u.x+o,f.alignAttr.y+u.y+a))||(r=!1),r&&i.prototype.justifyDataLabel.call(d,f,u,f.alignAttr,t,g),f.attr({x:f.alignAttr.x,y:f.alignAttr.y,rotation:h.rotation,rotationOriginX:t.width/2,rotationOriginY:t.height/2}),l(!r&&h.crop,!0)&&(e=s(f.x)&&s(f.y)&&m.isInsidePlot(f.x-n+(f.width||0),f.y)&&m.isInsidePlot(f.x+n,f.y)),f[e?"show":"hide"]()}a(this,"afterSetOffset",{xOffset:e,width:t})}adjustStackPosition(e){let{labelBox:t,verticalAlign:n,textAlign:r}=e,i={bottom:0,middle:1,top:2,right:1,center:0,left:-1},o=i[n],a=i[r];return{x:t.width/2+t.width/2*a,y:t.height/2*o}}getStackBox(e){let t=this.axis,n=t.chart,{boxTop:r,defaultX:i,xOffset:o,width:a,boxBottom:c}=e,u=t.stacking.usePercentage?100:l(r,this.total,0),d=t.toPixels(u),f=e.xAxis||n.xAxis[0],h=l(i,f.translate(this.x))+o,p=t.toPixels(c||s(t.min)&&t.logarithmic&&t.logarithmic.lin2log(t.min)||0),m=Math.abs(d-p),g=n.inverted,y=this.isNegative;return g?{x:(y?d:d-m)-n.plotLeft,y:f.height-h-a,width:m,height:a}:{x:h+f.transB-n.plotLeft,y:(y?d-m:d)-n.plotTop,width:a,height:m}}}})),n(t,"Core/Axis/Stacking/StackingAxis.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i){var o;let{getDeferredAnimation:a}=e,{series:{prototype:s}}=n,{addEvent:l,correctFloat:c,defined:u,destroyObjectProperties:d,fireEvent:f,isArray:h,isNumber:p,objectEach:m,pick:g}=i;function y(){let e=this.inverted;this.axes.forEach((e=>{e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)})),this.series.forEach((t=>{let n=t.xAxis&&t.xAxis.options||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,g(t.options.stack,""),e?n.top:n.left,e?n.height:n.width].join(","))}))}function b(){let e=this.stacking;if(e){var t;let n=e.stacks;m(n,((e,t)=>{d(e),delete n[t]})),null===(t=e.stackTotalGroup)||void 0===t||t.destroy()}}function v(){this.stacking||(this.stacking=new S(this))}function _(e,t,n,r){return!u(e)||e.x!==t||r&&e.stackKey!==r?e={x:t,index:0,key:r,stackKey:r}:e.index++,e.key=[n,t,e.index].join(","),e}function w(){let e,t=this,n=t.yAxis,r=t.stackKey||"",i=n.stacking.stacks,o=t.processedXData,a=t.options.stacking,s=t[a+"Stacker"];s&&[r,"-"+r].forEach((n=>{let r,a,l,c=o.length;for(;c--;){var u,d;r=o[c],e=t.getStackIndicator(e,r,t.index,n),a=null===(u=i[n])||void 0===u?void 0:u[r],(l=null===(d=a)||void 0===d?void 0:d.points[e.key||""])&&s.call(t,l,a,c)}}))}function x(e,t,n){let r=t.total?100/t.total:0;e[0]=c(e[0]*r),e[1]=c(e[1]*r),this.stackedYData[n]=e[1]}function k(e){this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&this.chart.series.length>1?s.setStackedPoints.call(this,e,"group"):e.stacking.resetStacks()}function T(e,t){let n,i,o,a,s,l,d,f,p,m=t||this.options.stacking;if(!m||!this.reserveSpace()||({group:"xAxis"}[m]||"yAxis")!==e.coll)return;let y=this.processedXData,b=this.processedYData,v=[],_=b.length,w=this.options,x=w.threshold||0,k=w.startFromThreshold?x:0,T=w.stack,S=t?"".concat(this.type,",").concat(m):this.stackKey||"",A="-"+S,E=this.negStacks,C=e.stacking,O=C.stacks,M=C.oldStacks;for(C.stacksTouched+=1,d=0;d<_;d++){var P,I;f=y[d],p=b[d],l=(n=this.getStackIndicator(n,f,this.index)).key||"",O[s=(i=E&&p<(k?0:x))?A:S]||(O[s]={}),O[s][f]||(null!==(P=M[s])&&void 0!==P&&P[f]?(O[s][f]=M[s][f],O[s][f].total=null):O[s][f]=new r(e,e.options.stackLabels,!!i,f,T)),o=O[s][f],null!==p?(o.points[l]=o.points[this.index]=[g(o.cumulative,k)],u(o.cumulative)||(o.base=l),o.touched=C.stacksTouched,n.index>0&&!1===this.singleStacks&&(o.points[l][0]=o.points[this.index+","+f+",0"][0])):(delete o.points[l],delete o.points[this.index]);let t=o.total||0;"percent"===m?(a=i?S:A,t=E&&null!==(I=O[a])&&void 0!==I&&I[f]?(a=O[a][f]).total=Math.max(a.total||0,t)+Math.abs(p)||0:c(t+(Math.abs(p)||0))):"group"===m?(h(p)&&(p=p[0]),null!==p&&t++):t=c(t+(p||0)),o.cumulative="group"===m?(t||1)-1:c(g(o.cumulative,k)+(p||0)),o.total=t,null!==p&&(o.points[l].push(o.cumulative),v[d]=o.cumulative,o.hasValidPoints=!0)}"percent"===m&&(C.usePercentage=!0),"group"!==m&&(this.stackedYData=v),C.oldStacks={}}class S{constructor(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}buildStacks(){let e,t,n=this.axis,r=n.series,i="xAxis"===n.coll,o=n.options.reversedStacks,a=r.length;for(this.resetStacks(),this.usePercentage=!1,t=a;t--;)e=r[o?t:a-t-1],i&&e.setGroupedPoints(n),e.setStackedPoints(n);if(!i)for(t=0;t{m(e,(e=>{e.cumulative=e.total}))})))}resetStacks(){m(this.stacks,(e=>{m(e,((t,n)=>{p(t.touched)&&t.touched{m(e,(e=>{e.render(l)}))})),l.animate({opacity:1},s)}}return function(e){let t=[];e.compose=function(e,n,r){if(i.pushUnique(t,e)&&(l(e,"init",v),l(e,"destroy",b)),i.pushUnique(t,n)&&(n.prototype.getStacks=y),i.pushUnique(t,r)){let e=r.prototype;e.getStackIndicator=_,e.modifyStacks=w,e.percentStacker=x,e.setGroupedPoints=k,e.setStackedPoints=T}}}(o||(o={})),o})),n(t,"Series/Line/LineSeries.js",[t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n){let{defined:r,merge:i,isObject:o}=n;class a extends e{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}drawGraph(){let e=this,t=this.options,n=(this.gappedPath||this.getGraphPath).call(this),r=this.chart.styledMode,a=[["graph","highcharts-graph"]];r||a[0].push(t.lineColor||this.color||"#cccccc",t.dashStyle),(a=e.getZonesGraphs(a)).forEach((function(a,s){let l,c=a[0],u=e[c],d=u?"animate":"attr";u?(u.endX=e.preventGraphAnimation?null:n.xMap,u.animate({d:n})):n.length&&(e[c]=u=e.chart.renderer.path(n).addClass(a[1]).attr({zIndex:1}).add(e.group)),u&&!r&&(l={stroke:a[2],"stroke-width":t.lineWidth||0,fill:e.fillGraph&&e.color||"none"},a[3]?l.dashstyle=a[3]:"square"!==t.linecap&&(l["stroke-linecap"]=l["stroke-linejoin"]="round"),u[d](l).shadow(s<2&&t.shadow&&i({filterUnits:"userSpaceOnUse"},o(t.shadow)?t.shadow:{}))),u&&(u.startX=n.xMap,u.isArea=n.isArea)}))}getGraphPath(e,t,n){let i,o=this,a=o.options,s=[],l=[],c=a.step,u=(e=e||o.points).reversed;return u&&e.reverse(),(c={right:1,center:2}[c]||c&&3)&&u&&(c=4-c),(e=this.getValidPoints(e,!1,!(a.connectNulls&&!t&&!n))).forEach((function(u,d){let f,h=u.plotX,p=u.plotY,m=e[d-1],g=u.isNull||"number"!=typeof p;(u.leftCliff||m&&m.rightCliff)&&!n&&(i=!0),g&&!r(t)&&d>0?i=!a.connectNulls:g&&!t?i=!0:(0===d||i?f=[["M",u.plotX,u.plotY]]:o.getPointSpline?f=[o.getPointSpline(e,u,d)]:c?(f=1===c?[["L",m.plotX,p]]:2===c?[["L",(m.plotX+h)/2,m.plotY],["L",(m.plotX+h)/2,p]]:[["L",h,m.plotY]]).push(["L",h,p]):f=[["L",h,p]],l.push(u.x),c&&(l.push(u.x),2===c&&l.push(u.x)),s.push.apply(s,f),i=!1)})),s.xMap=l,o.graphPath=s,s}getZonesGraphs(e){return this.zones.forEach((function(t,n){let r=["zone-graph-"+n,"highcharts-graph highcharts-zone-graph-"+n+" "+(t.className||"")];this.chart.styledMode||r.push(t.color||this.color,t.dashStyle||this.options.dashStyle),e.push(r)}),this),e}}return a.defaultOptions=i(e.defaultOptions,{legendSymbol:"lineMarker"}),t.registerSeriesType("line",a),a})),n(t,"Series/Area/AreaSeries.js",[t["Core/Color/Color.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n){let{parse:r}=e,{seriesTypes:{line:i}}=t,{extend:o,merge:a,objectEach:s,pick:l}=n;class c extends i{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let e=this,t=this.areaPath,n=this.options,r=this.zones,i=[["area","highcharts-area",this.color,n.fillColor]];r.forEach((function(t,r){i.push(["zone-area-"+r,"highcharts-area highcharts-zone-area-"+r+" "+t.className,t.color||e.color,t.fillColor||n.fillColor])})),i.forEach((function(r){let i=r[0],o={},a=e[i],s=a?"animate":"attr";a?(a.endX=e.preventGraphAnimation?null:t.xMap,a.animate({d:t})):(o.zIndex=0,(a=e[i]=e.chart.renderer.path(t).addClass(r[1]).add(e.group)).isArea=!0),e.chart.styledMode||(r[3]?o.fill=r[3]:(o.fill=r[2],o["fill-opacity"]=l(n.fillOpacity,.75))),a[s](o),a.startX=t.xMap,a.shiftUnit=n.step?2:1}))}getGraphPath(e){let t,n,r,o=i.prototype.getGraphPath,a=this.options,s=a.stacking,c=this.yAxis,u=[],d=[],f=this.index,h=c.stacking.stacks[this.stackKey],p=a.threshold,m=Math.round(c.getThreshold(a.threshold)),g=l(a.connectNulls,"percent"===s),y=function(n,r,i){let o,a,l=e[n],g=s&&h[l.x].points[f],y=l[i+"Null"]||0,b=l[i+"Cliff"]||0,v=!0;b||y?(o=(y?g[0]:g[1])+b,a=g[0]+b,v=!!y):!s&&e[r]&&e[r].isNull&&(o=a=p),void 0!==o&&(d.push({plotX:t,plotY:null===o?m:c.getThreshold(o),isNull:v,isCliff:!0}),u.push({plotX:t,plotY:null===a?m:c.getThreshold(a),doCurve:!1}))};e=e||this.points,s&&(e=this.getStackPoints(e));for(let i=0,k=e.length;ie.visible));r.forEach((function(e,s){let m,g,y=0;if(c[e]&&!c[e].isNull)n.push(c[e]),[-1,1].forEach((function(n){let i=1===n?"rightNull":"leftNull",o=a[r[s+n]],l=0;if(o){let n=h;for(;n>=0&&n=0&&tn&&o>c?(o=Math.max(n,c),s=2*c-o):of&&s>c?(s=Math.max(f,c),o=2*c-s):s=Math.abs(t)&&s>.5;return r=s-(t=Math.round(t)+a),l&&r&&(t-=1,r+=1),{x:e,y:t,width:n,height:r}}adjustForMissingColumns(e,t,n,r){if(!n.isNull&&r.columnCount>1){var i;let o=this.xAxis.series.filter((e=>e.visible)).map((e=>e.index)),a=0,s=0;v(null===(i=this.xAxis.stacking)||void 0===i?void 0:i.stacks,(e=>{if("number"==typeof n.x){let t=e[n.x.toString()];if(t){let e=t.points[this.index];if(m(e)){let e=Object.keys(t.points).filter((e=>!e.match(",")&&t.points[e]&&t.points[e].length>1)).map(parseFloat).filter((e=>-1!==o.indexOf(e))).sort(((e,t)=>t-e));a=e.indexOf(this.index),s=e.length}}}}));let l=(s-1)*r.paddedWidth+t;e=(n.plotX||0)+l/2-t-a*r.paddedWidth}return e}translate(){let e=this,t=e.chart,n=e.options,r=e.dense=e.closestPointRange*e.xAxis.transA<2,o=e.borderWidth=b(n.borderWidth,r?0:1),a=e.xAxis,s=e.yAxis,l=n.threshold,c=b(n.minPointLength,5),u=e.getColumnMetrics(),h=u.width,m=e.pointXOffset=u.offset,y=e.dataMin,v=e.dataMax,_=e.barW=Math.max(h,1+2*o),w=e.translatedThreshold=s.getThreshold(l);t.inverted&&(w-=.5),n.pointPadding&&(_=Math.ceil(_)),i.prototype.translate.apply(e),e.points.forEach((function(r){let i=b(r.yBottom,w),o=999+Math.abs(i),p=r.plotX||0,x=d(r.plotY,-o,s.len+o);r.stackBox;let k,T=Math.min(x,i),S=Math.max(x,i)-T,A=h,E=p+m,C=_;c&&Math.abs(S)c?i-c:w-(k?c:0)),f(r.options.pointWidth)&&(E-=Math.round(((A=C=Math.ceil(r.options.pointWidth))-h)/2)),n.centerInCategory&&!n.stacking&&(E=e.adjustForMissingColumns(E,A,r,u)),r.barX=E,r.pointWidth=A,r.tooltipPos=t.inverted?[d(s.len+s.pos-t.plotLeft-x,s.pos-t.plotLeft,s.len+s.pos-t.plotLeft),a.len+a.pos-t.plotTop-E-C/2,S]:[a.left-t.plotLeft+E+C/2,d(x+s.pos-t.plotTop,s.pos-t.plotTop,s.len+s.pos-t.plotTop),S],r.shapeType=e.pointClass.prototype.shapeType||"roundedRect",r.shapeArgs=e.crispCol(E,r.isNull?w:T,C,r.isNull?0:S)})),p(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(e,t){let n,r,i,o=this.options,a=this.pointAttrToOptions||{},s=a.stroke||"borderColor",c=a["stroke-width"]||"borderWidth",u=e&&e.color||this.color,d=e&&e[s]||o[s]||u,f=e&&e.options.dashStyle||o.dashStyle,h=e&&e[c]||o[c]||this[c]||0,p=b(e&&e.opacity,o.opacity,1);e&&this.zones.length&&(r=e.getZone(),u=e.options.color||r&&(r.color||e.nonZonedColor)||this.color,r&&(d=r.borderColor||d,f=r.dashStyle||f,h=r.borderWidth||h)),t&&e&&(i=(n=y(o.states[t],e.options.states&&e.options.states[t]||{})).brightness,u=n.color||void 0!==i&&l(u).brighten(n.brightness).get()||u,d=n[s]||d,h=n[c]||h,f=n.dashStyle||f,p=b(n.opacity,p));let m={fill:u,stroke:d,"stroke-width":h,opacity:p};return f&&(m.dashstyle=f),m}drawPoints(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.points,n=this,r=this.chart,i=n.options,o=r.renderer,a=i.animationLimit||250;t.forEach((function(t){let s=t.plotY,l=t.graphic,c=!!l,u=l&&r.pointCount0&&void 0!==arguments[0]?arguments[0]:this.points,n=this,r=n.chart,i=r.pointer,o=function(e){let t=i.getPointFromEvent(e);void 0!==t&&n.options.enableMouseTracking&&(i.isDirectTouch=!0,t.onMouseOver(e))};t.forEach((function(t){e=m(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach((function(e){e.div?e.div.point=t:e.element.point=t}))})),n._hasTracking||(n.trackerGroups.forEach((function(e){n[e]&&(n[e].addClass("highcharts-tracker").on("mouseover",o).on("mouseout",(function(e){i.onTrackerMouseOut(e)})),c&&n[e].on("touchstart",o),!r.styledMode&&n.options.cursor&&n[e].css({cursor:n.options.cursor}))})),n._hasTracking=!0),p(this,"afterDrawTracker")}remove(){let e=this,t=e.chart;t.hasRendered&&t.series.forEach((function(t){t.type===e.type&&(t.isDirty=!0)})),i.prototype.remove.apply(e,arguments)}}return w.defaultOptions=y(i.defaultOptions,n),h(w.prototype,{directTouch:!0,getSymbol:u,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),o.registerSeriesType("column",w),w})),n(t,"Core/Series/DataLabel.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],(function(e,t,n){var r;let{getDeferredAnimation:i}=e,{format:o}=t,{defined:a,extend:s,fireEvent:l,isArray:c,isString:u,merge:d,objectEach:f,pick:h,pInt:p,splat:m}=n;return function(e){let t=[];function r(){return m(this.options.dataLabels||{}).some((e=>null===e||void 0===e?void 0:e.enabled))}function g(e,t,n,r,i){let o,l,c,u=this,d=this.chart,f=this.isCartesian&&d.inverted,p=this.enabledDataSorting,m=e.plotX,g=e.plotY,y=n.rotation,b=n.align,v=a(m)&&a(g)&&d.isInsidePlot(m,Math.round(g),{inverted:f,paneCoordinates:!0,series:u}),_=n=>{p&&u.xAxis&&!w&&u.setDataLabelStartPos(e,t,i,v,n)},w="justify"===h(n.overflow,p?"none":"justify"),x=this.visible&&!1!==e.visible&&a(m)&&(e.series.forceDL||p&&!w||v||h(n.inside,!!this.options.stacking)&&r&&d.isInsidePlot(m,f?r.x+1:r.y+r.height-1,{inverted:f,paneCoordinates:!0,series:u})),k=e.pos();if(x&&k){y&&t.attr({align:b});let e=t.getBBox(!0),a=[0,0];if(o=d.renderer.fontMetrics(t).b,r=s({x:k[0],y:Math.round(k[1]),width:0,height:0},r),s(n,{width:e.width,height:e.height}),y?(w=!1,l=d.renderer.rotCorr(o,y),c={x:r.x+(n.x||0)+r.width/2+l.x,y:r.y+(n.y||0)+{top:0,middle:.5,bottom:1}[n.verticalAlign]*r.height},a=[e.x-Number(t.attr("x")),e.y-Number(t.attr("y"))],_(c),t[i?"attr":"animate"](c)):(_(r),t.align(n,void 0,r),c=t.alignAttr),w&&r.height>=0)this.justifyDataLabel(t,n,c,e,r,i);else if(h(n.crop,!0)){let{x:t,y:n}=c;t+=a[0],n+=a[1],x=d.isInsidePlot(t,n,{paneCoordinates:!0,series:u})&&d.isInsidePlot(t+e.width,n+e.height,{paneCoordinates:!0,series:u})}n.shape&&!y&&t[i?"attr":"animate"]({anchorX:k[0],anchorY:k[1]})}i&&p&&(t.placed=!1),x||p&&!w?t.show():(t.hide(),t.placed=!1)}function y(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function b(e){let t=this.hasRendered||0,n=this.initDataLabelsGroup().attr({opacity:+t});return!t&&n&&(this.visible&&n.show(),this.options.animation?n.animate({opacity:1},e):n.attr({opacity:1})),n}function v(e){var t,n,r;e=e||this.points;let s,c=this,d=c.chart,g=c.options,y=d.renderer,{backgroundColor:b,plotBackgroundColor:v}=d.options.chart,_=d.options.plotOptions,x=y.getContrast(u(v)&&v||u(b)&&b||"#000000"),k=g.dataLabels;k=w(w(null===_||void 0===_||null===(t=_.series)||void 0===t?void 0:t.dataLabels,null===_||void 0===_||null===(n=_[c.type])||void 0===n?void 0:n.dataLabels),k);let{animation:T,defer:S}=m(k)[0],A=S?i(d,T,c):{defer:0,duration:0};l(this,"drawDataLabels"),null!==(r=c.hasDataLabels)&&void 0!==r&&r.call(c)&&(s=this.initDataLabels(A),e.forEach((e=>{var t;let n=e.dataLabels||[];m(w(k,e.dlOptions||(null===(t=e.options)||void 0===t?void 0:t.dataLabels))).forEach(((t,r)=>{let i,l,m,b,v=t.enabled&&e.visible&&(!e.isNull||e.dataLabelOnNull)&&function(e,t){let n=t.filter;if(n){let t=n.operator,r=e[n.property],i=n.value;return">"===t&&r>i||"<"===t&&r="===t&&r>=i||"<="===t&&r<=i||"=="===t&&r==i||"==="===t&&r===i}return!0}(e,t),_=t.style||{},w=t.distance,k={},T=n[r],S=!T;if(v){if(l=h(t[e.formatPrefix+"Format"],t.format),i=e.getLabelConfig(),m=a(l)?o(l,i,d):(t[e.formatPrefix+"Formatter"]||t.formatter).call(i,t),b=t.rotation,!d.styledMode&&(_.color=h(t.color,_.color,u(c.color)?c.color:void 0,"#000000"),"contrast"===_.color?(e.contrastColor=y.getContrast(e.color||c.color),_.color=!a(w)&&t.inside||0>p(w||0)||g.stacking?e.contrastColor:x):delete e.contrastColor,g.cursor&&(_.cursor=g.cursor)),k={r:t.borderRadius||0,rotation:b,padding:t.padding,zIndex:1},!d.styledMode){let{backgroundColor:n,borderColor:r}=t;k.fill="auto"===n?e.color:n,k.stroke="auto"===r?e.color:r,k["stroke-width"]=t.borderWidth}f(k,((e,t)=>{void 0===e&&delete k[t]}))}if(!T||v&&a(m)&&!!T.div==!!t.useHTML&&(T.rotation&&t.rotation||T.rotation===t.rotation)||(T=void 0,S=!0),v&&a(m)&&(T?k.text=m:(T=b?y.text(m,0,0,t.useHTML).addClass("highcharts-data-label"):y.label(m,0,0,t.shape,void 0,void 0,t.useHTML,void 0,"data-label"))&&T.addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(t.className||"")+(t.useHTML?" highcharts-tracker":"")),T)){var A;T.options=t,T.attr(k),d.styledMode||T.css(_).shadow(t.shadow);let i=t[e.formatPrefix+"TextPath"]||t.textPath;i&&!t.useHTML&&(T.setTextPath((null===(A=e.getDataLabelPath)||void 0===A?void 0:A.call(e,T))||e.graphic,i),e.dataLabelPath&&!i.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),T.added||T.add(s),c.alignDataLabel(e,T,t,void 0,S),T.isActive=!0,n[r]&&n[r]!==T&&n[r].destroy(),n[r]=T}}));let r=n.length;for(;r--;){var i;n[r]&&n[r].isActive?n[r].isActive=!1:(null!==(i=n[r])&&void 0!==i&&i.destroy(),n.splice(r,1))}e.dataLabel=n[0],e.dataLabels=n}))),l(this,"afterDrawDataLabels")}function _(e,t,n,r,i,o){let a,s,l=this.chart,c=t.align,u=t.verticalAlign,d=e.box?0:e.padding||0,{x:f=0,y:h=0}=t;return(a=(n.x||0)+d)<0&&("right"===c&&f>=0?(t.align="left",t.inside=!0):f-=a,s=!0),(a=(n.x||0)+r.width-d)>l.plotWidth&&("left"===c&&f<=0?(t.align="right",t.inside=!0):f+=l.plotWidth-a,s=!0),(a=n.y+d)<0&&("bottom"===u&&h>=0?(t.verticalAlign="top",t.inside=!0):h-=a,s=!0),(a=(n.y||0)+r.height-d)>l.plotHeight&&("top"===u&&h<=0?(t.verticalAlign="bottom",t.inside=!0):h+=l.plotHeight-a,s=!0),s&&(t.x=f,t.y=h,e.placed=!o,e.align(t,void 0,i)),s}function w(e,t){let n,r=[];if(c(e)&&!c(t))r=e.map((function(e){return d(e,t)}));else if(c(t)&&!c(e))r=t.map((function(t){return d(e,t)}));else if(c(e)||c(t)){if(c(e)&&c(t))for(n=Math.max(e.length,t.length);n--;)r[n]=d(e[n],t[n])}else r=d(e,t);return r}function x(e,t,n,r,i){let o=this.chart,a=o.inverted,s=this.xAxis,l=s.reversed,c=((a?t.height:t.width)||0)/2,u=e.pointWidth,d=u?u/2:0;t.startXPos=a?i.x:l?-c-d:s.width-c+d,t.startYPos=a?l?this.yAxis.height-c+d:-c-d:i.y,r?"hidden"===t.visibility&&(t.show(),t.attr({opacity:0}).animate({opacity:1})):t.attr({opacity:1}).animate({opacity:0},void 0,t.hide),o.hasRendered&&(n&&t.attr({x:t.startXPos,y:t.startYPos}),t.placed=!0)}e.compose=function(e){if(n.pushUnique(t,e)){let t=e.prototype;t.initDataLabelsGroup=y,t.initDataLabels=b,t.alignDataLabel=g,t.drawDataLabels=v,t.justifyDataLabel=_,t.setDataLabelStartPos=x,t.hasDataLabels=r}}}(r||(r={})),r})),n(t,"Series/Column/ColumnDataLabel.js",[t["Core/Series/DataLabel.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n){var r;let{series:i}=t,{merge:o,pick:a}=n;return function(t){let r=[];function s(e,t,n,r,s){let l=this.chart.inverted,c=e.series,u=(c.xAxis?c.xAxis.len:this.chart.plotSizeX)||0,d=(c.yAxis?c.yAxis.len:this.chart.plotSizeY)||0,f=e.dlBox||e.shapeArgs,h=a(e.below,e.plotY>a(this.translatedThreshold,d)),p=a(n.inside,!!this.options.stacking);if(f){if(r=o(f),"allow"!==n.overflow||!1!==n.crop){r.y<0&&(r.height+=r.y,r.y=0);let e=r.y+r.height-d;e>0&&e\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}})),n(t,"Series/Scatter/ScatterSeries.js",[t["Series/Scatter/ScatterSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n){let{column:r,line:i}=t.seriesTypes,{addEvent:o,extend:a,merge:s}=n;class l extends i{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}applyJitter(){let e=this,t=this.options.jitter,n=this.points.length;t&&this.points.forEach((function(r,i){["x","y"].forEach((function(o,a){let s,l,c,u,d="plot"+o.toUpperCase();t[o]&&!r.isNull&&(s=e[o+"Axis"],u=t[o]*s.transA,s&&!s.isLog&&(l=Math.max(0,r[d]-u),c=Math.min(s.len,r[d]+u),r[d]=l+(c-l)*function(e){let t=1e4*Math.sin(e);return t-Math.floor(t)}(i+a*n),"x"===o&&(r.clientX=r.plotX)))}))}))}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return l.defaultOptions=s(i.defaultOptions,e),a(l.prototype,{drawTracker:r.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),o(l,"afterTranslate",(function(){this.applyJitter()})),t.registerSeriesType("scatter",l),l})),n(t,"Series/CenteredUtilities.js",[t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],(function(e,t,n){var r,i;let{deg2rad:o}=e,{fireEvent:a,isNumber:s,pick:l,relativeLength:c}=n;return(i=r||(r={})).getCenter=function(){let e,n,r,i=this.options,o=this.chart,u=2*(i.slicedOffset||0),d=o.plotWidth-2*u,f=o.plotHeight-2*u,h=i.center,p=Math.min(d,f),m=i.thickness,g=i.size,y=i.innerSize||0;"string"==typeof g&&(g=parseFloat(g)),"string"==typeof y&&(y=parseFloat(y));let b=[l(h[0],"50%"),l(h[1],"50%"),l(g&&g<0?void 0:i.size,"100%"),l(y&&y<0?void 0:i.innerSize||0,"0%")];for(!o.angular||this instanceof t||(b[3]=0),n=0;n<4;++n)r=b[n],e=n<2||2===n&&/%$/.test(r),b[n]=c(r,[d,f,p,b[2]][n])+(e?u:0);return b[3]>b[2]&&(b[3]=b[2]),s(m)&&2*m0&&(b[3]=b[2]-2*m),a(this,"afterGetCenter",{positions:b}),b},i.getStartAndEndRadians=function(e,t){let n=s(e)?e:0,r=s(t)&&t>n&&t-n<360?t:n+360;return{start:o*(n+-90),end:o*(r+-90)}},r})),n(t,"Series/Pie/PiePoint.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],(function(e,t,n){let{setAnimation:r}=e,{addEvent:i,defined:o,extend:a,isNumber:s,isString:l,pick:c,relativeLength:u}=n;class d extends t{constructor(){super(...arguments),this.half=0,this.options=void 0,this.series=void 0}getConnectorPath(e){let t=e.dataLabelPosition,n=e.options||{},r=n.connectorShape,i=this.connectorShapes[r]||r;return t&&i.call(this,{...t.computed,alignment:t.alignment},t.connectorPosition,n)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(e){let t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:t.r-1,start:t.start,end:t.end,borderRadius:t.borderRadius})}init(){super.init.apply(this,arguments),this.name=c(this.name,"Slice");let e=e=>{this.slice("select"===e.type)};return i(this,"select",e),i(this,"unselect",e),this}isValid(){return s(this.y)&&this.y>=0}setVisible(e,t){let n=this.series,r=n.chart,i=n.options.ignoreHiddenPoint;t=c(t,i),e!==this.visible&&(this.visible=this.options.visible=e=void 0===e?!this.visible:e,n.options.data[n.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach((t=>{this[t]&&this[t][e?"show":"hide"](e)})),this.legendItem&&r.legend.colorizeItem(this,e),e||"hover"!==this.state||this.setState(""),i&&(n.isDirty=!0),t&&r.redraw())}slice(e,t,n){let i=this.series,a=i.chart;r(n,a),t=c(t,!0),this.sliced=this.options.sliced=e=o(e)?e:!this.sliced,i.options.data[i.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return a(d.prototype,{connectorShapes:{fixedOffset:function(e,t,n){let r=t.breakAt,i=t.touchingSliceAt,o=n.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*r.x-i.x,2*r.y-i.y,r.x,r.y]:["L",r.x,r.y];return[["M",e.x,e.y],o,["L",i.x,i.y]]},straight:function(e,t){let n=t.touchingSliceAt;return[["M",e.x,e.y],["L",n.x,n.y]]},crookedLine:function(e,t,n){let{breakAt:r,touchingSliceAt:i}=t,{series:o}=this,[a,s,l]=o.center,c=l/2,{plotLeft:d,plotWidth:f}=o.chart,h="left"===e.alignment,{x:p,y:m}=e,g=r.x;if(n.crookDistance){let e=u(n.crookDistance,1);g=h?a+c+(f+d-a-c)*(1-e):d+(a-c)*e}else g=a+(s-m)*Math.tan((this.angle||0)-Math.PI/2);let y=[["M",p,m]];return(h?g<=p&&g>=r.x:g>=p&&g<=r.x)&&y.push(["L",g,m]),y.push(["L",r.x,r.y],["L",i.x,i.y]),y}}}),d})),n(t,"Series/Pie/PieSeriesDefaults.js",[],(function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}})),n(t,"Series/Pie/PieSeries.js",[t["Series/CenteredUtilities.js"],t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Series/Pie/PiePoint.js"],t["Series/Pie/PieSeriesDefaults.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/Symbols.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i,o,a,s,l){let{getStartAndEndRadians:c}=e,{noop:u}=n,{clamp:d,extend:f,fireEvent:h,merge:p,pick:m,relativeLength:g,splat:y}=l;class b extends o{constructor(){super(...arguments),this.center=void 0,this.data=void 0,this.options=void 0,this.points=void 0}animate(e){let t=this,n=t.points,r=t.startAngleRad;e||n.forEach((function(e){let n=e.graphic,i=e.shapeArgs;n&&i&&(n.attr({r:m(e.startR,t.center&&t.center[3]/2),start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},t.options.animation))}))}drawEmpty(){let e,t,n=this.startAngleRad,r=this.endAngleRad,i=this.options;0===this.total&&this.center?(e=this.center[0],t=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(e,t,this.center[1]/2,0,n,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:s.arc(e,t,this.center[2]/2,0,{start:n,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||"none",stroke:i.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let e=this.chart.renderer;this.points.forEach((function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)}))}generatePoints(){super.generatePoints(),this.updateTotals()}getX(e,t,n,r){let i=this.center,o=this.radii?this.radii[n.index]||0:i[2]/2,a=r.dataLabelPosition,s=(null===a||void 0===a?void 0:a.distance)||0,l=Math.asin(d((e-i[1])/(o+s),-1,1));return i[0]+(t?-1:1)*(Math.cos(l)*(o+s))+(s>0?(t?-1:1)*(r.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let e,t,n,r,i=this,o=i.chart;this.drawEmpty(),i.group&&!o.styledMode&&i.group.shadow(i.options.shadow),i.points.forEach((function(a){let s={};t=a.graphic,!a.isNull&&t?(r=a.shapeArgs,e=a.getTranslate(),o.styledMode||(n=i.pointAttribs(a,a.selected&&"select")),a.delayedRendering?(t.setRadialReference(i.center).attr(r).attr(e),o.styledMode||t.attr(n).attr({"stroke-linejoin":"round"}),a.delayedRendering=!1):(t.setRadialReference(i.center),o.styledMode||p(!0,s,n),p(!0,s,r,e),t.animate(s)),t.attr({visibility:a.visible?"inherit":"hidden"}),t.addClass(a.getClassName(),!0)):t&&(a.graphic=t.destroy())}))}sortByAngle(e,t){e.sort((function(e,n){return void 0!==e.angle&&(n.angle-e.angle)*t}))}translate(e){h(this,"translate"),this.generatePoints();let t,n,r,i,o,a,s,l=this.options,u=l.slicedOffset,d=c(l.startAngle,l.endAngle),f=this.startAngleRad=d.start,p=(this.endAngleRad=d.end)-f,m=this.points,g=l.ignoreHiddenPoint,y=m.length,b=0;for(e||(this.center=e=this.getCenter()),a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),s.slicedTranslation={translateX:Math.round(Math.cos(r)*u),translateY:Math.round(Math.sin(r)*u)},i=Math.cos(r)*e[2]/2,o=Math.sin(r)*e[2]/2,s.tooltipPos=[e[0]+.7*i,e[1]+.7*o],s.half=r<-Math.PI/2||r>Math.PI/2?1:0,s.angle=r}h(this,"afterTranslate")}updateTotals(){let e,t,n=this.points,r=n.length,i=this.options.ignoreHiddenPoint,o=0;for(e=0;e0&&(t.visible||!i)?t.y/o*100:0,t.total=o}}return b.defaultOptions=p(o.defaultOptions,i),f(b.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:t.prototype.drawTracker,getCenter:e.getCenter,getSymbol:u,isCartesian:!1,noSharedTooltip:!0,pointAttribs:t.prototype.pointAttribs,pointClass:r,requireSorting:!1,searchPoint:u,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",b),b})),n(t,"Series/Pie/PieDataLabel.js",[t["Core/Series/DataLabel.js"],t["Core/Globals.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i){var o;let{noop:a}=t,{distribute:s}=n,{series:l}=r,{arrayMax:c,clamp:u,defined:d,pick:f,relativeLength:h}=i;return function(t){let n=[],r={radialDistributionY:function(e,t){var n;return((null===(n=t.dataLabelPosition)||void 0===n?void 0:n.top)||0)+e.distributeBox.pos},radialDistributionX:function(e,t,n,r,i){let o=i.dataLabelPosition;return e.getX(n<((null===o||void 0===o?void 0:o.top)||0)+2||n>((null===o||void 0===o?void 0:o.bottom)||0)-2?r:n,t.half,t,i)},justify:function(e,t,n,r){var i;return r[0]+(e.half?-1:1)*(n+((null===(i=t.dataLabelPosition)||void 0===i?void 0:i.distance)||0))},alignToPlotEdges:function(e,t,n,r){let i=e.getBBox().width;return t?i+r:n-i-r},alignToConnectors:function(e,t,n,r){let i,o=0;return e.forEach((function(e){(i=e.dataLabel.getBBox().width)>o&&(o=i)})),t?o+r:n-o-r}};function o(e,t){let{center:n,options:r}=this,i=n[2]/2,o=e.angle||0,a=Math.cos(o),s=Math.sin(o),l=n[0]+a*i,c=n[1]+s*i,u=Math.min((r.slicedOffset||0)+(r.borderWidth||0),t/5);return{natural:{x:l+a*t,y:c+s*t},computed:{},alignment:t<0?"center":e.half?"right":"left",connectorPosition:{breakAt:{x:l+a*u,y:c+s*u},touchingSliceAt:{x:l,y:c}},distance:t}}function p(){var e;let t,n,r,i=this,o=i.points,a=i.chart,u=a.plotWidth,p=a.plotHeight,m=a.plotLeft,g=Math.round(a.chartWidth/3),y=i.center,b=y[2]/2,v=y[1],_=[[],[]],w=[0,0,0,0],x=i.dataLabelPositioners,k=0;i.visible&&(null===(e=i.hasDataLabels)||void 0===e?void 0:e.call(i))&&(o.forEach((e=>{(e.dataLabels||[]).forEach((e=>{e.shortened&&(e.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),e.shortened=!1)}))})),l.prototype.drawDataLabels.apply(i),o.forEach((e=>{(e.dataLabels||[]).forEach(((t,n)=>{var r;let i=y[2]/2,o=t.options,a=h((null===o||void 0===o?void 0:o.distance)||0,i);0===n&&_[e.half].push(e),!d(null===o||void 0===o||null===(r=o.style)||void 0===r?void 0:r.width)&&t.getBBox().width>g&&(t.css({width:Math.round(.7*g)+"px"}),t.shortened=!0),t.dataLabelPosition=this.getDataLabelPosition(e,a),k=Math.max(k,a)}))})),_.forEach(((e,t)=>{let o,l,c,h=e.length,g=[],_=0;h&&(i.sortByAngle(e,t-.5),k>0&&(o=Math.max(0,v-b-k),l=Math.min(v+b+k,a.plotHeight),e.forEach((e=>{(e.dataLabels||[]).forEach(((t,n)=>{var r;let i=t.dataLabelPosition;i&&i.distance>0&&(i.top=Math.max(0,v-b-i.distance),i.bottom=Math.min(v+b+i.distance,a.plotHeight),_=t.getBBox().height||21,e.distributeBox={target:((null===(r=t.dataLabelPosition)||void 0===r?void 0:r.natural.y)||0)-i.top+_/2,size:_,rank:e.y},g.push(e.distributeBox))}))})),s(g,c=l+_-o,c/5)),e.forEach((o=>{(o.dataLabels||[]).forEach((a=>{let s=a.options||{},l=o.distributeBox,c=a.dataLabelPosition,h=(null===c||void 0===c?void 0:c.natural.y)||0,v=s.connectorPadding||0,_=0,k=h,T="inherit";if(c){if(g&&d(l)&&c.distance>0&&(void 0===l.pos?T="hidden":(r=l.size,k=x.radialDistributionY(o,a))),s.justify)_=x.justify(o,a,b,y);else switch(s.alignTo){case"connectors":_=x.alignToConnectors(e,t,u,m);break;case"plotEdges":_=x.alignToPlotEdges(a,t,u,m);break;default:_=x.radialDistributionX(i,o,k,h,a)}if(c.attribs={visibility:T,align:c.alignment},c.posAttribs={x:_+(s.x||0)+({left:v,right:-v}[c.alignment]||0),y:k+(s.y||0)-a.getBBox().height/2},c.computed.x=_,c.computed.y=k,f(s.crop,!0)){let e;_-(n=a.getBBox().width)u-v&&0===t&&(e=Math.round(_+n-u+v),w[1]=Math.max(e,w[1])),k-r/2<0?w[0]=Math.max(Math.round(r/2-k),w[0]):k+r/2>p&&(w[2]=Math.max(Math.round(k+r/2-p),w[2])),c.sideOverflow=e}}}))})))})),(0===c(w)||this.verifyDataLabelOverflow(w))&&(this.placeDataLabels(),this.points.forEach((e=>{(e.dataLabels||[]).forEach((n=>{let{connectorColor:r,connectorWidth:o=1}=n.options||{},s=n.dataLabelPosition;if(o){var l;let c;t=n.connector,s&&s.distance>0?(c=!t,t||(n.connector=t=a.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(i.dataLabelsGroup)),a.styledMode||t.attr({"stroke-width":o,stroke:r||e.color||"#666666"}),t[c?"attr":"animate"]({d:e.getConnectorPath(n)}),t.attr({visibility:null===(l=s.attribs)||void 0===l?void 0:l.visibility})):t&&(n.connector=t.destroy())}}))}))))}function m(){this.points.forEach((e=>{(e.dataLabels||[]).forEach((e=>{var t;let n=e.dataLabelPosition;n?(n.sideOverflow&&(e.css({width:Math.max(e.getBBox().width-n.sideOverflow,0)+"px",textOverflow:((null===(t=e.options)||void 0===t?void 0:t.style)||{}).textOverflow||"ellipsis"}),e.shortened=!0),e.attr(n.attribs),e[e.moved?"animate":"attr"](n.posAttribs),e.moved=!0):e&&e.attr({y:-9999})})),delete e.distributeBox}),this)}function g(e){let t=this.center,n=this.options,r=n.center,i=n.minSize||80,o=i,a=null!==n.size;return!a&&(null!==r[0]?o=Math.max(t[2]-Math.max(e[1],e[3]),i):(o=Math.max(t[2]-e[1]-e[3],i),t[0]+=(e[3]-e[1])/2),null!==r[1]?o=u(o,i,t[2]-Math.max(e[0],e[2])):(o=u(o,i,t[2]-e[0]-e[2]),t[1]+=(e[0]-e[2])/2),o!(t.x>=e.x+e.width||t.x+t.width<=e.x||t.y>=e.y+e.height||t.y+t.height<=e.y),f=e=>{let t,n,i,o,a,s=e.box?0:e.padding||0,l=0,c=0;if(e&&(!e.alignAttr||e.placed))return t=e.alignAttr||{x:e.attr("x"),y:e.attr("y")},n=e.parentGroup,e.width||(i=e.getBBox(),e.width=i.width,e.height=i.height,l=u.fontMetrics(e.element).h),o=e.width-2*s,(a={left:"0",center:"0.5",right:"1"}[e.alignValue])?c=+a*o:r(e.x)&&Math.round(e.x)!==e.translateX&&(c=e.x-(e.translateX||0)),{x:t.x+(n.translateX||0)+s-(c||0),y:t.y+(n.translateY||0)+s-l,width:e.width-2*s,height:(e.height||0)-2*s}},h=!1;for(let n=0;n(t.labelrank||0)-(e.labelrank||0)));for(let n=0;n{i(e,(e=>{e.label&&t.push(e.label)}))}));for(let r of e.series||[]){var n;if(r.visible&&null!==(n=r.hasDataLabels)&&void 0!==n&&n.call(r)){let n=n=>{for(let r of n)r.visible&&(r.dataLabels||[]).forEach((n=>{var i,a;let s=n.options||{};n.labelrank=o(s.labelrank,r.labelrank,null===(i=r.shapeArgs)||void 0===i?void 0:i.height),(null!==(a=s.allowOverlap)&&void 0!==a?a:Number(s.distance)>0)?(n.oldOpacity=n.opacity,n.newOpacity=1,c(n,e)):t.push(n)}))};n(r.nodes||[]),n(r.points)}}this.hideOverlappingLabels(t)}return{compose:function(e){a(s,e)&&(e.prototype.hideOverlappingLabels=l,t(e,"render",u))}}})),n(t,"Extensions/BorderRadius.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t,n){let{defaultOptions:r}=e,{noop:i}=t,{addEvent:o,extend:a,isObject:s,merge:l,pushUnique:c,relativeLength:u}=n,d=[],f={radius:0,scope:"stack",where:void 0},h=i,p=i;function m(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=h(e,t,n,r,i),{innerR:a=0,r:s=n,start:l=0,end:c=0}=i;if(i.open||!i.borderRadius)return o;let d=c-l,f=Math.sin(d/2),p=Math.max(Math.min(u(i.borderRadius||0,s-a),(s-a)/2,s*f/(1+f)),0),m=Math.min(p,d/Math.PI*2*a),g=o.length-1;for(;g--;)!function(e,t,n){let r,i,o,a=e[t],s=e[t+1];if("Z"===s[0]&&(s=e[0]),"M"!==a[0]&&"L"!==a[0]||"A"!==s[0]?"A"===a[0]&&("M"===s[0]||"L"===s[0])&&(r=s,i=a):(r=a,i=s,o=!0),r&&i&&i.params){let a=i[1],s=i[5],l=i.params,{start:c,end:u,cx:d,cy:f}=l,h=s?a-n:a+n,p=h?Math.asin(n/h):0,m=s?p:-p,g=Math.cos(p)*h;o?(l.start=c+m,r[1]=d+g*Math.cos(c),r[2]=f+g*Math.sin(c),e.splice(t+1,0,["A",n,n,0,0,1,d+a*Math.cos(l.start),f+a*Math.sin(l.start)])):(l.end=u-m,i[6]=d+a*Math.cos(l.end),i[7]=f+a*Math.sin(l.end),e.splice(t+1,0,["A",n,n,0,0,1,d+g*Math.cos(u),f+g*Math.sin(u)])),i[4]=Math.abs(l.end-l.start)1?m:p);return o}function g(){if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){var e;let{options:t,yAxis:n}=this,i="percent"===t.stacking,o=null===(e=r.plotOptions)||void 0===e||null===(e=e[this.type])||void 0===e?void 0:e.borderRadius,l=y(t.borderRadius,s(o)?o:{}),c=n.options.reversed;for(let e of this.points){let{shapeArgs:r}=e;if("roundedRect"===e.shapeType&&r){let{width:o=0,height:s=0,y:d=0}=r,f=d,h=s;if("stack"===l.scope&&e.stackTotal){let r=n.translate(i?100:e.stackTotal,!1,!0,!1,!0),o=n.translate(t.threshold||0,!1,!0,!1,!0),a=this.crispCol(0,Math.min(r,o),0,Math.abs(r-o));f=a.y,h=a.height}let p=(e.negative?-1:1)*(c?-1:1)==-1,m=l.where;!m&&this.is("waterfall")&&Math.abs((e.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(m="all"),m||(m="end");let g=Math.min(u(l.radius,o),o/2,"all"===m?s/2:1/0)||0;"end"===m&&(p&&(f-=g),h+=g),a(r,{brBoxHeight:h,brBoxY:f,r:g})}}}}function y(e,t){return s(e)||(e={radius:e||0}),l(f,t,e)}function b(){let e=y(this.options.borderRadius);for(let t of this.points){let n=t.shapeArgs;n&&(n.borderRadius=u(e.radius,(n.r||0)-(n.innerR||0)))}}function v(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=p(e,t,n,r,i),{r:a=0,brBoxHeight:s=r,brBoxY:l=t}=i,c=t-l,u=l+s-(t+r),d=c-a>-.1?0:a,f=u-a>-.1?0:a,h=Math.max(d&&c,0),m=Math.max(f&&u,0),g=[e+d,t],y=[e+n-d,t],b=[e+n,t+d],v=[e+n,t+r-f],_=[e+n-f,t+r],w=[e+f,t+r],x=[e,t+r-f],k=[e,t+d],T=(e,t)=>Math.sqrt(Math.pow(e,2)-Math.pow(t,2));if(h){let e=T(d,d-h);g[0]-=e,y[0]+=e,b[1]=k[1]=t+d-h}if(r=c(n.minWidth,0)&&this.chartHeight>=c(n.minHeight,0)}).call(this)&&t.push(e._id)}function l(e,t){let r,o=this.options.responsive,a=this.currentResponsive,l=[];!t&&o&&o.rules&&o.rules.forEach((e=>{void 0===e._id&&(e._id=d()),this.matchResponsiveRule(e,l)}),this);let c=s(...l.map((e=>i((o||{}).rules||[],(t=>t._id===e)))).map((e=>e&&e.chartOptions)));c.isResponsiveOptions=!0,l=l.toString()||void 0;let u=a&&a.ruleIds;l!==u&&(a&&this.update(a.undoOptions,e,!0),l?((r=n(c,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:l,mergedOptions:c,undoOptions:r},this.update(c,e,!0)):this.currentResponsive=void 0)}t.compose=function(t){return e.pushUnique(o,t)&&r(t.prototype,{matchResponsiveRule:a,setResponsive:l}),t}}(t||(t={})),t})),n(t,"masters/highcharts.src.js",[t["Core/Globals.js"],t["Core/Utilities.js"],t["Core/Defaults.js"],t["Core/Animation/Fx.js"],t["Core/Animation/AnimationUtilities.js"],t["Core/Renderer/HTML/AST.js"],t["Core/Templating.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Renderer/HTML/HTMLElement.js"],t["Core/Renderer/HTML/HTMLRenderer.js"],t["Core/Axis/Axis.js"],t["Core/Axis/DateTimeAxis.js"],t["Core/Axis/LogarithmicAxis.js"],t["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],t["Core/Axis/Tick.js"],t["Core/Tooltip.js"],t["Core/Series/Point.js"],t["Core/Pointer.js"],t["Core/Legend/Legend.js"],t["Core/Chart/Chart.js"],t["Core/Axis/Stacking/StackingAxis.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Column/ColumnSeries.js"],t["Series/Column/ColumnDataLabel.js"],t["Series/Pie/PieSeries.js"],t["Series/Pie/PieDataLabel.js"],t["Core/Series/DataLabel.js"],t["Extensions/OverlappingDataLabels.js"],t["Extensions/BorderRadius.js"],t["Core/Responsive.js"],t["Core/Color/Color.js"],t["Core/Time.js"]],(function(e,t,n,r,i,o,a,s,l,c,u,d,f,h,p,m,g,y,b,v,_,w,x,k,T,S,A,E,C,O,M,P,I,N,j,R){return e.animate=i.animate,e.animObject=i.animObject,e.getDeferredAnimation=i.getDeferredAnimation,e.setAnimation=i.setAnimation,e.stop=i.stop,e.timers=r.timers,e.AST=o,e.Axis=f,e.Chart=w,e.chart=w.chart,e.Fx=r,e.Legend=_,e.PlotLineOrBand=m,e.Point=b,e.Pointer=v,e.Series=T,e.StackItem=k,e.SVGElement=l,e.SVGRenderer=c,e.Templating=a,e.Tick=g,e.Time=R,e.Tooltip=y,e.Color=j,e.color=j.parse,d.compose(c),u.compose(l),v.compose(w),_.compose(w),e.defaultOptions=n.defaultOptions,e.getOptions=n.getOptions,e.time=n.defaultTime,e.setOptions=n.setOptions,e.dateFormat=a.dateFormat,e.format=a.format,e.numberFormat=a.numberFormat,t.extend(e,t),e.distribute=s.distribute,e.seriesType=S.seriesType,E.compose(A),I.compose(T,C,l,c),M.compose(T),h.compose(f),p.compose(f),P.compose(w),O.compose(C),m.compose(f),N.compose(w),x.compose(f,w,T),y.compose(v),e})),n(t,"Core/Axis/BrokenAxis.js",[t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],(function(e,t){var n;let{addEvent:r,find:i,fireEvent:o,isArray:a,isNumber:s,pick:l}=t;return function(n){let c=[];function u(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function d(){var e;(null===(e=this.brokenAxis)||void 0===e?void 0:e.hasBreaks)&&(this.options.ordinal=!1)}function f(){let e=this.brokenAxis;if(null!==e&&void 0!==e&&e.hasBreaks){let t=this.tickPositions,n=this.tickPositions.info,r=[];for(let i=0;it.to||i>t.from&&at.from&&at.from&&a>t.to&&a0){let t,s;for("value"!==this.options.gapUnit&&(o*=this.basePointRange),n&&n>o&&n>=this.basePointRange&&(o=n);a--;)if(s&&!1!==s.visible||(s=r[a+1]),t=r[a],!1!==s.visible&&!1!==t.visible){if(s.x-t.x>o){let n=(t.x+s.x)/2;r.splice(a+1,0,{isNull:!0,x:n}),i.stacking&&this.options.stacking&&((i.stacking.stacks[this.stackKey][n]=new e(i,i.options.stackLabels,!1,n,this.stack)).total=0)}s=t}}return this.getGraphPath(r)}n.compose=function(e,n){if(t.pushUnique(c,e)&&(e.keepProps.push("brokenAxis"),r(e,"init",h),r(e,"afterInit",u),r(e,"afterSetTickPositions",f),r(e,"afterSetOptions",d)),t.pushUnique(c,n)){let e=n.prototype;e.drawBreaks=g,e.gappedPath=y,r(n,"afterGeneratePoints",p),r(n,"afterRender",m)}return e};class b{static isInBreak(e,t){let n=e.repeat||1/0,r=e.from,i=e.to-e.from,o=t>=r?(t-r)%n:n-(r-t)%n;return e.inclusive?o<=i:o=o);i++)(r.to=e)break;if(b.isInBreak(r,e)){o-=e-r.from;break}}return o}constructor(e){this.hasBreaks=!1,this.axis=e}findBreakAt(e,t){return i(t,(function(t){return t.fromp;)i-=t;for(;ithis.chart.plotSizeX/o||t&&n.forced)&&(s=!0));return s?o:0}function u(){this.series.forEach((function(e){e.hasProcessed=!1}))}function d(e,t){let r;if(t=a(t,!0),e||(e={forced:!1,units:null}),this instanceof n)for(r=this.series.length;r--;)this.series[r].update({dataGrouping:e},!1);else this.chart.options.series.forEach((function(t){t.dataGrouping="boolean"==typeof e?e:o(e,t.dataGrouping)}));this.ordinal&&(this.ordinal.slope=void 0),t&&this.chart.redraw()}return{compose:function(e){n=e,t.pushUnique(s,e)&&(r(e,"afterSetScale",u),r(e,"postProcessData",l),i(e.prototype,{applyGrouping:l,getGroupPixelWidth:c,setDataGrouping:d}))}}})),n(t,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[t["Extensions/DataGrouping/ApproximationRegistry.js"],t["Extensions/DataGrouping/DataGroupingDefaults.js"],t["Core/Axis/DateTimeAxis.js"],t["Core/Defaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i,o){let{series:{prototype:a}}=i,{addEvent:s,defined:l,error:c,extend:u,isNumber:d,merge:f,pick:h}=o,p=a.generatePoints,m=[];function g(e){var r;let i,o,s=this.chart,u=this.options.dataGrouping,f=!1!==this.allowDG&&u&&h(u.enabled,s.options.isStock),p=this.reserveSpace(),m=this.currentDataGrouping,g=!1;f&&!this.requireSorting&&(this.requireSorting=g=!0);let y=0==!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!e)||!f;if(g&&(this.requireSorting=!1),!y){let e,f;this.destroyGroupedData();let g=u.groupAll?this.xData:this.processedXData,y=u.groupAll?this.yData:this.processedYData,b=s.plotSizeX,v=this.xAxis,_=v.options.ordinal,w=this.groupPixelWidth;if(w&&g&&g.length&&b){f=!0,this.isDirty=!0,this.points=null;let m=v.getExtremes(),x=m.min,k=m.max,T=w*(k-x)/b*(_&&v.ordinal&&v.ordinal.getGroupIntervalFactor(x,k,this)||1),S=v.getTimeTicks(n.Additions.prototype.normalizeTimeTickInterval(T,u.units||t.units),Math.min(x,g[0]),Math.max(k,g[g.length-1]),v.options.startOfWeek,g,this.closestPointRange),A=a.groupData.apply(this,[g,y,S,u.approximation]),E=A.groupedXData,C=A.groupedYData,O=0;for(u&&u.smoothed&&E.length&&(u.firstAnchor="firstPoint",u.anchor="middle",u.lastAnchor="lastPoint",c(32,!1,s,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),e=1;e0;)t[r]+=e}if(l&&"start"!==l&&e.xData[0]>=t[0]){let n,r=e.groupMap[0].start,i=e.groupMap[0].length;d(r)&&d(i)&&(n=r+(i-1)),t[0]={middle:t[0]+.5*o,end:t[0]+o,firstPoint:e.xData[0],lastPoint:n&&e.xData[n]}[l]}if(c&&"start"!==c&&o&&t[a]>=n-o){let n=e.groupMap[e.groupMap.length-1].start;t[a]={middle:t[a]+.5*o,end:t[a]+o,firstPoint:n&&e.xData[n],lastPoint:e.xData[e.xData.length-1]}[c]}}}(this,E,k),p&&(l((r=E)[0])&&d(v.min)&&d(v.dataMin)&&r[0]v.max&&((!l(v.options.max)&&d(v.dataMax)&&v.max>=v.dataMax||v.max===v.dataMax)&&(v.max=Math.max(r[r.length-1],v.max)),v.dataMax=Math.max(r[r.length-1],v.dataMax))),u.groupAll&&(this.allGroupedData=C,E=(o=this.cropData(E,C,v.min,v.max)).xData,C=o.yData,this.cropStart=o.start),this.processedXData=E,this.processedYData=C}else this.groupMap=null;this.hasGroupedData=f,this.preventGraphAnimation=(m&&m.totalRange)!==(i&&i.totalRange)}}function y(){this.groupedData&&(this.groupedData.forEach((function(e,t){e&&(this.groupedData[t]=e.destroy?e.destroy():null)}),this),this.groupedData.length=0)}function b(){p.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function v(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")||this.options.cumulative?"sum":"average"}function _(t,n,r,i){let o,a,s,c=this,u=c.data,h=c.options&&c.options.data,p=[],m=[],g=[],y=t.length,b=!!n,v=[],_=c.pointArrayMap,w=_&&_.length,x=["x"].concat(_||["y"]),k=this.options.dataGrouping&&this.options.dataGrouping.groupAll,T=0,S=0,A="function"==typeof i?i:i&&e[i]?e[i]:e[c.getDGApproximation&&c.getDGApproximation()||"average"];if(w){let e=_.length;for(;e--;)v.push([])}else v.push([]);let E=w||1;for(let e=0;e<=y;e++)if(!(t[e]=r[T+1]||e===y;){o=r[T],c.dataGroupInfo={start:k?S:c.cropStart+S,length:v[0].length},s=A.apply(c,v),c.pointClass&&!l(c.dataGroupInfo.options)&&(c.dataGroupInfo.options=f(c.pointClass.prototype.optionsToObject.call({series:c},c.options.data[c.cropStart+S])),x.forEach((function(e){delete c.dataGroupInfo.options[e]}))),void 0!==s&&(p.push(o),m.push(s),g.push(c.dataGroupInfo)),S=e;for(let e=0;e{let t=e.axis.getExtremes(),i=t.min,o=t.max,a=r(e.axis.minPointOffset,0);return n(i)&&n(o)&&e.value>=i-a&&e.value<=o+a&&!e.axis.options.isInternal}))[0]},getFieldType:function(e,n){let r=i[e],o=typeof n;return t(r)&&(o=r),{string:"text",number:"number",boolean:"checkbox"}[o]}}})),n(t,"Extensions/MouseWheelZoom/MouseWheelZoom.js",[t["Core/Utilities.js"],t["Extensions/Annotations/NavigationBindingsUtilities.js"]],(function(e,t){let n,r,i,{addEvent:o,isObject:a,pick:s,defined:l,merge:c,isNumber:u}=e,{getAssignedAxis:d}=t,f=[],h={enabled:!0,sensitivity:1.1},p=function(e){let t=e.options;l(n)&&clearTimeout(n),l(r)||(r=t.startOnTick,i=t.endOnTick),(r||i)&&(t.startOnTick=!1,t.endOnTick=!1),n=setTimeout((()=>{if(l(r)&&l(i)){t.startOnTick=r,t.endOnTick=i;let{min:n,max:o}=e.getExtremes();e.forceRedraw=!0,e.setExtremes(n,o),r=i=void 0}}),400)},m=function(e,t,n,r,i){let o=t.isXAxis,a=!1;if(l(t.max)&&l(t.min)&&l(t.dataMax)&&l(t.dataMin)){o||p(t);let c=t.max-t.min,d=u(i)?i:t.min+c/2,f=function(e,t,n){if(!l(n))return.5;let r=(n-t.pos)/t.len,i=t.isXAxis;return i&&!t.reversed!=!e.inverted||!i&&t.reversed?1-r:r}(e,t,n),h=c*r,m=d-h*f,g=s(t.options.max,t.dataMax)-s(t.options.min,t.dataMin),y=t.options.min?0:g*t.options.minPadding,b=t.options.max?0:g*t.options.maxPadding,v=s(t.options.min,t.dataMin)-y,_=g+b+y,w=((e,t,n,r)=>(n+r>e+t&&(r>t?(r=t,n=e):n=e+t-r),r>t&&(r=t),n_&&w.rangeStart+w.rangeWidtha(e)?c(h,e):c(h,{enabled:!l(e)||e}))(e.zooming.mouseWheel);t.enabled&&o(this.container,"wheel",(n=>{n=this.pointer.normalize(n);let r=!e.pointer.inClass(n.target,"highcharts-no-mousewheel");if(e.isInsidePlot(n.chartX-e.plotLeft,n.chartY-e.plotTop)&&r){let r=t.sensitivity||1.1,i=n.detail||(n.deltaY||0)/120,o=d(this.pointer.getCoordinates(n).xAxis),a=d(this.pointer.getCoordinates(n).yAxis);g(e,Math.pow(r,i),o?o.axis:e.xAxis[0],a?a.axis:e.yAxis[0],n.chartX,n.chartY,t)&&n.preventDefault&&n.preventDefault()}}))}return{compose:function(e){-1===f.indexOf(e)&&(f.push(e),o(e,"afterGetContainer",y))}}})),n(t,"masters/modules/mouse-wheel-zoom.src.js",[t["Core/Globals.js"],t["Extensions/MouseWheelZoom/MouseWheelZoom.js"]],(function(e,t){t.compose(e.Chart)})),n(t,"Series/DataModifyComposition.js",[t["Core/Axis/Axis.js"],t["Core/Series/Point.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],(function(e,t,n,r){var i;let{prototype:{tooltipFormatter:o}}=t,{addEvent:a,arrayMax:s,arrayMin:l,correctFloat:c,defined:u,isArray:d,isNumber:f,isString:h,pick:p}=r;return function(e){let t=[];function n(e,t,n){!this.isXAxis&&(this.series.forEach((function(n){"compare"===e&&"boolean"!=typeof t?n.setCompare(t,!1):"cumulative"!==e||h(t)||n.setCumulative(t,!1)})),p(n,!0)&&this.chart.redraw())}function i(e){let t=this,{numberFormatter:n}=t.series.chart,r=function(r){e=e.replace("{point."+r+"}",(t[r]>0&&"change"===r?"+":"")+n(t[r],p(t.series.tooltipOptions.changeDecimals,2)))};return u(t.change)&&r("change"),u(t.cumulativeSum)&&r("cumulativeSum"),o.apply(this,[e])}function m(){let e,t=this.options.compare;("percent"===t||"value"===t||this.options.cumulative)&&(e=new x(this),"percent"===t||"value"===t?e.initCompare(t):e.initCumulative()),this.dataModify=e}function g(e){let t=e.dataExtremes,n=t.activeYData;if(this.dataModify&&t){let e;this.options.compare?e=[this.dataModify.modifyValue(t.dataMin),this.dataModify.modifyValue(t.dataMax)]:this.options.cumulative&&d(n)&&n.length>=2&&(e=x.getCumulativeExtremes(n)),e&&(t.dataMin=l(e),t.dataMax=s(e))}}function y(e,t){this.options.compare=this.userOptions.compare=e,this.update({},p(t,!0)),!this.dataModify||"value"!==e&&"percent"!==e?this.points.forEach((e=>{delete e.change})):this.dataModify.initCompare(e)}function b(){if(this.xAxis&&this.processedYData&&this.dataModify){let e,t=this.processedXData,n=this.processedYData,r=n.length,i=!0===this.options.compareStart?0:1,o=-1;for(this.pointArrayMap&&(o=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),e=0;e-1?n[e][o]:n[e];if(f(r)&&0!==r&&t[e+i]>=(this.xAxis.min||0)){this.dataModify.compareValue=r;break}}}}function v(e,t){this.setModifier("compare",e,t)}function _(e,t){e=p(e,!1),this.options.cumulative=this.userOptions.cumulative=e,this.update({},p(t,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach((e=>{delete e.cumulativeSum}))}function w(e,t){this.setModifier("cumulative",e,t)}e.compose=function(e,o,s){if(r.pushUnique(t,e)){let t=e.prototype;t.setCompare=y,t.setCumulative=_,a(e,"afterInit",m),a(e,"afterGetExtremes",g),a(e,"afterProcessData",b)}if(r.pushUnique(t,o)){let e=o.prototype;e.setCompare=v,e.setModifier=n,e.setCumulative=w}return r.pushUnique(t,s)&&(s.prototype.tooltipFormatter=i),e};class x{constructor(e){this.series=e}modifyValue(){return 0}static getCumulativeExtremes(e){let t=1/0,n=-1/0;return e.reduce(((e,r)=>{let i=e+r;return t=Math.min(t,i,e),n=Math.max(n,i,e),i})),[t,n]}initCompare(e){this.modifyValue=function(t,n){null===t&&(t=0);let r=this.compareValue;if(void 0!==t&&void 0!==r){if("value"===e?t-=r:t=t/r*100-(100===this.series.options.compareBase?0:100),void 0!==n){let e=this.series.points[n];e&&(e.change=t)}return t}return 0}}initCumulative(){this.modifyValue=function(e,t){if(null===e&&(e=0),void 0!==e&&void 0!==t){let n=t>0?this.series.points[t-1]:null;n&&n.cumulativeSum&&(e=c(n.cumulativeSum+e));let r=this.series.points[t];return r&&(r.cumulativeSum=e),e}return 0}}}e.Additions=x}(i||(i={})),i})),n(t,"Core/Axis/NavigatorAxisComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t){let{isTouchDevice:n}=e,{addEvent:r,correctFloat:i,defined:o,isNumber:a,pick:s}=t,l=[];function c(){this.navigatorAxis||(this.navigatorAxis=new d(this))}function u(e){let t=this.chart,r=t.options,i=r.navigator,a=this.navigatorAxis,s=t.zooming.pinchType,l=r.rangeSelector,c=t.zooming.type;if(this.isXAxis&&(i&&i.enabled||l&&l.enabled))if("y"===c)e.zoomed=!1;else if((!n&&"xy"===c||n&&"xy"===s)&&this.options.range){let t=a.previousZoom;o(e.newMin)?a.previousZoom=[this.min,this.max]:t&&(e.newMin=t[0],e.newMax=t[1],a.previousZoom=void 0)}void 0!==e.zoomed&&e.preventDefault()}class d{static compose(e){t.pushUnique(l,e)&&(e.keepProps.push("navigatorAxis"),r(e,"init",c),r(e,"zoom",u))}constructor(e){this.axis=e}destroy(){this.axis=void 0}toFixedRange(e,t,n,r){let l=this.axis,c=l.chart,u=s(n,l.translate(e,!0,!l.horiz)),d=s(r,l.translate(t,!0,!l.horiz)),f=c&&c.fixedRange,h=(l.pointRange||0)/2;return o(n)||(u=i(u+h)),o(r)||(d=i(d-h)),f&&l.dataMin&&l.dataMax&&(d>=l.dataMax&&(u=i(l.dataMax-f)),u<=l.dataMin&&(d=i(l.dataMin+f))),a(u)&&a(d)||(u=d=void 0),{min:u,max:d}}}return d})),n(t,"Stock/Navigator/NavigatorDefaults.js",[t["Core/Color/Color.js"],t["Core/Series/SeriesRegistry.js"]],(function(e,t){let{parse:n}=e,{seriesTypes:r}=t;return{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:n("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===r.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}})),n(t,"Stock/Navigator/NavigatorSymbols.js",[],(function(){return{"navigator-handle":function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=i.width?i.width/2:n,a=Math.round(o/3)+.5;return[["M",-o-1,.5],["L",o,.5],["L",o,(r=i.height||r)+.5],["L",-o-1,r+.5],["L",-o-1,.5],["M",-a,4],["L",-a,r-3],["M",a-1,4],["L",a-1,r-3]]}}})),n(t,"Stock/Navigator/NavigatorComposition.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxisComposition.js"],t["Stock/Navigator/NavigatorDefaults.js"],t["Stock/Navigator/NavigatorSymbols.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i,o,a){let s,{defaultOptions:l,setOptions:c}=e,{isTouchDevice:u}=t,{getRendererType:d}=o,{addEvent:f,extend:h,merge:p,pick:m}=a,g=[];function y(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function b(){let e,t,n,r=this.legend,i=this.navigator;if(i){var o;e=r&&r.options,t=i.xAxis,n=i.yAxis;let{scrollbarHeight:a,scrollButtonSize:s}=i;this.inverted?(i.left=i.opposite?this.chartWidth-a-i.height:this.spacing[3]+a,i.top=this.plotTop+s):(i.left=m(t.left,this.plotLeft+s),i.top=i.navigatorOptions.top||this.chartHeight-i.height-a-((null===(o=this.scrollbar)||void 0===o?void 0:o.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&"bottom"===e.verticalAlign&&"proximate"!==e.layout&&e.enabled&&!e.floating?r.legendHeight+m(e.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),t&&n&&(this.inverted?t.options.left=n.options.left=i.left:t.options.top=n.options.top=i.top,t.setAxisSize(),n.setAxisSize())}}function v(e){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new s(this),m(e.redraw,!0)&&this.redraw(e.animation))}function _(){let e=this.options;(e.navigator.enabled||e.scrollbar.enabled)&&(this.scroller=this.navigator=new s(this))}function w(){let e=this.options,t=e.navigator,n=e.rangeSelector;if((t&&t.enabled||n&&n.enabled)&&(!u&&"x"===this.zooming.type||u&&"x"===this.zooming.pinchType))return!1}function x(e){let t=e.navigator;if(t&&e.xAxis[0]){let n=e.xAxis[0].getExtremes();t.render(n.min,n.max)}}function k(e){let t=e.options.navigator||{},n=e.options.scrollbar||{};!this.navigator&&!this.scroller&&(t.enabled||n.enabled)&&(p(!0,this.options.navigator,t),p(!0,this.options.scrollbar,n),delete e.options.navigator,delete e.options.scrollbar)}function T(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(e,t,o,u){n.compose(e),s=o,a.pushUnique(g,t)&&(t.prototype.callbacks.push(x),f(t,"afterAddSeries",y),f(t,"afterSetChartSize",b),f(t,"afterUpdate",v),f(t,"beforeRender",_),f(t,"beforeShowResetZoom",w),f(t,"update",k)),a.pushUnique(g,u)&&f(u,"afterUpdate",T),a.pushUnique(g,d)&&h(d().prototype.symbols,i),a.pushUnique(g,c)&&h(l,{navigator:r})}}})),n(t,"Core/Axis/ScrollbarAxis.js",[t["Core/Utilities.js"]],(function(e){var t;let{addEvent:n,defined:r,pick:i,pushUnique:o}=e;return function(e){let t,a=[];function s(e){let t=i(e.options&&e.options.min,e.min),n=i(e.options&&e.options.max,e.max);return{axisMin:t,axisMax:n,scrollMin:r(e.dataMin)?Math.min(t,e.min,e.dataMin,i(e.threshold,1/0)):t,scrollMax:r(e.dataMax)?Math.max(n,e.max,e.dataMax,i(e.threshold,-1/0)):n}}function l(){let e=this.scrollbar,t=e&&!e.options.opposite,n=this.horiz?2:t?3:1;e&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[n]+=e.size+(e.options.margin||0))}function c(){let e=this;e.options&&e.options.scrollbar&&e.options.scrollbar.enabled&&(e.options.scrollbar.vertical=!e.horiz,e.options.startOnTick=e.options.endOnTick=!1,e.scrollbar=new t(e.chart.renderer,e.options.scrollbar,e.chart),n(e.scrollbar,"changed",(function(t){let n,i,{axisMin:o,axisMax:a,scrollMin:l,scrollMax:c}=s(e),u=c-l;if(r(o)&&r(a))if(e.horiz&&!e.reversed||!e.horiz&&e.reversed?(n=l+u*this.to,i=l+u*this.from):(n=l+u*(1-this.from),i=l+u*(1-this.to)),this.shouldUpdateExtremes(t.DOMType)){let r="mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&void 0;e.setExtremes(i,n,!0,r,t)}else this.setRange(this.from,this.to)})))}function u(){let e,t,n,{scrollMin:i,scrollMax:o}=s(this),a=this.scrollbar,l=this.axisTitleMargin+(this.titleOffset||0),c=this.chart.scrollbarsOffsets,u=this.options.margin||0;if(a&&c){if(this.horiz)this.opposite||(c[1]+=l),a.position(this.left,this.top+this.height+2+c[1]-(this.opposite?u:0),this.width,this.height),this.opposite||(c[1]+=u),e=1;else{let t;this.opposite&&(c[0]+=l),t=a.options.opposite?this.left+this.width+2+c[0]-(this.opposite?0:u):this.opposite?0:u,a.position(t,this.top,this.width,this.height),this.opposite&&(c[0]+=u),e=0}c[e]+=a.size+(a.options.margin||0),isNaN(i)||isNaN(o)||!r(this.min)||!r(this.max)||this.min===this.max?a.setRange(0,1):(t=(this.min-i)/(o-i),n=(this.max-i)/(o-i),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(t,n):a.setRange(1-n,1-t))}}e.compose=function(e,r){o(a,r)&&(t=r),o(a,e)&&(n(e,"afterGetOffset",l),n(e,"afterInit",c),n(e,"afterRender",u))}}(t||(t={})),t})),n(t,"Stock/Scrollbar/ScrollbarDefaults.js",[t["Core/Globals.js"]],(function(e){let{isTouchDevice:t}=e;return{height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1}})),n(t,"Stock/Scrollbar/Scrollbar.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/ScrollbarAxis.js"],t["Stock/Scrollbar/ScrollbarDefaults.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i){let{defaultOptions:o}=e,{addEvent:a,correctFloat:s,defined:l,destroyObjectProperties:c,fireEvent:u,merge:d,pick:f,removeEvent:h}=i;class p{static compose(e){n.compose(e,p)}static swapXY(e,t){return t&&e.forEach((e=>{let t,n=e.length;for(let r=0;rthis.calculatedWidth?t.minWidth:0;return{chartX:(e.chartX-this.x-this.xOffset)/(this.barWidth-n),chartY:(e.chartY-this.y-this.yOffset)/(this.barWidth-n)}}destroy(){let e=this,t=e.chart.scroller;e.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach((function(t){e[t]&&e[t].destroy&&(e[t]=e[t].destroy())})),t&&e===t.scrollbar&&(t.scrollbar=null,c(t.scrollbarButtons))}drawScrollbarButton(e){let t=this.renderer,n=this.scrollbarButtons,r=this.options,i=this.size,o=t.g().add(this.group);if(n.push(o),r.buttonsEnabled){let a=t.rect().addClass("highcharts-scrollbar-button").add(o);this.chart.styledMode||a.attr({stroke:r.buttonBorderColor,"stroke-width":r.buttonBorderWidth,fill:r.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:i+1,height:i+1,r:r.buttonBorderRadius},a.strokeWidth()));let s=t.path(p.swapXY([["M",i/2+(e?-1:1),i/2-3],["L",i/2+(e?-1:1),i/2+3],["L",i/2+(e?2:-2),i/2]],r.vertical)).addClass("highcharts-scrollbar-arrow").add(n[e]);this.chart.styledMode||s.attr({fill:r.buttonArrowColor})}}init(e,t,n){this.scrollbarButtons=[],this.renderer=e,this.userOptions=t,this.options=d(r,o.scrollbar,t),this.options.margin=f(this.options.margin,10),this.chart=n,this.size=f(this.options.size,this.options.height),t.enabled&&(this.render(),this.addEvents())}mouseDownHandler(e){let t=this.chart.pointer.normalize(e),n=this.cursorToScrollbarPosition(t);this.chartX=n.chartX,this.chartY=n.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(e){let t,n=this.chart.pointer.normalize(e),r=this.options.vertical?"chartY":"chartX",i=this.initPositions||[];this.grabbedCenter&&(!e.touches||0!==e.touches[0][r])&&(t=this.cursorToScrollbarPosition(n)[r]-this[r],this.hasDragged=!0,this.updatePosition(i[0]+t,i[1]+t),this.hasDragged&&u(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:e.type,DOMEvent:e}))}mouseUpHandler(e){this.hasDragged&&u(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:e.type,DOMEvent:e}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(e,t,n,r){let i=this.options,{buttonsEnabled:o,margin:a=0,vertical:s}=i,l=this.rendered?"animate":"attr",c=r,u=0;this.group.show(),this.x=e,this.y=t+this.trackBorderWidth,this.width=n,this.height=r,this.xOffset=c,this.yOffset=u,s?(this.width=this.yOffset=n=u=this.size,this.xOffset=c=0,this.yOffset=u=o?this.size:0,this.barWidth=r-(o?2*n:0),this.x=e+=a):(this.height=r=this.size,this.xOffset=c=o?this.size:0,this.barWidth=n-(o?2*r:0),this.y=this.y+a),this.group[l]({translateX:e,translateY:this.y}),this.track[l]({width:n,height:r}),this.scrollbarButtons[1][l]({translateX:s?0:n-c,translateY:s?r-u:0})}removeEvents(){this._events.forEach((function(e){h.apply(null,e)})),this._events.length=0}render(){let e=this.renderer,t=this.options,n=this.size,r=this.chart.styledMode,i=e.g("scrollbar").attr({zIndex:t.zIndex}).hide().add();this.group=i,this.track=e.rect().addClass("highcharts-scrollbar-track").attr({r:t.trackBorderRadius||0,height:n,width:n}).add(i),r||this.track.attr({fill:t.trackBackgroundColor,stroke:t.trackBorderColor,"stroke-width":t.trackBorderWidth});let o=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-o%2/2,y:-o%2/2}),this.scrollbarGroup=e.g().add(i),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:n-o,width:n-o,r:t.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(p.swapXY([["M",-3,n/4],["L",-3,2*n/3],["M",0,n/4],["L",0,2*n/3],["M",3,n/4],["L",3,2*n/3]],t.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),r||(this.scrollbar.attr({fill:t.barBackgroundColor,stroke:t.barBorderColor,"stroke-width":t.barBorderWidth}),this.scrollbarRifles.attr({stroke:t.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(e,t){let n,r,i=this.options,o=i.vertical,a=i.minWidth,c=this.barWidth,u=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!l(c))return;let d=c*Math.min(t,1);n=Math.ceil(c*(e=Math.max(e,0))),this.calculatedWidth=r=s(d-n),r=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(e){return f(this.options.liveRedraw,t.svg&&!t.isTouchDevice&&!this.chart.boosted)||"mouseup"===e||"touchend"===e||!l(e)}trackClick(e){let t=this.chart.pointer.normalize(e),n=this.to-this.from,r=this.y+this.scrollbarTop,i=this.x+this.scrollbarLeft;this.options.vertical&&t.chartY>r||!this.options.vertical&&t.chartX>i?this.updatePosition(this.from+n,this.to+n):this.updatePosition(this.from-n,this.to-n),u(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:e})}update(e){this.destroy(),this.init(this.chart.renderer,d(!0,this.options,e),this.chart)}updatePosition(e,t){t>1&&(e=s(1-s(t-e)),t=1),e<0&&(t=s(t-e),e=0),this.from=e,this.to=t}}return p.defaultOptions=r,o.scrollbar=d(!0,p.defaultOptions,o.scrollbar),p})),n(t,"Stock/Navigator/Navigator.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxisComposition.js"],t["Stock/Navigator/NavigatorComposition.js"],t["Stock/Scrollbar/Scrollbar.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i,o,a){let{defaultOptions:s}=t,{hasTouch:l,isTouchDevice:c}=n,{addEvent:u,clamp:d,correctFloat:f,defined:h,destroyObjectProperties:p,erase:m,extend:g,find:y,fireEvent:b,isArray:v,isNumber:_,merge:w,pick:x,removeEvent:k,splat:T}=a;function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{e[r]({x:a[t],y:s[t],width:o[t],height:i[t]})}))}renderElements(){let e=this,t=e.navigatorOptions,n=t.maskInside,r=e.chart,i=r.inverted,o=r.renderer,a={cursor:i?"ns-resize":"ew-resize"},s=e.navigatorGroup=o.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!n,n,!n].forEach(((n,i)=>{let l=o.rect().addClass("highcharts-navigator-mask"+(1===i?"-inside":"-outside")).add(s);r.styledMode||(l.attr({fill:n?t.maskFill:"rgba(0,0,0,0)"}),1===i&&l.css(a)),e.shades[i]=l})),e.outline=o.path().addClass("highcharts-navigator-outline").add(s),r.styledMode||e.outline.attr({"stroke-width":t.outlineWidth,stroke:t.outlineColor}),t.handles&&t.handles.enabled){let n=t.handles,{height:i,width:l}=n;[0,1].forEach((t=>{e.handles[t]=o.symbol(n.symbols[t],-l/2-1,0,l,i,n),r.inverted&&e.handles[t].attr({rotation:90,rotationOriginX:Math.floor(-l/2),rotationOriginY:(i+l)/2}),e.handles[t].attr({zIndex:7-t}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][t]).add(s),r.styledMode||e.handles[t].attr({fill:n.backgroundColor,stroke:n.borderColor,"stroke-width":n.lineWidth}).css(a)}))}}update(e){(this.series||[]).forEach((e=>{e.baseSeries&&delete e.baseSeries.navigatorSeries})),this.destroy();let t=this.chart.options;w(!0,t.navigator,e),this.init(this.chart)}render(e,t,n,r){let i,o,a,s,l,c=this.chart,u=this.xAxis,p=u.pointRange||0,m=u.navigatorAxis.fake?c.xAxis[0]:u,g=this.navigatorEnabled,y=this.rendered,v=c.inverted,w=c.xAxis[0].minRange,k=c.xAxis[0].options.maxRange,T=this.scrollButtonSize,S=this.scrollbarHeight;if(this.hasDragged&&!h(n))return;if(e=f(e-p/2),t=f(t+p/2),!_(e)||!_(t)){if(!y)return;n=0,r=x(u.width,m.width)}this.left=x(u.left,c.plotLeft+T+(v?c.plotWidth:0));let A=this.size=s=x(u.len,(v?c.plotHeight:c.plotWidth)-2*T);i=v?S:s+2*T,n=x(n,u.toPixels(e,!0)),r=x(r,u.toPixels(t,!0)),_(n)&&Math.abs(n)!==1/0||(n=0,r=i);let E=u.toValue(n,!0),C=u.toValue(r,!0),O=Math.abs(f(C-E));Ok&&(this.grabbedLeft?n=u.toPixels(C-k-p,!0):this.grabbedRight&&(r=u.toPixels(E+k+p,!0))),this.zoomedMax=d(Math.max(n,r),0,A),this.zoomedMin=d(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(n,r),0,A),this.range=this.zoomedMax-this.zoomedMin,A=Math.round(this.zoomedMax);let M=Math.round(this.zoomedMin);g&&(this.navigatorGroup.attr({visibility:"inherit"}),l=y&&!this.hasDragged?"animate":"attr",this.drawMasks(M,A,v,l),this.drawOutline(M,A,v,l),this.navigatorOptions.handles.enabled&&(this.drawHandle(M,0,v,l),this.drawHandle(A,1,v,l))),this.scrollbar&&(v?(a=this.top-T,o=this.left-S+(g||!m.opposite?0:(m.titleOffset||0)+m.axisTitleMargin),S=s+2*T):(a=this.top+(g?this.height:-S),o=this.left-T),this.scrollbar.position(o,a,i,S),this.scrollbar.setRange(this.zoomedMin/(s||1),this.zoomedMax/(s||1))),this.rendered=!0,b(this,"afterRender")}addMouseEvents(){let e,t,n=this,r=n.chart,i=r.container,o=[];n.mouseMoveHandler=e=function(e){n.onMouseMove(e)},n.mouseUpHandler=t=function(e){n.onMouseUp(e)},(o=n.getPartsEvents("mousedown")).push(u(r.renderTo,"mousemove",e),u(i.ownerDocument,"mouseup",t)),l&&(o.push(u(r.renderTo,"touchmove",e),u(i.ownerDocument,"touchend",t)),o.concat(n.getPartsEvents("touchstart"))),n.eventsToUnbind=o,n.series&&n.series[0]&&o.push(u(n.series[0].xAxis,"foundExtremes",(function(){r.navigator.modifyNavigatorAxisExtremes()})))}getPartsEvents(e){let t=this,n=[];return["shades","handles"].forEach((function(r){t[r].forEach((function(i,o){n.push(u(i.element,e,(function(e){t[r+"Mousedown"](e,o)})))}))})),n}shadesMousedown(e,t){e=this.chart.pointer.normalize(e);let n,r,i,o,a=this.chart,s=this.xAxis,l=this.zoomedMin,c=this.size,u=this.range,d=this.left,f=e.chartX;a.inverted&&(f=e.chartY,d=this.top),1===t?(this.grabbedCenter=f,this.fixedWidth=u,this.dragOffset=f-l):(o=f-d-u/2,0===t?o=Math.max(0,o):2===t&&o+u>=c&&(o=c-u,this.reversedExtremes?(o-=u,r=this.getUnionExtremes().dataMin):n=this.getUnionExtremes().dataMax),o!==l&&(this.fixedWidth=u,h((i=s.navigatorAxis.toFixedRange(o,o+u,r,n)).min)&&a.xAxis[0].setExtremes(Math.min(i.min,i.max),Math.max(i.min,i.max),!0,null,{trigger:"navigator"})))}handlesMousedown(e,t){e=this.chart.pointer.normalize(e);let n=this.chart,r=n.xAxis[0],i=this.reversedExtremes;0===t?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=i?r.min:r.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=i?r.max:r.min),n.fixedRange=null}onMouseMove(e){let t,n=this,r=n.chart,i=n.navigatorSize,o=n.range,a=n.dragOffset,s=r.inverted,l=n.left;(!e.touches||0!==e.touches[0].pageX)&&(t=(e=r.pointer.normalize(e)).chartX,s&&(l=n.top,t=e.chartY),n.grabbedLeft?(n.hasDragged=!0,n.render(0,0,t-l,n.otherHandlePos)):n.grabbedRight?(n.hasDragged=!0,n.render(0,0,n.otherHandlePos,t-l)):n.grabbedCenter&&(n.hasDragged=!0,ti+a-o&&(t=i+a-o),n.render(0,0,t-a,t-a+o)),n.hasDragged&&n.scrollbar&&x(n.scrollbar.options.liveRedraw,!c&&!this.chart.boosted)&&(e.DOMType=e.type,setTimeout((function(){n.onMouseUp(e)}),0)))}onMouseUp(e){let t,n,r,i,o,a,s=this.chart,l=this.xAxis,c=this.scrollbar,u=e.DOMEvent||e,d=s.inverted,f=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!c||!c.hasDragged)||"scrollbar"===e.trigger)&&(r=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?i=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(o=this.fixedExtreme),this.zoomedMax===this.size&&(o=this.reversedExtremes?r.dataMin:r.dataMax),0===this.zoomedMin&&(i=this.reversedExtremes?r.dataMax:r.dataMin),h((a=l.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,i,o)).min)&&s.xAxis[0].setExtremes(Math.min(a.min,a.max),Math.max(a.min,a.max),!0,!this.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:u})),"mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&_(this.zoomedMin)&&_(this.zoomedMax)&&(n=Math.round(this.zoomedMin),t=Math.round(this.zoomedMax),this.shades&&this.drawMasks(n,t,d,f),this.outline&&this.drawOutline(n,t,d,f),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(n,0,d,f),this.drawHandle(t,1,d,f)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach((function(e){e()})),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let e=this.baseSeries||[];this.navigatorEnabled&&e[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&e.forEach((function(e){k(e,"updatedData",this.updatedDataHandler)}),this),e[0].xAxis&&k(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}init(t){let n=t.options,i=n.navigator||{},a=i.enabled,s=n.scrollbar||{},l=s.enabled,c=a&&i.height||0,d=l&&s.height||0,f=s.buttonsEnabled&&d||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=c,this.scrollbarHeight=d,this.scrollButtonSize=f,this.scrollbarEnabled=l,this.navigatorEnabled=a,this.navigatorOptions=i,this.scrollbarOptions=s,this.opposite=x(i.opposite,!(a||!t.inverted));let h=this,p=h.baseSeries,m=t.xAxis.length,g=t.yAxis.length,y=p&&p[0]&&p[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,h.navigatorEnabled?(h.xAxis=new e(t,w({breaks:y.options.breaks,ordinal:y.options.ordinal},i.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",type:"datetime",index:m,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},t.inverted?{offsets:[f,0,-f,0],width:c}:{offsets:[0,-f,0,f],height:c}),"xAxis"),h.yAxis=new e(t,w(i.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:g,isInternal:!0,reversed:x(i.yAxis&&i.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:c}:{height:c}),"yAxis"),p||i.series.data?h.updateNavigatorSeries(!1):0===t.series.length&&(h.unbindRedraw=u(t,"beforeRedraw",(function(){t.series.length>0&&!h.series&&(h.setBaseSeries(),h.unbindRedraw())}))),h.reversedExtremes=t.inverted&&!h.xAxis.reversed||!t.inverted&&h.xAxis.reversed,h.renderElements(),h.addMouseEvents()):(h.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,n){let r=t.xAxis[0],i=r.getExtremes(),o=r.len-2*f,a=S("min",r.options.min,i.dataMin),s=S("max",r.options.max,i.dataMax)-a;return n?e*s/o+a:o*(e-a)/s},toPixels:function(e){return this.translate(e)},toValue:function(e){return this.translate(e,!0)}},h.xAxis.navigatorAxis.axis=h.xAxis,h.xAxis.navigatorAxis.toFixedRange=r.prototype.toFixedRange.bind(h.xAxis.navigatorAxis)),t.options.scrollbar.enabled){let e=w(t.options.scrollbar,{vertical:t.inverted});!_(e.margin)&&h.navigatorEnabled&&(e.margin=t.inverted?-3:3),t.scrollbar=h.scrollbar=new o(t.renderer,e,t),u(h.scrollbar,"changed",(function(e){let t=h.size,n=t*this.to,r=t*this.from;h.hasDragged=h.scrollbar.hasDragged,h.render(0,0,r,n),this.shouldUpdateExtremes(e.DOMType)&&setTimeout((function(){h.onMouseUp(e)}))}))}h.addBaseSeriesEvents(),h.addChartEvents()}getUnionExtremes(e){let t,n=this.chart.xAxis[0],r=this.xAxis,i=r.options,o=n.options;return e&&null===n.dataMin||(t={dataMin:x(i&&i.min,S("min",o.min,n.dataMin,r.dataMin,r.min)),dataMax:x(i&&i.max,S("max",o.max,n.dataMax,r.dataMax,r.max))}),t}setBaseSeries(e,t){let n=this.chart,r=this.baseSeries=[];e=e||n.options&&n.options.navigator.baseSeries||(n.series.length?y(n.series,(e=>!e.options.isInternal)).index:0),(n.series||[]).forEach(((t,n)=>{!t.options.isInternal&&(t.options.showInNavigator||(n===e||t.options.id===e)&&!1!==t.options.showInNavigator)&&r.push(t)})),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,t)}updateNavigatorSeries(e,t){let n,r,i,o=this,a=o.chart,l=o.baseSeries,c={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},u=o.series=(o.series||[]).filter((e=>{let t=e.baseSeries;return!(0>l.indexOf(t))||(t&&(k(t,"updatedData",o.updatedDataHandler),delete t.navigatorSeries),e.chart&&e.destroy(),!1)})),d=o.navigatorOptions.series;l&&l.length&&l.forEach((e=>{let f=e.navigatorSeries,h=g({color:e.color,visible:e.visible},v(d)?s.navigator.series:d);if(f&&!1===o.navigatorOptions.adaptToUpdatedData)return;c.name="Navigator "+l.length,i=(n=e.options||{}).navigatorOptions||{},h.dataLabels=T(h.dataLabels),(r=w(n,c,h,i)).pointRange=x(h.pointRange,i.pointRange,s.plotOptions[r.type||"line"].pointRange);let p=i.data||h.data;o.hasNavigatorData=o.hasNavigatorData||!!p,r.data=p||n.data&&n.data.slice(0),f&&f.options?f.update(r,t):(e.navigatorSeries=a.initSeries(r),e.navigatorSeries.baseSeries=e,u.push(e.navigatorSeries))})),(d.data&&!(l&&l.length)||v(d))&&(o.hasNavigatorData=!1,(d=T(d)).forEach(((e,t)=>{c.name="Navigator "+(u.length+1),(r=w(s.navigator.series,{color:a.series[t]&&!a.series[t].options.isInternal&&a.series[t].color||a.options.colors[t]||a.options.colors[0]},c,e)).data=e.data,r.data&&(o.hasNavigatorData=!0,u.push(a.initSeries(r)))}))),e&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let e=this,t=e.baseSeries||[];t[0]&&t[0].xAxis&&t[0].eventsToUnbind.push(u(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),t.forEach((t=>{t.eventsToUnbind.push(u(t,"show",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}))),t.eventsToUnbind.push(u(t,"hide",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}))),!1!==this.navigatorOptions.adaptToUpdatedData&&t.xAxis&&t.eventsToUnbind.push(u(t,"updatedData",this.updatedDataHandler)),t.eventsToUnbind.push(u(t,"remove",(function(){this.navigatorSeries&&(m(e.series,this.navigatorSeries),h(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})))}))}getBaseSeriesMin(e){return this.baseSeries.reduce((function(e,t){return Math.min(e,t.xData&&t.xData.length?t.xData[0]:e)}),e)}modifyNavigatorAxisExtremes(){let e=this.xAxis;if(void 0!==e.getExtremes){let t=this.getUnionExtremes(!0);t&&(t.dataMin!==e.min||t.dataMax!==e.max)&&(e.min=t.dataMin,e.max=t.dataMax)}}modifyBaseAxisExtremes(){let e,t,n=this.chart.navigator,r=this.getExtremes(),i=r.min,o=r.max,a=r.dataMin,s=r.dataMax,l=o-i,c=n.stickToMin,u=n.stickToMax,d=x(this.options.overscroll,0),f=n.series&&n.series[0],h=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(c&&(e=(t=a)+l),u&&(e=s+d,c||(t=Math.max(a,e-l,n.getBaseSeriesMin(f&&f.xData?f.xData[0]:-Number.MAX_VALUE)))),h&&(c||u)&&_(t)&&(this.min=this.userMin=t,this.max=this.userMax=e)),n.stickToMin=n.stickToMax=null}updatedDataHandler(){let e=this.chart.navigator,t=this.navigatorSeries,n=e.reversedExtremes?0===Math.round(e.zoomedMin):Math.round(e.zoomedMax)>=Math.round(e.size);e.stickToMax=x(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,n),e.stickToMin=e.shouldStickToMin(this,e),t&&!e.hasNavigatorData&&(t.options.pointStart=this.xData[0],t.setData(this.options.data,!1,null,!1))}shouldStickToMin(e,t){let n=t.getBaseSeriesMin(e.xData[0]),r=e.xAxis,i=r.max,o=r.min,a=r.options.range;return!(!_(i)||!_(o))&&(a&&i-n>0?i-n{e.destroy&&e.destroy()})),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach((e=>{this[e]&&this[e].destroy&&this[e].destroy(),this[e]=null})),[this.handles].forEach((e=>{p(e)}))}}return A})),n(t,"Stock/RangeSelector/RangeSelectorDefaults.js",[],(function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%e %b %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#334eff",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"#666666",fontSize:"0.8em"}}}})),n(t,"Stock/RangeSelector/RangeSelectorComposition.js",[t["Core/Defaults.js"],t["Stock/RangeSelector/RangeSelectorDefaults.js"],t["Core/Utilities.js"]],(function(e,t,n){let r,{defaultOptions:i,setOptions:o}=e,{addEvent:a,defined:s,extend:l,find:c,isNumber:u,merge:d,pick:f}=n,h=[],p=[];function m(){let e,t,n=this.range,r=n.type,i=this.max,o=this.chart.time,a=function(e,t){let n="year"===r?"FullYear":"Month",i=new o.Date(e),a=o.get(n,i);return o.set(n,i,a+t),a===o.get(n,i)&&o.set("Date",i,0),i.getTime()-e};u(n)?(e=i-n,t=n):n&&(e=i+a(i,-(n.count||1)),this.chart&&(this.chart.fixedRange=i-e));let s=f(this.dataMin,Number.MIN_VALUE);return u(e)||(e=s),e<=s&&(e=s,void 0===t&&(t=a(e,n.count)),this.newMax=Math.min(e+t,f(this.dataMax,Number.MAX_VALUE))),u(i)?!u(n)&&n&&n._offsetMin&&(e+=n._offsetMin):e=void 0,e}function g(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new r(this))}function y(){let e=this.axes,t=this.rangeSelector;if(t){u(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick),e.forEach((e=>{e.updateNames(),e.setScale()})),this.getAxisMargins(),t.render();let n=t.options.verticalAlign;t.options.floating||("bottom"===n?this.extraBottomMargin=!0:"middle"===n||(this.extraTopMargin=!0))}}function b(e){let t,n,r,i,o=e.rangeSelector,s=()=>{o&&(t=e.xAxis[0].getExtremes(),n=e.legend,i=o&&o.options.verticalAlign,u(t.min)&&o.render(t.min,t.max),n.display&&"top"===i&&i===n.options.verticalAlign&&(r=d(e.spacingBox),"vertical"===n.options.layout?r.y=e.plotTop:r.y+=o.getHeight(),n.group.placed=!1,n.align(r)))};o&&(c(h,(t=>t[0]===e))||h.push([e,[a(e.xAxis[0],"afterSetExtremes",(function(e){o&&o.render(e.min,e.max)})),a(e,"redraw",s)]]),s())}function v(){for(let e=0,t=h.length;ee())),void h.splice(e,1)}}function _(){let e=this.rangeSelector;if(e){let t=e.getHeight();this.extraTopMargin&&(this.plotTop+=t),this.extraBottomMargin&&(this.marginBottom+=t)}}function w(){let e=this.rangeSelector;if(e&&!e.options.floating){e.render();let t=e.options.verticalAlign;"bottom"===t?this.extraBottomMargin=!0:"middle"!==t&&(this.extraTopMargin=!0)}}function x(e){let t=e.options.rangeSelector,n=this.extraBottomMargin,i=this.extraTopMargin,o=this.rangeSelector;if(t&&t.enabled&&!s(o)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=o=new r(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,o){b(this);let e=t&&t.verticalAlign||o.options&&o.options.verticalAlign;o.options.floating||("bottom"===e?this.extraBottomMargin=!0:"middle"===e||(this.extraTopMargin=!0)),(this.extraBottomMargin!==n||this.extraTopMargin!==i)&&(this.isDirtyBox=!0)}}return{compose:function(e,s,c){r=c,n.pushUnique(p,e)&&(e.prototype.minFromRange=m),n.pushUnique(p,s)&&(a(s,"afterGetContainer",g),a(s,"beforeRender",y),a(s,"destroy",v),a(s,"getMargins",_),a(s,"render",w),a(s,"update",x),s.prototype.callbacks.push(b)),n.pushUnique(p,o)&&(l(i,{rangeSelector:t.rangeSelector}),l(i.lang,t.lang))}}})),n(t,"Stock/RangeSelector/RangeSelector.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Stock/RangeSelector/RangeSelectorComposition.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],(function(t,n,r,i,o,a){let{defaultOptions:s}=n,{addEvent:l,createElement:c,css:u,defined:d,destroyObjectProperties:f,discardElement:h,extend:p,fireEvent:m,isNumber:g,merge:y,objectEach:b,pad:v,pick:_,pInt:w,splat:x}=a;class k{static compose(e,t){i.compose(e,t,k)}constructor(e){this.buttons=void 0,this.buttonOptions=k.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=e,this.init(e)}clickButton(e,n){let r,i,o,a,s,c,u,f=this.chart,h=this.buttonOptions[e],p=f.xAxis[0],y=f.scroller&&f.scroller.getUnionExtremes()||p||{},b=h.type,v=h.dataGrouping,w=y.dataMin,k=y.dataMax,T=p&&Math.round(Math.min(p.max,_(k,p.max))),S=h._range,A=!0;if(null!==w&&null!==k){if(f.fixedRange=S,this.setSelected(e),v&&(this.forcedDataGrouping=!0,t.prototype.setDataGrouping.call(p||{chart:this.chart},v,!1),this.frozenStates=h.preserveDataGrouping),"month"===b||"year"===b)p?(c={range:h,max:T,chart:f,dataMin:w,dataMax:k},r=p.minFromRange.call(c),g(c.newMax)&&(T=c.newMax),A=!1):S=h;else if(S)T=Math.min((r=Math.max(T-S,w))+S,k),A=!1;else if("ytd"===b){if(!p)return void(this.deferredYTDClick=e);(void 0===k||void 0===w)&&(w=Number.MAX_VALUE,k=Number.MIN_VALUE,f.series.forEach((e=>{let t=e.xData;t&&(w=Math.min(t[0],w),k=Math.max(t[t.length-1],k))})),n=!1),r=o=(u=this.getYTDExtremes(k,w,f.time.useUTC)).min,T=u.max}else"all"===b&&p&&(f.navigator&&f.navigator.baseSeries[0]&&(f.navigator.baseSeries[0].xAxis.options.range=void 0),r=w,T=k);A&&h._offsetMin&&d(r)&&(r+=h._offsetMin),h._offsetMax&&d(T)&&(T+=h._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=e+1),p?p.setExtremes(r,T,_(n,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:h}):(s=(i=x(f.options.xAxis)[0]).range,i.range=S,a=i.min,i.min=o,l(f,"load",(function(){i.range=s,i.min=a}))),m(this,"afterBtnClick")}}setSelected(e){this.selected=this.options.selected=e}init(e){let t=this,n=e.options.rangeSelector,r=n.buttons||t.defaultButtons.slice(),i=n.selected,o=function(){let e=t.minInput,n=t.maxInput;e&&e.blur&&m(e,"blur"),n&&n.blur&&m(n,"blur")};t.chart=e,t.options=n,t.buttons=[],t.buttonOptions=r,this.eventsToUnbind=[],this.eventsToUnbind.push(l(e.container,"mousedown",o)),this.eventsToUnbind.push(l(e,"resize",o)),r.forEach(t.computeButtonRange),void 0!==i&&r[i]&&this.clickButton(i,!1),this.eventsToUnbind.push(l(e,"load",(function(){e.xAxis&&e.xAxis[0]&&l(e.xAxis[0],"setExtremes",(function(n){this.max-this.min!==e.fixedRange&&"rangeSelectorButton"!==n.trigger&&"updatedData"!==n.trigger&&t.forcedDataGrouping&&!t.frozenStates&&this.setDataGrouping(!1,!1)}))})))}updateButtonStates(){let e=this,t=this.chart,n=this.dropdown,r=t.xAxis[0],i=Math.round(r.max-r.min),o=!r.hasVisibleSeries,a=864e5,s=t.scroller&&t.scroller.getUnionExtremes()||r,l=s.dataMin,c=s.dataMax,u=e.getYTDExtremes(c,l,t.time.useUTC),d=u.min,f=u.max,h=e.selected,p=e.options.allButtonsEnabled,m=e.buttons,y=g(h);e.buttonOptions.forEach(((t,s)=>{let u=t._range,g=t.type,b=t.count||1,v=m[s],_=t._offsetMax-t._offsetMin,w=s===h,x=u>c-l,k=u={month:28,year:365}[g]*a*b-_&&i-36e5<={month:31,year:366}[g]*a*b+_?E=!0:"ytd"===g?(E=f-d+_===i,S=!w):"all"===g&&(E=r.max-r.min>=c-l,A=!w&&y&&E);let C=!p&&(x||k||A||o),O=w&&E||E&&!y&&!S||w&&e.frozenStates;C?T=3:O&&(y=!0,T=2),v.state!==T&&(v.setState(T),n&&(n.options[s+1].disabled=C,2===T&&(n.selectedIndex=s+1)),0===T&&h===s&&e.setSelected())}))}computeButtonRange(e){let t=e.type,n=e.count||1,r={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};r[t]?e._range=r[t]*n:("month"===t||"year"===t)&&(e._range=24*{month:30,year:365}[t]*36e5*n),e._offsetMin=_(e.offsetMin,0),e._offsetMax=_(e.offsetMax,0),e._range+=e._offsetMax-e._offsetMin}getInputValue(e){let t="min"===e?this.minInput:this.maxInput,n=this.chart.options.rangeSelector,r=this.chart.time;return t?("text"===t.type&&n.inputDateParser||this.defaultInputDateParser)(t.value,r.useUTC,r):0}setInputValue(e,t){let n=this.options,r=this.chart.time,i="min"===e?this.minInput:this.maxInput,o="min"===e?this.minDateBox:this.maxDateBox;if(i){let e=i.getAttribute("data-hc-time"),a=d(e)?Number(e):void 0;if(d(t)){let e=a;d(e)&&i.setAttribute("data-hc-time-previous",e),i.setAttribute("data-hc-time",t),a=t}i.value=r.dateFormat(this.inputTypeFormats[i.type]||n.inputEditDateFormat,a),o&&o.attr({text:r.dateFormat(n.inputDateFormat,a)})}}setInputExtremes(e,t,n){let r="min"===e?this.minInput:this.maxInput;if(r){let e=this.inputTypeFormats[r.type],i=this.chart.time;if(e){let o=i.dateFormat(e,t);r.min!==o&&(r.min=o);let a=i.dateFormat(e,n);r.max!==a&&(r.max=a)}}}showInput(e){let t="min"===e?this.minDateBox:this.maxDateBox,n="min"===e?this.minInput:this.maxInput;if(n&&t&&this.inputGroup){let e="text"===n.type,{translateX:r=0,translateY:i=0}=this.inputGroup,{x:o=0,width:a=0,height:s=0}=t,{inputBoxWidth:l}=this.options;u(n,{width:e?a+(l?-2:20)+"px":"auto",height:s-2+"px",border:"2px solid silver"}),u(n,e&&l?{left:r+o+"px",top:i+"px"}:{left:Math.min(Math.round(o+r-(n.offsetWidth-a)/2),this.chart.chartWidth-n.offsetWidth)+"px",top:i-(n.offsetHeight-s)/2+"px"})}}hideInput(e){let t="min"===e?this.minInput:this.maxInput;t&&u(t,{top:"-9999em",border:0,width:"1px",height:"1px"})}defaultInputDateParser(e,t,n){let i=e.split("/").join("-").split(" ").join("T");var o;if(-1===i.indexOf("T")&&(i+="T00:00"),t)i+="Z";else if(r.isSafari&&(!((o=i).length>6)||o.lastIndexOf("-")!==o.length-6&&o.lastIndexOf("+")!==o.length-6)){let e=new Date(i).getTimezoneOffset()/60;i+=e<=0?"+".concat(v(-e),":00"):"-".concat(v(e),":00")}let a=Date.parse(i);if(!g(a)){let t=e.split("-");a=Date.UTC(w(t[0]),w(t[1])-1,w(t[2]))}return n&&t&&g(a)&&(a+=n.getTimezoneOffset(a)),a}drawInput(e){let{chart:t,div:n,inputGroup:i}=this,o=this,a=t.renderer.style||{},l=t.renderer,d=t.options.rangeSelector,f=s.lang,h="min"===e;function m(){let{maxInput:n,minInput:r}=o,i=t.xAxis[0],a=t.scroller&&t.scroller.getUnionExtremes()||i,s=a.dataMin,l=a.dataMax,c=o.getInputValue(e);c!==Number(w.getAttribute("data-hc-time-previous"))&&g(c)&&(w.setAttribute("data-hc-time-previous",c),h&&n&&g(s)?c>Number(n.getAttribute("data-hc-time"))?c=void 0:cl&&(c=l)),void 0!==c&&i.setExtremes(h?c:i.min,h?i.max:c,void 0,void 0,{trigger:"rangeSelectorInput"}))}let b=f[h?"rangeSelectorFrom":"rangeSelectorTo"]||"",v=l.label(b,0).addClass("highcharts-range-label").attr({padding:b?2:0,height:b?d.inputBoxHeight:0}).add(i),_=l.label("",0).addClass("highcharts-range-input").attr({padding:2,width:d.inputBoxWidth,height:d.inputBoxHeight,"text-align":"center"}).on("click",(function(){o.showInput(e),o[e+"Input"].focus()}));t.styledMode||_.attr({stroke:d.inputBoxBorderColor,"stroke-width":1}),_.add(i);let w=c("input",{name:e,className:"highcharts-range-selector"},void 0,n);w.setAttribute("type",function(e){if(-1!==e.indexOf("%L"))return"text";let t=["a","A","d","e","w","b","B","m","o","y","Y"].some((t=>-1!==e.indexOf("%"+t))),n=["H","k","I","l","M","S"].some((t=>-1!==e.indexOf("%"+t)));return t&&n?"datetime-local":t?"date":n?"time":"text"}(d.inputDateFormat||"%e %b %Y")),t.styledMode||(v.css(y(a,d.labelStyle)),_.css(y({color:"#333333"},a,d.inputStyle)),u(w,p({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:a.fontSize,fontFamily:a.fontFamily,top:"-9999em"},d.inputStyle))),w.onfocus=()=>{o.showInput(e)},w.onblur=()=>{w===r.doc.activeElement&&m(),o.hideInput(e),o.setInputValue(e),w.blur()};let x=!1;return w.onchange=()=>{x||(m(),o.hideInput(e),w.blur())},w.onkeypress=e=>{13===e.keyCode&&m()},w.onkeydown=e=>{x=!0,(38===e.keyCode||40===e.keyCode)&&m()},w.onkeyup=()=>{x=!1},{dateBox:_,input:w,label:v}}getPosition(){let e=this.chart,t=e.options.rangeSelector,n="top"===t.verticalAlign?e.plotTop-e.axisOffset[0]:0;return{buttonTop:n+t.buttonPosition.y,inputTop:n+t.inputPosition.y-10}}getYTDExtremes(e,t,n){let r=this.chart.time,i=new r.Date(e),o=r.get("FullYear",i),a=n?r.Date.UTC(o,0,1):+new r.Date(o,0,1),s=Math.max(t,a),l=i.getTime();return{max:Math.min(e||l,l),min:s}}render(e,t){let n=this.chart,r=n.renderer,i=n.container,o=n.options,a=o.rangeSelector,s=_(o.chart.style&&o.chart.style.zIndex,0)+1,l=a.inputEnabled,u=this.rendered;if(!1!==a.enabled){if(!u&&(this.group=r.g("range-selector-group").attr({zIndex:7}).add(),this.div=c("div",void 0,{position:"relative",height:0,zIndex:s}),this.buttonOptions.length&&this.renderButtons(),i.parentNode&&i.parentNode.insertBefore(this.div,i),l)){this.inputGroup=r.g("input-group").add(this.group);let e=this.drawInput("min");this.minDateBox=e.dateBox,this.minLabel=e.label,this.minInput=e.input;let t=this.drawInput("max");this.maxDateBox=t.dateBox,this.maxLabel=t.label,this.maxInput=t.input}if(l){this.setInputValue("min",e),this.setInputValue("max",t);let r=n.scroller&&n.scroller.getUnionExtremes()||n.xAxis[0]||{};if(d(r.dataMin)&&d(r.dataMax)){let e=n.xAxis[0].minRange||0;this.setInputExtremes("min",r.dataMin,Math.min(r.dataMax,this.getInputValue("max"))-e),this.setInputExtremes("max",Math.max(r.dataMin,this.getInputValue("min"))+e,r.dataMax)}if(this.inputGroup){let e=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach((t=>{if(t){let{width:n}=t.getBBox();n&&(t.attr({x:e}),e+=n+a.inputSpacing)}}))}}this.alignElements(),this.rendered=!0}}renderButtons(){let{buttons:e,chart:t,options:n}=this,i=s.lang,o=t.renderer,a=y(n.buttonTheme),u=a&&a.states,d=a.width||28;delete a.width,delete a.states,this.buttonGroup=o.g("range-selector-buttons").add(this.group);let f=this.dropdown=c("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);l(f,"touchstart",(()=>{f.style.fontSize="16px"})),[[r.isMS?"mouseover":"mouseenter"],[r.isMS?"mouseout":"mouseleave"],["change","click"]].forEach((t=>{let[n,r]=t;l(f,n,(()=>{let t=e[this.currentButtonIndex()];t&&m(t.element,r||n)}))})),this.zoomText=o.label(i&&i.rangeSelectorZoom||"",0).attr({padding:n.buttonTheme.padding,height:n.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(n.labelStyle),a["stroke-width"]=_(a["stroke-width"],0)),c("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,f),this.buttonOptions.forEach(((t,n)=>{c("option",{textContent:t.title||t.text},void 0,f),e[n]=o.button(t.text,0,0,(e=>{let r,i=t.events&&t.events.click;i&&(r=i.call(t,e)),!1!==r&&this.clickButton(n),this.isActive=!0}),a,u&&u.hover,u&&u.select,u&&u.disabled).attr({"text-align":"center",width:d}).add(this.buttonGroup),t.title&&e[n].attr("title",t.title)}))}alignElements(){let{buttonGroup:e,buttons:t,chart:n,group:r,inputGroup:i,options:o,zoomText:a}=this,s=n.options,l=s.exporting&&!1!==s.exporting.enabled&&s.navigation&&s.navigation.buttonOptions,{buttonPosition:c,inputPosition:u,verticalAlign:d}=o,f=(e,t)=>l&&this.titleCollision(n)&&"top"===d&&"right"===t.align&&t.y-e.getBBox().height-12<(l.y||0)+(l.height||0)+n.spacing[0]?-40:0,h=n.plotLeft;if(r&&c&&u){let s=c.x-n.spacing[3];if(e){if(this.positionButtons(),!this.initialButtonGroupWidth){let e=0;a&&(e+=a.getBBox().width+5),t.forEach(((n,r)=>{e+=n.width||0,r!==t.length-1&&(e+=o.buttonSpacing)})),this.initialButtonGroupWidth=e}h-=n.spacing[3],this.updateButtonStates();let i=f(e,c);this.alignButtonGroup(i),r.placed=e.placed=n.hasLoaded}let l=0;i&&(l=f(i,u),"left"===u.align?s=h:"right"===u.align&&(s=-Math.max(n.axisOffset[1],-l)),i.align({y:u.y,width:i.getBBox().width,align:u.align,x:u.x+s-2},!0,n.spacingBox),i.placed=n.hasLoaded),this.handleCollision(l),r.align({verticalAlign:d},!0,n.spacingBox);let p=r.alignAttr.translateY,m=r.getBBox().height+20,g=0;if("bottom"===d){let e=n.legend&&n.legend.options;g=p-(m=m+(e&&"bottom"===e.verticalAlign&&e.enabled&&!e.floating?n.legend.legendHeight+_(e.margin,10):0)-20)-(o.floating?0:o.y)-(n.titleOffset?n.titleOffset[2]:0)-10}"top"===d?(o.floating&&(g=0),n.titleOffset&&n.titleOffset[0]&&(g=n.titleOffset[0]),g+=n.margin[0]-n.spacing[0]||0):"middle"===d&&(u.y===c.y?g=p:(u.y||c.y)&&(u.y<0||c.y<0?g-=Math.min(u.y,c.y):g=p-m)),r.translate(o.x,o.y+Math.floor(g));let{minInput:y,maxInput:b,dropdown:v}=this;o.inputEnabled&&y&&b&&(y.style.marginTop=r.translateY+"px",b.style.marginTop=r.translateY+"px"),v&&(v.style.marginTop=r.translateY+"px")}}alignButtonGroup(e,t){let{chart:n,options:r,buttonGroup:i,buttons:o}=this,{buttonPosition:a}=r,s=n.plotLeft-n.spacing[3],l=a.x-n.spacing[3];"right"===a.align?l+=e-s:"center"===a.align&&(l-=s/2),i&&i.align({y:a.y,width:_(t,this.initialButtonGroupWidth),align:a.align,x:l},!0,n.spacingBox)}positionButtons(){let{buttons:e,chart:t,options:n,zoomText:r}=this,i=t.hasLoaded?"animate":"attr",{buttonPosition:o}=n,a=t.plotLeft,s=a;r&&"hidden"!==r.visibility&&(r[i]({x:_(a+o.x,a)}),s+=o.x+r.getBBox().width+5);for(let l=0,c=this.buttonOptions.length;l{let e=0;return this.buttons.forEach((t=>{let n=t.getBBox();n.width>e&&(e=n.width)})),e},l=t=>{if(r&&n){let o=r.alignAttr.translateX+r.alignOptions.x-e+r.getBBox().x+2,s=r.alignOptions.width,l=n.alignAttr.translateX+n.getBBox().x;return l+t>o&&o+s>l&&i.y{r&&n&&r.attr({translateX:r.alignAttr.translateX+(t.axisOffset[1]>=-e?0:-e),translateY:r.alignAttr.translateY+n.getBBox().height+10})};if(n){if("always"===o)return this.collapseButtons(e),void(l(s())&&c());"never"===o&&this.expandButtons()}r&&n?a.align===i.align||l(this.initialButtonGroupWidth+20)?"responsive"===o?(this.collapseButtons(e),l(s())&&c()):c():"responsive"===o&&this.expandButtons():n&&"responsive"===o&&(this.initialButtonGroupWidth>t.plotWidth?this.collapseButtons(e):this.expandButtons())}collapseButtons(e){let{buttons:t,buttonOptions:n,chart:r,dropdown:i,options:o,zoomText:a}=this,s=r.userOptions.rangeSelector&&r.userOptions.rangeSelector.buttonTheme||{},l=e=>({text:e?"".concat(e," \u25be"):"\u25be",width:"auto",paddingLeft:_(o.buttonTheme.paddingLeft,s.padding,8),paddingRight:_(o.buttonTheme.paddingRight,s.padding,8)});a&&a.hide();let c=!1;n.forEach(((e,n)=>{let r=t[n];2!==r.state?r.hide():(r.show(),r.attr(l(e.text)),c=!0)})),c||(i&&(i.selectedIndex=0),t[0].show(),t[0].attr(l(this.zoomText&&this.zoomText.textStr)));let{align:u}=o.buttonPosition;this.positionButtons(),("right"===u||"center"===u)&&this.alignButtonGroup(e,t[this.currentButtonIndex()].getBBox().width),this.showDropdown()}expandButtons(){let{buttons:e,buttonOptions:t,options:n,zoomText:r}=this;this.hideDropdown(),r&&r.show(),t.forEach(((t,r)=>{let i=e[r];i.show(),i.attr({text:t.text,width:n.buttonTheme.width||28,paddingLeft:_(n.buttonTheme.paddingLeft,"unset"),paddingRight:_(n.buttonTheme.paddingRight,"unset")}),i.state<2&&i.setState(0)})),this.positionButtons()}currentButtonIndex(){let{dropdown:e}=this;return e&&e.selectedIndex>0?e.selectedIndex-1:0}showDropdown(){let{buttonGroup:e,buttons:t,chart:n,dropdown:r}=this;if(e&&r){let{translateX:i=0,translateY:o=0}=e,a=t[this.currentButtonIndex()].getBBox();u(r,{left:n.plotLeft+i+"px",top:o+.5+"px",width:a.width+"px",height:a.height+"px"}),this.hasVisibleDropdown=!0}}hideDropdown(){let{dropdown:e}=this;e&&(u(e,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){let e=this.options,t=this.group,n=e.inputPosition,r=e.buttonPosition,i=e.y,o=r.y,a=n.y,s=0;if(e.height)return e.height;this.alignElements(),s=t?t.getBBox(!0).height+13+i:0;let l=Math.min(a,o);return(a<0&&o<0||a>0&&o>0)&&(s+=Math.abs(l)),s}titleCollision(e){return!(e.options.title.text||e.options.subtitle.text)}update(e){let t=this.chart;y(!0,t.options.rangeSelector,e),this.destroy(),this.init(t),this.render()}destroy(){let t=this,n=t.minInput,r=t.maxInput;t.eventsToUnbind&&(t.eventsToUnbind.forEach((e=>e())),t.eventsToUnbind=void 0),f(t.buttons),n&&(n.onfocus=n.onblur=n.onchange=null),r&&(r.onfocus=r.onblur=r.onchange=null),b(t,(function(n,r){n&&"chart"!==r&&(n instanceof o?n.destroy():n instanceof e.HTMLElement&&h(n)),n!==k.prototype[r]&&(t[r]=null)}),this)}}return p(k.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),k})),n(t,"Core/Axis/OrdinalAxis.js",[t["Core/Axis/Axis.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],(function(e,t,n,r){var i;let{addEvent:o,correctFloat:a,css:s,defined:l,error:c,pick:u,timeUnits:d}=r,f=[];return function(e){function i(e,t,n,r){let i,o,a,s,u,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,p=arguments.length>6?arguments[6]:void 0,m={},g=this.options.tickPixelInterval,y=this.chart.time,b=[],v=0,_=[],w=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!f||f.length<3||void 0===t)return y.getTimeTicks.apply(y,arguments);let x=f.length;for(i=0;in,f[i]5*h||u){if(f[i]>w){for(o=y.getTimeTicks(e,f[v],f[i],r);o.length&&o[0]<=w;)o.shift();o.length&&(w=o[o.length-1]),b.push(_.length),_=_.concat(o)}v=i+1}if(u)break}if(o){if(s=o.info,p&&s.unitRange<=d.hour){for(v=1,i=_.length-1;vn?a-1:a,r=void 0;c--;)o=Math.abs(r-(t=s[c])),r&&o<.8*g&&(null===i||o<.8*i)?(m[_[c]]&&!m[_[c+1]]?(e=c+1,r=t):e=c,_.splice(e,1)):r=t}return _}function h(e){let t=this.ordinal.positions;if(!t)return e;let n,r=t.length-1;return e<0?e=t[0]:e>r?e=t[r]:(r=Math.floor(e),n=e-r),void 0!==n&&void 0!==t[r]?t[r]+(n?n*(t[r+1]-t[r]):0):e}function p(e){let t=this.ordinal,n=this.old?this.old.min:this.min,r=this.old?this.old.transA:this.transA,i=t.positions;if(!i)return e;let o=a((e-n)*r+this.minPixelPadding);if(e>=i[0]&&e<=i[i.length-1]||(i=t.getExtendedPositions()),i&&i.length){let n=i.indexOf(e),r=-1!==n?n:a(t.getIndexOfPoint(o,i)),s=a(r%1);if(r>=0&&r<=i.length-1){let e=i[Math.floor(r)],t=i[Math.ceil(r)];return i[Math.floor(r)]+s*(t-e)}}return e}function m(t,n){let r=e.Additions.findIndexOf(t,n,!0);return t[r]===n?r:r+(n-t[r])/(t[r+1]-t[r])}function g(){this.ordinal||(this.ordinal=new e.Additions(this))}function y(){this.isXAxis&&l(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&l(this.userMin)&&(this.min+=this.options.overscroll))}function b(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function v(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function _(e){let t=this.xAxis[0],n=t.options.overscroll,r=e.originalEvent.chartX,i=this.options.chart.panning,o=!1;if(i&&"y"!==i.type&&t.options.ordinal&&t.series.length){let e,i,a,l,c=this.mouseDownX,u=t.getExtremes(),d=u.dataMax,f=u.min,h=u.max,p=this.hoverPoints,m=t.closestPointRange||t.ordinal&&t.ordinal.overscrollPointsRange,g=t.translationSlope*(t.ordinal.slope||m),y=Math.round((c-r)/g),b=t.ordinal.getExtendedPositions(),v={ordinal:{positions:b,extendedOrdinalPositions:b}},_=t.index2val,w=t.val2lin;v.ordinal.positions?Math.abs(y)>1&&(p&&p.forEach((function(e){e.setState()})),y<0?(a=v,l=t.ordinal.positions?t:v):(a=t.ordinal.positions?t:v,l=v),d>(i=l.ordinal.positions)[i.length-1]&&i.push(d),this.fixedRange=h-f,(e=t.navigatorAxis.toFixedRange(void 0,void 0,_.apply(a,[w.apply(a,[f,!0])+y]),_.apply(l,[w.apply(l,[h,!0])+y]))).min>=Math.min(u.dataMin,f)&&e.max<=Math.max(d,h)+n&&t.setExtremes(e.min,e.max,!0,!1,{trigger:"pan"}),this.mouseDownX=r,s(this.container,{cursor:"move"})):o=!0}else o=!0;o||i&&/y/.test(i.type)?n&&(t.max=t.dataMax+n):e.preventDefault()}function w(){let e=this.xAxis;e&&e.options.ordinal&&delete e.ordinal.index}function x(e,t){let n,r,i=this.ordinal,o=i.positions,a=i.slope;if(!o)return e;let s=o.length;if(o[0]<=e&&o[s-1]>=e)n=m(o,e);else{if(!(r=i.getExtendedPositions&&i.getExtendedPositions())||!r.length)return e;let s=r.length;a||(a=(r[s-1]-r[0])/s);let l=m(r,o[0]);if(e>=r[0]&&e<=r[s-1])n=m(r,e)-l;else{if(!t)return e;n=e0&&"highcharts-navigator-series"!==r.options.id&&r.processedXData.length>1&&(v=e!==r.processedXData[1]-r.processedXData[0]),e=r.processedXData[1]-r.processedXData[0],r.boosted&&(_=r.boosted),r.reserveSpace()&&(!1!==r.takeOrdinalPosition||p)&&(t=(g=g.concat(r.processedXData)).length,g.sort((function(e,t){return e-t})),y=Math.min(y,u(r.closestPointRange,y)),t)){for(i=0;i2){for(r=g[1]-g[0],s=t-1;s--&&!b;)g[s+1]-g[s]!==r&&(b=!0);!l.options.keepOrdinalPadding&&(g[0]-f>r||h-g[g.length-1]>r)&&(b=!0)}else l.options.overscroll&&(2===t?y=g[1]-g[0]:1===t?(y=l.options.overscroll,g=[g[0],g[0]+y]):y=c.overscrollPointsRange);b||l.forceOrdinal?(l.options.overscroll&&(c.overscrollPointsRange=y,g=g.concat(c.getOverscrollPositions())),c.positions=g,i=l.ordinal2lin(Math.max(f,g[0]),!0),o=Math.max(l.ordinal2lin(Math.min(h,g[g.length-1]),!0),1),c.slope=a=(h-f)/(o-i),c.offset=f-i*a):(c.overscrollPointsRange=u(l.closestPointRange,c.overscrollPointsRange),c.positions=l.ordinal.slope=c.offset=void 0)}l.isOrdinal=m&&b,c.groupIntervalFactor=null}static findIndexOf(e,t,n){let r,i=0,o=e.length-1;for(;i{var t;let n=null===(t=e.points)||void 0===t?void 0:t[0];l(null===n||void 0===n?void 0:n.plotX)&&(n.plotXe.x>=t&&e.x<=n))}(e)&&(r=n.plotX)})),null!==(n=r)&&void 0!==n||(r=i.minPixelPadding);let s=i.translationSlope*(this.slope||i.closestPointRange||this.overscrollPointsRange),c=a((e-r)/s);return k.findIndexOf(t,o,!0)+c}getOverscrollPositions(){let e=this.axis,t=e.options.overscroll,n=this.overscrollPointsRange,r=[],i=e.dataMax;if(l(n))for(;i<=e.dataMax+t;)r.push(i+=n);return r}postProcessTickInterval(e){let t=this.axis,n=this.slope;return n?t.options.breaks?t.closestPointRange||e:e/(n/t.closestPointRange):e}}e.Additions=k}(i||(i={})),i})),n(t,"Series/HLC/HLCPoint.js",[t["Core/Series/SeriesRegistry.js"]],(function(e){let{column:{prototype:{pointClass:t}}}=e.seriesTypes;return class extends t{constructor(){super(...arguments),this.close=void 0,this.high=void 0,this.low=void 0,this.options=void 0,this.plotClose=void 0,this.series=void 0}}})),n(t,"Series/HLC/HLCSeriesDefaults.js",[],(function(){return{lineWidth:1,tooltip:{pointFormat:'\u25cf {series.name}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}})),n(t,"Series/HLC/HLCSeries.js",[t["Series/HLC/HLCPoint.js"],t["Series/HLC/HLCSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n,r){let{column:i}=n.seriesTypes,{extend:o,merge:a}=r;class s extends i{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0,this.yData=void 0}extendStem(e,t,n){let r=e[0],i=e[1];"number"==typeof r[2]&&(r[2]=Math.max(n+t,r[2])),"number"==typeof i[2]&&(i[2]=Math.min(n-t,i[2]))}getPointPath(e,t){let n=t.strokeWidth(),r=e.series,i=n%2/2,o=Math.round(e.plotX)-i,a=Math.round(e.shapeArgs.width/2),s=e.plotClose,l=[["M",o,Math.round(e.yBottom)],["L",o,Math.round(e.plotHigh)]];return null!==e.close&&(s=Math.round(e.plotClose)+i,l.push(["M",o,s],["L",o+a,s]),r.extendStem(l,n/2,s)),l}drawSinglePoint(e){let t,n=e.series,r=n.chart,i=e.graphic;void 0!==e.plotY&&(i||(e.graphic=i=r.renderer.path().add(n.group)),r.styledMode||i.attr(n.pointAttribs(e,e.selected&&"select")),t=n.getPointPath(e,i),i[i?"animate":"attr"]({d:t}).addClass(e.getClassName(),!0))}drawPoints(){this.points.forEach(this.drawSinglePoint)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(e,t){let n=super.pointAttribs.call(this,e,t);return delete n.fill,n}toYData(e){return[e.high,e.low,e.close]}translate(){let e=this,t=e.yAxis,n=this.pointArrayMap&&this.pointArrayMap.slice()||[],r=n.map((e=>"plot".concat(e.charAt(0).toUpperCase()+e.slice(1))));r.push("yBottom"),n.push("low"),super.translate.apply(e),e.points.forEach((function(i){n.forEach((function(n,o){let a=i[n];null!==a&&(e.dataModify&&(a=e.dataModify.modifyValue(a)),i[r[o]]=t.toPixels(a,!0))})),i.tooltipPos[1]=i.plotHigh+t.pos-e.chart.plotTop}))}}return s.defaultOptions=a(i.defaultOptions,t),o(s.prototype,{pointClass:e,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),n.registerSeriesType("hlc",s),s})),n(t,"Series/OHLC/OHLCPoint.js",[t["Core/Series/SeriesRegistry.js"]],(function(e){let{seriesTypes:{hlc:t}}=e;class n extends t.prototype.pointClass{constructor(){super(...arguments),this.open=void 0,this.options=void 0,this.plotOpen=void 0,this.series=void 0}getClassName(){return super.getClassName.call(this)+(this.open\u25cf {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'}}})),n(t,"Series/OHLC/OHLCSeries.js",[t["Series/OHLC/OHLCPoint.js"],t["Series/OHLC/OHLCSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n,r){let{seriesTypes:{hlc:i}}=n,{addEvent:o,extend:a,merge:s}=r,l=[];function c(e){let t=e.options,n=t.dataGrouping;n&&t.useOhlcData&&"highcharts-navigator-series"!==t.id&&(n.approximation="ohlc")}function u(e){let t=e.options;t.useOhlcData&&"highcharts-navigator-series"!==t.id&&a(this,{pointValKey:d.prototype.pointValKey,pointArrayMap:d.prototype.pointArrayMap,toYData:d.prototype.toYData})}class d extends i{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}static compose(e){r.pushUnique(l,e)&&(o(e,"afterSetOptions",c),o(e,"init",u))}getPointPath(e,t){let n=super.getPointPath(e,t),r=t.strokeWidth(),i=r%2/2,o=Math.round(e.plotX)-i,a=Math.round(e.shapeArgs.width/2),s=e.plotOpen;return null!==e.open&&(s=Math.round(e.plotOpen)+i,n.push(["M",o,s],["L",o-a,s]),super.extendStem(n,r/2,s)),n}pointAttribs(e,t){let n=super.pointAttribs.call(this,e,t),r=this.options;return delete n.fill,!e.options.color&&r.upColor&&e.openi&&(n-=Math.round((o-i)/2),i=o),s=e[t](n,r,i,o),l&&c){let a=l;if("circle"===t)a=n+i/2;else{let e=s[0],t=s[1];"M"===e[0]&&"L"===t[0]&&(a=(e[1]+t[1])/2)}let u=r>c?r:r+o;s.push(["M",a,u],["L",l,c]),s=s.concat(e.circle(l-1,c-1,2,2))}return s}}t.compose=function(t){if(-1===n.indexOf(t)){n.push(t);let e=t.prototype.symbols;e.flag=r,i(e,"circle"),i(e,"square")}let o=e.getRendererType();n.indexOf(o)&&n.push(o)}}(t||(t={})),t})),n(t,"Series/OnSeriesComposition.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],(function(e,t,n){var r;let{prototype:i}=e,{prototype:o}=t,{defined:a,stableSort:s}=n;return function(e){let t=[];function r(e){return o.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,e)}function l(){i.translate.apply(this);let e,t,n,r,o,l,c,u=this,d=u.options,f=u.chart,h=u.points,p=d.onSeries,m=p&&f.get(p),g=m&&m.options.step,y=m&&m.points,b=f.inverted,v=u.xAxis,_=u.yAxis,w=h.length-1,x=d.onKey||"y",k=y&&y.length,T=0;if(m&&m.visible&&k)for(T=(m.pointXOffset||0)+(m.barW||0)/2,l=m.currentDataGrouping,r=y[k-1].x+(l?l.totalRange:0),s(h,((e,t)=>e.x-t.x)),x="plot"+x[0].toUpperCase()+x.substr(1);k--&&h[w];)if(n=y[k],(e=h[w]).y=n.y,n.x<=e.x&&void 0!==n[x]){if(e.x<=r&&(e.plotY=n[x],n.xMath.pow(1-e,3)*r[t]+3*(1-e)*(1-e)*e*s[t]+3*(1-e)*e*e*l[t]+e*e*e*i[t],u=0,d=1;for(let n=0;n<100;n++){let n=(u+d)/2,r=c(n,0);if(null===r)break;if(.25>Math.abs(r-e.plotX)){t=n;break}r{let r;e.plotX+=T,(void 0===e.plotY||b)&&(e.plotX>=0&&e.plotX<=v.len?b?(e.plotY=v.translate(e.x,0,1,0,1),e.plotX=a(e.y)?_.translate(e.y,0,0,0,1):0):e.plotY=(v.opposite?0:u.yAxis.len)+v.offset:e.shapeArgs={}),(t=h[n-1])&&t.plotX===e.plotX&&(void 0===t.stackIndex&&(t.stackIndex=0),r=t.stackIndex+1),e.stackIndex=r})),this.onSeries=m}e.compose=function(e){if(n.pushUnique(t,e)){let t=e.prototype;t.getPlotBox=r,t.translate=l}return e},e.getPlotBox=r,e.translate=l}(r||(r={})),r})),n(t,"Series/Flags/FlagsSeries.js",[t["Series/Flags/FlagsPoint.js"],t["Series/Flags/FlagsSeriesDefaults.js"],t["Series/Flags/FlagsSymbols.js"],t["Core/Globals.js"],t["Series/OnSeriesComposition.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i,o,a,s,l){let{noop:c}=r,{distribute:u}=o,{series:d,seriesTypes:{column:f}}=a,{addEvent:h,defined:p,extend:m,merge:g,objectEach:y,wrap:b}=l;class v extends f{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}animate(e){e&&this.setClip()}drawPoints(){let e,t,n,r,i,o,a,l,c,d,f,h=this.points,m=this.chart,v=m.renderer,_=m.inverted,w=this.options,x=w.y,k=this.yAxis,T={},S=[];for(r=h.length;r--;)i=h[r],d=(_?i.plotY:i.plotX)>this.xAxis.len,e=i.plotX,a=i.stackIndex,n=i.options.shape||w.shape,void 0!==(t=i.plotY)&&(t=i.plotY+x-(void 0!==a&&a*w.stackDistance)),i.anchorX=a?void 0:i.plotX,l=a?void 0:i.plotY,f="flag"!==n,o=i.graphic,void 0!==t&&e>=0&&!d?(o&&i.hasNewShapeType()&&(o=o.destroy()),o||(o=i.graphic=v.label("",null,null,n,null,null,w.useHTML).addClass("highcharts-point").add(this.markerGroup),i.graphic.div&&(i.graphic.div.point=i),o.isNew=!0),o.attr({align:f?"center":"left",width:w.width,height:w.height,"text-align":w.textAlign}),m.styledMode||o.attr(this.pointAttribs(i)).css(g(w.style,i.style)).shadow(w.shadow),e>0&&(e-=o.strokeWidth()%2),c={y:t,anchorY:l},w.allowOverlapX&&(c.x=e,c.anchorX=i.anchorX),o.attr({text:i.options.title||w.title||"A"})[o.isNew?"attr":"animate"](c),w.allowOverlapX||(T[i.plotX]?T[i.plotX].size=Math.max(T[i.plotX].size,o.width||0):T[i.plotX]={align:f?.5:0,size:o.width||0,target:e,anchorX:e}),i.tooltipPos=[e,t+k.pos-m.plotTop]):o&&(i.graphic=o.destroy());if(!w.allowOverlapX){let e=100;for(let t of(y(T,(function(t){t.plotX=t.anchorX,S.push(t),e=Math.max(t.size,e)})),u(S,_?k.len:this.xAxis.len,e),h)){let e=t.plotX,n=t.graphic,r=n&&T[e];r&&n&&(p(r.pos)?n[n.isNew?"attr":"animate"]({x:r.pos+(r.align||0)*r.size,anchorX:t.anchorX}).show().isNew=!1:n.hide().isNew=!0)}}w.useHTML&&this.markerGroup&&b(this.markerGroup,"on",(function(e){return s.prototype.on.apply(e.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))}))}drawTracker(){let e=this.points;for(let t of(super.drawTracker(),e)){let n=t.graphic;n&&(t.unbindMouseOver&&t.unbindMouseOver(),t.unbindMouseOver=h(n.element,"mouseover",(function(){for(let r of(t.stackIndex>0&&!t.raised&&(t._y=n.y,n.attr({y:t._y-8}),t.raised=!0),e))r!==t&&r.raised&&r.graphic&&(r.graphic.attr({y:r._y}),r.raised=!1)})))}}pointAttribs(e,t){let n=this.options,r=e&&e.color||this.color,i=n.lineColor,o=e&&e.lineWidth,a=e&&e.fillColor||n.fillColor;return t&&(a=n.states[t].fillColor,i=n.states[t].lineColor,o=n.states[t].lineWidth),{fill:a||r,stroke:i||r,"stroke-width":o||n.lineWidth||0}}setClip(){d.prototype.setClip.apply(this,arguments),!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}return v.compose=n.compose,v.defaultOptions=g(f.defaultOptions,t),i.compose(v),m(v.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:e,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:c,init:d.prototype.init}),a.registerSeriesType("flags",v),v})),n(t,"Core/Chart/StockChart.js",[t["Core/Chart/Chart.js"],t["Core/Templating.js"],t["Core/Defaults.js"],t["Stock/Navigator/NavigatorDefaults.js"],t["Stock/RangeSelector/RangeSelectorDefaults.js"],t["Stock/Scrollbar/ScrollbarDefaults.js"],t["Core/Utilities.js"]],(function(e,t,n,r,i,o,a){let{format:s}=t,{getOptions:l}=n,{addEvent:c,clamp:u,defined:d,extend:f,find:h,isNumber:p,isString:m,merge:g,pick:y,pushUnique:b,splat:v}=a;function _(e,t){return"xAxis"===e?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:"yAxis"===e?{labels:{y:-2},opposite:y(t.opposite,!0),showLastLabel:!(!t.categories&&"category"!==t.type),title:{text:null}}:{}}function w(e,t){if("xAxis"===e){let e={type:"datetime",categories:void 0};return y(t.navigator&&t.navigator.enabled,r.enabled,!0)&&(e.startOnTick=!1,e.endOnTick=!1),e}return{}}class x extends e{init(e,t){let n=l(),a=e.xAxis,s=e.yAxis,c=y(e.navigator&&e.navigator.enabled,r.enabled,!0);e.xAxis=e.yAxis=void 0;let u=g({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:c},scrollbar:{enabled:y(o.enabled,!0)},rangeSelector:{enabled:y(i.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:y(n.tooltip&&n.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},e,{isStock:!0});e.xAxis=a,e.yAxis=s,u.xAxis=v(e.xAxis||{}).map(((t,r)=>g(_("xAxis",t),n.xAxis,n.xAxis&&n.xAxis[r],t,w("xAxis",e)))),u.yAxis=v(e.yAxis||{}).map(((e,t)=>g(_("yAxis",e),n.yAxis,n.yAxis&&n.yAxis[t],e))),super.init(u,t)}createAxis(e,t){return t.axis=g(_(e,t.axis),t.axis,w(e,this.userOptions)),super.createAxis(e,t)}}return c(e,"update",(function(e){let t=e.options;"scrollbar"in t&&this.navigator&&(g(!0,this.options.scrollbar,t.scrollbar),this.navigator.update({}),delete t.scrollbar)})),function(e){let t=[];function n(e){if(!this.crosshair||!this.crosshair.label||!this.crosshair.label.enabled||!this.cross||!p(this.min)||!p(this.max))return;let t,n,r,i=this.chart,o=this.logarithmic,a=this.crosshair.label,l=this.horiz,c=this.opposite,u=this.left,d=this.top,h=this.width,m="inside"===this.options.tickPosition,g=!1!==this.crosshair.snap,b=e.e||this.cross&&this.cross.e,v=e.point,_=this.crossLabel,w=a.format,x="",k=0,T=this.min,S=this.max;o&&(T=o.lin2log(this.min),S=o.lin2log(this.max));let A=l?"center":c?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";_||(_=this.crossLabel=i.renderer.label("",0,void 0,a.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(v&&v.series?v.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:a.align||A,padding:y(a.padding,8),r:y(a.borderRadius,3),zIndex:2}).add(this.labelGroup),i.styledMode||_.attr({fill:a.backgroundColor||v&&v.series&&v.series.color||"#666666",stroke:a.borderColor||"","stroke-width":a.borderWidth||0}).css(f({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},a.style||{}))),l?(t=g?(v.plotX||0)+u:b.chartX,n=d+(c?0:this.height)):(t=u+this.offset+(c?h:0),n=g?(v.plotY||0)+d:b.chartY),w||a.formatter||(this.dateTime&&(x="%b %d, %Y"),w="{value"+(x?":"+x:"")+"}");let E=g?this.isXAxis?v.x:v.y:this.toValue(l?b.chartX:b.chartY),C=v&&v.series?v.series.isPointInside(v):p(E)&&E>T&&E=r.right&&(k=-(P+M.width-r.right)),_.attr({x:t+k,y:n,anchorX:l?t:this.opposite?0:i.chartWidth,anchorY:l?this.opposite?i.chartHeight:0:n+M.height/2})}function r(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}function i(e){let t=this.chart,n=this.options,r=t._labelPanes=t._labelPanes||{},i=n.labels;if(t.options.isStock&&"yAxis"===this.coll){let t=n.top+","+n.height;!r[t]&&i.enabled&&(15===i.distance&&1===this.side&&(i.distance=0),void 0===i.align&&(i.align="right"),r[t]=this,e.align="right",e.preventDefault())}}function o(){let e=this.chart,t=this.options&&this.options.top+","+this.options.height;t&&e._labelPanes&&e._labelPanes[t]===this&&delete e._labelPanes[t]}function a(e){let t,n,r,i,o,a,s=this,l=s.isLinked&&!s.series&&s.linkedParent?s.linkedParent.series:s.series,c=s.chart,f=c.renderer,g=s.left,b=s.top,v=[],_=e.translatedValue,w=e.value,x=e.force,k=[];if(c.options.isStock&&!1!==e.acrossPanes&&"xAxis"===s.coll||"yAxis"===s.coll){for(let t of(e.preventDefault(),k=(e=>{let t="xAxis"===e?"yAxis":"xAxis",n=s.options[t];return p(n)?[c[t][n]]:m(n)?[c.get(n)]:l.map((e=>e[t]))})(s.coll),s.isXAxis?c.yAxis:c.xAxis))if(!d(t.options.id)||-1===t.options.id.indexOf("navigator")){let e=t.isXAxis?"yAxis":"xAxis",n=d(t.options[e])?c[e][t.options[e]]:c[e][0];s===n&&k.push(t)}for(let e of(o=k.length?[]:[s.isXAxis?c.yAxis[0]:c.xAxis[0]],k))-1!==o.indexOf(e)||h(o,(t=>t.pos===e.pos&&t.len===e.len))||o.push(e);if(p(a=y(_,s.translate(w||0,void 0,void 0,e.old))))if(s.horiz)for(let e of o){let o;i=(n=e.pos)+e.len,t=r=Math.round(a+s.transB),"pass"!==x&&(tg+s.width)&&(x?t=r=u(t,g,g+s.width):o=!0),o||v.push(["M",t,n],["L",r,i])}else for(let e of o){let o;r=(t=e.pos)+e.len,n=i=Math.round(b+s.height-a),"pass"!==x&&(nb+s.height)&&(x?n=i=u(n,b,b+s.height):o=!0),o||v.push(["M",t,n],["L",r,i])}e.path=v.length>0?f.crispPolyLine(v,e.lineWidth||1):void 0}}function l(e){if(this.chart.options.isStock){let t;this.is("column")||this.is("columnrange")?t={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(t={marker:{enabled:!1,radius:2}}),t&&(e.plotOptions[this.type]=g(e.plotOptions[this.type],t))}}function v(){let e=this.chart,t=this.options.dataGrouping;return!1!==this.allowDG&&t&&y(t.enabled,e.options.isStock)}function _(e,t){for(let n=0;n{"use strict";var r=n(37553),i=n(42679),o=n(65701);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=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=a,a.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},a.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length{"use strict";var r=n(96214),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}},80273:e=>{"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},95021:(e,t,n)=>{"use strict";var r=n(48857)(),i=n(44680)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},8866:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(h){h!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(n){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(t){return!1}},l=Object.prototype.toString,c="function"===typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),d=function(){return!1};if("object"===typeof document){var f=document.all;l.call(f)===l.call(document.all)&&(d=function(e){if((u||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(n){}return!1})}e.exports=i?function(e){if(d(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{i(e,null,t)}catch(r){if(r!==n)return!1}return!a(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},7469:(e,t,n)=>{"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(48857)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!==typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!l)return!1;if("undefined"===typeof r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&l(t)}return l(e)===r}},5139:e=>{e.exports=function(e){if("string"!==typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},11546:e=>{"use strict";e.exports=function(e){return e!==e}},5738:(e,t,n)=>{"use strict";var r=n(59962),i=n(89959),o=n(11546),a=n(39221),s=n(65434),l=r(a(),Number);i(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},39221:(e,t,n)=>{"use strict";var r=n(11546);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},65434:(e,t,n)=>{"use strict";var r=n(89959),i=n(39221);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},72105:(e,t,n)=>{"use strict";var r=n(91520);e.exports=function(e){return!!r(e)}},7146:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},37676:(e,t,n)=>{var r;!function(){"use strict";var i="input is invalid type",o="object"===typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var s=!o&&"object"===typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"===typeof process&&process.versions&&process.versions.node?a=n.g:s&&(a=self);var l=!a.JS_SHA3_NO_COMMON_JS&&e.exports,c=n.amdO,u=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,d="0123456789abcdef".split(""),f=[4,1024,262144,67108864],h=[0,8,16,24],p=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=[224,256,384,512],g=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!u||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var v=function(e,t,n){return function(r){return new j(e,t,e).update(r)[n]()}},_=function(e,t,n){return function(r,i){return new j(e,t,i).update(r)[n]()}},w=function(e,t,n){return function(t,r,i,o){return A["cshake"+e].update(t,r,i,o)[n]()}},x=function(e,t,n){return function(t,r,i,o){return A["kmac"+e].update(t,r,i,o)[n]()}},k=function(e,t,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function R(e,t,n){j.call(this,e,t,n)}j.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(i);if(null===e)throw new Error(i);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error(i);t=!0}for(var r,o,a=this.blocks,s=this.byteCount,l=e.length,c=this.blockCount,d=0,f=this.s;d>2]|=e[d]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(a[r>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=s){for(this.start=r-s,this.block=a[c],r=0;r>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},j.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(i);if(null===e)throw new Error(i);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw new Error(i);t=!0}var r=0,o=e.length;if(t)r=o;else for(var a=0;a=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),r+=4)}return r+=this.encode(8*r),this.update(e),r},j.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15];a%t===0&&(B(n),o=0)}return i&&(e=n[o],s+=d[e>>4&15]+d[15&e],i>1&&(s+=d[e>>12&15]+d[e>>8&15]),i>2&&(s+=d[e>>20&15]+d[e>>16&15])),s},j.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var l=new Uint32Array(e);a>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;s%n===0&&B(r)}return o&&(e=s<<2,t=r[a],l[e]=255&t,o>1&&(l[e+1]=t>>8&255),o>2&&(l[e+2]=t>>16&255)),l},R.prototype=new j,R.prototype.finalize=function(){return this.encode(this.outputBits,!0),j.prototype.finalize.call(this)};var B=function(e){var t,n,r,i,o,a,s,l,c,u,d,f,h,m,g,y,b,v,_,w,x,k,T,S,A,E,C,O,M,P,I,N,j,R,B,F,D,L,U,z,W,H,q,G,V,Y,K,Z,X,J,Q,$,ee,te,ne,re,ie,oe,ae,se,le,ce,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(f=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|c>>>31),n=o^(c<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(u<<1|d>>>31),n=s^(d<<1|u>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(f<<1|h>>>31),n=c^(h<<1|f>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=u^(i<<1|o>>>31),n=d^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],g=e[1],Y=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,O=e[20]<<3|e[21]>>>29,M=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,le=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,I=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,F=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,_=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,N=e[45]<<29|e[44]>>>3,j=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,L=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,G=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,E=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,W=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,T=e[49]<<14|e[48]>>>18,e[0]=m^~y&v,e[1]=g^~b&_,e[10]=S^~E&O,e[11]=A^~C&M,e[20]=R^~F&L,e[21]=B^~D&U,e[30]=G^~Y&Z,e[31]=V^~K&X,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=y^~v&w,e[3]=b^~_&x,e[12]=E^~O&P,e[13]=C^~M&I,e[22]=F^~L&z,e[23]=D^~U&W,e[32]=Y^~Z&J,e[33]=K^~X&Q,e[42]=re^~oe&se,e[43]=ie^~ae&le,e[4]=v^~w&k,e[5]=_^~x&T,e[14]=O^~P&N,e[15]=M^~I&j,e[24]=L^~z&H,e[25]=U^~W&q,e[34]=Z^~J&$,e[35]=X^~Q&ee,e[44]=oe^~se&ce,e[45]=ae^~le&ue,e[6]=w^~k&m,e[7]=x^~T&g,e[16]=P^~N&S,e[17]=I^~j&A,e[26]=z^~H&R,e[27]=W^~q&B,e[36]=J^~$&G,e[37]=Q^~ee&V,e[46]=se^~ce&te,e[47]=le^~ue&ne,e[8]=k^~m&y,e[9]=T^~g&b,e[18]=N^~S&E,e[19]=j^~A&C,e[28]=H^~R&F,e[29]=q^~B&D,e[38]=$^~G&Y,e[39]=ee^~V&K,e[48]=ce^~te&re,e[49]=ue^~ne&ie,e[0]^=p[r],e[1]^=p[r+1]};if(l)e.exports=A;else{for(C=0;Co.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded")}static BigInt(e){var t=Number.isFinite;if("number"==typeof e){if(0===e)return o.__zero();if(o.__isOneDigitInt(e))return 0>e?o.__oneDigit(-e,!0):o.__oneDigit(e,!1);if(!t(e)||i(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return o.__fromDouble(e)}if("string"==typeof e){const t=o.__fromString(e);if(null===t)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return t}if("boolean"==typeof e)return!0===e?o.__oneDigit(1,!1):o.__zero();if("object"==typeof e){if(e.constructor===o)return e;const t=o.__toPrimitive(e);return o.BigInt(t)}throw new TypeError("Cannot convert "+e+" to a BigInt")}toDebugString(){const e=["BigInt["];for(const t of this)e.push((t?(t>>>0).toString(16):t)+", ");return e.push("]"),e.join("")}toString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;if(2>e||36>>=12;const d=c-12;let f=12<=c?0:s<<20+c,h=20+c;for(0>>30-d,f=s<>>30-h,h-=30;const p=o.__decideRounding(e,h,l,s);if((1===p||0===p&&1==(1&f))&&(f=f+1>>>0,0===f&&(u++,0!=u>>>20&&(u=0,a++,1023=o.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){const t=1+(0|n/30),r=e.sign&&0!=(1&n),i=new o(t,r);i.__initializeDigits();const a=1<>=1;0!==n;n>>=1)i=o.multiply(i,i),0!=(1&n)&&(r=null===r?i:o.multiply(r,i));return r}static multiply(e,t){if(0===e.length)return e;if(0===t.length)return t;let n=e.length+t.length;30<=e.__clzmsd()+t.__clzmsd()&&n--;const r=new o(n,e.sign!==t.sign);r.__initializeDigits();for(let i=0;io.__absoluteCompare(e,t))return o.__zero();const n=e.sign!==t.sign,r=t.__unsignedDigit(0);let i;if(1===t.length&&32767>=r){if(1===r)return n===e.sign?e:o.unaryMinus(e);i=o.__absoluteDivSmall(e,r,null)}else i=o.__absoluteDivLarge(e,t,!0,!1);return i.sign=n,i.__trim()}static remainder(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>o.__absoluteCompare(e,t))return e;const n=t.__unsignedDigit(0);if(1===t.length&&32767>=n){if(1===n)return o.__zero();const t=o.__absoluteModSmall(e,n);return 0===t?o.__zero():o.__oneDigit(t,e.sign)}const r=o.__absoluteDivLarge(e,t,!1,!0);return r.sign=e.sign,r.__trim()}static add(e,t){const n=e.sign;return n===t.sign?o.__absoluteAdd(e,t,n):0<=o.__absoluteCompare(e,t)?o.__absoluteSub(e,t,n):o.__absoluteSub(t,e,!n)}static subtract(e,t){const n=e.sign;return n===t.sign?0<=o.__absoluteCompare(e,t)?o.__absoluteSub(e,t,n):o.__absoluteSub(t,e,!n):o.__absoluteAdd(e,t,n)}static leftShift(e,t){return 0===t.length||0===e.length?e:t.sign?o.__rightShiftByAbsolute(e,t):o.__leftShiftByAbsolute(e,t)}static signedRightShift(e,t){return 0===t.length||0===e.length?e:t.sign?o.__leftShiftByAbsolute(e,t):o.__rightShiftByAbsolute(e,t)}static unsignedRightShift(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}static lessThan(e,t){return 0>o.__compareToBigInt(e,t)}static lessThanOrEqual(e,t){return 0>=o.__compareToBigInt(e,t)}static greaterThan(e,t){return 0(e=i(e)))throw new RangeError("Invalid value: not (convertible to) a safe integer");if(0===e)return o.__zero();if(e>=o.__kMaxLengthBits)return t;const n=0|(e+29)/30;if(t.length(e=i(e)))throw new RangeError("Invalid value: not (convertible to) a safe integer");if(0===e)return o.__zero();if(t.sign){if(e>o.__kMaxLengthBits)throw new RangeError("BigInt too big");return o.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=o.__kMaxLengthBits)return t;const n=0|(e+29)/30;if(t.length>>r)return t}return o.__truncateToNBits(e,t)}static ADD(e,t){if(e=o.__toPrimitive(e),t=o.__toPrimitive(t),"string"==typeof e)return"string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=o.__toNumeric(e),t=o.__toNumeric(t),o.__isBigInt(e)&&o.__isBigInt(t))return o.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}static LT(e,t){return o.__compare(e,t,0)}static LE(e,t){return o.__compare(e,t,1)}static GT(e,t){return o.__compare(e,t,2)}static GE(e,t){return o.__compare(e,t,3)}static EQ(e,t){for(;;){if(o.__isBigInt(e))return o.__isBigInt(t)?o.equal(e,t):o.EQ(t,e);if("number"==typeof e){if(o.__isBigInt(t))return o.__equalToNumber(t,e);if("object"!=typeof t)return e==t;t=o.__toPrimitive(t)}else if("string"==typeof e){if(o.__isBigInt(t))return null!==(e=o.__fromString(e))&&o.equal(e,t);if("object"!=typeof t)return e==t;t=o.__toPrimitive(t)}else if("boolean"==typeof e){if(o.__isBigInt(t))return o.__equalToNumber(t,+e);if("object"!=typeof t)return e==t;t=o.__toPrimitive(t)}else if("symbol"==typeof e){if(o.__isBigInt(t))return!1;if("object"!=typeof t)return e==t;t=o.__toPrimitive(t)}else{if("object"!=typeof e)return e==t;if("object"==typeof t&&t.constructor!==o)return e==t;e=o.__toPrimitive(e)}}}static NE(e,t){return!o.EQ(e,t)}static __zero(){return new o(0,!1)}static __oneDigit(e,t){const n=new o(1,t);return n.__setDigit(0,e),n}__copy(){const e=new o(this.length,this.sign);for(let t=0;tt)i=-t-1;else{if(0===n)return-1;n--,r=e.__digit(n),i=29}let o=1<>>20)-1023,n=1+(0|t/30),r=new o(n,0>e);let i=1048575&o.__kBitConversionInts[1]|1048576,a=o.__kBitConversionInts[0];const s=20,l=t%30;let c,u=0;if(20>l){const e=s-l;u=e+32,c=i>>>e,i=i<<32-e|a>>>e,a<<=32-e}else if(20===l)u=32,c=i,i=a,a=0;else{const e=l-s;u=32-e,c=i<>>32-e,i=a<>>2,i=i<<30|a>>>2,a<<=30):c=0,r.__setDigit(o,c);return r.__trim()}static __isWhitespace(e){return!!(13>=e&&9<=e)||(159>=e?32==e:131071>=e?160==e||5760==e:196607>=e?10>=(e&=131071)||40==e||41==e||47==e||95==e||4096==e:65279==e)}static __fromString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;const r=e.length;let i=0;if(i===r)return o.__zero();let a=e.charCodeAt(i);for(;o.__isWhitespace(a);){if(++i===r)return o.__zero();a=e.charCodeAt(i)}if(43===a){if(++i===r)return null;a=e.charCodeAt(i),n=1}else if(45===a){if(++i===r)return null;a=e.charCodeAt(i),n=-1}if(0===t){if(t=10,48===a){if(++i===r)return o.__zero();if(a=e.charCodeAt(i),88===a||120===a){if(t=16,++i===r)return null;a=e.charCodeAt(i)}else if(79===a||111===a){if(t=8,++i===r)return null;a=e.charCodeAt(i)}else if(66===a||98===a){if(t=2,++i===r)return null;a=e.charCodeAt(i)}}}else if(16===t&&48===a){if(++i===r)return o.__zero();if(a=e.charCodeAt(i),88===a||120===a){if(++i===r)return null;a=e.charCodeAt(i)}}if(0!=n&&10!==t)return null;for(;48===a;){if(++i===r)return o.__zero();a=e.charCodeAt(i)}const s=r-i;let l=o.__kMaxBitsPerChar[t],c=o.__kBitsPerCharTableMultiplier-1;if(s>1073741824/l)return null;const u=l*s+c>>>o.__kBitsPerCharTableShift,d=new o(0|(u+29)/30,!1),f=10>t?t:10,h=10>=o.__kBitsPerCharTableShift;const t=[],n=[];let s=!1;do{let o=0,c=0;for(;;){let t;if(a-48>>>0>>0>>0>>0>>o.__kBitsPerCharTableShift)/30;d.__inplaceMultiplyAdd(p,u,m)}while(!n)}if(i!==r){if(!o.__isWhitespace(a))return null;for(i++;i>>l-o)}if(0!==i){if(r>=e.length)throw new Error("implementation bug");e.__setDigit(r++,i)}for(;r>>1)+(85&r),r=(51&r>>>2)+(51&r),r=(15&r>>>4)+(15&r);const i=r,a=t-1,s=e.__digit(n-1);let l=0|(30*n-o.__clz30(s)+i-1)/i;if(e.sign&&l++,268435456>>r,f=30-r;f>=i;)c[u--]=o.__kConversionChars[d&a],d>>>=i,f-=i}const h=(d|s<>>i-f;0!==d;)c[u--]=o.__kConversionChars[d&a],d>>>=i;if(e.sign&&(c[u--]="-"),-1!=u)throw new Error("implementation bug");return c.join("")}static __toStringGeneric(e,t,n){const r=e.length;if(0===r)return"";if(1===r){let r=e.__unsignedDigit(0).toString(t);return!1===n&&e.sign&&(r="-"+r),r}const i=30*r-o.__clz30(e.__digit(r-1)),a=o.__kMaxBitsPerChar[t]-1;let s=i*o.__kBitsPerCharTableMultiplier;s+=a-1,s=0|s/a;const l=s+1>>1,c=o.exponentiate(o.__oneDigit(t,!1),o.__oneDigit(l,!1));let u,d;const f=c.__unsignedDigit(0);if(1===c.length&&32767>=f){u=new o(e.length,!1),u.__initializeDigits();let n=0;for(let t=2*e.length-1;0<=t;t--){const r=n<<15|e.__halfDigit(t);u.__setHalfDigit(t,0|r/f),n=0|r%f}d=n.toString(t)}else{const n=o.__absoluteDivLarge(e,c,!0,!0);u=n.quotient;const r=n.remainder.__trim();d=o.__toStringGeneric(r,t,!0)}u.__trim();let h=o.__toStringGeneric(u,t,!0);for(;d.lengthr?o.__absoluteLess(n):0}static __compareToNumber(e,t){if(o.__isOneDigitInt(t)){const r=e.sign,i=0>t;if(r!==i)return o.__unequalSign(r);if(0===e.length){if(i)throw new Error("implementation bug");return 0===t?0:-1}if(1a?o.__absoluteGreater(r):st)return o.__unequalSign(n);if(0===t)throw new Error("implementation bug: should be handled elsewhere");if(0===e.length)return-1;o.__kBitConversionDouble[0]=t;const r=2047&o.__kBitConversionInts[1]>>>20;if(2047==r)throw new Error("implementation bug: handled elsewhere");const i=r-1023;if(0>i)return o.__absoluteGreater(n);const a=e.length;let s=e.__digit(a-1);const l=o.__clz30(s),c=30*a-l,u=i+1;if(cu)return o.__absoluteGreater(n);let d=1048576|1048575&o.__kBitConversionInts[1],f=o.__kBitConversionInts[0];const h=20,p=29-l;if(p!==(0|(c-1)%30))throw new Error("implementation bug");let m,g=0;if(20>p){const e=h-p;g=e+32,m=d>>>e,d=d<<32-e|f>>>e,f<<=32-e}else if(20===p)g=32,m=d,d=f,f=0;else{const e=p-h;g=32-e,m=d<>>32-e,d=f<>>=0,m>>>=0,s>m)return o.__absoluteGreater(n);if(s>>2,d=d<<30|f>>>2,f<<=30):m=0;const t=e.__unsignedDigit(y);if(t>m)return o.__absoluteGreater(n);if(tt&&e.__unsignedDigit(0)===n(t):0===o.__compareToDouble(e,t)}static __comparisonResultToBool(e,t){return 0===t?0>e:1===t?0>=e:2===t?0t;case 3:return e>=t}if(o.__isBigInt(e)&&"string"==typeof t)return null!==(t=o.__fromString(t))&&o.__comparisonResultToBool(o.__compareToBigInt(e,t),n);if("string"==typeof e&&o.__isBigInt(t))return null!==(e=o.__fromString(e))&&o.__comparisonResultToBool(o.__compareToBigInt(e,t),n);if(e=o.__toNumeric(e),t=o.__toNumeric(t),o.__isBigInt(e)){if(o.__isBigInt(t))return o.__comparisonResultToBool(o.__compareToBigInt(e,t),n);if("number"!=typeof t)throw new Error("implementation bug");return o.__comparisonResultToBool(o.__compareToNumber(e,t),n)}if("number"!=typeof e)throw new Error("implementation bug");if(o.__isBigInt(t))return o.__comparisonResultToBool(o.__compareToNumber(t,e),2^n);if("number"!=typeof t)throw new Error("implementation bug");return 0===n?et:3===n?e>=t:void 0}__clzmsd(){return o.__clz30(this.__digit(this.length-1))}static __absoluteAdd(e,t,n){if(e.length>>30,i.__setDigit(s,1073741823&n)}for(;s>>30,i.__setDigit(s,1073741823&t)}return s>>30,r.__setDigit(a,1073741823&n)}for(;a>>30,r.__setDigit(a,1073741823&t)}return r.__trim()}static __absoluteAddOne(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=e.length;null===n?n=new o(r,t):n.sign=t;let i=1;for(let o=0;o>>30,n.__setDigit(o,1073741823&t)}return 0!=i&&n.__setDigitGrow(r,1),n}static __absoluteSubOne(e,t){const n=e.length,r=new o(t=t||n,!1);let i=1;for(let o=0;o>>30,r.__setDigit(o,1073741823&t)}if(0!=i)throw new Error("implementation bug");for(let o=n;o2&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,a=i;if(r2&&void 0!==arguments[2]?arguments[2]:null;const r=e.length,i=t.length;let a=i;r2&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,a=i;if(r2&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,a=i;if(rr?0:e.__unsignedDigit(r)>t.__unsignedDigit(r)?1:-1}static __multiplyAccumulate(e,t,n,r){if(0===t)return;const i=32767&t,a=t>>>15;let s=0,l=0;for(let c,u=0;u>>15,h=o.__imul(d,i),p=o.__imul(d,a),m=o.__imul(f,i);c+=l+h+s,s=c>>>30,c&=1073741823,c+=((32767&p)<<15)+((32767&m)<<15),s+=c>>>30,l=o.__imul(f,a)+(p>>>15)+(m>>>15),n.__setDigit(r,1073741823&c)}for(;0!=s||0!==l;r++){let e=n.__digit(r);e+=s+l,l=0,s=e>>>30,n.__setDigit(r,1073741823&e)}}static __internalMultiplyAdd(e,t,n,r,i){let a=n,s=0;for(let l=0;l>>15,t),u=r+((32767&c)<<15)+s+a;a=u>>>30,s=c>>>15,i.__setDigit(l,1073741823&u)}if(i.length>r)for(i.__setDigit(r++,a+s);rthis.length&&(n=this.length);const r=32767&e,i=e>>>15;let a=0,s=t;for(let l=0;l>>15,c=o.__imul(t,r),u=o.__imul(t,i),d=o.__imul(n,r);let f=s+c+a;a=f>>>30,f&=1073741823,f+=((32767&u)<<15)+((32767&d)<<15),a+=f>>>30,s=o.__imul(n,i)+(u>>>15)+(d>>>15),this.__setDigit(l,1073741823&f)}if(0!=a||0!==s)throw new Error("implementation bug")}static __absoluteDivSmall(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null===n&&(n=new o(e.length,!1));let r=0;for(let i,o=2*e.length-1;0<=o;o-=2){i=(r<<15|e.__halfDigit(o))>>>0;const a=0|i/t;r=0|i%t,i=(r<<15|e.__halfDigit(o-1))>>>0;const s=0|i/t;r=0|i%t,n.__setDigit(o>>>1,a<<15|s)}return n}static __absoluteModSmall(e,t){let n=0;for(let r=2*e.length-1;0<=r;r--)n=0|((n<<15|e.__halfDigit(r))>>>0)%t;return n}static __absoluteDivLarge(e,t,n,r){const i=t.__halfDigitLength(),a=t.length,s=e.__halfDigitLength()-i;let l=null;n&&(l=new o(s+2>>>1,!1),l.__initializeDigits());const c=new o(i+2>>>1,!1);c.__initializeDigits();const u=o.__clz15(t.__halfDigit(i-1));0>>0;p=0|n/f;let r=0|n%f;const a=t.__halfDigit(i-2),s=d.__halfDigit(m+i-2);for(;o.__imul(p,a)>>>0>(r<<16|s)>>>0&&(p--,r+=f,!(32767>>1,h|p))}if(r)return d.__inplaceRightShift(u),n?{quotient:l,remainder:d}:d;if(n)return l;throw new Error("unreachable")}static __clz15(e){return o.__clz30(e)-15}__inplaceAdd(e,t,n){let r=0;for(let i=0;i>>15,this.__setHalfDigit(t+i,32767&n)}return r}__inplaceSub(e,t,n){let r=0;if(1&t){t>>=1;let i=this.__digit(t),o=32767&i,a=0;for(;a>>1;a++){const n=e.__digit(a),s=(i>>>15)-(32767&n)-r;r=1&s>>>15,this.__setDigit(t+a,(32767&s)<<15|32767&o),i=this.__digit(t+a+1),o=(32767&i)-(n>>>15)-r,r=1&o>>>15}const s=e.__digit(a),l=(i>>>15)-(32767&s)-r;if(r=1&l>>>15,this.__setDigit(t+a,(32767&l)<<15|32767&o),t+a+1>=this.length)throw new RangeError("out of bounds");0==(1&n)&&(i=this.__digit(t+a+1),o=(32767&i)-(s>>>15)-r,r=1&o>>>15,this.__setDigit(t+e.length,1073709056&i|32767&o))}else{t>>=1;let i=0;for(;i>>15;const s=(n>>>15)-(o>>>15)-r;r=1&s>>>15,this.__setDigit(t+i,(32767&s)<<15|32767&a)}const o=this.__digit(t+i),a=e.__digit(i),s=(32767&o)-(32767&a)-r;r=1&s>>>15;let l=0;0==(1&n)&&(l=(o>>>15)-(a>>>15)-r,r=1&l>>>15),this.__setDigit(t+i,(32767&l)<<15|32767&s)}return r}__inplaceRightShift(e){if(0===e)return;let t=this.__digit(0)>>>e;const n=this.length-1;for(let r=0;r>>e}this.__setDigit(n,t)}static __specialLeftShift(e,t,n){const r=e.length,i=new o(r+n,!1);if(0===t){for(let t=0;t>>30-t}return 0n)throw new RangeError("BigInt too big");const r=0|n/30,i=n%30,a=e.length,s=0!==i&&0!=e.__digit(a-1)>>>30-i,l=a+r+(s?1:0),c=new o(l,e.sign);if(0===i){let t=0;for(;t>>30-i}if(s)c.__setDigit(a+r,t);else if(0!==t)throw new Error("implementation bug")}return c.__trim()}static __rightShiftByAbsolute(e,t){const n=e.length,r=e.sign,i=o.__toShiftAmount(t);if(0>i)return o.__rightShiftByMaximum(r);const a=0|i/30,s=i%30;let l=n-a;if(0>=l)return o.__rightShiftByMaximum(r);let c=!1;if(r)if(0!=(e.__digit(a)&(1<>>s;const r=n-a-1;for(let n=0;n>>s}u.__setDigit(r,t)}return c&&(u=o.__absoluteAddOne(u,!0,u)),u.__trim()}static __rightShiftByMaximum(e){return e?o.__oneDigit(1,!0):o.__zero()}static __toShiftAmount(e){if(1o.__kMaxLengthBits?-1:t}static __toPrimitive(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";if("object"!=typeof e)return e;if(e.constructor===o)return e;if("undefined"!=typeof Symbol&&"symbol"==typeof Symbol.toPrimitive){const n=e[Symbol.toPrimitive];if(n){const e=n(t);if("object"!=typeof e)return e;throw new TypeError("Cannot convert object to primitive value")}}const n=e.valueOf;if(n){const t=n.call(e);if("object"!=typeof t)return t}const r=e.toString;if(r){const t=r.call(e);if("object"!=typeof t)return t}throw new TypeError("Cannot convert object to primitive value")}static __toNumeric(e){return o.__isBigInt(e)?e:+e}static __isBigInt(e){return"object"==typeof e&&null!==e&&e.constructor===o}static __truncateToNBits(e,t){const n=0|(e+29)/30,r=new o(n,t.sign),i=n-1;for(let o=0;o>>t}return r.__setDigit(i,a),r.__trim()}static __truncateAndSubFromPowerOfTwo(e,t,n){var r=Math.min;const i=0|(e+29)/30,a=new o(i,n);let s=0;const l=i-1;let c=0;for(const o=r(l,t.length);s>>30,a.__setDigit(s,1073741823&e)}for(;s>>e;const t=1<<32-e;f=t-u-c,f&=t-1}return a.__setDigit(l,f),a.__trim()}__digit(e){return this[e]}__unsignedDigit(e){return this[e]>>>0}__setDigit(e,t){this[e]=0|t}__setDigitGrow(e,t){this[e]=0|t}__halfDigitLength(){const e=this.length;return 32767>=this.__unsignedDigit(e-1)?2*e-1:2*e}__halfDigit(e){return 32767&this[e>>>1]>>>15*(1&e)}__setHalfDigit(e,t){const n=e>>>1,r=this.__digit(n),i=1&e?32767&r|t<<15:1073709056&r|32767&t;this.__setDigit(n,i)}static __digitPow(e,t){let n=1;for(;0>>=1,e*=e;return n}static __isOneDigitInt(e){return(1073741823&e)===e}}return o.__kMaxLength=33554432,o.__kMaxLengthBits=o.__kMaxLength<<5,o.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],o.__kBitsPerCharTableShift=5,o.__kBitsPerCharTableMultiplier=1<>>0)/t)},o.__imul=e||function(e,t){return 0|e*t},o}()},98094:(e,t,n)=>{e.exports=n(32868)(n(17788))},32868:(e,t,n)=>{const r=n(30939),i=n(59086);e.exports=function(e){const t=r(e),n=i(e);return function(e,r){switch("string"===typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,r);case"keccak256":return new t(1088,512,null,256,r);case"keccak384":return new t(832,768,null,384,r);case"keccak512":return new t(576,1024,null,512,r);case"sha3-224":return new t(1152,448,6,224,r);case"sha3-256":return new t(1088,512,6,256,r);case"sha3-384":return new t(832,768,6,384,r);case"sha3-512":return new t(576,1024,6,512,r);case"shake128":return new n(1344,256,31,r);case"shake256":return new n(1088,512,31,r);default:throw new Error("Invald algorithm: "+e)}}}},30939:(e,t,n)=>{const{Transform:r}=n(61881);e.exports=e=>class t extends r{constructor(t,n,r,i,o){super(o),this._rate=t,this._capacity=n,this._delimitedSuffix=r,this._hashBitLength=i,this._options=o,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let r=null;try{this.update(e,t)}catch(i){r=i}n(r)}_flush(e){let t=null;try{this.push(this.digest())}catch(n){t=n}e(t)}update(e,t){if(!Buffer.isBuffer(e)&&"string"!==typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(e)||(e=Buffer.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},59086:(e,t,n)=>{const{Transform:r}=n(61881);e.exports=e=>class t extends r{constructor(t,n,r,i){super(i),this._rate=t,this._capacity=n,this._delimitedSuffix=r,this._options=i,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let r=null;try{this.update(e,t)}catch(i){r=i}n(r)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!Buffer.isBuffer(e)&&"string"!==typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(e)||(e=Buffer.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(e);return void 0!==t&&(n=n.toString(t)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},63090:(e,t)=>{const n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],u=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],f=e[9]^e[19]^e[29]^e[39]^e[49];let h=d^(o<<1|a>>>31),p=f^(a<<1|o>>>31);const m=e[0]^h,g=e[1]^p,y=e[10]^h,b=e[11]^p,v=e[20]^h,_=e[21]^p,w=e[30]^h,x=e[31]^p,k=e[40]^h,T=e[41]^p;h=r^(s<<1|l>>>31),p=i^(l<<1|s>>>31);const S=e[2]^h,A=e[3]^p,E=e[12]^h,C=e[13]^p,O=e[22]^h,M=e[23]^p,P=e[32]^h,I=e[33]^p,N=e[42]^h,j=e[43]^p;h=o^(c<<1|u>>>31),p=a^(u<<1|c>>>31);const R=e[4]^h,B=e[5]^p,F=e[14]^h,D=e[15]^p,L=e[24]^h,U=e[25]^p,z=e[34]^h,W=e[35]^p,H=e[44]^h,q=e[45]^p;h=s^(d<<1|f>>>31),p=l^(f<<1|d>>>31);const G=e[6]^h,V=e[7]^p,Y=e[16]^h,K=e[17]^p,Z=e[26]^h,X=e[27]^p,J=e[36]^h,Q=e[37]^p,$=e[46]^h,ee=e[47]^p;h=c^(r<<1|i>>>31),p=u^(i<<1|r>>>31);const te=e[8]^h,ne=e[9]^p,re=e[18]^h,ie=e[19]^p,oe=e[28]^h,ae=e[29]^p,se=e[38]^h,le=e[39]^p,ce=e[48]^h,ue=e[49]^p,de=m,fe=g,he=b<<4|y>>>28,pe=y<<4|b>>>28,me=v<<3|_>>>29,ge=_<<3|v>>>29,ye=x<<9|w>>>23,be=w<<9|x>>>23,ve=k<<18|T>>>14,_e=T<<18|k>>>14,we=S<<1|A>>>31,xe=A<<1|S>>>31,ke=C<<12|E>>>20,Te=E<<12|C>>>20,Se=O<<10|M>>>22,Ae=M<<10|O>>>22,Ee=I<<13|P>>>19,Ce=P<<13|I>>>19,Oe=N<<2|j>>>30,Me=j<<2|N>>>30,Pe=B<<30|R>>>2,Ie=R<<30|B>>>2,Ne=F<<6|D>>>26,je=D<<6|F>>>26,Re=U<<11|L>>>21,Be=L<<11|U>>>21,Fe=z<<15|W>>>17,De=W<<15|z>>>17,Le=q<<29|H>>>3,Ue=H<<29|q>>>3,ze=G<<28|V>>>4,We=V<<28|G>>>4,He=K<<23|Y>>>9,qe=Y<<23|K>>>9,Ge=Z<<25|X>>>7,Ve=X<<25|Z>>>7,Ye=J<<21|Q>>>11,Ke=Q<<21|J>>>11,Ze=ee<<24|$>>>8,Xe=$<<24|ee>>>8,Je=te<<27|ne>>>5,Qe=ne<<27|te>>>5,$e=re<<20|ie>>>12,et=ie<<20|re>>>12,tt=ae<<7|oe>>>25,nt=oe<<7|ae>>>25,rt=se<<8|le>>>24,it=le<<8|se>>>24,ot=ce<<14|ue>>>18,at=ue<<14|ce>>>18;e[0]=de^~ke&Re,e[1]=fe^~Te&Be,e[10]=ze^~$e&me,e[11]=We^~et&ge,e[20]=we^~Ne&Ge,e[21]=xe^~je&Ve,e[30]=Je^~he&Se,e[31]=Qe^~pe&Ae,e[40]=Pe^~He&tt,e[41]=Ie^~qe&nt,e[2]=ke^~Re&Ye,e[3]=Te^~Be&Ke,e[12]=$e^~me&Ee,e[13]=et^~ge&Ce,e[22]=Ne^~Ge&rt,e[23]=je^~Ve&it,e[32]=he^~Se&Fe,e[33]=pe^~Ae&De,e[42]=He^~tt&ye,e[43]=qe^~nt&be,e[4]=Re^~Ye&ot,e[5]=Be^~Ke&at,e[14]=me^~Ee&Le,e[15]=ge^~Ce&Ue,e[24]=Ge^~rt&ve,e[25]=Ve^~it&_e,e[34]=Se^~Fe&Ze,e[35]=Ae^~De&Xe,e[44]=tt^~ye&Oe,e[45]=nt^~be&Me,e[6]=Ye^~ot&de,e[7]=Ke^~at&fe,e[16]=Ee^~Le&ze,e[17]=Ce^~Ue&We,e[26]=rt^~ve&we,e[27]=it^~_e&xe,e[36]=Fe^~Ze&Je,e[37]=De^~Xe&Qe,e[46]=ye^~Oe&Pe,e[47]=be^~Me&Ie,e[8]=ot^~de&ke,e[9]=at^~fe&Te,e[18]=Le^~ze&$e,e[19]=Ue^~We&et,e[28]=ve^~we&Ne,e[29]=_e^~xe&je,e[38]=Ze^~Je&he,e[39]=Xe^~Qe&pe,e[48]=Oe^~Pe&He,e[49]=Me^~Ie&qe,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},17788:(e,t,n)=>{const r=n(63090);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(e,t){for(let n=0;n<50;++n)this.state[n]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(e){for(let t=0;t>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(r.p1600(this.state),this.count=0);return t},i.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i},68624:(e,t,n)=>{var r=n(7289).Symbol;e.exports=r},18665:(e,t,n)=>{var r=n(68624),i=n(23596),o=n(78186),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},47480:e=>{var t=Math.floor,n=Math.random;e.exports=function(e,r){return e+t(n()*(r-e+1))}},2306:(e,t,n)=>{var r=n(5510),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},32692:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},23596:(e,t,n)=>{var r=n(68624),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},30674:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e{var r=n(83666),i=n(2114),o=n(30674),a=n(91845);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},78186:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7289:(e,t,n)=>{var r=n(32692),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},5510:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},83666:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},2114:(e,t,n)=>{var r=n(50375),i=n(44276);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},50375:(e,t,n)=>{var r=n(18665),i=n(91845);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},44276:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},91845:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},89752:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},72060:(e,t,n)=>{var r=n(18665),i=n(89752);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},16031:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,f=256,h=1/0,p=9007199254740991,m=NaN,g=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",f]],b="[object Arguments]",v="[object Array]",_="[object Boolean]",w="[object Date]",x="[object Error]",k="[object Function]",T="[object GeneratorFunction]",S="[object Map]",A="[object Number]",E="[object Object]",C="[object Promise]",O="[object RegExp]",M="[object Set]",P="[object String]",I="[object Symbol]",N="[object WeakMap]",j="[object ArrayBuffer]",R="[object DataView]",B="[object Float32Array]",F="[object Float64Array]",D="[object Int8Array]",L="[object Int16Array]",U="[object Int32Array]",z="[object Uint8Array]",W="[object Uint8ClampedArray]",H="[object Uint16Array]",q="[object Uint32Array]",G=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,X=RegExp(K.source),J=RegExp(Z.source),Q=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Te="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ae="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",Me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['\u2019]",Ie="["+Te+"]",Ne="["+Me+"]",je="["+Se+"]",Re="\\d+",Be="["+Ae+"]",Fe="["+Ee+"]",De="[^"+Te+Me+Re+Ae+Ee+Ce+"]",Le="\\ud83c[\\udffb-\\udfff]",Ue="[^"+Te+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",We="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Ce+"]",qe="\\u200d",Ge="(?:"+Fe+"|"+De+")",Ve="(?:"+He+"|"+De+")",Ye="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ke="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ze="(?:"+je+"|"+Le+")"+"?",Xe="["+Oe+"]?",Je=Xe+Ze+("(?:"+qe+"(?:"+[Ue,ze,We].join("|")+")"+Xe+Ze+")*"),Qe="(?:"+[Be,ze,We].join("|")+")"+Je,$e="(?:"+[Ue+je+"?",je,ze,We,Ie].join("|")+")",et=RegExp(Pe,"g"),tt=RegExp(je,"g"),nt=RegExp(Le+"(?="+Le+")|"+$e+Je,"g"),rt=RegExp([He+"?"+Fe+"+"+Ye+"(?="+[Ne,He,"$"].join("|")+")",Ve+"+"+Ke+"(?="+[Ne,He+Ge,"$"].join("|")+")",He+"?"+Ge+"+"+Ye,He+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Qe].join("|"),"g"),it=RegExp("["+qe+Te+Se+Oe+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,lt={};lt[B]=lt[F]=lt[D]=lt[L]=lt[U]=lt[z]=lt[W]=lt[H]=lt[q]=!0,lt[b]=lt[v]=lt[j]=lt[_]=lt[R]=lt[w]=lt[x]=lt[k]=lt[S]=lt[A]=lt[E]=lt[O]=lt[M]=lt[P]=lt[N]=!1;var ct={};ct[b]=ct[v]=ct[j]=ct[R]=ct[_]=ct[w]=ct[B]=ct[F]=ct[D]=ct[L]=ct[U]=ct[S]=ct[A]=ct[E]=ct[O]=ct[M]=ct[P]=ct[I]=ct[z]=ct[W]=ct[H]=ct[q]=!0,ct[x]=ct[k]=ct[N]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,mt=ht||pt||Function("return this")(),gt=t&&!t.nodeType&&t,yt=gt&&e&&!e.nodeType&&e,bt=yt&&yt.exports===gt,vt=bt&&ht.process,_t=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(t){}}(),wt=_t&&_t.isArrayBuffer,xt=_t&&_t.isDate,kt=_t&&_t.isMap,Tt=_t&&_t.isRegExp,St=_t&&_t.isSet,At=_t&&_t.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function jt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Kt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ut[e]}function ln(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var bn=function e(t){var n=(t=null==t?mt:bn.defaults(mt.Object(),t,bn.pick(mt,at))).Array,r=t.Date,se=t.Error,Te=t.Function,Se=t.Math,Ae=t.Object,Ee=t.RegExp,Ce=t.String,Oe=t.TypeError,Me=n.prototype,Pe=Te.prototype,Ie=Ae.prototype,Ne=t["__core-js_shared__"],je=Pe.toString,Re=Ie.hasOwnProperty,Be=0,Fe=function(){var e=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),De=Ie.toString,Le=je.call(Ae),Ue=mt._,ze=Ee("^"+je.call(Re).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=bt?t.Buffer:i,He=t.Symbol,qe=t.Uint8Array,Ge=We?We.allocUnsafe:i,Ve=un(Ae.getPrototypeOf,Ae),Ye=Ae.create,Ke=Ie.propertyIsEnumerable,Ze=Me.splice,Xe=He?He.isConcatSpreadable:i,Je=He?He.iterator:i,Qe=He?He.toStringTag:i,$e=function(){try{var e=fo(Ae,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,it=r&&r.now!==mt.Date.now&&r.now,ut=t.setTimeout!==mt.setTimeout&&t.setTimeout,ht=Se.ceil,pt=Se.floor,gt=Ae.getOwnPropertySymbols,yt=We?We.isBuffer:i,vt=t.isFinite,_t=Me.join,Ut=un(Ae.keys,Ae),Kt=Se.max,vn=Se.min,_n=r.now,wn=t.parseInt,xn=Se.random,kn=Me.reverse,Tn=fo(t,"DataView"),Sn=fo(t,"Map"),An=fo(t,"Promise"),En=fo(t,"Set"),Cn=fo(t,"WeakMap"),On=fo(Ae,"create"),Mn=Cn&&new Cn,Pn={},In=Do(Tn),Nn=Do(Sn),jn=Do(An),Rn=Do(En),Bn=Do(Cn),Fn=He?He.prototype:i,Dn=Fn?Fn.valueOf:i,Ln=Fn?Fn.toString:i;function Un(e){if(ts(e)&&!qa(e)&&!(e instanceof qn)){if(e instanceof Hn)return e;if(Re.call(e,"__wrapped__"))return Lo(e)}return new Hn(e)}var zn=function(){function e(){}return function(t){if(!es(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Wn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function lr(e,t,n,r,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!es(e))return e;var d=qa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Oi(e,s)}else{var f=mo(e),h=f==k||f==T;if(Ka(e))return ki(e,l);if(f==E||f==b||h&&!o){if(s=c||h?{}:yo(e),!l)return c?function(e,t){return Mi(e,po(e),t)}(e,function(e,t){return e&&Mi(t,Is(t),e)}(s,e)):function(e,t){return Mi(e,ho(e),t)}(e,ir(s,e))}else{if(!ct[f])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case j:return Ti(e);case _:case w:return new r(+e);case R:return function(e,t){var n=t?Ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case B:case F:case D:case L:case U:case z:case W:case H:case q:return Si(e,n);case S:return new r;case A:case P:return new r(e);case O:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new r;case I:return i=e,Dn?Ae(Dn.call(i)):{}}var i}(e,f,l)}}a||(a=new Zn);var p=a.get(e);if(p)return p;a.set(e,s),as(e)?e.forEach((function(r){s.add(lr(r,t,n,r,e,a))})):ns(e)&&e.forEach((function(r,i){s.set(i,lr(r,t,n,i,e,a))}));var m=d?i:(u?c?io:ro:c?Is:Ps)(e);return Ot(m||e,(function(r,i){m&&(r=e[i=r]),tr(s,i,lr(r,t,n,i,e,a))})),s}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ae(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Oe(o);return Po((function(){e.apply(i,n)}),t)}function dr(e,t,n,r){var i=-1,o=Nt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Rt(t,$t(n))),r?(o=jt,a=!1):t.length>=200&&(o=tn,a=!1,t=new Kn(t));e:for(;++i-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Sn||Vn),string:new Gn}},Yn.prototype.delete=function(e){var t=co(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return co(this,e).get(e)},Yn.prototype.has=function(e){return co(this,e).has(e)},Yn.prototype.set=function(e,t){var n=co(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ni(_r),hr=Ni(wr,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function mr(e,t,n){for(var r=-1,o=e.length;++r0&&n(s)?t>1?yr(s,t-1,n,r,i):Bt(i,s):r||(i[i.length]=s)}return i}var br=ji(),vr=ji(!0);function _r(e,t){return e&&br(e,t,Ps)}function wr(e,t){return e&&vr(e,t,Ps)}function xr(e,t){return It(t,(function(t){return Ja(e[t])}))}function kr(e,t){for(var n=0,r=(t=vi(t,e)).length;null!=e&&nt}function Er(e,t){return null!=e&&Re.call(e,t)}function Cr(e,t){return null!=e&&t in Ae(e)}function Or(e,t,r){for(var o=r?jt:Nt,a=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];l--;){var f=e[l];l&&t&&(f=Rt(f,$t(t))),u=vn(f.length,u),c[l]=!r&&(t||a>=120&&f.length>=120)?new Kn(l&&f):i}f=e[0];var h=-1,p=c[0];e:for(;++h=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Ze.call(s,l,1),Ze.call(e,l,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;vo(i)?Ze.call(e,i,1):di(e,i)}}return e}function Kr(e,t){return e+pt(xn()*(t-e+1))}function Zr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Io(Eo(e,t,rl),e+"")}function Jr(e){return Jn(Us(e))}function Qr(e,t){var n=Us(e);return Ro(n,sr(t,0,n.length))}function $r(e,t,n,r){if(!es(e))return e;for(var o=-1,a=(t=vi(t,e)).length,s=a-1,l=e;null!=l&&++oo?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i>>1,a=e[o];null!==a&&!ls(a)&&(n?a<=t:a=200){var c=t?null:Zi(e);if(c)return fn(c);a=!1,i=tn,l=new Kn}else l=t?[]:s;e:for(;++r=r?e:ri(e,t,n)}var xi=nt||function(e){return mt.clearTimeout(e)};function ki(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function Ti(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Si(e,t){var n=t?Ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ai(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=ls(e),s=t!==i,l=null===t,c=t===t,u=ls(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&_o(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Ae(t);++r-1?o[a?t[s]:s]:i}}function Li(e){return no((function(t){var n=t.length,r=n,a=Hn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Oe(o);if(a&&!l&&"wrapper"==ao(s))var l=new Hn([],!0)}for(r=l?r:n;++r1&&_.reverse(),h&&ul))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=2&n?new Kn:i;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ot(y,(function(n){var r="_."+n[0];t&n[1]&&!Nt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function jo(e){var t=0,n=0;return function(){var r=_n(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ro(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,oa(e,n)}));function fa(e){var t=Un(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var pa=no((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof qn&&vo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ma=Pi((function(e,t,n){Re.call(e,n)?++e[n]:or(e,n,1)}));var ga=Di(Ho),ya=Di(qo);function ba(e,t){return(qa(e)?Ot:fr)(e,lo(t,3))}function va(e,t){return(qa(e)?Mt:hr)(e,lo(t,3))}var _a=Pi((function(e,t,n){Re.call(e,n)?e[n].push(t):or(e,n,[t])}));var wa=Xr((function(e,t,r){var i=-1,o="function"==typeof t,a=Va(e)?n(e.length):[];return fr(e,(function(e){a[++i]=o?Et(t,e,r):Mr(e,t,r)})),a})),xa=Pi((function(e,t,n){or(e,n,t)}));function ka(e,t){return(qa(e)?Rt:Lr)(e,lo(t,3))}var Ta=Pi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Sa=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_o(e,t[0],t[1])?t=[]:n>2&&_o(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,yr(t,1),[])})),Aa=it||function(){return mt.Date.now()};function Ea(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ji(e,d,i,i,i,i,t)}function Ca(e,t){var n;if("function"!=typeof t)throw new Oe(o);return e=ps(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Oa=Xr((function(e,t,n){var r=1;if(n.length){var i=dn(n,so(Oa));r|=c}return Ji(e,r,t,n,i)})),Ma=Xr((function(e,t,n){var r=3;if(n.length){var i=dn(n,so(Ma));r|=c}return Ji(t,r,e,n,i)}));function Pa(e,t,n){var r,a,s,l,c,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new Oe(o);function m(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function g(e){var n=e-u;return u===i||n>=t||n<0||h&&e-d>=s}function y(){var e=Aa();if(g(e))return b(e);c=Po(y,function(e){var n=t-(e-u);return h?vn(n,s-(e-d)):n}(e))}function b(e){return c=i,p&&r?m(e):(r=a=i,l)}function v(){var e=Aa(),n=g(e);if(r=arguments,a=this,u=e,n){if(c===i)return function(e){return d=e,c=Po(y,t),f?m(e):l}(u);if(h)return xi(c),c=Po(y,t),m(u)}return c===i&&(c=Po(y,t)),l}return t=gs(t)||0,es(n)&&(f=!!n.leading,s=(h="maxWait"in n)?Kt(gs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),v.cancel=function(){c!==i&&xi(c),d=0,r=u=a=c=i},v.flush=function(){return c===i?l:b(Aa())},v}var Ia=Xr((function(e,t){return ur(e,1,t)})),Na=Xr((function(e,t,n){return ur(e,gs(t)||0,n)}));function ja(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ja.Cache||Yn),n}function Ra(e){if("function"!=typeof e)throw new Oe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ja.Cache=Yn;var Ba=_i((function(e,t){var n=(t=1==t.length&&qa(t[0])?Rt(t[0],$t(lo())):Rt(yr(t,1),$t(lo()))).length;return Xr((function(r){for(var i=-1,o=vn(r.length,n);++i=t})),Ha=Pr(function(){return arguments}())?Pr:function(e){return ts(e)&&Re.call(e,"callee")&&!Ke.call(e,"callee")},qa=n.isArray,Ga=wt?$t(wt):function(e){return ts(e)&&Sr(e)==j};function Va(e){return null!=e&&$a(e.length)&&!Ja(e)}function Ya(e){return ts(e)&&Va(e)}var Ka=yt||gl,Za=xt?$t(xt):function(e){return ts(e)&&Sr(e)==w};function Xa(e){if(!ts(e))return!1;var t=Sr(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Ja(e){if(!es(e))return!1;var t=Sr(e);return t==k||t==T||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==ps(e)}function $a(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=kt?$t(kt):function(e){return ts(e)&&mo(e)==S};function rs(e){return"number"==typeof e||ts(e)&&Sr(e)==A}function is(e){if(!ts(e)||Sr(e)!=E)return!1;var t=Ve(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==Le}var os=Tt?$t(Tt):function(e){return ts(e)&&Sr(e)==O};var as=St?$t(St):function(e){return ts(e)&&mo(e)==M};function ss(e){return"string"==typeof e||!qa(e)&&ts(e)&&Sr(e)==P}function ls(e){return"symbol"==typeof e||ts(e)&&Sr(e)==I}var cs=At?$t(At):function(e){return ts(e)&&$a(e.length)&&!!lt[Sr(e)]};var us=Vi(Dr),ds=Vi((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Va(e))return ss(e)?mn(e):Oi(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=mo(e);return(t==S?cn:t==M?fn:Us)(e)}function hs(e){return e?(e=gs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function ps(e){var t=hs(e),n=t%1;return t===t?n?t-n:t:0}function ms(e){return e?sr(ps(e),0,g):0}function gs(e){if("number"==typeof e)return e;if(ls(e))return m;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ye.test(e);return n||ve.test(e)?ft(e.slice(2),n?2:8):ge.test(e)?m:+e}function ys(e){return Mi(e,Is(e))}function bs(e){return null==e?"":ci(e)}var vs=Ii((function(e,t){if(To(t)||Va(t))Mi(t,Ps(t),e);else for(var n in t)Re.call(t,n)&&tr(e,n,t[n])})),_s=Ii((function(e,t){Mi(t,Is(t),e)})),ws=Ii((function(e,t,n,r){Mi(t,Is(t),e,r)})),xs=Ii((function(e,t,n,r){Mi(t,Ps(t),e,r)})),ks=no(ar);var Ts=Xr((function(e,t){e=Ae(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&_o(t[0],t[1],o)&&(r=1);++n1),t})),Mi(e,io(e),n),r&&(n=lr(n,7,eo));for(var i=t.length;i--;)di(n,t[i]);return n}));var Bs=no((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Es(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Rt(io(e),(function(e){return[e]}));return t=lo(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var Ds=Xi(Ps),Ls=Xi(Is);function Us(e){return null==e?[]:en(e,Ps(e))}var zs=Bi((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Xs(bs(e).toLowerCase())}function Hs(e){return(e=bs(e))&&e.replace(we,on).replace(tt,"")}var qs=Bi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gs=Bi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Vs=Ri("toLowerCase");var Ys=Bi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ks=Bi((function(e,t,n){return e+(n?" ":"")+Xs(t)}));var Zs=Bi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=Ri("toUpperCase");function Js(e,t,n){return e=bs(e),(t=n?i:t)===i?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qs=Xr((function(e,t){try{return Et(e,i,t)}catch(n){return Xa(n)?n:new se(n)}})),$s=no((function(e,t){return Ot(t,(function(t){t=Fo(t),or(e,t,Oa(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Li(),nl=Li(!0);function rl(e){return e}function il(e){return Rr("function"==typeof e?e:lr(e,1))}var ol=Xr((function(e,t){return function(n){return Mr(n,e,t)}})),al=Xr((function(e,t){return function(n){return Mr(e,n,t)}}));function sl(e,t,n){var r=Ps(t),i=xr(t,r);null!=n||es(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=xr(t,Ps(t)));var o=!(es(n)&&"chain"in n)||!!n.chain,a=Ja(e);return Ot(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Oi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Bt([this.value()],arguments))})})),e}function ll(){}var cl=Hi(Rt),ul=Hi(Pt),dl=Hi(Lt);function fl(e){return wo(e)?Yt(Fo(e)):function(e){return function(t){return kr(t,e)}}(e)}var hl=Gi(),pl=Gi(!0);function ml(){return[]}function gl(){return!1}var yl=Wi((function(e,t){return e+t}),0),bl=Ki("ceil"),vl=Wi((function(e,t){return e/t}),1),_l=Ki("floor");var wl=Wi((function(e,t){return e*t}),1),xl=Ki("round"),kl=Wi((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Oe(o);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Ea,Un.assign=vs,Un.assignIn=_s,Un.assignInWith=ws,Un.assignWith=xs,Un.at=ks,Un.before=Ca,Un.bind=Oa,Un.bindAll=$s,Un.bindKey=Ma,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Un.chain=fa,Un.chunk=function(e,t,r){t=(r?_o(e,t,r):t===i)?1:Kt(ps(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=n(ht(o/t));ao?0:o+n),(r=r===i||r>o?o:ps(r))<0&&(r+=o),r=n>r?0:ms(r);n>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ci(t))&&ln(e)?wi(mn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Oe(o);return t=null==t?0:Kt(ps(t),0),Xr((function(n){var r=n[t],i=wi(n,0,t);return r&&Bt(i,r),Et(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ri(e,0,(t=n||t===i?1:ps(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=r-(t=n||t===i?1:ps(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?hi(e,lo(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?hi(e,lo(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Oe(o);return es(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Pa(e,t,{leading:r,maxWait:t,trailing:i})},Un.thru=ha,Un.toArray=fs,Un.toPairs=Ds,Un.toPairsIn=Ls,Un.toPath=function(e){return qa(e)?Rt(e,Fo):ls(e)?[e]:Oi(Bo(bs(e)))},Un.toPlainObject=ys,Un.transform=function(e,t,n){var r=qa(e),i=r||Ka(e)||cs(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:es(e)&&Ja(o)?zn(Ve(e)):{}}return(i?Ot:_r)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return Ea(e,1)},Un.union=ta,Un.unionBy=na,Un.unionWith=ra,Un.uniq=function(e){return e&&e.length?ui(e):[]},Un.uniqBy=function(e,t){return e&&e.length?ui(e,lo(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},Un.unset=function(e,t){return null==e||di(e,t)},Un.unzip=ia,Un.unzipWith=oa,Un.update=function(e,t,n){return null==e?e:fi(e,t,bi(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:fi(e,t,bi(n),r)},Un.values=Us,Un.valuesIn=function(e){return null==e?[]:en(e,Is(e))},Un.without=aa,Un.words=Js,Un.wrap=function(e,t){return Fa(bi(t),e)},Un.xor=sa,Un.xorBy=la,Un.xorWith=ca,Un.zip=ua,Un.zipObject=function(e,t){return gi(e||[],t||[],tr)},Un.zipObjectDeep=function(e,t){return gi(e||[],t||[],$r)},Un.zipWith=da,Un.entries=Ds,Un.entriesIn=Ls,Un.extend=_s,Un.extendWith=ws,sl(Un,Un),Un.add=yl,Un.attempt=Qs,Un.camelCase=zs,Un.capitalize=Ws,Un.ceil=bl,Un.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=gs(n))===n?n:0),t!==i&&(t=(t=gs(t))===t?t:0),sr(gs(e),t,n)},Un.clone=function(e){return lr(e,4)},Un.cloneDeep=function(e){return lr(e,5)},Un.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:i)},Un.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:i)},Un.conformsTo=function(e,t){return null==t||cr(e,t,Ps(t))},Un.deburr=Hs,Un.defaultTo=function(e,t){return null==e||e!==e?t:e},Un.divide=vl,Un.endsWith=function(e,t,n){e=bs(e),t=ci(t);var r=e.length,o=n=n===i?r:sr(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Un.eq=Ua,Un.escape=function(e){return(e=bs(e))&&J.test(e)?e.replace(Z,an):e},Un.escapeRegExp=function(e){return(e=bs(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Un.every=function(e,t,n){var r=qa(e)?Pt:pr;return n&&_o(e,t,n)&&(t=i),r(e,lo(t,3))},Un.find=ga,Un.findIndex=Ho,Un.findKey=function(e,t){return zt(e,lo(t,3),_r)},Un.findLast=ya,Un.findLastIndex=qo,Un.findLastKey=function(e,t){return zt(e,lo(t,3),wr)},Un.floor=_l,Un.forEach=ba,Un.forEachRight=va,Un.forIn=function(e,t){return null==e?e:br(e,lo(t,3),Is)},Un.forInRight=function(e,t){return null==e?e:vr(e,lo(t,3),Is)},Un.forOwn=function(e,t){return e&&_r(e,lo(t,3))},Un.forOwnRight=function(e,t){return e&&wr(e,lo(t,3))},Un.get=As,Un.gt=za,Un.gte=Wa,Un.has=function(e,t){return null!=e&&go(e,t,Er)},Un.hasIn=Es,Un.head=Vo,Un.identity=rl,Un.includes=function(e,t,n,r){e=Va(e)?e:Us(e),n=n&&!r?ps(n):0;var i=e.length;return n<0&&(n=Kt(i+n,0)),ss(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ht(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=Kt(r+i,0)),Ht(e,t,i)},Un.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=vn(t,n)&&e=-9007199254740991&&e<=p},Un.isSet=as,Un.isString=ss,Un.isSymbol=ls,Un.isTypedArray=cs,Un.isUndefined=function(e){return e===i},Un.isWeakMap=function(e){return ts(e)&&mo(e)==N},Un.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Sr(e)},Un.join=function(e,t){return null==e?"":_t.call(e,t)},Un.kebabCase=qs,Un.last=Xo,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ps(n))<0?Kt(r+o,0):vn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Wt(e,Gt,o,!0)},Un.lowerCase=Gs,Un.lowerFirst=Vs,Un.lt=us,Un.lte=ds,Un.max=function(e){return e&&e.length?mr(e,rl,Ar):i},Un.maxBy=function(e,t){return e&&e.length?mr(e,lo(t,2),Ar):i},Un.mean=function(e){return Vt(e,rl)},Un.meanBy=function(e,t){return Vt(e,lo(t,2))},Un.min=function(e){return e&&e.length?mr(e,rl,Dr):i},Un.minBy=function(e,t){return e&&e.length?mr(e,lo(t,2),Dr):i},Un.stubArray=ml,Un.stubFalse=gl,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=wl,Un.nth=function(e,t){return e&&e.length?Hr(e,ps(t)):i},Un.noConflict=function(){return mt._===this&&(mt._=Ue),this},Un.noop=ll,Un.now=Aa,Un.pad=function(e,t,n){e=bs(e);var r=(t=ps(t))?pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return qi(pt(i),n)+e+qi(ht(i),n)},Un.padEnd=function(e,t,n){e=bs(e);var r=(t=ps(t))?pn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=xn();return vn(e+o*(t-e+dt("1e-"+((o+"").length-1))),t)}return Kr(e,t)},Un.reduce=function(e,t,n){var r=qa(e)?Ft:Zt,i=arguments.length<3;return r(e,lo(t,4),n,i,fr)},Un.reduceRight=function(e,t,n){var r=qa(e)?Dt:Zt,i=arguments.length<3;return r(e,lo(t,4),n,i,hr)},Un.repeat=function(e,t,n){return t=(n?_o(e,t,n):t===i)?1:ps(t),Zr(bs(e),t)},Un.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,o=(t=vi(t,e)).length;for(o||(o=1,e=i);++rp)return[];var n=g,r=vn(e,g);t=lo(t),e-=g;for(var i=Jt(r,t);++n=a)return e;var l=n-pn(r);if(l<1)return r;var c=s?wi(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),os(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Ee(o.source,bs(me.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var f=u.index;c=c.slice(0,f===i?l:f)}}else if(e.indexOf(ci(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},Un.unescape=function(e){return(e=bs(e))&&X.test(e)?e.replace(K,yn):e},Un.uniqueId=function(e){var t=++Be;return bs(e)+t},Un.upperCase=Zs,Un.upperFirst=Xs,Un.each=ba,Un.eachRight=va,Un.first=Vo,sl(Un,function(){var e={};return _r(Un,(function(t,n){Re.call(Un.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Un.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Ot(["drop","take"],(function(e,t){qn.prototype[e]=function(n){n=n===i?1:Kt(ps(n),0);var r=this.__filtered__&&!t?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ot(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(rl)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Mr(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Ra(lo(e)))},qn.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new qn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(g)},_r(qn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof qn,c=s[0],u=l||qa(t),d=function(e){var t=o.apply(Un,Bt([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,m=l&&!h;if(!a&&u){t=m?t:new qn(this);var g=e.apply(t,s);return g.__actions__.push({func:ha,args:[d],thisArg:i}),new Hn(g,f)}return p&&m?e.apply(this,s):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(qa(i)?i:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),_r(qn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Re.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}})),Pn[Ui(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oi(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=Lo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ea],thisArg:i}),new Hn(t,this.__chain__)}return this.thru(ea)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Je&&(Un.prototype[Je]=function(){return this}),Un}();mt._=bn,(r=function(){return bn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},81035:(e,t,n)=>{var r=n(47480),i=n(73271),o=n(89103),a=parseFloat,s=Math.min,l=Math.random;e.exports=function(e,t,n){if(n&&"boolean"!=typeof n&&i(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=o(e),void 0===t?(t=e,e=0):t=o(t)),e>t){var c=e;e=t,t=c}if(n||e%1||t%1){var u=l();return s(e+u*(t-e+a("1e-"+((u+"").length-1))),t)}return r(e,t)}},89103:(e,t,n)=>{var r=n(57923),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},57923:(e,t,n)=>{var r=n(2306),i=n(91845),o=n(72060),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},70154:(e,t)=>{"use strict";function n(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}var d=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(l(Error)),f=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return i(t,e),t}(d),h=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return i(t,e),t}(d),p=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return i(t,e),t}(d),m=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(d),g=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return i(t,e),t}(d),y=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(d),b=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return i(t,e),t}(d),v="numeric",_="short",w="long",x={year:v,month:v,day:v},k={year:v,month:_,day:v},T={year:v,month:_,day:v,weekday:_},S={year:v,month:w,day:v},A={year:v,month:w,day:v,weekday:w},E={hour:v,minute:v},C={hour:v,minute:v,second:v},O={hour:v,minute:v,second:v,timeZoneName:_},M={hour:v,minute:v,second:v,timeZoneName:w},P={hour:v,minute:v,hour12:!1},I={hour:v,minute:v,second:v,hour12:!1},N={hour:v,minute:v,second:v,hour12:!1,timeZoneName:_},j={hour:v,minute:v,second:v,hour12:!1,timeZoneName:w},R={year:v,month:v,day:v,hour:v,minute:v},B={year:v,month:v,day:v,hour:v,minute:v,second:v},F={year:v,month:_,day:v,hour:v,minute:v},D={year:v,month:_,day:v,hour:v,minute:v,second:v},L={year:v,month:_,day:v,weekday:_,hour:v,minute:v},U={year:v,month:w,day:v,hour:v,minute:v,timeZoneName:_},z={year:v,month:w,day:v,hour:v,minute:v,second:v,timeZoneName:_},W={year:v,month:w,day:v,weekday:w,hour:v,minute:v,timeZoneName:w},H={year:v,month:w,day:v,weekday:w,hour:v,minute:v,second:v,timeZoneName:w};function q(e){return"undefined"===typeof e}function G(e){return"number"===typeof e}function V(e){return"number"===typeof e&&e%1===0}function Y(){try{return"undefined"!==typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function K(){return!q(Intl.DateTimeFormat.prototype.formatToParts)}function Z(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function X(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function J(e,t){return t.reduce((function(t,n){return t[n]=e[n],t}),{})}function Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $(e,t,n){return V(e)&&e>=t&&e<=n}function ee(e,t){void 0===t&&(t=2);var n=e<0?"-":"",r=n?-1*e:e;return""+n+(r.toString().length=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function le(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function ce(e){return e>99?e:e>60?1900+e:2e3+e}function ue(e,t,n,r){void 0===r&&(r=null);var i=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);var a=Object.assign({timeZoneName:t},o),s=Y();if(s&&K()){var l=new Intl.DateTimeFormat(n,a).formatToParts(i).find((function(e){return"timezonename"===e.type.toLowerCase()}));return l?l.value:null}if(s){var c=new Intl.DateTimeFormat(n,o).format(i);return new Intl.DateTimeFormat(n,a).format(i).substring(c.length).replace(/^[, \u200e]+/,"")}return null}function de(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function fe(e){var t=Number(e);if("boolean"===typeof e||""===e||Number.isNaN(t))throw new y("Invalid unit value "+e);return t}function he(e,t,n){var r={};for(var i in e)if(Q(e,i)){if(n.indexOf(i)>=0)continue;var o=e[i];if(void 0===o||null===o)continue;r[t(i)]=fe(o)}return r}function pe(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return""+i+ee(n,2)+":"+ee(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+ee(n,2)+ee(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function me(e){return J(e,["hour","minute","second","millisecond"])}var ge=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function ye(e){return JSON.stringify(e,Object.keys(e).sort())}var be=["January","February","March","April","May","June","July","August","September","October","November","December"],ve=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],_e=["J","F","M","A","M","J","J","A","S","O","N","D"];function we(e){switch(e){case"narrow":return[].concat(_e);case"short":return[].concat(ve);case"long":return[].concat(be);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var xe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ke=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Te=["M","T","W","T","F","S","S"];function Se(e){switch(e){case"narrow":return[].concat(Te);case"short":return[].concat(ke);case"long":return[].concat(xe);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Ae=["AM","PM"],Ee=["Before Christ","Anno Domini"],Ce=["BC","AD"],Oe=["B","A"];function Me(e){switch(e){case"narrow":return[].concat(Oe);case"short":return[].concat(Ce);case"long":return[].concat(Ee);default:return null}}function Pe(e,t){for(var n,r="",i=u(e);!(n=i()).done;){var o=n.value;o.literal?r+=o.val:r+=t(o.val)}return r}var Ie={D:x,DD:k,DDD:S,DDDD:A,t:E,tt:C,ttt:O,tttt:M,T:P,TT:I,TTT:N,TTTT:j,f:R,ff:F,fff:U,ffff:W,F:B,FF:D,FFF:z,FFFF:H},Ne=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;o0&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&i.push({literal:!1,val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r,val:n}),i},e.macroTokenToFormatOpts=function(e){return Ie[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return ee(e,t);var n=Object.assign({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,i="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&K(),a=function(e,n){return r.loc.extract(t,e,n)},s=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},l=function(){return i?function(e){return Ae[e.hour<12?0:1]}(t):a({hour:"numeric",hour12:!0},"dayperiod")},c=function(e,n){return i?function(e,t){return we(t)[e.month-1]}(t,e):a(n?{month:e}:{month:e,day:"numeric"},"month")},u=function(e,n){return i?function(e,t){return Se(t)[e.weekday-1]}(t,e):a(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},d=function(e){return i?function(e,t){return Me(t)[e.year<0?0:1]}(t,e):a({era:e},"era")};return Pe(e.parseFormat(n),(function(n){switch(n){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12===0?12:t.hour%12);case"hh":return r.num(t.hour%12===0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return s({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return l();case"d":return o?a({day:"numeric"},"day"):r.num(t.day);case"dd":return o?a({day:"2-digit"},"day"):r.num(t.day,2);case"c":case"E":return r.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return o?a({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return o?a({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return o?a({month:"numeric"},"month"):r.num(t.month);case"MM":return o?a({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return o?a({year:"numeric"},"year"):r.num(t.year);case"yy":return o?a({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return o?a({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return o?a({year:"numeric"},"year"):r.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n}(n)}}))},t.formatDurationFromString=function(t,n){var r,i=this,o=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},a=e.parseFormat(n),s=a.reduce((function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)}),[]),l=t.shiftTo.apply(t,s.map(o).filter((function(e){return e})));return Pe(a,(r=l,function(e){var t=o(e);return t?i.num(r.get(t),e.length):e}))},e}(),je=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Re=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new b},t.formatOffset=function(e,t){throw new b},t.offset=function(e){throw new b},t.equals=function(e){throw new b},r(e,[{key:"type",get:function(){throw new b}},{key:"name",get:function(){throw new b}},{key:"universal",get:function(){throw new b}},{key:"isValid",get:function(){throw new b}}]),e}(),Be=null,Fe=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.offsetName=function(e,t){return ue(e,t.format,t.locale)},n.formatOffset=function(e,t){return pe(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},r(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return Y()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Be&&(Be=new t),Be}}]),t}(Re),De=RegExp("^"+ge.source+"$"),Le={};var Ue={year:0,month:1,day:2,hour:3,minute:4,second:5};var ze={},We=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}i(t,e),t.create=function(e){return ze[e]||(ze[e]=new t(e)),ze[e]},t.resetCache=function(){ze={},Le={}},t.isValidSpecifier=function(e){return!(!e||!e.match(De))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(t){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var n=t.prototype;return n.offsetName=function(e,t){return ue(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return pe(this.offset(e),t)},n.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var n,r=(n=this.name,Le[n]||(Le[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Le[n]),i=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i=0?u:1e3+u))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},r(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Re),He=null,qe=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}i(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(de(n[1],n[2]))}return null},r(t,null,[{key:"utcInstance",get:function(){return null===He&&(He=new t(0)),He}}]);var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return pe(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},r(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+pe(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(Re),Ge=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}i(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},r(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Re);function Ve(e,t){var n;if(q(e)||null===e)return t;if(e instanceof Re)return e;if("string"===typeof e){var r=e.toLowerCase();return"local"===r?t:"utc"===r||"gmt"===r?qe.utcInstance:null!=(n=We.parseGMTOffset(e))?qe.instance(n):We.isValidSpecifier(r)?We.create(e):qe.parseSpecifier(r)||new Ge(e)}return G(e)?qe.instance(e):"object"===typeof e&&e.offset&&"number"===typeof e.offset?e:new Ge(e)}var Ye=function(){return Date.now()},Ke=null,Ze=null,Xe=null,Je=null,Qe=!1,$e=function(){function e(){}return e.resetCaches=function(){ut.resetCache(),We.resetCache()},r(e,null,[{key:"now",get:function(){return Ye},set:function(e){Ye=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){Ke=e?Ve(e):null}},{key:"defaultZone",get:function(){return Ke||Fe.instance}},{key:"defaultLocale",get:function(){return Ze},set:function(e){Ze=e}},{key:"defaultNumberingSystem",get:function(){return Xe},set:function(e){Xe=e}},{key:"defaultOutputCalendar",get:function(){return Je},set:function(e){Je=e}},{key:"throwOnInvalid",get:function(){return Qe},set:function(e){Qe=e}}]),e}(),et={};function tt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=et[n];return r||(r=new Intl.DateTimeFormat(e,t),et[n]=r),r}var nt={};var rt={};function it(e,t){void 0===t&&(t={});var n=t,r=(n.base,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(n,["base"])),i=JSON.stringify([e,r]),o=rt[i];return o||(o=new Intl.RelativeTimeFormat(e,t),rt[i]=o),o}var ot=null;function at(e,t,n,r,i){var o=e.listingMode(n);return"error"===o?null:"en"===o?r(t):i(t)}var st=function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&Y()){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=nt[n];return r||(r=new Intl.NumberFormat(e,t),nt[n]=r),r}(e,r)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ee(this.floor?Math.floor(e):re(e,3),this.padTo)},e}(),lt=function(){function e(e,t,n){var r;if(this.opts=n,this.hasIntl=Y(),e.zone.universal&&this.hasIntl){var i=e.offset/60*-1,o=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i,a=We.isValidZone(o);0!==e.offset&&a?(r=o,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:hr.fromMillis(e.ts+60*e.offset*1e3))}else"local"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name);if(this.hasIntl){var s=Object.assign({},this.opts);r&&(s.timeZone=r),this.dtf=tt(t,s)}}var t=e.prototype;return t.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=function(e){var t="EEEE, LLLL d, yyyy, h:mm a";switch(ye(J(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case ye(x):return"M/d/yyyy";case ye(k):return"LLL d, yyyy";case ye(T):return"EEE, LLL d, yyyy";case ye(S):return"LLLL d, yyyy";case ye(A):return"EEEE, LLLL d, yyyy";case ye(E):return"h:mm a";case ye(C):return"h:mm:ss a";case ye(O):case ye(M):return"h:mm a";case ye(P):return"HH:mm";case ye(I):return"HH:mm:ss";case ye(N):case ye(j):return"HH:mm";case ye(R):return"M/d/yyyy, h:mm a";case ye(F):return"LLL d, yyyy, h:mm a";case ye(U):return"LLLL d, yyyy, h:mm a";case ye(W):return t;case ye(B):return"M/d/yyyy, h:mm:ss a";case ye(D):return"LLL d, yyyy, h:mm:ss a";case ye(L):return"EEE, d LLL yyyy, h:mm a";case ye(z):return"LLLL d, yyyy, h:mm:ss a";case ye(H):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}}(this.opts),t=ut.create("en-US");return Ne.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&K()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),ct=function(){function e(e,t,n){this.opts=Object.assign({style:"long"},n),!t&&Z()&&(this.rtf=it(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+i[e][0];case-1:return a?"yesterday":"last "+i[e][0];case 0:return a?"today":"this "+i[e][0]}}var s=Object.is(t,-0)||t<0,l=Math.abs(t),c=1===l,u=i[e],d=r?c?u[1]:u[2]||u[1]:c?i[e][0]:e;return s?l+" "+d+" ago":"in "+l+" "+d}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),ut=function(){function e(e,t,n,r){var i=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=tt(e).resolvedOptions()}catch(o){n=tt(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}(e),o=i[0],a=i[1],s=i[2];this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||s||null,this.intl=function(e,t,n){return Y()?n||t?(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,i){void 0===i&&(i=!1);var o=t||$e.defaultLocale;return new e(o||(i?"en-US":function(){if(ot)return ot;if(Y()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return ot=e&&"und"!==e?e:"en-US"}return ot="en-US"}()),n||$e.defaultNumberingSystem,r||$e.defaultOutputCalendar,o)},e.resetCache=function(){ot=null,et={},nt={},rt={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,o=n.outputCalendar;return e.create(r,i,o)};var t=e.prototype;return t.listingMode=function(e){void 0===e&&(e=!0);var t=Y()&&K(),n=this.isEnglish(),r=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),at(this,e,n,we,(function(){var n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return r.monthsCache[i][e]||(r.monthsCache[i][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=hr.utc(2016,n,1);t.push(e(r))}return t}((function(e){return r.extract(e,n,"month")}))),r.monthsCache[i][e]}))},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),at(this,e,n,Se,(function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=hr.utc(2016,11,13+n);t.push(e(r))}return t}((function(e){return r.extract(e,n,"weekday")}))),r.weekdaysCache[i][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),at(this,void 0,e,(function(){return Ae}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hour12:!0};t.meridiemCache=[hr.utc(2016,11,13,9),hr.utc(2016,11,13,19)].map((function(n){return t.extract(n,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),at(this,e,t,Me,(function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[hr.utc(-40,1,1),hr.utc(2017,1,1)].map((function(e){return n.extract(e,t,"era")}))),n.eraCache[e]}))},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===n}));return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new st(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new lt(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new ct(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||Y()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},r(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||Y()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function dt(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r3?xe.indexOf(e)+1:ke.indexOf(e)+1),s}var Nt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function jt(e){var t,n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],f=e[11],h=It(n,o,i,r,a,s,l);return t=c?Pt[c]:u?0:de(d,f),[h,new qe(t)]}var Rt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Bt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ft=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Dt(e){var t=e[1],n=e[2],r=e[3];return[It(t,e[4],r,n,e[5],e[6],e[7]),qe.utcInstance]}function Lt(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6];return[It(t,e[7],n,r,i,o,a),qe.utcInstance]}var Ut=dt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,bt),zt=dt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,bt),Wt=dt(/(\d{4})-?(\d{3})/,bt),Ht=dt(yt),qt=ft(Tt,St,At),Gt=ft(vt,St,At),Vt=ft(_t,St,At),Yt=ft(St,At);var Kt=ft(St);var Zt=dt(/(\d{4})-(\d\d)-(\d\d)/,xt),Xt=dt(wt),Jt=ft(Tt,St,At,Et),Qt=ft(St,At,Et);var $t={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},en=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},$t),tn=365.2425,nn=30.436875,rn=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:tn,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:nn,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},$t),on=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],an=on.slice(0).reverse();function sn(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new cn(r)}function ln(e,t,n,r,i){var o=e[i][n],a=t[n]/o,s=!(Math.sign(a)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(a)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(a):Math.trunc(a);r[i]+=s,t[n]-=s*o}var cn=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||ut.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?rn:en,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject(Object.assign({milliseconds:t},n))},e.fromObject=function(t){if(null==t||"object"!==typeof t)throw new y("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:he(t,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:ut.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(t,n){var r=function(e){return ht(e,[Ot,Mt])}(t),i=r[0];if(i){var o=Object.assign(i,n);return e.fromObject(o)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,n){var r=function(e){return ht(e,[Ct,Kt])}(t),i=r[0];if(i){var o=Object.assign(i,n);return e.fromObject(o)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new y("need to specify a reason the Duration is invalid");var r=t instanceof je?t:new je(t,n);if($e.throwOnInvalid)throw new p(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new g(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Ne.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=re(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));var i=n.toFormat(r);return e.includePrefix&&(i="T"+i),i},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,n=un(e),r={},i=u(on);!(t=i()).done;){var o=t.value;(Q(n.values,o)||Q(this.values,o))&&(r[o]=n.get(o)+this.get(o))}return sn(this,{values:r},!0)},t.minus=function(e){if(!this.isValid)return this;var t=un(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n=0){i=d;var f=0;for(var h in s)f+=this.matrix[h][d]*s[h],s[h]=0;G(l[d])&&(f+=l[d]);var p=Math.trunc(f);for(var m in a[d]=p,s[d]=f-p,l)on.indexOf(m)>on.indexOf(d)&&ln(this.matrix,l,m,a,d)}else G(l[d])&&(s[d]=l[d])}for(var g in s)0!==s[g]&&(a[i]+=g===i?s[g]:s[g]/this.matrix[i][g]);return sn(this,{values:a},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);te},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var n=void 0===t?{}:t,r=n.start,i=n.end;return this.isValid?e.fromDateTimes(r||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i+this.e?this.e:c;a.push(e.fromDateTimes(s,u)),s=u,l+=1}return a},t.splitBy=function(t){var n=un(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i=this.s,o=1,a=[];i+this.e?this.e:s,a.push(e.fromDateTimes(i,r)),i=r,o+=1}return a},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.e=r?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.st.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,o=0,a=[],s=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),l=u((n=Array.prototype).concat.apply(n,s).sort((function(e,t){return e.time-t.time})));!(r=l()).done;){var c=r.value;1===(o+="s"===c.type?1:-1)?i=c.time:(i&&+i!==+c.time&&a.push(e.fromDateTimes(i,c.time)),i=null)}return e.merge(a)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i=0){var d;r=c;var f,h=u(e,t);(i=e.plus(((d={})[c]=h,d)))>t?(e=e.plus(((f={})[c]=h-1,f)),h-=1):e=i,o[c]=h}}return[e,o,i,r]}(e,t,n),o=i[0],a=i[1],s=i[2],l=i[3],c=t-o,u=n.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));if(0===u.length){var d;if(s0?(f=cn.fromMillis(c,r)).shiftTo.apply(f,u).plus(h):h}var yn={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},bn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},vn=yn.hanidec.replace(/[\[|\]]/g,"").split("");function _n(e,t){var n=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+yn[n||"latn"]+t)}var wn="missing Intl.DateTimeFormat.formatToParts support";function xn(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var n=0;n=a&&r<=s&&(t+=r-a)}}return parseInt(t,10)}return t}(n))}}}var kn="( |"+String.fromCharCode(160)+")",Tn=new RegExp(kn,"g");function Sn(e){return e.replace(/\./g,"\\.?").replace(Tn,kn)}function An(e){return e.replace(/\./g,"").replace(Tn," ").toLowerCase()}function En(e,t){return null===e?null:{regex:RegExp(e.map(Sn).join("|")),deser:function(n){var r=n[0];return e.findIndex((function(e){return An(r)===An(e)}))+t}}}function Cn(e,t){return{regex:e,deser:function(e){return de(e[1],e[2])},groups:t}}function On(e){return{regex:e,deser:function(e){return e[0]}}}var Mn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var Pn=null;function In(e,t){if(e.literal)return e;var n=Ne.macroTokenToFormatOpts(e.val);if(!n)return e;var r=Ne.create(t,n).formatDateTimeParts((Pn||(Pn=hr.fromMillis(1555555555555)),Pn)).map((function(e){return function(e,t,n){var r=e.type,i=e.value;if("literal"===r)return{literal:!0,val:i};var o=n[r],a=Mn[r];return"object"===typeof a&&(a=a[o]),a?{literal:!1,val:a}:void 0}(e,0,n)}));return r.includes(void 0)?e:r}function Nn(e,t,n){var r=function(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return In(e,t)})))}(Ne.parseFormat(n),e),i=r.map((function(t){return function(e,t){var n=_n(t),r=_n(t,"{2}"),i=_n(t,"{3}"),o=_n(t,"{4}"),a=_n(t,"{6}"),s=_n(t,"{1,2}"),l=_n(t,"{1,3}"),c=_n(t,"{1,6}"),u=_n(t,"{1,9}"),d=_n(t,"{2,4}"),f=_n(t,"{4,6}"),h=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},p=function(p){if(e.literal)return h(p);switch(p.val){case"G":return En(t.eras("short",!1),0);case"GG":return En(t.eras("long",!1),0);case"y":return xn(c);case"yy":case"kk":return xn(d,ce);case"yyyy":case"kkkk":return xn(o);case"yyyyy":return xn(f);case"yyyyyy":return xn(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return xn(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return xn(r);case"MMM":return En(t.months("short",!0,!1),1);case"MMMM":return En(t.months("long",!0,!1),1);case"LLL":return En(t.months("short",!1,!1),1);case"LLLL":return En(t.months("long",!1,!1),1);case"o":case"S":return xn(l);case"ooo":case"SSS":return xn(i);case"u":return On(u);case"a":return En(t.meridiems(),0);case"E":case"c":return xn(n);case"EEE":return En(t.weekdays("short",!1,!1),1);case"EEEE":return En(t.weekdays("long",!1,!1),1);case"ccc":return En(t.weekdays("short",!0,!1),1);case"cccc":return En(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Cn(new RegExp("([+-]"+s.source+")(?::("+r.source+"))?"),2);case"ZZZ":return Cn(new RegExp("([+-]"+s.source+")("+r.source+")?"),2);case"z":return On(/[a-z_+-/]{1,256}?/i);default:return h(p)}}(e)||{invalidReason:wn};return p.token=e,p}(t,e)})),o=i.find((function(e){return e.invalidReason}));if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};var a=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(i),s=a[0],l=a[1],c=RegExp(s,"i"),u=function(e,t,n){var r=e.match(t);if(r){var i={},o=1;for(var a in n)if(Q(n,a)){var s=n[a],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(o,o+l))),o+=l}return[r,i]}return[r,{}]}(t,c,l),d=u[0],f=u[1],h=f?function(e){var t;return t=q(e.Z)?q(e.z)?null:We.create(e.z):new qe(e.Z),q(e.q)||(e.M=3*(e.q-1)+1),q(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),q(e.u)||(e.S=ne(e.u)),[Object.keys(e).reduce((function(t,n){var r=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(t[r]=e[n]),t}),{}),t]}(f):[null,null],p=h[0],g=h[1];if(Q(f,"a")&&Q(f,"H"))throw new m("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:c,rawMatches:d,matches:f,result:p,zone:g}}var jn=[0,31,59,90,120,151,181,212,243,273,304,334],Rn=[0,31,60,91,121,152,182,213,244,274,305,335];function Bn(e,t){return new je("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Fn(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function Dn(e,t,n){return n+(ie(e)?Rn:jn)[t-1]}function Ln(e,t){var n=ie(e)?Rn:jn,r=n.findIndex((function(e){return ele(n)?(t=n+1,s=1):t=n,Object.assign({weekYear:t,weekNumber:s,weekday:a},me(e))}function zn(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=Fn(n,1,4),a=oe(n),s=7*r+i-o-3;s<1?s+=oe(t=n-1):s>a?(t=n+1,s-=oe(n)):t=n;var l=Ln(t,s),c=l.month,u=l.day;return Object.assign({year:t,month:c,day:u},me(e))}function Wn(e){var t=e.year,n=Dn(t,e.month,e.day);return Object.assign({year:t,ordinal:n},me(e))}function Hn(e){var t=e.year,n=Ln(t,e.ordinal),r=n.month,i=n.day;return Object.assign({year:t,month:r,day:i},me(e))}function qn(e){var t=V(e.year),n=$(e.month,1,12),r=$(e.day,1,ae(e.year,e.month));return t?n?!r&&Bn("day",e.day):Bn("month",e.month):Bn("year",e.year)}function Gn(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,o=$(t,0,23)||24===t&&0===n&&0===r&&0===i,a=$(n,0,59),s=$(r,0,59),l=$(i,0,999);return o?a?s?!l&&Bn("millisecond",i):Bn("second",r):Bn("minute",n):Bn("hour",t)}var Vn="Invalid DateTime",Yn=864e13;function Kn(e){return new je("unsupported zone",'the zone "'+e.name+'" is not supported')}function Zn(e){return null===e.weekData&&(e.weekData=Un(e.c)),e.weekData}function Xn(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new hr(Object.assign({},n,t,{old:n}))}function Jn(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var o=n.offset(r);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Qn(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function $n(e,t,n){return Jn(se(e),t,n)}function er(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,ae(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),a=cn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Jn(se(o),n,e.zone),l=s[0],c=s[1];return 0!==a&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function tr(e,t,n,r,i){var o=n.setZone,a=n.zone;if(e&&0!==Object.keys(e).length){var s=t||a,l=hr.fromObject(Object.assign(e,n,{zone:s,setZone:void 0}));return o?l:l.setZone(a)}return hr.invalid(new je("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function nr(e,t,n){return void 0===n&&(n=!0),e.isValid?Ne.create(ut.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function rr(e,t){var n=t.suppressSeconds,r=void 0!==n&&n,i=t.suppressMilliseconds,o=void 0!==i&&i,a=t.includeOffset,s=t.includePrefix,l=void 0!==s&&s,c=t.includeZone,u=void 0!==c&&c,d=t.spaceZone,f=void 0!==d&&d,h=t.format,p=void 0===h?"extended":h,m="basic"===p?"HHmm":"HH:mm";r&&0===e.second&&0===e.millisecond||(m+="basic"===p?"ss":":ss",o&&0===e.millisecond||(m+=".SSS")),(u||a)&&f&&(m+=" "),u?m+="z":a&&(m+="basic"===p?"ZZZ":"ZZ");var g=nr(e,m);return l&&(g="T"+g),g}var ir={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},or={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ar={ordinal:1,hour:0,minute:0,second:0,millisecond:0},sr=["year","month","day","hour","minute","second","millisecond"],lr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],cr=["year","ordinal","hour","minute","second","millisecond"];function ur(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new g(e);return t}function dr(e,t){for(var n,r=u(sr);!(n=r()).done;){var i=n.value;q(e[i])&&(e[i]=ir[i])}var o=qn(e)||Gn(e);if(o)return hr.invalid(o);var a=$e.now(),s=$n(e,t.offset(a),t),l=s[0],c=s[1];return new hr({ts:l,zone:t,o:c})}function fr(e,t,n){var r=!!q(n.round)||n.round,i=function(e,i){return e=re(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},o=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(o(n.unit),n.unit);for(var a,s=u(n.units);!(a=s()).done;){var l=a.value,c=o(l);if(Math.abs(c)>=1)return i(c,l)}return i(e>t?-0:0,n.units[n.units.length-1])}var hr=function(){function e(e){var t=e.zone||$e.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new je("invalid input"):null)||(t.isValid?null:Kn(t));this.ts=q(e.ts)?$e.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var o=[e.old.c,e.old.o];r=o[0],i=o[1]}else{var a=t.offset(this.ts);r=Qn(this.ts,a),r=(n=Number.isNaN(r.year)?new je("invalid input"):null)?null:r,i=n?null:a}this._zone=t,this.loc=e.loc||ut.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(t,n,r,i,o,a,s){return q(t)?e.now():dr({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:s},$e.defaultZone)},e.utc=function(t,n,r,i,o,a,s){return q(t)?new e({ts:$e.now(),zone:qe.utcInstance}):dr({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:s},qe.utcInstance)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,i=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(i))return e.invalid("invalid input");var o=Ve(n.zone,$e.defaultZone);return o.isValid?new e({ts:i,zone:o,loc:ut.fromObject(n)}):e.invalid(Kn(o))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),G(t))return t<-Yn||t>Yn?e.invalid("Timestamp out of range"):new e({ts:t,zone:Ve(n.zone,$e.defaultZone),loc:ut.fromObject(n)});throw new y("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),G(t))return new e({ts:1e3*t,zone:Ve(n.zone,$e.defaultZone),loc:ut.fromObject(n)});throw new y("fromSeconds requires a numerical input")},e.fromObject=function(t){var n=Ve(t.zone,$e.defaultZone);if(!n.isValid)return e.invalid(Kn(n));var r=$e.now(),i=n.offset(r),o=he(t,ur,["zone","locale","outputCalendar","numberingSystem"]),a=!q(o.ordinal),s=!q(o.year),l=!q(o.month)||!q(o.day),c=s||l,d=o.weekYear||o.weekNumber,f=ut.fromObject(t);if((c||a)&&d)throw new m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new m("Can't mix ordinal dates with month/day");var h,p,g=d||o.weekday&&!c,y=Qn(r,i);g?(h=lr,p=or,y=Un(y)):a?(h=cr,p=ar,y=Wn(y)):(h=sr,p=ir);for(var b,v=!1,_=u(h);!(b=_()).done;){var w=b.value;q(o[w])?o[w]=v?p[w]:y[w]:v=!0}var x=g?function(e){var t=V(e.weekYear),n=$(e.weekNumber,1,le(e.weekYear)),r=$(e.weekday,1,7);return t?n?!r&&Bn("weekday",e.weekday):Bn("week",e.week):Bn("weekYear",e.weekYear)}(o):a?function(e){var t=V(e.year),n=$(e.ordinal,1,oe(e.year));return t?!n&&Bn("ordinal",e.ordinal):Bn("year",e.year)}(o):qn(o),k=x||Gn(o);if(k)return e.invalid(k);var T=$n(g?zn(o):a?Hn(o):o,i,n),S=new e({ts:T[0],zone:n,o:T[1],loc:f});return o.weekday&&c&&t.weekday!==S.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+S.toISO()):S},e.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return ht(e,[Ut,qt],[zt,Gt],[Wt,Vt],[Ht,Yt])}(e);return tr(n[0],n[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return ht(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Nt,jt])}(e);return tr(n[0],n[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return ht(e,[Rt,Dt],[Bt,Dt],[Ft,Lt])}(e);return tr(n[0],n[1],t,"HTTP",t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),q(t)||q(n))throw new y("fromFormat requires an input string and a format");var i=r,o=i.locale,a=void 0===o?null:o,s=i.numberingSystem,l=void 0===s?null:s,c=function(e,t,n){var r=Nn(e,t,n);return[r.result,r.zone,r.invalidReason]}(ut.fromOpts({locale:a,numberingSystem:l,defaultToEN:!0}),t,n),u=c[0],d=c[1],f=c[2];return f?e.invalid(f):tr(u,d,r,"format "+n,t)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return ht(e,[Zt,Jt],[Xt,Qt])}(e);return tr(n[0],n[1],t,"SQL",e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new y("need to specify a reason the DateTime is invalid");var r=t instanceof je?t:new je(t,n);if($e.throwOnInvalid)throw new f(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=Ne.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(qe.instance(e),t)},t.toLocal=function(){return this.setZone($e.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,i=r.keepLocalTime,o=void 0!==i&&i,a=r.keepCalendarTime,s=void 0!==a&&a;if((t=Ve(t,$e.defaultZone)).equals(this.zone))return this;if(t.isValid){var l=this.ts;if(o||s){var c=t.offset(this.ts);l=$n(this.toObject(),c,t)[0]}return Xn(this,{ts:l,zone:t})}return e.invalid(Kn(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return Xn(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=he(e,ur,[]),r=!q(n.weekYear)||!q(n.weekNumber)||!q(n.weekday),i=!q(n.ordinal),o=!q(n.year),a=!q(n.month)||!q(n.day),s=o||a,l=n.weekYear||n.weekNumber;if((s||i)&&l)throw new m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&i)throw new m("Can't mix ordinal dates with month/day");r?t=zn(Object.assign(Un(this.c),n)):q(n.ordinal)?(t=Object.assign(this.toObject(),n),q(n.day)&&(t.day=Math.min(ae(t.year,t.month),t.day))):t=Hn(Object.assign(Wn(this.c),n));var c=$n(t,this.o,this.zone);return Xn(this,{ts:c[0],o:c[1]})},t.plus=function(e){return this.isValid?Xn(this,er(this,un(e))):this},t.minus=function(e){return this.isValid?Xn(this,er(this,un(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},n=cn.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ne.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Vn},t.toLocaleString=function(e){return void 0===e&&(e=x),this.isValid?Ne.create(this.loc.clone(e),e).formatDateTime(this):Vn},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ne.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,n="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),nr(this,n)},t.toISOWeekDate=function(){return nr(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,o=void 0!==i&&i,a=t.includeOffset,s=void 0===a||a,l=t.includePrefix,c=void 0!==l&&l,u=t.format;return rr(this,{suppressSeconds:o,suppressMilliseconds:r,includeOffset:s,includePrefix:c,format:void 0===u?"extended":u})},t.toRFC2822=function(){return nr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return nr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return nr(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone;return rr(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Vn},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return cn.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var r,i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),o=(r=t,Array.isArray(r)?r:[r]).map(cn.normalizeUnit),a=e.valueOf()>this.valueOf(),s=gn(a?this:e,a?e:this,o,i);return a?s.negate():s},t.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.now(),t,n)},t.until=function(e){return this.isValid?hn.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var n=t.base||e.fromObject({zone:this.zone}),r=t.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ie(this.year)}},{key:"daysInMonth",get:function(){return ae(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?oe(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?le(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return x}},{key:"DATE_MED",get:function(){return k}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return T}},{key:"DATE_FULL",get:function(){return S}},{key:"DATE_HUGE",get:function(){return A}},{key:"TIME_SIMPLE",get:function(){return E}},{key:"TIME_WITH_SECONDS",get:function(){return C}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return O}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return M}},{key:"TIME_24_SIMPLE",get:function(){return P}},{key:"TIME_24_WITH_SECONDS",get:function(){return I}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return N}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return j}},{key:"DATETIME_SHORT",get:function(){return R}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return B}},{key:"DATETIME_MED",get:function(){return F}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return D}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return L}},{key:"DATETIME_FULL",get:function(){return U}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return z}},{key:"DATETIME_HUGE",get:function(){return W}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return H}}]),e}();function pr(e){if(hr.isDateTime(e))return e;if(e&&e.valueOf&&G(e.valueOf()))return hr.fromJSDate(e);if(e&&"object"===typeof e)return hr.fromObject(e);throw new y("Unknown datetime argument: "+e+", of type "+typeof e)}t.ou=hr},91075:(e,t,n)=>{"use strict";var r=n(80273),i=n(99834),o=n(65734).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(e,t){return e<>>32-t}function c(e,t,n,r,i,o,a){return l(e+(t&n|~t&r)+i+o|0,a)+t|0}function u(e,t,n,r,i,o,a){return l(e+(t&r|n&~r)+i+o|0,a)+t|0}function d(e,t,n,r,i,o,a){return l(e+(t^n^r)+i+o|0,a)+t|0}function f(e,t,n,r,i,o,a){return l(e+(n^(t|~r))+i+o|0,a)+t|0}r(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=c(n,r,i,o,e[0],3614090360,7),o=c(o,n,r,i,e[1],3905402710,12),i=c(i,o,n,r,e[2],606105819,17),r=c(r,i,o,n,e[3],3250441966,22),n=c(n,r,i,o,e[4],4118548399,7),o=c(o,n,r,i,e[5],1200080426,12),i=c(i,o,n,r,e[6],2821735955,17),r=c(r,i,o,n,e[7],4249261313,22),n=c(n,r,i,o,e[8],1770035416,7),o=c(o,n,r,i,e[9],2336552879,12),i=c(i,o,n,r,e[10],4294925233,17),r=c(r,i,o,n,e[11],2304563134,22),n=c(n,r,i,o,e[12],1804603682,7),o=c(o,n,r,i,e[13],4254626195,12),i=c(i,o,n,r,e[14],2792965006,17),n=u(n,r=c(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=u(o,n,r,i,e[6],3225465664,9),i=u(i,o,n,r,e[11],643717713,14),r=u(r,i,o,n,e[0],3921069994,20),n=u(n,r,i,o,e[5],3593408605,5),o=u(o,n,r,i,e[10],38016083,9),i=u(i,o,n,r,e[15],3634488961,14),r=u(r,i,o,n,e[4],3889429448,20),n=u(n,r,i,o,e[9],568446438,5),o=u(o,n,r,i,e[14],3275163606,9),i=u(i,o,n,r,e[3],4107603335,14),r=u(r,i,o,n,e[8],1163531501,20),n=u(n,r,i,o,e[13],2850285829,5),o=u(o,n,r,i,e[2],4243563512,9),i=u(i,o,n,r,e[7],1735328473,14),n=d(n,r=u(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=d(o,n,r,i,e[8],2272392833,11),i=d(i,o,n,r,e[11],1839030562,16),r=d(r,i,o,n,e[14],4259657740,23),n=d(n,r,i,o,e[1],2763975236,4),o=d(o,n,r,i,e[4],1272893353,11),i=d(i,o,n,r,e[7],4139469664,16),r=d(r,i,o,n,e[10],3200236656,23),n=d(n,r,i,o,e[13],681279174,4),o=d(o,n,r,i,e[0],3936430074,11),i=d(i,o,n,r,e[3],3572445317,16),r=d(r,i,o,n,e[6],76029189,23),n=d(n,r,i,o,e[9],3654602809,4),o=d(o,n,r,i,e[12],3873151461,11),i=d(i,o,n,r,e[15],530742520,16),n=f(n,r=d(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=f(o,n,r,i,e[7],1126891415,10),i=f(i,o,n,r,e[14],2878612391,15),r=f(r,i,o,n,e[5],4237533241,21),n=f(n,r,i,o,e[12],1700485571,6),o=f(o,n,r,i,e[3],2399980690,10),i=f(i,o,n,r,e[10],4293915773,15),r=f(r,i,o,n,e[1],2240044497,21),n=f(n,r,i,o,e[8],1873313359,6),o=f(o,n,r,i,e[15],4264355552,10),i=f(i,o,n,r,e[6],2734768916,15),r=f(r,i,o,n,e[13],1309151649,21),n=f(n,r,i,o,e[4],4149444226,6),o=f(o,n,r,i,e[11],3174756917,10),i=f(i,o,n,r,e[2],718787259,15),r=f(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(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=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},65701:e=>{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},42679:(e,t)=>{"use strict";var n=t;function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}},49161:function(e,t,n){var r,i,o,a,s;a=this,s=function(e){var t=!1,n=!1,r=!1,i=!1,o="escape years months weeks days hours minutes seconds milliseconds general".split(" "),a=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function s(e,t){return!(t.length>e.length)&&-1!==e.indexOf(t)}function l(e){for(var t="";e;)t+="0",e-=1;return t}function c(e,t){var n=e+"+"+y(T(t).sort(),(function(e){return e+":"+t[e]})).join(",");return c.cache[n]||(c.cache[n]=Intl.NumberFormat(e,t)),c.cache[n]}function u(e,t,o){var a,s,d,f=t.useToLocaleString,h=t.useGrouping,p=h&&t.grouping.slice(),m=t.maximumSignificantDigits,g=t.minimumIntegerDigits||1,y=t.fractionDigits||0,b=t.groupingSeparator,v=t.decimalSeparator;if(f&&o){var _,w={minimumIntegerDigits:g,useGrouping:h};return y&&(w.maximumFractionDigits=y,w.minimumFractionDigits=y),m&&e>0&&(w.maximumSignificantDigits=m),r?(i||((_=k({},t)).useGrouping=!1,_.decimalSeparator=".",e=parseFloat(u(e,_),10)),c(o,w).format(e)):(n||((_=k({},t)).useGrouping=!1,_.decimalSeparator=".",e=parseFloat(u(e,_),10)),e.toLocaleString(o,w))}var x=(m?e.toPrecision(m+1):e.toFixed(y+1)).split("e");d=x[1]||"",s=(x=x[0].split("."))[1]||"";var T=(a=x[0]||"").length,S=s.length,A=T+S,E=a+s;(m&&A===m+1||!m&&S===y+1)&&((E=function(e){for(var t=e.split("").reverse(),n=0,r=!0;r&&n0?s.length<=C?(a+=s+=l(C-s.length),s=""):(a+=s.slice(0,C),s=s.slice(C)):C<0&&(s=l(Math.abs(C)-a.length)+a+s,a="0"),m||((s=s.slice(0,y)).lengtht.label.length?-1:e.label.length0,Y=V?i.precision:0,K=Y,Z=i.minValue,X=!1,J=i.maxValue,Q=!1,$=i.useToLocaleString,ee=i.groupingSeparator,te=i.decimalSeparator,ne=i.grouping;$=$&&(t||r);var re=i.trim;h(re)&&(re=re.join(" ")),null===re&&(B||J||V)&&(re="all"),null!==re&&!0!==re&&"left"!==re&&"right"!==re||(re="large"),!1===re&&(re="");var ie=function(e){return e.test(re)},oe=/both/,ae=/^all|[^sm]all/,se=B>0||S([/large/,oe,ae],ie),le=S([/small/,oe,ae],ie),ce=S([/mid/,ae],ie),ue=S([/final/,ae],ie),de=y(N.match(I),(function(e,t){var n=P(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==n&&"general"!==n&&F.push(n)),{index:t,length:e.length,text:"",token:"escape"===n?e.replace(M.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}})),fe={index:0,length:0,token:"",text:"",type:null},he=[];U&&de.reverse(),g(de,(function(e){if(e.type)return(fe.type||fe.text)&&he.push(fe),void(fe=e);U?fe.text=e.token+fe.text:fe.text+=e.token})),(fe.type||fe.text)&&he.push(fe),U&&he.reverse();var pe=w(o,_(v(b(he,"type"))));if(!pe.length)return b(he,"text").join("");pe=y(pe,(function(e,t){var n,r=t+1===pe.length,o=!t;n="years"===e||"months"===e?C.as(e):E.as(e);var a=Math.floor(n),s=n-a,l=m(he,(function(t){return e===t.type}));return o&&J&&n>J&&(Q=!0),r&&Z&&Math.abs(i.duration.as(e))1&&(H=!0),E.subtract(a,e),C.subtract(a,e),{rawValue:n,wholeValue:a,decimalValue:r?s:0,isSmallest:r,isLargest:o,type:e,tokenLength:l.length}}));var me,ge=G?Math.floor:Math.round,ye=function(e,t){var n=Math.pow(10,t);return ge(e*n)/n},be=!1,ve=!1,_e=function(e,t){var n={useGrouping:q,groupingSeparator:ee,decimalSeparator:te,grouping:ne,useToLocaleString:$};return V&&(Y<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(n.maximumSignificantDigits=Y,e.significantDigits=Y)),Q&&!ve&&(e.isLargest?(e.wholeValue=J,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),X&&!ve&&(e.isSmallest?(e.wholeValue=Z,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?W<0?e.value=ye(e.wholeValue,W):0===W?e.value=ge(e.wholeValue+e.decimalValue):V?(e.value=G?ye(e.rawValue,Y-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(Y-=e.wholeValue.toString().length)):(n.fractionDigits=W,e.value=G?e.wholeValue+ye(e.decimalValue,W):e.wholeValue+e.decimalValue):V&&e.wholeValue?(e.value=Math.round(ye(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),Y-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(H||be)&&(n.minimumIntegerDigits=e.tokenLength,ve&&n.maximumSignificantDigits0||""===re||m(F,e.type)||m(j,e.type))&&(be=!0),e.formattedValue=u(e.value,n,L),n.useGrouping=!1,n.decimalSeparator=".",e.formattedValueEn=u(e.value,n,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=u(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((pe=v(pe=y(pe,_e))).length>1){var we=function(e){return m(pe,(function(t){return t.type===e}))};g(a,(function(e){var t=we(e.type);t&&g(e.targets,(function(e){var n=we(e.type);n&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),ve=!0)}))}))}return ve&&(be=!1,Y=K,pe=v(pe=y(pe,_e))),!j||Q&&!i.trim?(se&&(pe=x(pe,(function(e){return!e.isSmallest&&!e.wholeValue&&!m(F,e.type)}))),B&&pe.length&&(pe=pe.slice(0,B)),le&&pe.length>1&&(me=function(e){return!e.wholeValue&&!m(F,e.type)&&!e.isLargest},pe=x(pe.slice().reverse(),me).reverse()),ce&&(pe=v(pe=y(pe,(function(e,t){return t>0&&t ",Q=!1,X=!1),A&&(t.value>0||""===re||m(F,t.type)||m(j,t.type))&&(n+="-",A=!1),"milliseconds"===e.type&&t.formattedValueMS?n+=t.formattedValueMS:n+=t.formattedValue,U||(n+=e.text),n}))).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function M(){var e=this.duration,t=function(t){return e._data[t]},n=m(this.types,t),r=function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(this.types,t);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===r)return"d __";case"weeks":return n===r?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===r)return"M __";case"years":return n===r?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function P(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=C,e.duration.fn.format=O,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:M,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",f)}var I=function(e,t,n){return e.toLocaleString(t,n)};t=function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()&&E(I),n=t&&A(I);var N=function(e,t,n){if("undefined"!==typeof window&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(t,n).format(e)};return r=E(N),i=r&&A(N),P(e),P},i=[n(70816)],void 0===(o="function"===typeof(r=s)?r.apply(t,i):r)||(e.exports=o),a&&(a.momentDurationFormatSetup=a.moment?s(a.moment):s)},70816:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],i=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},L={};function U(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(L[e]=i),t&&(L[t[0]]=function(){return R(i.apply(this,arguments),t[1],t[2])}),n&&(L[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function W(e){var t,n,r=e.match(B);for(t=0,n=r.length;t=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var G={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"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(B).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var Y="Invalid date";function K(){return this._invalidDate}var Z="%d",X=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function $(e,t,n,r){var i=this._relativeTime[n];return O(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)s(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function ae(e,t){oe[e]=t}function se(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4===0&&e%100!==0||e%400===0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function de(e,t){return function(n){return null!=n?(he(this,e,n),r.updateOffset(this,t),this):fe(this,e)}}function fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function he(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ue(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),$e(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function pe(e){return O(this[e=re(e)])?this[e]():this}function me(e,t){if("object"===typeof e){var n,r=se(e=ie(e)),i=r.length;for(n=0;n68?1900:2e3)};var gt=de("FullYear",!0);function yt(){return le(this.year())}function bt(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function vt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function _t(e,t,n){var r=7+t-n;return-(7+vt(e,0,r).getUTCDay()-t)%7+r-1}function wt(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+_t(e,r,i);return s<=0?a=mt(o=e-1)+s:s>mt(e)?(o=e+1,a=s-mt(e)):(o=e,a=s),{year:o,dayOfYear:a}}function xt(e,t,n){var r,i,o=_t(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+kt(i=e.year()-1,t,n):a>kt(e.year(),t,n)?(r=a-kt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function kt(e,t,n){var r=_t(e,t,n),i=_t(e+1,t,n);return(mt(e)-r+i)/7}function Tt(e){return xt(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ae("week",5),ae("isoWeek",5),je("w",xe),je("ww",xe,be),je("W",xe),je("WW",xe,be),Ue(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ue(e)}));var St={dow:0,doy:6};function At(){return this._week.dow}function Et(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ot(e){var t=xt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Mt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Pt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function It(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),je("d",xe),je("e",xe),je("E",xe),je("dd",(function(e,t){return t.weekdaysMinRegex(e)})),je("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),je("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e})),Ue(["d","e","E"],(function(e,t,n,r){t[r]=ue(e)}));var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Bt=Ne,Ft=Ne,Dt=Ne;function Lt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?It(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return!0===e?It(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zt(e){return!0===e?It(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Wt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=We.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=We.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=We.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=We.call(this._weekdaysParse,a))||-1!==(i=We.call(this._shortWeekdaysParse,a))||-1!==(i=We.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=We.call(this._shortWeekdaysParse,a))||-1!==(i=We.call(this._weekdaysParse,a))||-1!==(i=We.call(this._minWeekdaysParse,a))?i:null:-1!==(i=We.call(this._minWeekdaysParse,a))||-1!==(i=We.call(this._weekdaysParse,a))||-1!==(i=We.call(this._shortWeekdaysParse,a))?i:null}function Ht(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Wt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Mt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Vt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Yt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Bt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Dt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=Fe(this.weekdaysMin(n,"")),i=Fe(this.weekdaysShort(n,"")),o=Fe(this.weekdays(n,"")),a.push(r),s.push(i),l.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Jt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function $t(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Jt),U("k",["kk",2],0,Qt),U("hmm",0,0,(function(){return""+Jt.apply(this)+R(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Jt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),$t("a",!0),$t("A",!1),ne("hour","h"),ae("hour",13),je("a",en),je("A",en),je("H",xe),je("h",xe),je("k",xe),je("HH",xe,be),je("hh",xe,be),je("kk",xe,be),je("hmm",ke),je("hmmss",Te),je("Hmm",ke),je("Hmmss",Te),Le(["H","HH"],Ve),Le(["k","kk"],(function(e,t,n){var r=ue(e);t[Ve]=24===r?0:r})),Le(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Le(["h","hh"],(function(e,t,n){t[Ve]=ue(e),g(n).bigHour=!0})),Le("hmm",(function(e,t,n){var r=e.length-2;t[Ve]=ue(e.substr(0,r)),t[Ye]=ue(e.substr(r)),g(n).bigHour=!0})),Le("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ve]=ue(e.substr(0,r)),t[Ye]=ue(e.substr(r,2)),t[Ke]=ue(e.substr(i)),g(n).bigHour=!0})),Le("Hmm",(function(e,t,n){var r=e.length-2;t[Ve]=ue(e.substr(0,r)),t[Ye]=ue(e.substr(r))})),Le("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ve]=ue(e.substr(0,r)),t[Ye]=ue(e.substr(r,2)),t[Ke]=ue(e.substr(i))}));var nn=/[ap]\.?m?\.?/i,rn=de("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:N,longDateFormat:G,invalidDate:Y,ordinal:Z,dayOfMonthOrdinalParse:X,relativeTime:Q,months:et,monthsShort:tt,week:St,weekdays:Nt,weekdaysMin:Rt,weekdaysShort:jt,meridiemParse:nn},ln={},cn={};function un(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=pn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&un(i,n)>=t-1)break;t--}o++}return an}function hn(e){return null!=e.match("^[^/\\\\]*$")}function pn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&hn(t))try{n=an._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),mn(n)}catch(r){ln[t]=null}return ln[t]}function mn(e,t){var n;return e&&((n=c(t)?bn(e):gn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new I(P(r,t)),cn[e]&&cn[e].forEach((function(e){gn(e.name,e.config)})),mn(e),ln[e]}return delete ln[e],null}function yn(e,t){if(null!=t){var n,r,i=sn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(P(ln[e]._config,t)):(null!=(r=pn(e))&&(i=r._config),t=P(i,t),null==r&&(t.abbr=e),(n=new I(t)).parentLocale=ln[e],ln[e]=n),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(t=pn(e))return t;e=[e]}return fn(e)}function vn(){return A(ln)}function _n(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[qe]<0||n[qe]>11?qe:n[Ge]<1||n[Ge]>$e(n[He],n[qe])?Ge:n[Ve]<0||n[Ve]>24||24===n[Ve]&&(0!==n[Ye]||0!==n[Ke]||0!==n[Ze])?Ve:n[Ye]<0||n[Ye]>59?Ye:n[Ke]<0||n[Ke]>59?Ke:n[Ze]<0||n[Ze]>999?Ze:-1,g(e)._overflowDayOfYear&&(tGe)&&(t=Ge),g(e)._overflowWeeks&&-1===t&&(t=Xe),g(e)._overflowWeekday&&-1===t&&(t=Je),g(e).overflow=t),e}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],An=/^\/?Date\((-?\d+)/i,En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function On(e){var t,n,r,i,o,a,s=e._i,l=wn.exec(s)||xn.exec(s),c=Tn.length,u=Sn.length;if(l){for(g(e).iso=!0,t=0,n=c;tmt(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=vt(o,0,e._dayOfYear),e._a[qe]=n.getUTCMonth(),e._a[Ge]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ve]&&0===e._a[Ye]&&0===e._a[Ke]&&0===e._a[Ze]&&(e._nextDay=!0,e._a[Ve]=0),e._d=(e._useUTC?vt:bt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ve]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Un(e){var t,n,r,i,o,a,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Fn(t.GG,e._a[He],xt(Zn(),1,4).year),r=Fn(t.W,1),((i=Fn(t.E,1))<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=xt(Zn(),o,a),n=Fn(t.gg,e._a[He],c.year),r=Fn(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>kt(n,o,a)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=wt(n,r,i,o,a),e._a[He]=s.year,e._dayOfYear=s.dayOfYear)}function zn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,i,o,a,s,l,c=""+e._i,u=c.length,d=0;for(l=(i=q(e._f,e._locale).match(B)||[]).length,t=0;t0&&g(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),d+=n.length),L[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),ze(o,n,e)):e._strict&&!n&&g(e).unusedTokens.push(o);g(e).charsLeftOver=u-d,c.length>0&&g(e).unusedInput.push(c),e._a[Ve]<=12&&!0===g(e).bigHour&&e._a[Ve]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[Ve]=Wn(e._locale,e._a[Ve],e._meridiem),null!==(s=g(e).era)&&(e._a[He]=e._locale.erasConvertYear(s,e._a[He])),Ln(e),_n(e)}else Rn(e);else On(e)}function Wn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Hn(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:b()}));function Qn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Zn();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=Vn(t))._a?(e=t._isUTC?p(t._a):Zn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Ar=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Cr(e,t){var n,r,i,o=e,a=null;return sr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Ar.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:ue(a[Ge])*n,h:ue(a[Ve])*n,m:ue(a[Ye])*n,s:ue(a[Ke])*n,ms:ue(lr(1e3*a[Ze]))*n}):(a=Er.exec(e))?(n="-"===a[1]?-1:1,o={y:Or(a[2],n),M:Or(a[3],n),w:Or(a[4],n),d:Or(a[5],n),h:Or(a[6],n),m:Or(a[7],n),s:Or(a[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=Pr(Zn(o.from),Zn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Or(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Mr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Pr(e,t){var n;return e.isValid()&&t.isValid()?(t=hr(t,e),e.isBefore(t)?n=Mr(e,t):((n=Mr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ir(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Nr(this,Cr(n,r),e),this}}function Nr(e,t,n,i){var o=t._milliseconds,a=lr(t._days),s=lr(t._months);e.isValid()&&(i=null==i||i,s&&ct(e,fe(e,"Month")+s*n),a&&he(e,"Date",fe(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}Cr.fn=ar.prototype,Cr.invalid=or;var jr=Ir(1,"add"),Rr=Ir(-1,"subtract");function Br(e){return"string"===typeof e||e instanceof String}function Fr(e){return k(e)||d(e)||Br(e)||u(e)||Lr(e)||Dr(e)||null===e||void 0===e}function Dr(e){var t,n,r=a(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=o.length;for(t=0;tn.valueOf():n.valueOf()9999?H(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ti(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=H(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(k(e)&&e.isValid()||Zn(e).isValid())?Cr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ri(e){return this.from(Zn(),e)}function ii(e,t){return this.isValid()&&(k(e)&&e.isValid()||Zn(e).isValid())?Cr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oi(e){return this.to(Zn(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function li(){return this._locale}var ci=1e3,ui=60*ci,di=60*ui,fi=3506328*di;function hi(e,t){return(e%t+t)%t}function pi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function mi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mi:pi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hi(t+(this._isUTC?0:this.utcOffset()*ui),di);break;case"minute":t=this._d.valueOf(),t-=hi(t,ui);break;case"second":t=this._d.valueOf(),t-=hi(t,ci)}return this._d.setTime(t),r.updateOffset(this,!0),this}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mi:pi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-hi(t+(this._isUTC?0:this.utcOffset()*ui),di)-1;break;case"minute":t=this._d.valueOf(),t+=ui-hi(t,ui)-1;break;case"second":t=this._d.valueOf(),t+=ci-hi(t,ci)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function vi(){return Math.floor(this.valueOf()/1e3)}function _i(){return new Date(this.valueOf())}function wi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ki(){return this.isValid()?this.toISOString():null}function Ti(){return y(this)}function Si(){return h({},g(this))}function Ai(){return g(this).overflow}function Ei(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ci(e,t){var n,i,o,a=this._eras||bn("en")._eras;for(n=0,i=a.length;n=0)return l[r]}function Mi(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e(o=kt(e,r,i))&&(t=o),Ji.call(this,e,t,n,r,i))}function Ji(e,t,n,r,i){var o=wt(e,t,n,r,i),a=vt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),je("N",Di),je("NN",Di),je("NNN",Di),je("NNNN",Li),je("NNNNN",Ui),Le(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),je("y",Ce),je("yy",Ce),je("yyy",Ce),je("yyyy",Ce),je("yo",zi),Le(["y","yy","yyy","yyyy"],He),Le(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[He]=n._locale.eraYearOrdinalParse(e,i):t[He]=parseInt(e,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Hi("gggg","weekYear"),Hi("ggggg","weekYear"),Hi("GGGG","isoWeekYear"),Hi("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),je("G",Oe),je("g",Oe),je("GG",xe,be),je("gg",xe,be),je("GGGG",Ae,_e),je("gggg",Ae,_e),je("GGGGG",Ee,we),je("ggggg",Ee,we),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ue(e)})),Ue(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),ne("quarter","Q"),ae("quarter",7),je("Q",ye),Le("Q",(function(e,t){t[qe]=3*(ue(e)-1)})),U("D",["DD",2],"Do","date"),ne("date","D"),ae("date",9),je("D",xe),je("DD",xe,be),je("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Le(["D","DD"],Ge),Le("Do",(function(e,t){t[Ge]=ue(e.match(xe)[0])}));var $i=de("Date",!0);function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ae("dayOfYear",4),je("DDD",Se),je("DDDD",ve),Le(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ue(e)})),U("m",["mm",2],0,"minute"),ne("minute","m"),ae("minute",14),je("m",xe),je("mm",xe,be),Le(["m","mm"],Ye);var to=de("Minutes",!1);U("s",["ss",2],0,"second"),ne("second","s"),ae("second",15),je("s",xe),je("ss",xe,be),Le(["s","ss"],Ke);var no,ro,io=de("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ae("millisecond",16),je("S",Se,ye),je("SS",Se,be),je("SSS",Se,ve),no="SSSS";no.length<=9;no+="S")je(no,Ce);function oo(e,t){t[Ze]=ue(1e3*("0."+e))}for(no="S";no.length<=9;no+="S")Le(no,oo);function ao(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}ro=de("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var lo=x.prototype;function co(e){return Zn(1e3*e)}function uo(){return Zn.apply(null,arguments).parseZone()}function fo(e){return e}lo.add=jr,lo.calendar=Wr,lo.clone=Hr,lo.diff=Xr,lo.endOf=yi,lo.format=ti,lo.from=ni,lo.fromNow=ri,lo.to=ii,lo.toNow=oi,lo.get=pe,lo.invalidAt=Ai,lo.isAfter=qr,lo.isBefore=Gr,lo.isBetween=Vr,lo.isSame=Yr,lo.isSameOrAfter=Kr,lo.isSameOrBefore=Zr,lo.isValid=Ti,lo.lang=si,lo.locale=ai,lo.localeData=li,lo.max=Jn,lo.min=Xn,lo.parsingFlags=Si,lo.set=me,lo.startOf=gi,lo.subtract=Rr,lo.toArray=wi,lo.toObject=xi,lo.toDate=_i,lo.toISOString=$r,lo.inspect=ei,"undefined"!==typeof Symbol&&null!=Symbol.for&&(lo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),lo.toJSON=ki,lo.toString=Qr,lo.unix=vi,lo.valueOf=bi,lo.creationData=Ei,lo.eraName=Pi,lo.eraNarrow=Ii,lo.eraAbbr=Ni,lo.eraYear=ji,lo.year=gt,lo.isLeapYear=yt,lo.weekYear=qi,lo.isoWeekYear=Gi,lo.quarter=lo.quarters=Qi,lo.month=ut,lo.daysInMonth=dt,lo.week=lo.weeks=Ct,lo.isoWeek=lo.isoWeeks=Ot,lo.weeksInYear=Ki,lo.weeksInWeekYear=Zi,lo.isoWeeksInYear=Vi,lo.isoWeeksInISOWeekYear=Yi,lo.date=$i,lo.day=lo.days=qt,lo.weekday=Gt,lo.isoWeekday=Vt,lo.dayOfYear=eo,lo.hour=lo.hours=rn,lo.minute=lo.minutes=to,lo.second=lo.seconds=io,lo.millisecond=lo.milliseconds=ro,lo.utcOffset=mr,lo.utc=yr,lo.local=br,lo.parseZone=vr,lo.hasAlignedHourOffset=_r,lo.isDST=wr,lo.isLocal=kr,lo.isUtcOffset=Tr,lo.isUtc=Sr,lo.isUTC=Sr,lo.zoneAbbr=ao,lo.zoneName=so,lo.dates=S("dates accessor is deprecated. Use date instead.",$i),lo.months=S("months accessor is deprecated. Use month instead",ut),lo.years=S("years accessor is deprecated. Use year instead",gt),lo.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),lo.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var ho=I.prototype;function po(e,t,n,r){var i=bn(),o=p().set(r,t);return i[n](o,e)}function mo(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return po(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=po(e,r,n,"month");return i}function go(e,t,n,r){"boolean"===typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,o=bn(),a=e?o._week.dow:0,s=[];if(null!=n)return po(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=po(t,(i+a)%7,r,"day");return s}function yo(e,t){return mo(e,t,"months")}function bo(e,t){return mo(e,t,"monthsShort")}function vo(e,t,n){return go(e,t,n,"weekdays")}function _o(e,t,n){return go(e,t,n,"weekdaysShort")}function wo(e,t,n){return go(e,t,n,"weekdaysMin")}ho.calendar=j,ho.longDateFormat=V,ho.invalidDate=K,ho.ordinal=J,ho.preparse=fo,ho.postformat=fo,ho.relativeTime=$,ho.pastFuture=ee,ho.set=M,ho.eras=Ci,ho.erasParse=Oi,ho.erasConvertYear=Mi,ho.erasAbbrRegex=Bi,ho.erasNameRegex=Ri,ho.erasNarrowRegex=Fi,ho.months=ot,ho.monthsShort=at,ho.monthsParse=lt,ho.monthsRegex=ht,ho.monthsShortRegex=ft,ho.week=Tt,ho.firstDayOfYear=Et,ho.firstDayOfWeek=At,ho.weekdays=Lt,ho.weekdaysMin=zt,ho.weekdaysShort=Ut,ho.weekdaysParse=Ht,ho.weekdaysRegex=Yt,ho.weekdaysShortRegex=Kt,ho.weekdaysMinRegex=Zt,ho.isPM=tn,ho.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ue(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",bn);var xo=Math.abs;function ko(){var e=this._data;return this._milliseconds=xo(this._milliseconds),this._days=xo(this._days),this._months=xo(this._months),e.milliseconds=xo(e.milliseconds),e.seconds=xo(e.seconds),e.minutes=xo(e.minutes),e.hours=xo(e.hours),e.months=xo(e.months),e.years=xo(e.years),this}function To(e,t,n,r){var i=Cr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function So(e,t){return To(this,e,t,1)}function Ao(e,t){return To(this,e,t,-1)}function Eo(e){return e<0?Math.floor(e):Math.ceil(e)}function Co(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Eo(Mo(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=ce(o/1e3),l.seconds=e%60,t=ce(e/60),l.minutes=t%60,n=ce(t/60),l.hours=n%24,a+=ce(n/24),s+=i=ce(Oo(a)),a-=Eo(Mo(i)),r=ce(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function Oo(e){return 4800*e/146097}function Mo(e){return 146097*e/4800}function Po(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Oo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Mo(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Io(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function No(e){return function(){return this.as(e)}}var jo=No("ms"),Ro=No("s"),Bo=No("m"),Fo=No("h"),Do=No("d"),Lo=No("w"),Uo=No("M"),zo=No("Q"),Wo=No("y");function Ho(){return Cr(this)}function qo(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Go(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vo=Go("milliseconds"),Yo=Go("seconds"),Ko=Go("minutes"),Zo=Go("hours"),Xo=Go("days"),Jo=Go("months"),Qo=Go("years");function $o(){return ce(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var i=Cr(e).abs(),o=ea(i.as("s")),a=ea(i.as("m")),s=ea(i.as("h")),l=ea(i.as("d")),c=ea(i.as("M")),u=ea(i.as("w")),d=ea(i.as("y")),f=o<=n.ss&&["s",o]||o0,f[4]=r,na.apply(null,f)}function ia(e){return void 0===e?ea:"function"===typeof e&&(ea=e,!0)}function oa(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ta;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ra(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var sa=Math.abs;function la(e){return(e>0)-(e<0)||+e}function ca(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,l=sa(this._milliseconds)/1e3,c=sa(this._days),u=sa(this._months),d=this.asSeconds();return d?(e=ce(l/60),t=ce(e/60),l%=60,e%=60,n=ce(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=la(this._months)!==la(d)?"-":"",a=la(this._days)!==la(d)?"-":"",s=la(this._milliseconds)!==la(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ua=ar.prototype;return ua.isValid=ir,ua.abs=ko,ua.add=So,ua.subtract=Ao,ua.as=Po,ua.asMilliseconds=jo,ua.asSeconds=Ro,ua.asMinutes=Bo,ua.asHours=Fo,ua.asDays=Do,ua.asWeeks=Lo,ua.asMonths=Uo,ua.asQuarters=zo,ua.asYears=Wo,ua.valueOf=Io,ua._bubble=Co,ua.clone=Ho,ua.get=qo,ua.milliseconds=Vo,ua.seconds=Yo,ua.minutes=Ko,ua.hours=Zo,ua.days=Xo,ua.weeks=$o,ua.months=Jo,ua.years=Qo,ua.humanize=aa,ua.toISOString=ca,ua.toString=ca,ua.toJSON=ca,ua.locale=ai,ua.localeData=li,ua.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),ua.lang=si,U("X",0,0,"unix"),U("x",0,0,"valueOf"),je("x",Oe),je("X",Ie),Le("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Le("x",(function(e,t,n){n._d=new Date(ue(e))})),r.version="2.29.4",i(Zn),r.fn=lo,r.min=$n,r.max=er,r.now=tr,r.utc=p,r.unix=co,r.months=yo,r.isDate=d,r.locale=mn,r.invalid=b,r.duration=Cr,r.isMoment=k,r.weekdays=vo,r.parseZone=uo,r.localeData=bn,r.isDuration=sr,r.monthsShort=bo,r.weekdaysMin=wo,r.defineLocale=gn,r.updateLocale=yn,r.locales=vn,r.weekdaysShort=_o,r.normalizeUnits=re,r.relativeTimeRounding=ia,r.relativeTimeThreshold=oa,r.calendarFormat=zr,r.prototype=lo,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},4280:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(40918).Buffer}catch(T){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function l(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("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=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","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,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[h])+d)/67108864|0,d=67108863&a}n.words[c]=0|d,l=0|u}return 0!==l?n.words[c]=0|l:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-l.length]+l+n:l+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var f=u[e],h=d[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?m+n:c[f-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===t,c=new e(o),u=this.clone();if(l){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],y=8191&g,b=g>>>13,v=0|a[3],_=8191&v,w=v>>>13,x=0|a[4],k=8191&x,T=x>>>13,S=0|a[5],A=8191&S,E=S>>>13,C=0|a[6],O=8191&C,M=C>>>13,P=0|a[7],I=8191&P,N=P>>>13,j=0|a[8],R=8191&j,B=j>>>13,F=0|a[9],D=8191&F,L=F>>>13,U=0|s[0],z=8191&U,W=U>>>13,H=0|s[1],q=8191&H,G=H>>>13,V=0|s[2],Y=8191&V,K=V>>>13,Z=0|s[3],X=8191&Z,J=Z>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,W))+Math.imul(f,z)|0))<<13)|0;c=((o=Math.imul(f,W))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,W))+Math.imul(m,z)|0,o=Math.imul(m,W);var ye=(c+(r=r+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(f,q)|0))<<13)|0;c=((o=o+Math.imul(f,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,W))+Math.imul(b,z)|0,o=Math.imul(b,W),r=r+Math.imul(p,q)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,G)|0;var be=(c+(r=r+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(f,Y)|0))<<13)|0;c=((o=o+Math.imul(f,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(_,z),i=(i=Math.imul(_,W))+Math.imul(w,z)|0,o=Math.imul(w,W),r=r+Math.imul(y,q)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(b,q)|0,o=o+Math.imul(b,G)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0;var ve=(c+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(k,z),i=(i=Math.imul(k,W))+Math.imul(T,z)|0,o=Math.imul(T,W),r=r+Math.imul(_,q)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,K)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0;var _e=(c+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(f,$)|0))<<13)|0;c=((o=o+Math.imul(f,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,W))+Math.imul(E,z)|0,o=Math.imul(E,W),r=r+Math.imul(k,q)|0,i=(i=i+Math.imul(k,G)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,K)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var we=(c+(r=r+Math.imul(d,ne)|0)|0)+((8191&(i=(i=i+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;c=((o=o+Math.imul(f,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,W))+Math.imul(M,z)|0,o=Math.imul(M,W),r=r+Math.imul(A,q)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(E,q)|0,o=o+Math.imul(E,G)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,K)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(y,$)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var xe=(c+(r=r+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(f,oe)|0))<<13)|0;c=((o=o+Math.imul(f,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(I,z),i=(i=Math.imul(I,W))+Math.imul(N,z)|0,o=Math.imul(N,W),r=r+Math.imul(O,q)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,G)|0,r=r+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,K)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,J)|0,r=r+Math.imul(_,$)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(b,ne)|0,o=o+Math.imul(b,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var ke=(c+(r=r+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((o=o+Math.imul(f,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,W))+Math.imul(B,z)|0,o=Math.imul(B,W),r=r+Math.imul(I,q)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(N,q)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,K)|0,r=r+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,J)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,r=r+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ce)|0;var Te=(c+(r=r+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((o=o+Math.imul(f,fe)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(D,z),i=(i=Math.imul(D,W))+Math.imul(L,z)|0,o=Math.imul(L,W),r=r+Math.imul(R,q)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(B,q)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,K)|0,r=r+Math.imul(O,X)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,r=r+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,r=r+Math.imul(y,le)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,ce)|0,r=r+Math.imul(p,de)|0,i=(i=i+Math.imul(p,fe)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,fe)|0;var Se=(c+(r=r+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((o=o+Math.imul(f,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,G))+Math.imul(L,q)|0,o=Math.imul(L,G),r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,K)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(A,ne)|0,i=(i=i+Math.imul(A,re)|0)+Math.imul(E,ne)|0,o=o+Math.imul(E,re)|0,r=r+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(_,le)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(w,le)|0,o=o+Math.imul(w,ce)|0,r=r+Math.imul(y,de)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,fe)|0;var Ae=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(D,Y),i=(i=Math.imul(D,K))+Math.imul(L,Y)|0,o=Math.imul(L,K),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,J)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(O,ne)|0,i=(i=i+Math.imul(O,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,r=r+Math.imul(k,le)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(T,le)|0,o=o+Math.imul(T,ce)|0,r=r+Math.imul(_,de)|0,i=(i=i+Math.imul(_,fe)|0)+Math.imul(w,de)|0,o=o+Math.imul(w,fe)|0;var Ee=(c+(r=r+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(D,X),i=(i=Math.imul(D,J))+Math.imul(L,X)|0,o=Math.imul(L,J),r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(A,le)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(E,le)|0,o=o+Math.imul(E,ce)|0,r=r+Math.imul(k,de)|0,i=(i=i+Math.imul(k,fe)|0)+Math.imul(T,de)|0,o=o+Math.imul(T,fe)|0;var Ce=(c+(r=r+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,$),i=(i=Math.imul(D,ee))+Math.imul(L,$)|0,o=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(B,ne)|0,o=o+Math.imul(B,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(O,le)|0,i=(i=i+Math.imul(O,ce)|0)+Math.imul(M,le)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(A,de)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(E,de)|0,o=o+Math.imul(E,fe)|0;var Oe=(c+(r=r+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(T,pe)|0))<<13)|0;c=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(D,ne),i=(i=Math.imul(D,re))+Math.imul(L,ne)|0,o=Math.imul(L,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,r=r+Math.imul(I,le)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(N,le)|0,o=o+Math.imul(N,ce)|0,r=r+Math.imul(O,de)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(M,de)|0,o=o+Math.imul(M,fe)|0;var Me=(c+(r=r+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(D,oe),i=(i=Math.imul(D,ae))+Math.imul(L,oe)|0,o=Math.imul(L,ae),r=r+Math.imul(R,le)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(B,le)|0,o=o+Math.imul(B,ce)|0,r=r+Math.imul(I,de)|0,i=(i=i+Math.imul(I,fe)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,fe)|0;var Pe=(c+(r=r+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(D,le),i=(i=Math.imul(D,ce))+Math.imul(L,le)|0,o=Math.imul(L,ce),r=r+Math.imul(R,de)|0,i=(i=i+Math.imul(R,fe)|0)+Math.imul(B,de)|0,o=o+Math.imul(B,fe)|0;var Ie=(c+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(D,de),i=(i=Math.imul(D,fe))+Math.imul(L,de)|0,o=Math.imul(L,fe);var Ne=(c+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(B,pe)|0))<<13)|0;c=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var je=(c+(r=Math.imul(D,pe))|0)+((8191&(i=(i=Math.imul(D,me))+Math.imul(L,pe)|0))<<13)|0;return c=((o=Math.imul(L,me))+(i>>>13)|0)+(je>>>26)|0,je&=67108863,l[0]=ge,l[1]=ye,l[2]=be,l[3]=ve,l[4]=_e,l[5]=we,l[6]=xe,l[7]=ke,l[8]=Te,l[9]=Se,l[10]=Ae,l[11]=Ee,l[12]=Ce,l[13]=Oe,l[14]=Me,l[15]=Pe,l[16]=Ie,l[17]=Ne,l[18]=je,0!==c&&(l[19]=c,n.length++),n};function p(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=f),o.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?h(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):p(this,e,t),n},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;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},o.prototype.isubn=function(e){if(r("number"===typeof e),r(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>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,l=r.length-i.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/a|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0===(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(l)):(n.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,f=1;0===(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(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 o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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 o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(b,y),b.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new v;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return g[e]=t,t},x.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),f=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g=0;r--){for(var c=t.words[r],u=l-1;u>=0;u--){var d=c>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}l=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,x),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},5770:(e,t,n)=>{var r=n(4280),i=n(27723);e.exports=function(e){if("string"===typeof e||"number"===typeof e){var t=new r(1),n=String(e).toLowerCase().trim(),o="0x"===n.substr(0,2)||"-0x"===n.substr(0,3),a=i(n);if("-"===a.substr(0,1)&&(a=i(a.slice(1)),t=new r(-1,10)),!(a=""===a?"0":a).match(/^-?[0-9]+$/)&&a.match(/^[0-9A-Fa-f]+$/)||a.match(/^[a-fA-F]+$/)||!0===o&&a.match(/^[0-9A-Fa-f]+$/))return new r(a,16).mul(t);if((a.match(/^-?[0-9]+$/)||""===a)&&!1===o)return new r(a,10).mul(t)}else if("object"===typeof e&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new r(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},71843:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l{var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,_=String.prototype.toUpperCase,w=String.prototype.toLowerCase,x=RegExp.prototype.test,k=Array.prototype.concat,T=Array.prototype.join,S=Array.prototype.slice,A=Math.floor,E="function"===typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,O="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"===typeof Symbol&&"object"===typeof Symbol.iterator,P="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,N=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function j(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-A(-e):A(e);if(r!==e){var i=String(r),o=b.call(t,i.length+1);return v.call(i,n,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var R=n(24654),B=R.custom,F=W(B)?B:null;function D(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function L(e){return v.call(String(e),/"/g,""")}function U(e){return"[object Array]"===G(e)&&(!P||!("object"===typeof e&&P in e))}function z(e){return"[object RegExp]"===G(e)&&(!P||!("object"===typeof e&&P in e))}function W(e){if(M)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!O)return!1;try{return O.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,s){var l=r||{};if(q(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!q(l,"customInspect")||l.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return Y(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return _?j(t,x):x}if("bigint"===typeof t){var A=String(t)+"n";return _?j(t,A):A}var C="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof i&&(i=0),i>=C&&C>0&&"object"===typeof t)return U(t)?"[Array]":"[Object]";var B=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=T.call(Array(e.indent+1)," ")}return{base:n,prev:T.call(Array(t+1),n)}}(l,i);if("undefined"===typeof s)s=[];else if(V(s,t)>=0)return"[Circular]";function H(t,n,r){if(n&&(s=S.call(s)).push(n),r){var o={depth:l.depth};return q(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,s)}return e(t,l,i+1,s)}if("function"===typeof t&&!z(t)){var K=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=$(t,H);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(ee.length>0?" { "+T.call(ee,", ")+" }":"")}if(W(t)){var te=M?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!==typeof t||M?te:Z(te)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var ne="<"+w.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie"}if(U(t)){if(0===t.length)return"[]";var oe=$(t,H);return B&&!function(e){for(var t=0;t=0)return!1;return!0}(oe)?"["+Q(oe,B)+"]":"[ "+T.call(oe,", ")+" ]"}if(function(e){return"[object Error]"===G(e)&&(!P||!("object"===typeof e&&P in e))}(t)){var ae=$(t,H);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(ae,", ")+" }":"{ ["+String(t)+"] "+T.call(k.call("[cause]: "+H(t.cause),ae),", ")+" }"}if("object"===typeof t&&m){if(F&&"function"===typeof t[F]&&R)return R(t,{depth:C-i});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{c.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,n){se.push(H(n,t,!0)+" => "+H(e,t))})),J("Map",o.call(t),se,B)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var le=[];return u&&u.call(t,(function(e){le.push(H(e,t))})),J("Set",c.call(t),le,B)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return X("WeakMap");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return X("WeakSet");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{return h.call(e),!0}catch(t){}return!1}(t))return X("WeakRef");if(function(e){return"[object Number]"===G(e)&&(!P||!("object"===typeof e&&P in e))}(t))return Z(H(Number(t)));if(function(e){if(!e||"object"!==typeof e||!E)return!1;try{return E.call(e),!0}catch(t){}return!1}(t))return Z(H(E.call(t)));if(function(e){return"[object Boolean]"===G(e)&&(!P||!("object"===typeof e&&P in e))}(t))return Z(p.call(t));if(function(e){return"[object String]"===G(e)&&(!P||!("object"===typeof e&&P in e))}(t))return Z(H(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===G(e)&&(!P||!("object"===typeof e&&P in e))}(t)&&!z(t)){var ce=$(t,H),ue=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",fe=!ue&&P&&Object(t)===t&&P in t?b.call(G(t),8,-1):de?"Object":"",he=(ue||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||de?"["+T.call(k.call([],fe||[],de||[]),": ")+"] ":"");return 0===ce.length?he+"{}":B?he+"{"+Q(ce,B)+"}":he+"{ "+T.call(ce,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return H.call(e,t)}function G(e){return m.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(b.call(e,0,t.maxStringLength),t)+r}return D(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+_.call(t.toString(16))}function Z(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function J(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):T.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+T.call(e,","+n)+"\n"+t.prev}function $(e,t){var n=U(e),r=[];if(n){r.length=e.length;for(var i=0;i{"use strict";var t=function(e){return e!==e};e.exports=function(e,n){return 0===e&&0===n?1/e===1/n:e===n||!(!t(e)||!t(n))}},28199:(e,t,n)=>{"use strict";var r=n(89959),i=n(59962),o=n(64091),a=n(24584),s=n(98229),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},24584:(e,t,n)=>{"use strict";var r=n(64091);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},98229:(e,t,n)=>{"use strict";var r=n(24584),i=n(89959);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},2782:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(82950),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m0)for(var g=0;g{"use strict";var r=Array.prototype.slice,i=n(82950),o=Object.keys,a=o?function(e){return o(e)}:n(2782),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},82950:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},8047:(e,t,n)=>{"use strict";var r=n(66328),i=n(80541)(),o=n(44680),a=Object,s=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),c=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var o=1;o{"use strict";var r=n(8047);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r{var r=n(7146);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],h=n.index;if(s+=e.slice(a,h),a=h+d.length,f)s+=f[1];else{var p=e[a],m=n[2],g=n[3],y=n[4],b=n[5],v=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=m&&null!=p&&p!==m,x="+"===v||"*"===v,k="?"===v||"*"===v,T=n[2]||u,S=y||b;r.push({name:g||o++,prefix:m||"",delimiter:T,optional:k,repeat:x,partial:w,asterisk:!!_,pattern:S?c(S):_?".*":"[^"+l(T)+"]+?"})}}return a{"use strict";var r=n(79165);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},75192:(e,t,n)=>{e.exports=n(61729)()},79165:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},46316:(e,t,n)=>{const r=n(48451),i=n(48886),o=n(49783),a=n(29123);function s(e,t,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=o=void 0):2!==l||t.getContext||(o=n,n=t,t=void 0),new Promise((function(r,a){try{const a=i.create(n,o);r(e(a,t,o))}catch(s){a(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=t,t=o=void 0):3===l&&(t.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=t,t=void 0));try{const r=i.create(n,o);a(null,e(r,t,o))}catch(u){a(u)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return a.render(e,n)}))},48451:e=>{e.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},96877:(e,t,n)=>{const r=n(8970).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7];for(let r=1;r{const r=n(78952),i=["0","1","2","3","4","5","6","7","8","9","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"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=r.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*i.indexOf(this.data[t]);n+=i.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},18333:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},22015:e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},46094:(e,t,n)=>{const r=n(77654),i=n(78952);function o(e){this.mode=i.BYTE,"string"===typeof e&&(e=r(e)),this.data=new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,n=this.data.length;t{const r=n(18089),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}}},18089:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return n}}},2841:(e,t,n)=>{const r=n(8970).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},98744:(e,t,n)=>{const r=n(8970),i=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let o=n<<10;for(;r.getBCHDigit(o)-i>=0;)o^=1335<{const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let t=255;t<512;t++)n[t]=n[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},88134:(e,t,n)=>{const r=n(78952),i=n(8970);function o(e){this.mode=r.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},73385:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n=3,r=3,i=40,o=10;function a(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let r=0,i=0,o=0,a=null,s=null;for(let l=0;l=5&&(r+=n+(i-5)),a=t,i=1),t=e.get(c,l),t===s?o++:(o>=5&&(r+=n+(o-5)),s=t,o=1)}i>=5&&(r+=n+(i-5)),o>=5&&(r+=n+(o-5))}return r},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(a,i),a>=10&&(1488===o||93===o)&&n++}return n*i},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r{const r=n(22979),i=n(73423);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}},9715:(e,t,n)=>{const r=n(78952);function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))},e.exports=i},81435:(e,t,n)=>{const r=n(59634);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let i=0;i=0;){const e=n[0];for(let o=0;o{const r=n(8970),i=n(18089),o=n(18333),a=n(22015),s=n(96877),l=n(2841),c=n(73385),u=n(61451),d=n(62149),f=n(15741),h=n(98744),p=n(78952),m=n(33787);function g(e,t,n){const r=e.size,i=h.getEncodedBits(t,n);let o,a;for(o=0;o<15;o++)a=1===(i>>o&1),o<6?e.set(o,8,a,!0):o<8?e.set(o+1,8,a,!0):e.set(r-15+o,8,a,!0),o<8?e.set(8,r-o-1,a,!0):o<9?e.set(8,15-o-1+1,a,!0):e.set(8,15-o-1,a,!0);e.set(r-8,8,1,!0)}function y(e,t,n){const i=new o;n.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(i)}));const a=8*(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const s=(a-i.getLengthInBits())/8;for(let r=0;r=0&&r<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===r||6===r)||r>=2&&r<=4&&i>=2&&i<=4?e.set(t+r,o+i,!0,!0):e.set(t+r,o+i,!1,!0))}}(p,t),function(e){const t=e.size;for(let n=8;n=7&&function(e,t){const n=e.size,r=f.getEncodedBits(t);let i,o,a;for(let s=0;s<18;s++)i=Math.floor(s/3),o=s%3+n-8-3,a=1===(r>>s&1),e.set(i,o,a,!0),e.set(o,i,a,!0)}(p,t),function(e,t){const n=e.size;let r=-1,i=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;a>>o&1)),e.set(i,s-n,r),o--,-1===o&&(a++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}(p,d),isNaN(i)&&(i=c.getBestMask(p,g.bind(null,p,n))),c.applyMask(i,p),g(p,n,i),{modules:p,version:t,errorCorrectionLevel:n,maskPattern:i,segments:o}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");let n,o,a=i.M;return"undefined"!==typeof t&&(a=i.from(t.errorCorrectionLevel,i.M),n=f.from(t.version),o=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),b(e,n,a,o)}},62149:(e,t,n)=>{const r=n(81435);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){const e=new Uint8Array(this.degree);return e.set(n,i),e}return n},e.exports=i},73423:(e,t)=>{const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(i,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+r+"$"),a=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},33787:(e,t,n)=>{const r=n(78952),i=n(9715),o=n(85890),a=n(46094),s=n(88134),l=n(73423),c=n(8970),u=n(51664);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){const r=[];let i;for(;null!==(i=e.exec(n));)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function h(e){const t=f(l.NUMERIC,r.NUMERIC,e),n=f(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let i,o;c.isKanjiModeEnabled()?(i=f(l.BYTE,r.BYTE,e),o=f(l.KANJI,r.KANJI,e)):(i=f(l.BYTE_KANJI,r.BYTE,e),o=[]);return t.concat(n,i,o).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function p(e,t){switch(t){case r.NUMERIC:return i.getBitsLength(e);case r.ALPHANUMERIC:return o.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return a.getBitsLength(e)}}function m(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(s))},t.rawSplit=function(e){return t.fromArray(h(e,c.isKanjiModeEnabled()))}},8970:(e,t)=>{let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},22979:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},15741:(e,t,n)=>{const r=n(8970),i=n(61451),o=n(18089),a=n(78952),s=n(22979),l=r.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach((function(e){const r=c(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const o=8*(r.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t));if(n===a.MIXED)return o;const l=o-c(n,e);switch(n){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const i=o.from(n,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<{const r=n(64425);t.render=function(e,t,n){let i=n,o=t;"undefined"!==typeof i||t&&t.getContext||(i=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=r.getOptions(i);const a=r.getImageWidth(e.modules.size,i),s=o.getContext("2d"),l=s.createImageData(a,a);return r.qrToImageData(l.data,e,i),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,o,a),s.putImageData(l,0,0),o},t.renderToDataURL=function(e,n,r){let i=r;"undefined"!==typeof i||n&&n.getContext||(i=n,n=void 0),i||(i={});const o=t.render(e,n,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},29123:(e,t,n)=>{const r=n(64425);function i(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function o(e,t,n){let r=e+t;return"undefined"!==typeof n&&(r+=" "+n),r}t.render=function(e,t,n){const a=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*a.margin,u=a.color.light.a?"':"",d="0&&c>0&&e[l-1]||(r+=a?o("M",c+n,.5+u+n):o("m",i,0),i=0,a=!1),c+1',f='viewBox="0 0 '+c+" "+c+'"',h=''+u+d+"\n";return"function"===typeof n&&n(null,h),h}},64425:(e,t)=>{function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const i=n.modules.size,o=n.modules.data,a=t.getScale(i,r),s=Math.floor((i+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let t=0;t=l&&n>=l&&t{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},74776:(e,t,n)=>{"use strict";var r=n(2816),i=n(67668),o=n(5609);e.exports={formats:o,parse:i,stringify:r}},67668:(e,t,n)=>{"use strict";var r=n(49837),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var u="string"===typeof e?function(e,t){var n,c={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),h=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(g=o(g)?[g]:g),i.call(c,m)?c[m]=r.combine(c[m],g):c[m]=g}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),h=0;h{"use strict";var r=n(73170),i=n(49837),o=n(5609),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p={},m=function e(t,n,o,a,s,c,d,f,m,g,y,b,v,_,w,x){for(var k,T=t,S=x,A=0,E=!1;void 0!==(S=S.get(p))&&!E;){var C=S.get(t);if(A+=1,"undefined"!==typeof C){if(C===A)throw new RangeError("Cyclic object value");E=!0}"undefined"===typeof S.get(p)&&(A=0)}if("function"===typeof f?T=f(n,T):T instanceof Date?T=y(T):"comma"===o&&l(T)&&(T=i.maybeMap(T,(function(e){return e instanceof Date?y(e):e}))),null===T){if(s)return d&&!_?d(n,h.encoder,w,"key",b):n;T=""}if("string"===typeof(k=T)||"number"===typeof k||"boolean"===typeof k||"symbol"===typeof k||"bigint"===typeof k||i.isBuffer(T))return d?[v(_?n:d(n,h.encoder,w,"key",b))+"="+v(d(T,h.encoder,w,"value",b))]:[v(n)+"="+v(String(T))];var O,M=[];if("undefined"===typeof T)return M;if("comma"===o&&l(T))_&&d&&(T=i.maybeMap(T,d)),O=[{value:T.length>0?T.join(",")||null:void 0}];else if(l(f))O=f;else{var P=Object.keys(T);O=m?P.sort(m):P}for(var I=a&&l(T)&&1===T.length?n+"[]":n,N=0;N0?w+_:""}},49837:(e,t,n)=>{"use strict";var r=n(5609),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r{"use strict";var r=65536,i=4294967295;var o=n(65734).Buffer,a=n.g.crypto||n.g.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>i)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(e);if(e>0)if(e>r)for(var s=0;s{"use strict";var r=n(47313),i=n(62224);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n