@signageos/front-applet 8.1.0 → 8.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -15,7 +15,7 @@ var n=r(409),i=r(410),o=r(174);function a(){return s.TYPED_ARRAY_SUPPORT?2147483
15
15
  * Released under MIT license <https://lodash.com/license>
16
16
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
17
17
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
18
- */(function(){var o="Expected a function",a="__lodash_placeholder__",u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",c="[object Array]",f="[object Boolean]",l="[object Date]",h="[object Error]",p="[object Function]",d="[object GeneratorFunction]",y="[object Map]",v="[object Number]",g="[object Object]",m="[object RegExp]",b="[object Set]",w="[object String]",_="[object Symbol]",x="[object WeakMap]",M="[object ArrayBuffer]",E="[object DataView]",S="[object Float32Array]",O="[object Float64Array]",k="[object Int8Array]",L="[object Int16Array]",P="[object Int32Array]",j="[object Uint8Array]",A="[object Uint16Array]",R="[object Uint32Array]",T=/\b__p \+= '';/g,I=/\b(__p \+=) '' \+/g,F=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,C=/[&<>"']/g,D=RegExp(N.source),G=RegExp(C.source),q=/<%-([\s\S]+?)%>/g,B=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,H=RegExp(W.source),K=/^\s+/,X=/\s/,$=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Z=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,ut=/^0o[0-7]+$/i,st=/^(?:0|[1-9]\d*)$/,ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ft=/($^)/,lt=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pt="\\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",dt="[\\ud800-\\udfff]",yt="["+pt+"]",vt="["+ht+"]",gt="\\d+",mt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+pt+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",xt="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",St="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ot="(?:"+bt+"|"+wt+")",kt="(?:"+St+"|"+wt+")",Lt="(?:"+vt+"|"+_t+")"+"?",Pt="[\\ufe0e\\ufe0f]?"+Lt+("(?:\\u200d(?:"+[xt,Mt,Et].join("|")+")[\\ufe0e\\ufe0f]?"+Lt+")*"),jt="(?:"+[mt,Mt,Et].join("|")+")"+Pt,At="(?:"+[xt+vt+"?",vt,Mt,Et,dt].join("|")+")",Rt=RegExp("['’]","g"),Tt=RegExp(vt,"g"),It=RegExp(_t+"(?="+_t+")|"+At+Pt,"g"),Ft=RegExp([St+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[yt,St,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[yt,St+Ot,"$"].join("|")+")",St+"?"+Ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?",St+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,jt].join("|"),"g"),Nt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),Ct=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dt=["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"],Gt=-1,qt={};qt[S]=qt[O]=qt[k]=qt[L]=qt[P]=qt[j]=qt["[object Uint8ClampedArray]"]=qt[A]=qt[R]=!0,qt[s]=qt[c]=qt[M]=qt[f]=qt[E]=qt[l]=qt[h]=qt[p]=qt[y]=qt[v]=qt[g]=qt[m]=qt[b]=qt[w]=qt[x]=!1;var Bt={};Bt[s]=Bt[c]=Bt[M]=Bt[E]=Bt[f]=Bt[l]=Bt[S]=Bt[O]=Bt[k]=Bt[L]=Bt[P]=Bt[y]=Bt[v]=Bt[g]=Bt[m]=Bt[b]=Bt[w]=Bt[_]=Bt[j]=Bt["[object Uint8ClampedArray]"]=Bt[A]=Bt[R]=!0,Bt[h]=Bt[p]=Bt[x]=!1;var Ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zt=parseFloat,Vt=parseInt,Yt="object"==typeof t&&t&&t.Object===Object&&t,Wt="object"==typeof self&&self&&self.Object===Object&&self,Ht=Yt||Wt||Function("return this")(),Kt=e&&!e.nodeType&&e,Xt=Kt&&"object"==typeof n&&n&&!n.nodeType&&n,$t=Xt&&Xt.exports===Kt,Zt=$t&&Yt.process,Jt=function(){try{var t=Xt&&Xt.require&&Xt.require("util").types;return t||Zt&&Zt.binding&&Zt.binding("util")}catch(t){}}(),Qt=Jt&&Jt.isArrayBuffer,te=Jt&&Jt.isDate,ee=Jt&&Jt.isMap,re=Jt&&Jt.isRegExp,ne=Jt&&Jt.isSet,ie=Jt&&Jt.isTypedArray;function oe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function ae(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(n,a,r(a),t)}return n}function ue(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function se(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function ce(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function fe(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}function le(t,e){return!!(null==t?0:t.length)&&_e(t,e,0)>-1}function he(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}function pe(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}function de(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}function ye(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}function ve(t,e,r,n){var i=null==t?0:t.length;for(n&&i&&(r=t[--i]);i--;)r=e(r,t[i],i,t);return r}function ge(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var me=Se("length");function be(t,e,r){var n;return r(t,(function(t,r,i){if(e(t,r,i))return n=r,!1})),n}function we(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function _e(t,e,r){return e==e?function(t,e,r){var n=r-1,i=t.length;for(;++n<i;)if(t[n]===e)return n;return-1}(t,e,r):we(t,Me,r)}function xe(t,e,r,n){for(var i=r-1,o=t.length;++i<o;)if(n(t[i],e))return i;return-1}function Me(t){return t!=t}function Ee(t,e){var r=null==t?0:t.length;return r?Le(t,e)/r:NaN}function Se(t){return function(e){return null==e?void 0:e[t]}}function Oe(t){return function(e){return null==t?void 0:t[e]}}function ke(t,e,r,n,i){return i(t,(function(t,i,o){r=n?(n=!1,t):e(r,t,i,o)})),r}function Le(t,e){for(var r,n=-1,i=t.length;++n<i;){var o=e(t[n]);void 0!==o&&(r=void 0===r?o:r+o)}return r}function Pe(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function je(t){return t?t.slice(0,Ke(t)+1).replace(K,""):t}function Ae(t){return function(e){return t(e)}}function Re(t,e){return pe(e,(function(e){return t[e]}))}function Te(t,e){return t.has(e)}function Ie(t,e){for(var r=-1,n=t.length;++r<n&&_e(e,t[r],0)>-1;);return r}function Fe(t,e){for(var r=t.length;r--&&_e(e,t[r],0)>-1;);return r}function Ne(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}var Ce=Oe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),De=Oe({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Ge(t){return"\\"+Ut[t]}function qe(t){return Nt.test(t)}function Be(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function Ue(t,e){return function(r){return t(e(r))}}function ze(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var u=t[r];u!==e&&u!==a||(t[r]=a,o[i++]=r)}return o}function Ve(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function Ye(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}function We(t){return qe(t)?function(t){var e=It.lastIndex=0;for(;It.test(t);)++e;return e}(t):me(t)}function He(t){return qe(t)?function(t){return t.match(It)||[]}(t):function(t){return t.split("")}(t)}function Ke(t){for(var e=t.length;e--&&X.test(t.charAt(e)););return e}var Xe=Oe({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var $e=function t(e){var r,n=(e=null==e?Ht:$e.defaults(Ht.Object(),e,$e.pick(Ht,Dt))).Array,i=e.Date,X=e.Error,ht=e.Function,pt=e.Math,dt=e.Object,yt=e.RegExp,vt=e.String,gt=e.TypeError,mt=n.prototype,bt=ht.prototype,wt=dt.prototype,_t=e["__core-js_shared__"],xt=bt.toString,Mt=wt.hasOwnProperty,Et=0,St=(r=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ot=wt.toString,kt=xt.call(dt),Lt=Ht._,Pt=yt("^"+xt.call(Mt).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jt=$t?e.Buffer:void 0,At=e.Symbol,It=e.Uint8Array,Nt=jt?jt.allocUnsafe:void 0,Ut=Ue(dt.getPrototypeOf,dt),Yt=dt.create,Wt=wt.propertyIsEnumerable,Kt=mt.splice,Xt=At?At.isConcatSpreadable:void 0,Zt=At?At.iterator:void 0,Jt=At?At.toStringTag:void 0,me=function(){try{var t=to(dt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Oe=e.clearTimeout!==Ht.clearTimeout&&e.clearTimeout,Ze=i&&i.now!==Ht.Date.now&&i.now,Je=e.setTimeout!==Ht.setTimeout&&e.setTimeout,Qe=pt.ceil,tr=pt.floor,er=dt.getOwnPropertySymbols,rr=jt?jt.isBuffer:void 0,nr=e.isFinite,ir=mt.join,or=Ue(dt.keys,dt),ar=pt.max,ur=pt.min,sr=i.now,cr=e.parseInt,fr=pt.random,lr=mt.reverse,hr=to(e,"DataView"),pr=to(e,"Map"),dr=to(e,"Promise"),yr=to(e,"Set"),vr=to(e,"WeakMap"),gr=to(dt,"create"),mr=vr&&new vr,br={},wr=Lo(hr),_r=Lo(pr),xr=Lo(dr),Mr=Lo(yr),Er=Lo(vr),Sr=At?At.prototype:void 0,Or=Sr?Sr.valueOf:void 0,kr=Sr?Sr.toString:void 0;function Lr(t){if(Ya(t)&&!Ia(t)&&!(t instanceof Rr)){if(t instanceof Ar)return t;if(Mt.call(t,"__wrapped__"))return Po(t)}return new Ar(t)}var Pr=function(){function t(){}return function(e){if(!Va(e))return{};if(Yt)return Yt(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function jr(){}function Ar(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Rr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Tr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ir(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Fr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Nr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Fr;++e<r;)this.add(t[e])}function Cr(t){var e=this.__data__=new Ir(t);this.size=e.size}function Dr(t,e){var r=Ia(t),n=!r&&Ta(t),i=!r&&!n&&Da(t),o=!r&&!n&&!i&&Qa(t),a=r||n||i||o,u=a?Pe(t.length,vt):[],s=u.length;for(var c in t)!e&&!Mt.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||uo(c,s))||u.push(c);return u}function Gr(t){var e=t.length;return e?t[Cn(0,e-1)]:void 0}function qr(t,e){return So(mi(t),Xr(e,0,t.length))}function Br(t){return So(mi(t))}function Ur(t,e,r){(void 0!==r&&!ja(t[e],r)||void 0===r&&!(e in t))&&Hr(t,e,r)}function zr(t,e,r){var n=t[e];Mt.call(t,e)&&ja(n,r)&&(void 0!==r||e in t)||Hr(t,e,r)}function Vr(t,e){for(var r=t.length;r--;)if(ja(t[r][0],e))return r;return-1}function Yr(t,e,r,n){return tn(t,(function(t,i,o){e(n,t,r(t),o)})),n}function Wr(t,e){return t&&bi(e,_u(e),t)}function Hr(t,e,r){"__proto__"==e&&me?me(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Kr(t,e){for(var r=-1,i=e.length,o=n(i),a=null==t;++r<i;)o[r]=a?void 0:vu(t,e[r]);return o}function Xr(t,e,r){return t==t&&(void 0!==r&&(t=t<=r?t:r),void 0!==e&&(t=t>=e?t:e)),t}function $r(t,e,r,n,i,o){var a,u=1&e,c=2&e,h=4&e;if(r&&(a=i?r(t,n,i,o):r(t)),void 0!==a)return a;if(!Va(t))return t;var x=Ia(t);if(x){if(a=function(t){var e=t.length,r=new t.constructor(e);e&&"string"==typeof t[0]&&Mt.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!u)return mi(t,a)}else{var T=no(t),I=T==p||T==d;if(Da(t))return hi(t,u);if(T==g||T==s||I&&!i){if(a=c||I?{}:oo(t),!u)return c?function(t,e){return bi(t,ro(t),e)}(t,function(t,e){return t&&bi(e,xu(e),t)}(a,t)):function(t,e){return bi(t,eo(t),e)}(t,Wr(a,t))}else{if(!Bt[T])return i?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case M:return pi(t);case f:case l:return new n(+t);case E:return function(t,e){var r=e?pi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case S:case O:case k:case L:case P:case j:case"[object Uint8ClampedArray]":case A:case R:return di(t,r);case y:return new n;case v:case w:return new n(t);case m:return function(t){var e=new t.constructor(t.source,nt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new n;case _:return i=t,Or?dt(Or.call(i)):{}}var i}(t,T,u)}}o||(o=new Cr);var F=o.get(t);if(F)return F;o.set(t,a),$a(t)?t.forEach((function(n){a.add($r(n,e,r,n,t,o))})):Wa(t)&&t.forEach((function(n,i){a.set(i,$r(n,e,r,i,t,o))}));var N=x?void 0:(h?c?Hi:Wi:c?xu:_u)(t);return ue(N||t,(function(n,i){N&&(n=t[i=n]),zr(a,i,$r(n,e,r,i,t,o))})),a}function Zr(t,e,r){var n=r.length;if(null==t)return!n;for(t=dt(t);n--;){var i=r[n],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function Jr(t,e,r){if("function"!=typeof t)throw new gt(o);return _o((function(){t.apply(void 0,r)}),e)}function Qr(t,e,r,n){var i=-1,o=le,a=!0,u=t.length,s=[],c=e.length;if(!u)return s;r&&(e=pe(e,Ae(r))),n?(o=he,a=!1):e.length>=200&&(o=Te,a=!1,e=new Nr(e));t:for(;++i<u;){var f=t[i],l=null==r?f:r(f);if(f=n||0!==f?f:0,a&&l==l){for(var h=c;h--;)if(e[h]===l)continue t;s.push(f)}else o(e,l,n)||s.push(f)}return s}Lr.templateSettings={escape:q,evaluate:B,interpolate:U,variable:"",imports:{_:Lr}},Lr.prototype=jr.prototype,Lr.prototype.constructor=Lr,Ar.prototype=Pr(jr.prototype),Ar.prototype.constructor=Ar,Rr.prototype=Pr(jr.prototype),Rr.prototype.constructor=Rr,Tr.prototype.clear=function(){this.__data__=gr?gr(null):{},this.size=0},Tr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Tr.prototype.get=function(t){var e=this.__data__;if(gr){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Mt.call(e,t)?e[t]:void 0},Tr.prototype.has=function(t){var e=this.__data__;return gr?void 0!==e[t]:Mt.call(e,t)},Tr.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=gr&&void 0===e?"__lodash_hash_undefined__":e,this},Ir.prototype.clear=function(){this.__data__=[],this.size=0},Ir.prototype.delete=function(t){var e=this.__data__,r=Vr(e,t);return!(r<0)&&(r==e.length-1?e.pop():Kt.call(e,r,1),--this.size,!0)},Ir.prototype.get=function(t){var e=this.__data__,r=Vr(e,t);return r<0?void 0:e[r][1]},Ir.prototype.has=function(t){return Vr(this.__data__,t)>-1},Ir.prototype.set=function(t,e){var r=this.__data__,n=Vr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Fr.prototype.clear=function(){this.size=0,this.__data__={hash:new Tr,map:new(pr||Ir),string:new Tr}},Fr.prototype.delete=function(t){var e=Ji(this,t).delete(t);return this.size-=e?1:0,e},Fr.prototype.get=function(t){return Ji(this,t).get(t)},Fr.prototype.has=function(t){return Ji(this,t).has(t)},Fr.prototype.set=function(t,e){var r=Ji(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Nr.prototype.add=Nr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Nr.prototype.has=function(t){return this.__data__.has(t)},Cr.prototype.clear=function(){this.__data__=new Ir,this.size=0},Cr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Cr.prototype.get=function(t){return this.__data__.get(t)},Cr.prototype.has=function(t){return this.__data__.has(t)},Cr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Ir){var n=r.__data__;if(!pr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Fr(n)}return r.set(t,e),this.size=r.size,this};var tn=xi(cn),en=xi(fn,!0);function rn(t,e){var r=!0;return tn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function nn(t,e,r){for(var n=-1,i=t.length;++n<i;){var o=t[n],a=e(o);if(null!=a&&(void 0===u?a==a&&!Ja(a):r(a,u)))var u=a,s=o}return s}function on(t,e){var r=[];return tn(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r}function an(t,e,r,n,i){var o=-1,a=t.length;for(r||(r=ao),i||(i=[]);++o<a;){var u=t[o];e>0&&r(u)?e>1?an(u,e-1,r,n,i):de(i,u):n||(i[i.length]=u)}return i}var un=Mi(),sn=Mi(!0);function cn(t,e){return t&&un(t,e,_u)}function fn(t,e){return t&&sn(t,e,_u)}function ln(t,e){return fe(e,(function(e){return Ba(t[e])}))}function hn(t,e){for(var r=0,n=(e=si(e,t)).length;null!=t&&r<n;)t=t[ko(e[r++])];return r&&r==n?t:void 0}function pn(t,e,r){var n=e(t);return Ia(t)?n:de(n,r(t))}function dn(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Jt&&Jt in dt(t)?function(t){var e=Mt.call(t,Jt),r=t[Jt];try{t[Jt]=void 0;var n=!0}catch(t){}var i=Ot.call(t);n&&(e?t[Jt]=r:delete t[Jt]);return i}(t):function(t){return Ot.call(t)}(t)}function yn(t,e){return t>e}function vn(t,e){return null!=t&&Mt.call(t,e)}function gn(t,e){return null!=t&&e in dt(t)}function mn(t,e,r){for(var i=r?he:le,o=t[0].length,a=t.length,u=a,s=n(a),c=1/0,f=[];u--;){var l=t[u];u&&e&&(l=pe(l,Ae(e))),c=ur(l.length,c),s[u]=!r&&(e||o>=120&&l.length>=120)?new Nr(u&&l):void 0}l=t[0];var h=-1,p=s[0];t:for(;++h<o&&f.length<c;){var d=l[h],y=e?e(d):d;if(d=r||0!==d?d:0,!(p?Te(p,y):i(f,y,r))){for(u=a;--u;){var v=s[u];if(!(v?Te(v,y):i(t[u],y,r)))continue t}p&&p.push(y),f.push(d)}}return f}function bn(t,e,r){var n=null==(t=go(t,e=si(e,t)))?t:t[ko(qo(e))];return null==n?void 0:oe(n,t,r)}function wn(t){return Ya(t)&&dn(t)==s}function _n(t,e,r,n,i){return t===e||(null==t||null==e||!Ya(t)&&!Ya(e)?t!=t&&e!=e:function(t,e,r,n,i,o){var a=Ia(t),u=Ia(e),p=a?c:no(t),d=u?c:no(e),x=(p=p==s?g:p)==g,S=(d=d==s?g:d)==g,O=p==d;if(O&&Da(t)){if(!Da(e))return!1;a=!0,x=!1}if(O&&!x)return o||(o=new Cr),a||Qa(t)?Vi(t,e,r,n,i,o):function(t,e,r,n,i,o,a){switch(r){case E:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case M:return!(t.byteLength!=e.byteLength||!o(new It(t),new It(e)));case f:case l:case v:return ja(+t,+e);case h:return t.name==e.name&&t.message==e.message;case m:case w:return t==e+"";case y:var u=Be;case b:var s=1&n;if(u||(u=Ve),t.size!=e.size&&!s)return!1;var c=a.get(t);if(c)return c==e;n|=2,a.set(t,e);var p=Vi(u(t),u(e),n,i,o,a);return a.delete(t),p;case _:if(Or)return Or.call(t)==Or.call(e)}return!1}(t,e,p,r,n,i,o);if(!(1&r)){var k=x&&Mt.call(t,"__wrapped__"),L=S&&Mt.call(e,"__wrapped__");if(k||L){var P=k?t.value():t,j=L?e.value():e;return o||(o=new Cr),i(P,j,r,n,o)}}if(!O)return!1;return o||(o=new Cr),function(t,e,r,n,i,o){var a=1&r,u=Wi(t),s=u.length,c=Wi(e).length;if(s!=c&&!a)return!1;var f=s;for(;f--;){var l=u[f];if(!(a?l in e:Mt.call(e,l)))return!1}var h=o.get(t),p=o.get(e);if(h&&p)return h==e&&p==t;var d=!0;o.set(t,e),o.set(e,t);var y=a;for(;++f<s;){l=u[f];var v=t[l],g=e[l];if(n)var m=a?n(g,v,l,e,t,o):n(v,g,l,t,e,o);if(!(void 0===m?v===g||i(v,g,r,n,o):m)){d=!1;break}y||(y="constructor"==l)}if(d&&!y){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(d=!1)}return o.delete(t),o.delete(e),d}(t,e,r,n,i,o)}(t,e,r,n,_n,i))}function xn(t,e,r,n){var i=r.length,o=i,a=!n;if(null==t)return!o;for(t=dt(t);i--;){var u=r[i];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){var s=(u=r[i])[0],c=t[s],f=u[1];if(a&&u[2]){if(void 0===c&&!(s in t))return!1}else{var l=new Cr;if(n)var h=n(c,f,s,t,e,l);if(!(void 0===h?_n(f,c,3,n,l):h))return!1}}return!0}function Mn(t){return!(!Va(t)||(e=t,St&&St in e))&&(Ba(t)?Pt:at).test(Lo(t));var e}function En(t){return"function"==typeof t?t:null==t?Hu:"object"==typeof t?Ia(t)?jn(t[0],t[1]):Pn(t):rs(t)}function Sn(t){if(!ho(t))return or(t);var e=[];for(var r in dt(t))Mt.call(t,r)&&"constructor"!=r&&e.push(r);return e}function On(t){if(!Va(t))return function(t){var e=[];if(null!=t)for(var r in dt(t))e.push(r);return e}(t);var e=ho(t),r=[];for(var n in t)("constructor"!=n||!e&&Mt.call(t,n))&&r.push(n);return r}function kn(t,e){return t<e}function Ln(t,e){var r=-1,i=Na(t)?n(t.length):[];return tn(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function Pn(t){var e=Qi(t);return 1==e.length&&e[0][2]?yo(e[0][0],e[0][1]):function(r){return r===t||xn(r,t,e)}}function jn(t,e){return co(t)&&po(e)?yo(ko(t),e):function(r){var n=vu(r,t);return void 0===n&&n===e?gu(r,t):_n(e,n,3)}}function An(t,e,r,n,i){t!==e&&un(e,(function(o,a){if(i||(i=new Cr),Va(o))!function(t,e,r,n,i,o,a){var u=bo(t,r),s=bo(e,r),c=a.get(s);if(c)return void Ur(t,r,c);var f=o?o(u,s,r+"",t,e,a):void 0,l=void 0===f;if(l){var h=Ia(s),p=!h&&Da(s),d=!h&&!p&&Qa(s);f=s,h||p||d?Ia(u)?f=u:Ca(u)?f=mi(u):p?(l=!1,f=hi(s,!0)):d?(l=!1,f=di(s,!0)):f=[]:Ka(s)||Ta(s)?(f=u,Ta(u)?f=uu(u):Va(u)&&!Ba(u)||(f=oo(s))):l=!1}l&&(a.set(s,f),i(f,s,n,o,a),a.delete(s));Ur(t,r,f)}(t,e,a,r,An,n,i);else{var u=n?n(bo(t,a),o,a+"",t,e,i):void 0;void 0===u&&(u=o),Ur(t,a,u)}}),xu)}function Rn(t,e){var r=t.length;if(r)return uo(e+=e<0?r:0,r)?t[e]:void 0}function Tn(t,e,r){e=e.length?pe(e,(function(t){return Ia(t)?function(e){return hn(e,1===t.length?t[0]:t)}:t})):[Hu];var n=-1;return e=pe(e,Ae(Zi())),function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}(Ln(t,(function(t,r,i){return{criteria:pe(e,(function(e){return e(t)})),index:++n,value:t}})),(function(t,e){return function(t,e,r){var n=-1,i=t.criteria,o=e.criteria,a=i.length,u=r.length;for(;++n<a;){var s=yi(i[n],o[n]);if(s){if(n>=u)return s;var c=r[n];return s*("desc"==c?-1:1)}}return t.index-e.index}(t,e,r)}))}function In(t,e,r){for(var n=-1,i=e.length,o={};++n<i;){var a=e[n],u=hn(t,a);r(u,a)&&Un(o,si(a,t),u)}return o}function Fn(t,e,r,n){var i=n?xe:_e,o=-1,a=e.length,u=t;for(t===e&&(e=mi(e)),r&&(u=pe(t,Ae(r)));++o<a;)for(var s=0,c=e[o],f=r?r(c):c;(s=i(u,f,s,n))>-1;)u!==t&&Kt.call(u,s,1),Kt.call(t,s,1);return t}function Nn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;uo(i)?Kt.call(t,i,1):ti(t,i)}}return t}function Cn(t,e){return t+tr(fr()*(e-t+1))}function Dn(t,e){var r="";if(!t||e<1||e>9007199254740991)return r;do{e%2&&(r+=t),(e=tr(e/2))&&(t+=t)}while(e);return r}function Gn(t,e){return xo(vo(t,e,Hu),t+"")}function qn(t){return Gr(ju(t))}function Bn(t,e){var r=ju(t);return So(r,Xr(e,0,r.length))}function Un(t,e,r,n){if(!Va(t))return t;for(var i=-1,o=(e=si(e,t)).length,a=o-1,u=t;null!=u&&++i<o;){var s=ko(e[i]),c=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(i!=a){var f=u[s];void 0===(c=n?n(f,s,u):void 0)&&(c=Va(f)?f:uo(e[i+1])?[]:{})}zr(u,s,c),u=u[s]}return t}var zn=mr?function(t,e){return mr.set(t,e),t}:Hu,Vn=me?function(t,e){return me(t,"toString",{configurable:!0,enumerable:!1,value:Vu(e),writable:!0})}:Hu;function Yn(t){return So(ju(t))}function Wn(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=n(o);++i<o;)a[i]=t[i+e];return a}function Hn(t,e){var r;return tn(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r}function Kn(t,e,r){var n=0,i=null==t?n:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=t[o];null!==a&&!Ja(a)&&(r?a<=e:a<e)?n=o+1:i=o}return i}return Xn(t,e,Hu,r)}function Xn(t,e,r,n){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=r(e))!=e,u=null===e,s=Ja(e),c=void 0===e;i<o;){var f=tr((i+o)/2),l=r(t[f]),h=void 0!==l,p=null===l,d=l==l,y=Ja(l);if(a)var v=n||d;else v=c?d&&(n||h):u?d&&h&&(n||!p):s?d&&h&&!p&&(n||!y):!p&&!y&&(n?l<=e:l<e);v?i=f+1:o=f}return ur(o,4294967294)}function $n(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var a=t[r],u=e?e(a):a;if(!r||!ja(u,s)){var s=u;o[i++]=0===a?0:a}}return o}function Zn(t){return"number"==typeof t?t:Ja(t)?NaN:+t}function Jn(t){if("string"==typeof t)return t;if(Ia(t))return pe(t,Jn)+"";if(Ja(t))return kr?kr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Qn(t,e,r){var n=-1,i=le,o=t.length,a=!0,u=[],s=u;if(r)a=!1,i=he;else if(o>=200){var c=e?null:Di(t);if(c)return Ve(c);a=!1,i=Te,s=new Nr}else s=e?[]:u;t:for(;++n<o;){var f=t[n],l=e?e(f):f;if(f=r||0!==f?f:0,a&&l==l){for(var h=s.length;h--;)if(s[h]===l)continue t;e&&s.push(l),u.push(f)}else i(s,l,r)||(s!==u&&s.push(l),u.push(f))}return u}function ti(t,e){return null==(t=go(t,e=si(e,t)))||delete t[ko(qo(e))]}function ei(t,e,r,n){return Un(t,e,r(hn(t,e)),n)}function ri(t,e,r,n){for(var i=t.length,o=n?i:-1;(n?o--:++o<i)&&e(t[o],o,t););return r?Wn(t,n?0:o,n?o+1:i):Wn(t,n?o+1:0,n?i:o)}function ni(t,e){var r=t;return r instanceof Rr&&(r=r.value()),ye(e,(function(t,e){return e.func.apply(e.thisArg,de([t],e.args))}),r)}function ii(t,e,r){var i=t.length;if(i<2)return i?Qn(t[0]):[];for(var o=-1,a=n(i);++o<i;)for(var u=t[o],s=-1;++s<i;)s!=o&&(a[o]=Qr(a[o]||u,t[s],e,r));return Qn(an(a,1),e,r)}function oi(t,e,r){for(var n=-1,i=t.length,o=e.length,a={};++n<i;){var u=n<o?e[n]:void 0;r(a,t[n],u)}return a}function ai(t){return Ca(t)?t:[]}function ui(t){return"function"==typeof t?t:Hu}function si(t,e){return Ia(t)?t:co(t,e)?[t]:Oo(su(t))}var ci=Gn;function fi(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Wn(t,e,r)}var li=Oe||function(t){return Ht.clearTimeout(t)};function hi(t,e){if(e)return t.slice();var r=t.length,n=Nt?Nt(r):new t.constructor(r);return t.copy(n),n}function pi(t){var e=new t.constructor(t.byteLength);return new It(e).set(new It(t)),e}function di(t,e){var r=e?pi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function yi(t,e){if(t!==e){var r=void 0!==t,n=null===t,i=t==t,o=Ja(t),a=void 0!==e,u=null===e,s=e==e,c=Ja(e);if(!u&&!c&&!o&&t>e||o&&a&&s&&!u&&!c||n&&a&&s||!r&&s||!i)return 1;if(!n&&!o&&!c&&t<e||c&&r&&i&&!n&&!o||u&&r&&i||!a&&i||!s)return-1}return 0}function vi(t,e,r,i){for(var o=-1,a=t.length,u=r.length,s=-1,c=e.length,f=ar(a-u,0),l=n(c+f),h=!i;++s<c;)l[s]=e[s];for(;++o<u;)(h||o<a)&&(l[r[o]]=t[o]);for(;f--;)l[s++]=t[o++];return l}function gi(t,e,r,i){for(var o=-1,a=t.length,u=-1,s=r.length,c=-1,f=e.length,l=ar(a-s,0),h=n(l+f),p=!i;++o<l;)h[o]=t[o];for(var d=o;++c<f;)h[d+c]=e[c];for(;++u<s;)(p||o<a)&&(h[d+r[u]]=t[o++]);return h}function mi(t,e){var r=-1,i=t.length;for(e||(e=n(i));++r<i;)e[r]=t[r];return e}function bi(t,e,r,n){var i=!r;r||(r={});for(var o=-1,a=e.length;++o<a;){var u=e[o],s=n?n(r[u],t[u],u,r,t):void 0;void 0===s&&(s=t[u]),i?Hr(r,u,s):zr(r,u,s)}return r}function wi(t,e){return function(r,n){var i=Ia(r)?ae:Yr,o=e?e():{};return i(r,t,Zi(n,2),o)}}function _i(t){return Gn((function(e,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),e=dt(e);++n<i;){var u=r[n];u&&t(e,u,n,o)}return e}))}function xi(t,e){return function(r,n){if(null==r)return r;if(!Na(r))return t(r,n);for(var i=r.length,o=e?i:-1,a=dt(r);(e?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function Mi(t){return function(e,r,n){for(var i=-1,o=dt(e),a=n(e),u=a.length;u--;){var s=a[t?u:++i];if(!1===r(o[s],s,o))break}return e}}function Ei(t){return function(e){var r=qe(e=su(e))?He(e):void 0,n=r?r[0]:e.charAt(0),i=r?fi(r,1).join(""):e.slice(1);return n[t]()+i}}function Si(t){return function(e){return ye(Bu(Tu(e).replace(Rt,"")),t,"")}}function Oi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=Pr(t.prototype),n=t.apply(r,e);return Va(n)?n:r}}function ki(t){return function(e,r,n){var i=dt(e);if(!Na(e)){var o=Zi(r,3);e=_u(e),r=function(t){return o(i[t],t,i)}}var a=t(e,r,n);return a>-1?i[o?e[a]:a]:void 0}}function Li(t){return Yi((function(e){var r=e.length,n=r,i=Ar.prototype.thru;for(t&&e.reverse();n--;){var a=e[n];if("function"!=typeof a)throw new gt(o);if(i&&!u&&"wrapper"==Xi(a))var u=new Ar([],!0)}for(n=u?n:r;++n<r;){var s=Xi(a=e[n]),c="wrapper"==s?Ki(a):void 0;u=c&&fo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[Xi(c[0])].apply(u,c[3]):1==a.length&&fo(a)?u[s]():u.thru(a)}return function(){var t=arguments,n=t[0];if(u&&1==t.length&&Ia(n))return u.plant(n).value();for(var i=0,o=r?e[i].apply(this,t):n;++i<r;)o=e[i].call(this,o);return o}}))}function Pi(t,e,r,i,o,a,u,s,c,f){var l=128&e,h=1&e,p=2&e,d=24&e,y=512&e,v=p?void 0:Oi(t);return function g(){for(var m=arguments.length,b=n(m),w=m;w--;)b[w]=arguments[w];if(d)var _=$i(g),x=Ne(b,_);if(i&&(b=vi(b,i,o,d)),a&&(b=gi(b,a,u,d)),m-=x,d&&m<f){var M=ze(b,_);return Ni(t,e,Pi,g.placeholder,r,b,M,s,c,f-m)}var E=h?r:this,S=p?E[t]:t;return m=b.length,s?b=mo(b,s):y&&m>1&&b.reverse(),l&&c<m&&(b.length=c),this&&this!==Ht&&this instanceof g&&(S=v||Oi(S)),S.apply(E,b)}}function ji(t,e){return function(r,n){return function(t,e,r,n){return cn(t,(function(t,i,o){e(n,r(t),i,o)})),n}(r,t,e(n),{})}}function Ai(t,e){return function(r,n){var i;if(void 0===r&&void 0===n)return e;if(void 0!==r&&(i=r),void 0!==n){if(void 0===i)return n;"string"==typeof r||"string"==typeof n?(r=Jn(r),n=Jn(n)):(r=Zn(r),n=Zn(n)),i=t(r,n)}return i}}function Ri(t){return Yi((function(e){return e=pe(e,Ae(Zi())),Gn((function(r){var n=this;return t(e,(function(t){return oe(t,n,r)}))}))}))}function Ti(t,e){var r=(e=void 0===e?" ":Jn(e)).length;if(r<2)return r?Dn(e,t):e;var n=Dn(e,Qe(t/We(e)));return qe(e)?fi(He(n),0,t).join(""):n.slice(0,t)}function Ii(t){return function(e,r,i){return i&&"number"!=typeof i&&so(e,r,i)&&(r=i=void 0),e=nu(e),void 0===r?(r=e,e=0):r=nu(r),function(t,e,r,i){for(var o=-1,a=ar(Qe((e-t)/(r||1)),0),u=n(a);a--;)u[i?a:++o]=t,t+=r;return u}(e,r,i=void 0===i?e<r?1:-1:nu(i),t)}}function Fi(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=au(e),r=au(r)),t(e,r)}}function Ni(t,e,r,n,i,o,a,u,s,c){var f=8&e;e|=f?32:64,4&(e&=~(f?64:32))||(e&=-4);var l=[t,e,i,f?o:void 0,f?a:void 0,f?void 0:o,f?void 0:a,u,s,c],h=r.apply(void 0,l);return fo(t)&&wo(h,l),h.placeholder=n,Mo(h,t,e)}function Ci(t){var e=pt[t];return function(t,r){if(t=au(t),(r=null==r?0:ur(iu(r),292))&&nr(t)){var n=(su(t)+"e").split("e");return+((n=(su(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Di=yr&&1/Ve(new yr([,-0]))[1]==1/0?function(t){return new yr(t)}:Ju;function Gi(t){return function(e){var r=no(e);return r==y?Be(e):r==b?Ye(e):function(t,e){return pe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function qi(t,e,r,i,u,s,c,f){var l=2&e;if(!l&&"function"!=typeof t)throw new gt(o);var h=i?i.length:0;if(h||(e&=-97,i=u=void 0),c=void 0===c?c:ar(iu(c),0),f=void 0===f?f:iu(f),h-=u?u.length:0,64&e){var p=i,d=u;i=u=void 0}var y=l?void 0:Ki(t),v=[t,e,r,i,u,p,d,s,c,f];if(y&&function(t,e){var r=t[1],n=e[1],i=r|n,o=i<131,u=128==n&&8==r||128==n&&256==r&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!o&&!u)return t;1&n&&(t[2]=e[2],i|=1&r?0:4);var s=e[3];if(s){var c=t[3];t[3]=c?vi(c,s,e[4]):s,t[4]=c?ze(t[3],a):e[4]}(s=e[5])&&(c=t[5],t[5]=c?gi(c,s,e[6]):s,t[6]=c?ze(t[5],a):e[6]);(s=e[7])&&(t[7]=s);128&n&&(t[8]=null==t[8]?e[8]:ur(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(v,y),t=v[0],e=v[1],r=v[2],i=v[3],u=v[4],!(f=v[9]=void 0===v[9]?l?0:t.length:ar(v[9]-h,0))&&24&e&&(e&=-25),e&&1!=e)g=8==e||16==e?function(t,e,r){var i=Oi(t);return function o(){for(var a=arguments.length,u=n(a),s=a,c=$i(o);s--;)u[s]=arguments[s];var f=a<3&&u[0]!==c&&u[a-1]!==c?[]:ze(u,c);if((a-=f.length)<r)return Ni(t,e,Pi,o.placeholder,void 0,u,f,void 0,void 0,r-a);var l=this&&this!==Ht&&this instanceof o?i:t;return oe(l,this,u)}}(t,e,f):32!=e&&33!=e||u.length?Pi.apply(void 0,v):function(t,e,r,i){var o=1&e,a=Oi(t);return function e(){for(var u=-1,s=arguments.length,c=-1,f=i.length,l=n(f+s),h=this&&this!==Ht&&this instanceof e?a:t;++c<f;)l[c]=i[c];for(;s--;)l[c++]=arguments[++u];return oe(h,o?r:this,l)}}(t,e,r,i);else var g=function(t,e,r){var n=1&e,i=Oi(t);return function e(){var o=this&&this!==Ht&&this instanceof e?i:t;return o.apply(n?r:this,arguments)}}(t,e,r);return Mo((y?zn:wo)(g,v),t,e)}function Bi(t,e,r,n){return void 0===t||ja(t,wt[r])&&!Mt.call(n,r)?e:t}function Ui(t,e,r,n,i,o){return Va(t)&&Va(e)&&(o.set(e,t),An(t,e,void 0,Ui,o),o.delete(e)),t}function zi(t){return Ka(t)?void 0:t}function Vi(t,e,r,n,i,o){var a=1&r,u=t.length,s=e.length;if(u!=s&&!(a&&s>u))return!1;var c=o.get(t),f=o.get(e);if(c&&f)return c==e&&f==t;var l=-1,h=!0,p=2&r?new Nr:void 0;for(o.set(t,e),o.set(e,t);++l<u;){var d=t[l],y=e[l];if(n)var v=a?n(y,d,l,e,t,o):n(d,y,l,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!ge(e,(function(t,e){if(!Te(p,e)&&(d===t||i(d,t,r,n,o)))return p.push(e)}))){h=!1;break}}else if(d!==y&&!i(d,y,r,n,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function Yi(t){return xo(vo(t,void 0,Fo),t+"")}function Wi(t){return pn(t,_u,eo)}function Hi(t){return pn(t,xu,ro)}var Ki=mr?function(t){return mr.get(t)}:Ju;function Xi(t){for(var e=t.name+"",r=br[e],n=Mt.call(br,e)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==t)return i.name}return e}function $i(t){return(Mt.call(Lr,"placeholder")?Lr:t).placeholder}function Zi(){var t=Lr.iteratee||Ku;return t=t===Ku?En:t,arguments.length?t(arguments[0],arguments[1]):t}function Ji(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Qi(t){for(var e=_u(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,po(i)]}return e}function to(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Mn(r)?r:void 0}var eo=er?function(t){return null==t?[]:(t=dt(t),fe(er(t),(function(e){return Wt.call(t,e)})))}:os,ro=er?function(t){for(var e=[];t;)de(e,eo(t)),t=Ut(t);return e}:os,no=dn;function io(t,e,r){for(var n=-1,i=(e=si(e,t)).length,o=!1;++n<i;){var a=ko(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&za(i)&&uo(a,i)&&(Ia(t)||Ta(t))}function oo(t){return"function"!=typeof t.constructor||ho(t)?{}:Pr(Ut(t))}function ao(t){return Ia(t)||Ta(t)||!!(Xt&&t&&t[Xt])}function uo(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&st.test(t))&&t>-1&&t%1==0&&t<e}function so(t,e,r){if(!Va(r))return!1;var n=typeof e;return!!("number"==n?Na(r)&&uo(e,r.length):"string"==n&&e in r)&&ja(r[e],t)}function co(t,e){if(Ia(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Ja(t))||(V.test(t)||!z.test(t)||null!=e&&t in dt(e))}function fo(t){var e=Xi(t),r=Lr[e];if("function"!=typeof r||!(e in Rr.prototype))return!1;if(t===r)return!0;var n=Ki(r);return!!n&&t===n[0]}(hr&&no(new hr(new ArrayBuffer(1)))!=E||pr&&no(new pr)!=y||dr&&"[object Promise]"!=no(dr.resolve())||yr&&no(new yr)!=b||vr&&no(new vr)!=x)&&(no=function(t){var e=dn(t),r=e==g?t.constructor:void 0,n=r?Lo(r):"";if(n)switch(n){case wr:return E;case _r:return y;case xr:return"[object Promise]";case Mr:return b;case Er:return x}return e});var lo=_t?Ba:as;function ho(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||wt)}function po(t){return t==t&&!Va(t)}function yo(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in dt(r)))}}function vo(t,e,r){return e=ar(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=ar(i.length-e,0),u=n(a);++o<a;)u[o]=i[e+o];o=-1;for(var s=n(e+1);++o<e;)s[o]=i[o];return s[e]=r(u),oe(t,this,s)}}function go(t,e){return e.length<2?t:hn(t,Wn(e,0,-1))}function mo(t,e){for(var r=t.length,n=ur(e.length,r),i=mi(t);n--;){var o=e[n];t[n]=uo(o,r)?i[o]:void 0}return t}function bo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var wo=Eo(zn),_o=Je||function(t,e){return Ht.setTimeout(t,e)},xo=Eo(Vn);function Mo(t,e,r){var n=e+"";return xo(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace($,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return ue(u,(function(r){var n="_."+r[0];e&r[1]&&!le(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(Z);return e?e[1].split(J):[]}(n),r)))}function Eo(t){var e=0,r=0;return function(){var n=sr(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function So(t,e){var r=-1,n=t.length,i=n-1;for(e=void 0===e?n:e;++r<e;){var o=Cn(r,i),a=t[o];t[o]=t[r],t[r]=a}return t.length=e,t}var Oo=function(t){var e=Ea(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Y,(function(t,r,n,i){e.push(n?i.replace(et,"$1"):r||t)})),e}));function ko(t){if("string"==typeof t||Ja(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Lo(t){if(null!=t){try{return xt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Po(t){if(t instanceof Rr)return t.clone();var e=new Ar(t.__wrapped__,t.__chain__);return e.__actions__=mi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var jo=Gn((function(t,e){return Ca(t)?Qr(t,an(e,1,Ca,!0)):[]})),Ao=Gn((function(t,e){var r=qo(e);return Ca(r)&&(r=void 0),Ca(t)?Qr(t,an(e,1,Ca,!0),Zi(r,2)):[]})),Ro=Gn((function(t,e){var r=qo(e);return Ca(r)&&(r=void 0),Ca(t)?Qr(t,an(e,1,Ca,!0),void 0,r):[]}));function To(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:iu(r);return i<0&&(i=ar(n+i,0)),we(t,Zi(e,3),i)}function Io(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=n-1;return void 0!==r&&(i=iu(r),i=r<0?ar(n+i,0):ur(i,n-1)),we(t,Zi(e,3),i,!0)}function Fo(t){return(null==t?0:t.length)?an(t,1):[]}function No(t){return t&&t.length?t[0]:void 0}var Co=Gn((function(t){var e=pe(t,ai);return e.length&&e[0]===t[0]?mn(e):[]})),Do=Gn((function(t){var e=qo(t),r=pe(t,ai);return e===qo(r)?e=void 0:r.pop(),r.length&&r[0]===t[0]?mn(r,Zi(e,2)):[]})),Go=Gn((function(t){var e=qo(t),r=pe(t,ai);return(e="function"==typeof e?e:void 0)&&r.pop(),r.length&&r[0]===t[0]?mn(r,void 0,e):[]}));function qo(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Bo=Gn(Uo);function Uo(t,e){return t&&t.length&&e&&e.length?Fn(t,e):t}var zo=Yi((function(t,e){var r=null==t?0:t.length,n=Kr(t,e);return Nn(t,pe(e,(function(t){return uo(t,r)?+t:t})).sort(yi)),n}));function Vo(t){return null==t?t:lr.call(t)}var Yo=Gn((function(t){return Qn(an(t,1,Ca,!0))})),Wo=Gn((function(t){var e=qo(t);return Ca(e)&&(e=void 0),Qn(an(t,1,Ca,!0),Zi(e,2))})),Ho=Gn((function(t){var e=qo(t);return e="function"==typeof e?e:void 0,Qn(an(t,1,Ca,!0),void 0,e)}));function Ko(t){if(!t||!t.length)return[];var e=0;return t=fe(t,(function(t){if(Ca(t))return e=ar(t.length,e),!0})),Pe(e,(function(e){return pe(t,Se(e))}))}function Xo(t,e){if(!t||!t.length)return[];var r=Ko(t);return null==e?r:pe(r,(function(t){return oe(e,void 0,t)}))}var $o=Gn((function(t,e){return Ca(t)?Qr(t,e):[]})),Zo=Gn((function(t){return ii(fe(t,Ca))})),Jo=Gn((function(t){var e=qo(t);return Ca(e)&&(e=void 0),ii(fe(t,Ca),Zi(e,2))})),Qo=Gn((function(t){var e=qo(t);return e="function"==typeof e?e:void 0,ii(fe(t,Ca),void 0,e)})),ta=Gn(Ko);var ea=Gn((function(t){var e=t.length,r=e>1?t[e-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Xo(t,r)}));function ra(t){var e=Lr(t);return e.__chain__=!0,e}function na(t,e){return e(t)}var ia=Yi((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,i=function(e){return Kr(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Rr&&uo(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Ar(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var oa=wi((function(t,e,r){Mt.call(t,r)?++t[r]:Hr(t,r,1)}));var aa=ki(To),ua=ki(Io);function sa(t,e){return(Ia(t)?ue:tn)(t,Zi(e,3))}function ca(t,e){return(Ia(t)?se:en)(t,Zi(e,3))}var fa=wi((function(t,e,r){Mt.call(t,r)?t[r].push(e):Hr(t,r,[e])}));var la=Gn((function(t,e,r){var i=-1,o="function"==typeof e,a=Na(t)?n(t.length):[];return tn(t,(function(t){a[++i]=o?oe(e,t,r):bn(t,e,r)})),a})),ha=wi((function(t,e,r){Hr(t,r,e)}));function pa(t,e){return(Ia(t)?pe:Ln)(t,Zi(e,3))}var da=wi((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]}));var ya=Gn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&so(t,e[0],e[1])?e=[]:r>2&&so(e[0],e[1],e[2])&&(e=[e[0]]),Tn(t,an(e,1),[])})),va=Ze||function(){return Ht.Date.now()};function ga(t,e,r){return e=r?void 0:e,qi(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ma(t,e){var r;if("function"!=typeof e)throw new gt(o);return t=iu(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=void 0),r}}var ba=Gn((function(t,e,r){var n=1;if(r.length){var i=ze(r,$i(ba));n|=32}return qi(t,n,e,r,i)})),wa=Gn((function(t,e,r){var n=3;if(r.length){var i=ze(r,$i(wa));n|=32}return qi(e,n,t,r,i)}));function _a(t,e,r){var n,i,a,u,s,c,f=0,l=!1,h=!1,p=!0;if("function"!=typeof t)throw new gt(o);function d(e){var r=n,o=i;return n=i=void 0,f=e,u=t.apply(o,r)}function y(t){return f=t,s=_o(g,e),l?d(t):u}function v(t){var r=t-c;return void 0===c||r>=e||r<0||h&&t-f>=a}function g(){var t=va();if(v(t))return m(t);s=_o(g,function(t){var r=e-(t-c);return h?ur(r,a-(t-f)):r}(t))}function m(t){return s=void 0,p&&n?d(t):(n=i=void 0,u)}function b(){var t=va(),r=v(t);if(n=arguments,i=this,c=t,r){if(void 0===s)return y(c);if(h)return li(s),s=_o(g,e),d(c)}return void 0===s&&(s=_o(g,e)),u}return e=au(e)||0,Va(r)&&(l=!!r.leading,a=(h="maxWait"in r)?ar(au(r.maxWait)||0,e):a,p="trailing"in r?!!r.trailing:p),b.cancel=function(){void 0!==s&&li(s),f=0,n=c=i=s=void 0},b.flush=function(){return void 0===s?u:m(va())},b}var xa=Gn((function(t,e){return Jr(t,1,e)})),Ma=Gn((function(t,e,r){return Jr(t,au(e)||0,r)}));function Ea(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new gt(o);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Ea.Cache||Fr),r}function Sa(t){if("function"!=typeof t)throw new gt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ea.Cache=Fr;var Oa=ci((function(t,e){var r=(e=1==e.length&&Ia(e[0])?pe(e[0],Ae(Zi())):pe(an(e,1),Ae(Zi()))).length;return Gn((function(n){for(var i=-1,o=ur(n.length,r);++i<o;)n[i]=e[i].call(this,n[i]);return oe(t,this,n)}))})),ka=Gn((function(t,e){return qi(t,32,void 0,e,ze(e,$i(ka)))})),La=Gn((function(t,e){return qi(t,64,void 0,e,ze(e,$i(La)))})),Pa=Yi((function(t,e){return qi(t,256,void 0,void 0,void 0,e)}));function ja(t,e){return t===e||t!=t&&e!=e}var Aa=Fi(yn),Ra=Fi((function(t,e){return t>=e})),Ta=wn(function(){return arguments}())?wn:function(t){return Ya(t)&&Mt.call(t,"callee")&&!Wt.call(t,"callee")},Ia=n.isArray,Fa=Qt?Ae(Qt):function(t){return Ya(t)&&dn(t)==M};function Na(t){return null!=t&&za(t.length)&&!Ba(t)}function Ca(t){return Ya(t)&&Na(t)}var Da=rr||as,Ga=te?Ae(te):function(t){return Ya(t)&&dn(t)==l};function qa(t){if(!Ya(t))return!1;var e=dn(t);return e==h||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ka(t)}function Ba(t){if(!Va(t))return!1;var e=dn(t);return e==p||e==d||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ua(t){return"number"==typeof t&&t==iu(t)}function za(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Va(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ya(t){return null!=t&&"object"==typeof t}var Wa=ee?Ae(ee):function(t){return Ya(t)&&no(t)==y};function Ha(t){return"number"==typeof t||Ya(t)&&dn(t)==v}function Ka(t){if(!Ya(t)||dn(t)!=g)return!1;var e=Ut(t);if(null===e)return!0;var r=Mt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&xt.call(r)==kt}var Xa=re?Ae(re):function(t){return Ya(t)&&dn(t)==m};var $a=ne?Ae(ne):function(t){return Ya(t)&&no(t)==b};function Za(t){return"string"==typeof t||!Ia(t)&&Ya(t)&&dn(t)==w}function Ja(t){return"symbol"==typeof t||Ya(t)&&dn(t)==_}var Qa=ie?Ae(ie):function(t){return Ya(t)&&za(t.length)&&!!qt[dn(t)]};var tu=Fi(kn),eu=Fi((function(t,e){return t<=e}));function ru(t){if(!t)return[];if(Na(t))return Za(t)?He(t):mi(t);if(Zt&&t[Zt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Zt]());var e=no(t);return(e==y?Be:e==b?Ve:ju)(t)}function nu(t){return t?(t=au(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function iu(t){var e=nu(t),r=e%1;return e==e?r?e-r:e:0}function ou(t){return t?Xr(iu(t),0,4294967295):0}function au(t){if("number"==typeof t)return t;if(Ja(t))return NaN;if(Va(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Va(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=je(t);var r=ot.test(t);return r||ut.test(t)?Vt(t.slice(2),r?2:8):it.test(t)?NaN:+t}function uu(t){return bi(t,xu(t))}function su(t){return null==t?"":Jn(t)}var cu=_i((function(t,e){if(ho(e)||Na(e))bi(e,_u(e),t);else for(var r in e)Mt.call(e,r)&&zr(t,r,e[r])})),fu=_i((function(t,e){bi(e,xu(e),t)})),lu=_i((function(t,e,r,n){bi(e,xu(e),t,n)})),hu=_i((function(t,e,r,n){bi(e,_u(e),t,n)})),pu=Yi(Kr);var du=Gn((function(t,e){t=dt(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&so(e[0],e[1],i)&&(n=1);++r<n;)for(var o=e[r],a=xu(o),u=-1,s=a.length;++u<s;){var c=a[u],f=t[c];(void 0===f||ja(f,wt[c])&&!Mt.call(t,c))&&(t[c]=o[c])}return t})),yu=Gn((function(t){return t.push(void 0,Ui),oe(Eu,void 0,t)}));function vu(t,e,r){var n=null==t?void 0:hn(t,e);return void 0===n?r:n}function gu(t,e){return null!=t&&io(t,e,gn)}var mu=ji((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Ot.call(e)),t[e]=r}),Vu(Hu)),bu=ji((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Ot.call(e)),Mt.call(t,e)?t[e].push(r):t[e]=[r]}),Zi),wu=Gn(bn);function _u(t){return Na(t)?Dr(t):Sn(t)}function xu(t){return Na(t)?Dr(t,!0):On(t)}var Mu=_i((function(t,e,r){An(t,e,r)})),Eu=_i((function(t,e,r,n){An(t,e,r,n)})),Su=Yi((function(t,e){var r={};if(null==t)return r;var n=!1;e=pe(e,(function(e){return e=si(e,t),n||(n=e.length>1),e})),bi(t,Hi(t),r),n&&(r=$r(r,7,zi));for(var i=e.length;i--;)ti(r,e[i]);return r}));var Ou=Yi((function(t,e){return null==t?{}:function(t,e){return In(t,e,(function(e,r){return gu(t,r)}))}(t,e)}));function ku(t,e){if(null==t)return{};var r=pe(Hi(t),(function(t){return[t]}));return e=Zi(e),In(t,r,(function(t,r){return e(t,r[0])}))}var Lu=Gi(_u),Pu=Gi(xu);function ju(t){return null==t?[]:Re(t,_u(t))}var Au=Si((function(t,e,r){return e=e.toLowerCase(),t+(r?Ru(e):e)}));function Ru(t){return qu(su(t).toLowerCase())}function Tu(t){return(t=su(t))&&t.replace(ct,Ce).replace(Tt,"")}var Iu=Si((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Fu=Si((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Nu=Ei("toLowerCase");var Cu=Si((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()}));var Du=Si((function(t,e,r){return t+(r?" ":"")+qu(e)}));var Gu=Si((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),qu=Ei("toUpperCase");function Bu(t,e,r){return t=su(t),void 0===(e=r?void 0:e)?function(t){return Ct.test(t)}(t)?function(t){return t.match(Ft)||[]}(t):function(t){return t.match(Q)||[]}(t):t.match(e)||[]}var Uu=Gn((function(t,e){try{return oe(t,void 0,e)}catch(t){return qa(t)?t:new X(t)}})),zu=Yi((function(t,e){return ue(e,(function(e){e=ko(e),Hr(t,e,ba(t[e],t))})),t}));function Vu(t){return function(){return t}}var Yu=Li(),Wu=Li(!0);function Hu(t){return t}function Ku(t){return En("function"==typeof t?t:$r(t,1))}var Xu=Gn((function(t,e){return function(r){return bn(r,t,e)}})),$u=Gn((function(t,e){return function(r){return bn(t,r,e)}}));function Zu(t,e,r){var n=_u(e),i=ln(e,n);null!=r||Va(e)&&(i.length||!n.length)||(r=e,e=t,t=this,i=ln(e,_u(e)));var o=!(Va(r)&&"chain"in r&&!r.chain),a=Ba(t);return ue(i,(function(r){var n=e[r];t[r]=n,a&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__),i=r.__actions__=mi(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,de([this.value()],arguments))})})),t}function Ju(){}var Qu=Ri(pe),ts=Ri(ce),es=Ri(ge);function rs(t){return co(t)?Se(ko(t)):function(t){return function(e){return hn(e,t)}}(t)}var ns=Ii(),is=Ii(!0);function os(){return[]}function as(){return!1}var us=Ai((function(t,e){return t+e}),0),ss=Ci("ceil"),cs=Ai((function(t,e){return t/e}),1),fs=Ci("floor");var ls,hs=Ai((function(t,e){return t*e}),1),ps=Ci("round"),ds=Ai((function(t,e){return t-e}),0);return Lr.after=function(t,e){if("function"!=typeof e)throw new gt(o);return t=iu(t),function(){if(--t<1)return e.apply(this,arguments)}},Lr.ary=ga,Lr.assign=cu,Lr.assignIn=fu,Lr.assignInWith=lu,Lr.assignWith=hu,Lr.at=pu,Lr.before=ma,Lr.bind=ba,Lr.bindAll=zu,Lr.bindKey=wa,Lr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ia(t)?t:[t]},Lr.chain=ra,Lr.chunk=function(t,e,r){e=(r?so(t,e,r):void 0===e)?1:ar(iu(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,u=n(Qe(i/e));o<i;)u[a++]=Wn(t,o,o+=e);return u},Lr.compact=function(t){for(var e=-1,r=null==t?0:t.length,n=0,i=[];++e<r;){var o=t[e];o&&(i[n++]=o)}return i},Lr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return de(Ia(r)?mi(r):[r],an(e,1))},Lr.cond=function(t){var e=null==t?0:t.length,r=Zi();return t=e?pe(t,(function(t){if("function"!=typeof t[1])throw new gt(o);return[r(t[0]),t[1]]})):[],Gn((function(r){for(var n=-1;++n<e;){var i=t[n];if(oe(i[0],this,r))return oe(i[1],this,r)}}))},Lr.conforms=function(t){return function(t){var e=_u(t);return function(r){return Zr(r,t,e)}}($r(t,1))},Lr.constant=Vu,Lr.countBy=oa,Lr.create=function(t,e){var r=Pr(t);return null==e?r:Wr(r,e)},Lr.curry=function t(e,r,n){var i=qi(e,8,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return i.placeholder=t.placeholder,i},Lr.curryRight=function t(e,r,n){var i=qi(e,16,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return i.placeholder=t.placeholder,i},Lr.debounce=_a,Lr.defaults=du,Lr.defaultsDeep=yu,Lr.defer=xa,Lr.delay=Ma,Lr.difference=jo,Lr.differenceBy=Ao,Lr.differenceWith=Ro,Lr.drop=function(t,e,r){var n=null==t?0:t.length;return n?Wn(t,(e=r||void 0===e?1:iu(e))<0?0:e,n):[]},Lr.dropRight=function(t,e,r){var n=null==t?0:t.length;return n?Wn(t,0,(e=n-(e=r||void 0===e?1:iu(e)))<0?0:e):[]},Lr.dropRightWhile=function(t,e){return t&&t.length?ri(t,Zi(e,3),!0,!0):[]},Lr.dropWhile=function(t,e){return t&&t.length?ri(t,Zi(e,3),!0):[]},Lr.fill=function(t,e,r,n){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&so(t,e,r)&&(r=0,n=i),function(t,e,r,n){var i=t.length;for((r=iu(r))<0&&(r=-r>i?0:i+r),(n=void 0===n||n>i?i:iu(n))<0&&(n+=i),n=r>n?0:ou(n);r<n;)t[r++]=e;return t}(t,e,r,n)):[]},Lr.filter=function(t,e){return(Ia(t)?fe:on)(t,Zi(e,3))},Lr.flatMap=function(t,e){return an(pa(t,e),1)},Lr.flatMapDeep=function(t,e){return an(pa(t,e),1/0)},Lr.flatMapDepth=function(t,e,r){return r=void 0===r?1:iu(r),an(pa(t,e),r)},Lr.flatten=Fo,Lr.flattenDeep=function(t){return(null==t?0:t.length)?an(t,1/0):[]},Lr.flattenDepth=function(t,e){return(null==t?0:t.length)?an(t,e=void 0===e?1:iu(e)):[]},Lr.flip=function(t){return qi(t,512)},Lr.flow=Yu,Lr.flowRight=Wu,Lr.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var i=t[e];n[i[0]]=i[1]}return n},Lr.functions=function(t){return null==t?[]:ln(t,_u(t))},Lr.functionsIn=function(t){return null==t?[]:ln(t,xu(t))},Lr.groupBy=fa,Lr.initial=function(t){return(null==t?0:t.length)?Wn(t,0,-1):[]},Lr.intersection=Co,Lr.intersectionBy=Do,Lr.intersectionWith=Go,Lr.invert=mu,Lr.invertBy=bu,Lr.invokeMap=la,Lr.iteratee=Ku,Lr.keyBy=ha,Lr.keys=_u,Lr.keysIn=xu,Lr.map=pa,Lr.mapKeys=function(t,e){var r={};return e=Zi(e,3),cn(t,(function(t,n,i){Hr(r,e(t,n,i),t)})),r},Lr.mapValues=function(t,e){var r={};return e=Zi(e,3),cn(t,(function(t,n,i){Hr(r,n,e(t,n,i))})),r},Lr.matches=function(t){return Pn($r(t,1))},Lr.matchesProperty=function(t,e){return jn(t,$r(e,1))},Lr.memoize=Ea,Lr.merge=Mu,Lr.mergeWith=Eu,Lr.method=Xu,Lr.methodOf=$u,Lr.mixin=Zu,Lr.negate=Sa,Lr.nthArg=function(t){return t=iu(t),Gn((function(e){return Rn(e,t)}))},Lr.omit=Su,Lr.omitBy=function(t,e){return ku(t,Sa(Zi(e)))},Lr.once=function(t){return ma(2,t)},Lr.orderBy=function(t,e,r,n){return null==t?[]:(Ia(e)||(e=null==e?[]:[e]),Ia(r=n?void 0:r)||(r=null==r?[]:[r]),Tn(t,e,r))},Lr.over=Qu,Lr.overArgs=Oa,Lr.overEvery=ts,Lr.overSome=es,Lr.partial=ka,Lr.partialRight=La,Lr.partition=da,Lr.pick=Ou,Lr.pickBy=ku,Lr.property=rs,Lr.propertyOf=function(t){return function(e){return null==t?void 0:hn(t,e)}},Lr.pull=Bo,Lr.pullAll=Uo,Lr.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Fn(t,e,Zi(r,2)):t},Lr.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Fn(t,e,void 0,r):t},Lr.pullAt=zo,Lr.range=ns,Lr.rangeRight=is,Lr.rearg=Pa,Lr.reject=function(t,e){return(Ia(t)?fe:on)(t,Sa(Zi(e,3)))},Lr.remove=function(t,e){var r=[];if(!t||!t.length)return r;var n=-1,i=[],o=t.length;for(e=Zi(e,3);++n<o;){var a=t[n];e(a,n,t)&&(r.push(a),i.push(n))}return Nn(t,i),r},Lr.rest=function(t,e){if("function"!=typeof t)throw new gt(o);return Gn(t,e=void 0===e?e:iu(e))},Lr.reverse=Vo,Lr.sampleSize=function(t,e,r){return e=(r?so(t,e,r):void 0===e)?1:iu(e),(Ia(t)?qr:Bn)(t,e)},Lr.set=function(t,e,r){return null==t?t:Un(t,e,r)},Lr.setWith=function(t,e,r,n){return n="function"==typeof n?n:void 0,null==t?t:Un(t,e,r,n)},Lr.shuffle=function(t){return(Ia(t)?Br:Yn)(t)},Lr.slice=function(t,e,r){var n=null==t?0:t.length;return n?(r&&"number"!=typeof r&&so(t,e,r)?(e=0,r=n):(e=null==e?0:iu(e),r=void 0===r?n:iu(r)),Wn(t,e,r)):[]},Lr.sortBy=ya,Lr.sortedUniq=function(t){return t&&t.length?$n(t):[]},Lr.sortedUniqBy=function(t,e){return t&&t.length?$n(t,Zi(e,2)):[]},Lr.split=function(t,e,r){return r&&"number"!=typeof r&&so(t,e,r)&&(e=r=void 0),(r=void 0===r?4294967295:r>>>0)?(t=su(t))&&("string"==typeof e||null!=e&&!Xa(e))&&!(e=Jn(e))&&qe(t)?fi(He(t),0,r):t.split(e,r):[]},Lr.spread=function(t,e){if("function"!=typeof t)throw new gt(o);return e=null==e?0:ar(iu(e),0),Gn((function(r){var n=r[e],i=fi(r,0,e);return n&&de(i,n),oe(t,this,i)}))},Lr.tail=function(t){var e=null==t?0:t.length;return e?Wn(t,1,e):[]},Lr.take=function(t,e,r){return t&&t.length?Wn(t,0,(e=r||void 0===e?1:iu(e))<0?0:e):[]},Lr.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?Wn(t,(e=n-(e=r||void 0===e?1:iu(e)))<0?0:e,n):[]},Lr.takeRightWhile=function(t,e){return t&&t.length?ri(t,Zi(e,3),!1,!0):[]},Lr.takeWhile=function(t,e){return t&&t.length?ri(t,Zi(e,3)):[]},Lr.tap=function(t,e){return e(t),t},Lr.throttle=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new gt(o);return Va(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),_a(t,e,{leading:n,maxWait:e,trailing:i})},Lr.thru=na,Lr.toArray=ru,Lr.toPairs=Lu,Lr.toPairsIn=Pu,Lr.toPath=function(t){return Ia(t)?pe(t,ko):Ja(t)?[t]:mi(Oo(su(t)))},Lr.toPlainObject=uu,Lr.transform=function(t,e,r){var n=Ia(t),i=n||Da(t)||Qa(t);if(e=Zi(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:Va(t)&&Ba(o)?Pr(Ut(t)):{}}return(i?ue:cn)(t,(function(t,n,i){return e(r,t,n,i)})),r},Lr.unary=function(t){return ga(t,1)},Lr.union=Yo,Lr.unionBy=Wo,Lr.unionWith=Ho,Lr.uniq=function(t){return t&&t.length?Qn(t):[]},Lr.uniqBy=function(t,e){return t&&t.length?Qn(t,Zi(e,2)):[]},Lr.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Qn(t,void 0,e):[]},Lr.unset=function(t,e){return null==t||ti(t,e)},Lr.unzip=Ko,Lr.unzipWith=Xo,Lr.update=function(t,e,r){return null==t?t:ei(t,e,ui(r))},Lr.updateWith=function(t,e,r,n){return n="function"==typeof n?n:void 0,null==t?t:ei(t,e,ui(r),n)},Lr.values=ju,Lr.valuesIn=function(t){return null==t?[]:Re(t,xu(t))},Lr.without=$o,Lr.words=Bu,Lr.wrap=function(t,e){return ka(ui(e),t)},Lr.xor=Zo,Lr.xorBy=Jo,Lr.xorWith=Qo,Lr.zip=ta,Lr.zipObject=function(t,e){return oi(t||[],e||[],zr)},Lr.zipObjectDeep=function(t,e){return oi(t||[],e||[],Un)},Lr.zipWith=ea,Lr.entries=Lu,Lr.entriesIn=Pu,Lr.extend=fu,Lr.extendWith=lu,Zu(Lr,Lr),Lr.add=us,Lr.attempt=Uu,Lr.camelCase=Au,Lr.capitalize=Ru,Lr.ceil=ss,Lr.clamp=function(t,e,r){return void 0===r&&(r=e,e=void 0),void 0!==r&&(r=(r=au(r))==r?r:0),void 0!==e&&(e=(e=au(e))==e?e:0),Xr(au(t),e,r)},Lr.clone=function(t){return $r(t,4)},Lr.cloneDeep=function(t){return $r(t,5)},Lr.cloneDeepWith=function(t,e){return $r(t,5,e="function"==typeof e?e:void 0)},Lr.cloneWith=function(t,e){return $r(t,4,e="function"==typeof e?e:void 0)},Lr.conformsTo=function(t,e){return null==e||Zr(t,e,_u(e))},Lr.deburr=Tu,Lr.defaultTo=function(t,e){return null==t||t!=t?e:t},Lr.divide=cs,Lr.endsWith=function(t,e,r){t=su(t),e=Jn(e);var n=t.length,i=r=void 0===r?n:Xr(iu(r),0,n);return(r-=e.length)>=0&&t.slice(r,i)==e},Lr.eq=ja,Lr.escape=function(t){return(t=su(t))&&G.test(t)?t.replace(C,De):t},Lr.escapeRegExp=function(t){return(t=su(t))&&H.test(t)?t.replace(W,"\\$&"):t},Lr.every=function(t,e,r){var n=Ia(t)?ce:rn;return r&&so(t,e,r)&&(e=void 0),n(t,Zi(e,3))},Lr.find=aa,Lr.findIndex=To,Lr.findKey=function(t,e){return be(t,Zi(e,3),cn)},Lr.findLast=ua,Lr.findLastIndex=Io,Lr.findLastKey=function(t,e){return be(t,Zi(e,3),fn)},Lr.floor=fs,Lr.forEach=sa,Lr.forEachRight=ca,Lr.forIn=function(t,e){return null==t?t:un(t,Zi(e,3),xu)},Lr.forInRight=function(t,e){return null==t?t:sn(t,Zi(e,3),xu)},Lr.forOwn=function(t,e){return t&&cn(t,Zi(e,3))},Lr.forOwnRight=function(t,e){return t&&fn(t,Zi(e,3))},Lr.get=vu,Lr.gt=Aa,Lr.gte=Ra,Lr.has=function(t,e){return null!=t&&io(t,e,vn)},Lr.hasIn=gu,Lr.head=No,Lr.identity=Hu,Lr.includes=function(t,e,r,n){t=Na(t)?t:ju(t),r=r&&!n?iu(r):0;var i=t.length;return r<0&&(r=ar(i+r,0)),Za(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&_e(t,e,r)>-1},Lr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:iu(r);return i<0&&(i=ar(n+i,0)),_e(t,e,i)},Lr.inRange=function(t,e,r){return e=nu(e),void 0===r?(r=e,e=0):r=nu(r),function(t,e,r){return t>=ur(e,r)&&t<ar(e,r)}(t=au(t),e,r)},Lr.invoke=wu,Lr.isArguments=Ta,Lr.isArray=Ia,Lr.isArrayBuffer=Fa,Lr.isArrayLike=Na,Lr.isArrayLikeObject=Ca,Lr.isBoolean=function(t){return!0===t||!1===t||Ya(t)&&dn(t)==f},Lr.isBuffer=Da,Lr.isDate=Ga,Lr.isElement=function(t){return Ya(t)&&1===t.nodeType&&!Ka(t)},Lr.isEmpty=function(t){if(null==t)return!0;if(Na(t)&&(Ia(t)||"string"==typeof t||"function"==typeof t.splice||Da(t)||Qa(t)||Ta(t)))return!t.length;var e=no(t);if(e==y||e==b)return!t.size;if(ho(t))return!Sn(t).length;for(var r in t)if(Mt.call(t,r))return!1;return!0},Lr.isEqual=function(t,e){return _n(t,e)},Lr.isEqualWith=function(t,e,r){var n=(r="function"==typeof r?r:void 0)?r(t,e):void 0;return void 0===n?_n(t,e,void 0,r):!!n},Lr.isError=qa,Lr.isFinite=function(t){return"number"==typeof t&&nr(t)},Lr.isFunction=Ba,Lr.isInteger=Ua,Lr.isLength=za,Lr.isMap=Wa,Lr.isMatch=function(t,e){return t===e||xn(t,e,Qi(e))},Lr.isMatchWith=function(t,e,r){return r="function"==typeof r?r:void 0,xn(t,e,Qi(e),r)},Lr.isNaN=function(t){return Ha(t)&&t!=+t},Lr.isNative=function(t){if(lo(t))throw new X("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mn(t)},Lr.isNil=function(t){return null==t},Lr.isNull=function(t){return null===t},Lr.isNumber=Ha,Lr.isObject=Va,Lr.isObjectLike=Ya,Lr.isPlainObject=Ka,Lr.isRegExp=Xa,Lr.isSafeInteger=function(t){return Ua(t)&&t>=-9007199254740991&&t<=9007199254740991},Lr.isSet=$a,Lr.isString=Za,Lr.isSymbol=Ja,Lr.isTypedArray=Qa,Lr.isUndefined=function(t){return void 0===t},Lr.isWeakMap=function(t){return Ya(t)&&no(t)==x},Lr.isWeakSet=function(t){return Ya(t)&&"[object WeakSet]"==dn(t)},Lr.join=function(t,e){return null==t?"":ir.call(t,e)},Lr.kebabCase=Iu,Lr.last=qo,Lr.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=n;return void 0!==r&&(i=(i=iu(r))<0?ar(n+i,0):ur(i,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,i):we(t,Me,i,!0)},Lr.lowerCase=Fu,Lr.lowerFirst=Nu,Lr.lt=tu,Lr.lte=eu,Lr.max=function(t){return t&&t.length?nn(t,Hu,yn):void 0},Lr.maxBy=function(t,e){return t&&t.length?nn(t,Zi(e,2),yn):void 0},Lr.mean=function(t){return Ee(t,Hu)},Lr.meanBy=function(t,e){return Ee(t,Zi(e,2))},Lr.min=function(t){return t&&t.length?nn(t,Hu,kn):void 0},Lr.minBy=function(t,e){return t&&t.length?nn(t,Zi(e,2),kn):void 0},Lr.stubArray=os,Lr.stubFalse=as,Lr.stubObject=function(){return{}},Lr.stubString=function(){return""},Lr.stubTrue=function(){return!0},Lr.multiply=hs,Lr.nth=function(t,e){return t&&t.length?Rn(t,iu(e)):void 0},Lr.noConflict=function(){return Ht._===this&&(Ht._=Lt),this},Lr.noop=Ju,Lr.now=va,Lr.pad=function(t,e,r){t=su(t);var n=(e=iu(e))?We(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Ti(tr(i),r)+t+Ti(Qe(i),r)},Lr.padEnd=function(t,e,r){t=su(t);var n=(e=iu(e))?We(t):0;return e&&n<e?t+Ti(e-n,r):t},Lr.padStart=function(t,e,r){t=su(t);var n=(e=iu(e))?We(t):0;return e&&n<e?Ti(e-n,r)+t:t},Lr.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),cr(su(t).replace(K,""),e||0)},Lr.random=function(t,e,r){if(r&&"boolean"!=typeof r&&so(t,e,r)&&(e=r=void 0),void 0===r&&("boolean"==typeof e?(r=e,e=void 0):"boolean"==typeof t&&(r=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=nu(t),void 0===e?(e=t,t=0):e=nu(e)),t>e){var n=t;t=e,e=n}if(r||t%1||e%1){var i=fr();return ur(t+i*(e-t+zt("1e-"+((i+"").length-1))),e)}return Cn(t,e)},Lr.reduce=function(t,e,r){var n=Ia(t)?ye:ke,i=arguments.length<3;return n(t,Zi(e,4),r,i,tn)},Lr.reduceRight=function(t,e,r){var n=Ia(t)?ve:ke,i=arguments.length<3;return n(t,Zi(e,4),r,i,en)},Lr.repeat=function(t,e,r){return e=(r?so(t,e,r):void 0===e)?1:iu(e),Dn(su(t),e)},Lr.replace=function(){var t=arguments,e=su(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Lr.result=function(t,e,r){var n=-1,i=(e=si(e,t)).length;for(i||(i=1,t=void 0);++n<i;){var o=null==t?void 0:t[ko(e[n])];void 0===o&&(n=i,o=r),t=Ba(o)?o.call(t):o}return t},Lr.round=ps,Lr.runInContext=t,Lr.sample=function(t){return(Ia(t)?Gr:qn)(t)},Lr.size=function(t){if(null==t)return 0;if(Na(t))return Za(t)?We(t):t.length;var e=no(t);return e==y||e==b?t.size:Sn(t).length},Lr.snakeCase=Cu,Lr.some=function(t,e,r){var n=Ia(t)?ge:Hn;return r&&so(t,e,r)&&(e=void 0),n(t,Zi(e,3))},Lr.sortedIndex=function(t,e){return Kn(t,e)},Lr.sortedIndexBy=function(t,e,r){return Xn(t,e,Zi(r,2))},Lr.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var n=Kn(t,e);if(n<r&&ja(t[n],e))return n}return-1},Lr.sortedLastIndex=function(t,e){return Kn(t,e,!0)},Lr.sortedLastIndexBy=function(t,e,r){return Xn(t,e,Zi(r,2),!0)},Lr.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var r=Kn(t,e,!0)-1;if(ja(t[r],e))return r}return-1},Lr.startCase=Du,Lr.startsWith=function(t,e,r){return t=su(t),r=null==r?0:Xr(iu(r),0,t.length),e=Jn(e),t.slice(r,r+e.length)==e},Lr.subtract=ds,Lr.sum=function(t){return t&&t.length?Le(t,Hu):0},Lr.sumBy=function(t,e){return t&&t.length?Le(t,Zi(e,2)):0},Lr.template=function(t,e,r){var n=Lr.templateSettings;r&&so(t,e,r)&&(e=void 0),t=su(t),e=lu({},e,n,Bi);var i,o,a=lu({},e.imports,n.imports,Bi),u=_u(a),s=Re(a,u),c=0,f=e.interpolate||ft,l="__p += '",h=yt((e.escape||ft).source+"|"+f.source+"|"+(f===U?rt:ft).source+"|"+(e.evaluate||ft).source+"|$","g"),p="//# sourceURL="+(Mt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gt+"]")+"\n";t.replace(h,(function(e,r,n,a,u,s){return n||(n=a),l+=t.slice(c,s).replace(lt,Ge),r&&(i=!0,l+="' +\n__e("+r+") +\n'"),u&&(o=!0,l+="';\n"+u+";\n__p += '"),n&&(l+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=s+e.length,e})),l+="';\n";var d=Mt.call(e,"variable")&&e.variable;if(d){if(tt.test(d))throw new X("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(o?l.replace(T,""):l).replace(I,"$1").replace(F,"$1;"),l="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var y=Uu((function(){return ht(u,p+"return "+l).apply(void 0,s)}));if(y.source=l,qa(y))throw y;return y},Lr.times=function(t,e){if((t=iu(t))<1||t>9007199254740991)return[];var r=4294967295,n=ur(t,4294967295);t-=4294967295;for(var i=Pe(n,e=Zi(e));++r<t;)e(r);return i},Lr.toFinite=nu,Lr.toInteger=iu,Lr.toLength=ou,Lr.toLower=function(t){return su(t).toLowerCase()},Lr.toNumber=au,Lr.toSafeInteger=function(t){return t?Xr(iu(t),-9007199254740991,9007199254740991):0===t?t:0},Lr.toString=su,Lr.toUpper=function(t){return su(t).toUpperCase()},Lr.trim=function(t,e,r){if((t=su(t))&&(r||void 0===e))return je(t);if(!t||!(e=Jn(e)))return t;var n=He(t),i=He(e);return fi(n,Ie(n,i),Fe(n,i)+1).join("")},Lr.trimEnd=function(t,e,r){if((t=su(t))&&(r||void 0===e))return t.slice(0,Ke(t)+1);if(!t||!(e=Jn(e)))return t;var n=He(t);return fi(n,0,Fe(n,He(e))+1).join("")},Lr.trimStart=function(t,e,r){if((t=su(t))&&(r||void 0===e))return t.replace(K,"");if(!t||!(e=Jn(e)))return t;var n=He(t);return fi(n,Ie(n,He(e))).join("")},Lr.truncate=function(t,e){var r=30,n="...";if(Va(e)){var i="separator"in e?e.separator:i;r="length"in e?iu(e.length):r,n="omission"in e?Jn(e.omission):n}var o=(t=su(t)).length;if(qe(t)){var a=He(t);o=a.length}if(r>=o)return t;var u=r-We(n);if(u<1)return n;var s=a?fi(a,0,u).join(""):t.slice(0,u);if(void 0===i)return s+n;if(a&&(u+=s.length-u),Xa(i)){if(t.slice(u).search(i)){var c,f=s;for(i.global||(i=yt(i.source,su(nt.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var l=c.index;s=s.slice(0,void 0===l?u:l)}}else if(t.indexOf(Jn(i),u)!=u){var h=s.lastIndexOf(i);h>-1&&(s=s.slice(0,h))}return s+n},Lr.unescape=function(t){return(t=su(t))&&D.test(t)?t.replace(N,Xe):t},Lr.uniqueId=function(t){var e=++Et;return su(t)+e},Lr.upperCase=Gu,Lr.upperFirst=qu,Lr.each=sa,Lr.eachRight=ca,Lr.first=No,Zu(Lr,(ls={},cn(Lr,(function(t,e){Mt.call(Lr.prototype,e)||(ls[e]=t)})),ls),{chain:!1}),Lr.VERSION="4.17.21",ue(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Lr[t].placeholder=Lr})),ue(["drop","take"],(function(t,e){Rr.prototype[t]=function(r){r=void 0===r?1:ar(iu(r),0);var n=this.__filtered__&&!e?new Rr(this):this.clone();return n.__filtered__?n.__takeCount__=ur(r,n.__takeCount__):n.__views__.push({size:ur(r,4294967295),type:t+(n.__dir__<0?"Right":"")}),n},Rr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ue(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Rr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Zi(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),ue(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Rr.prototype[t]=function(){return this[r](1).value()[0]}})),ue(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Rr.prototype[t]=function(){return this.__filtered__?new Rr(this):this[r](1)}})),Rr.prototype.compact=function(){return this.filter(Hu)},Rr.prototype.find=function(t){return this.filter(t).head()},Rr.prototype.findLast=function(t){return this.reverse().find(t)},Rr.prototype.invokeMap=Gn((function(t,e){return"function"==typeof t?new Rr(this):this.map((function(r){return bn(r,t,e)}))})),Rr.prototype.reject=function(t){return this.filter(Sa(Zi(t)))},Rr.prototype.slice=function(t,e){t=iu(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Rr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==e&&(r=(e=iu(e))<0?r.dropRight(-e):r.take(e-t)),r)},Rr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Rr.prototype.toArray=function(){return this.take(4294967295)},cn(Rr.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),i=Lr[n?"take"+("last"==e?"Right":""):e],o=n||/^find/.test(e);i&&(Lr.prototype[e]=function(){var e=this.__wrapped__,a=n?[1]:arguments,u=e instanceof Rr,s=a[0],c=u||Ia(e),f=function(t){var e=i.apply(Lr,de([t],a));return n&&l?e[0]:e};c&&r&&"function"==typeof s&&1!=s.length&&(u=c=!1);var l=this.__chain__,h=!!this.__actions__.length,p=o&&!l,d=u&&!h;if(!o&&c){e=d?e:new Rr(this);var y=t.apply(e,a);return y.__actions__.push({func:na,args:[f],thisArg:void 0}),new Ar(y,l)}return p&&d?t.apply(this,a):(y=this.thru(f),p?n?y.value()[0]:y.value():y)})})),ue(["pop","push","shift","sort","splice","unshift"],(function(t){var e=mt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Lr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(Ia(i)?i:[],t)}return this[r]((function(r){return e.apply(Ia(r)?r:[],t)}))}})),cn(Rr.prototype,(function(t,e){var r=Lr[e];if(r){var n=r.name+"";Mt.call(br,n)||(br[n]=[]),br[n].push({name:e,func:r})}})),br[Pi(void 0,2).name]=[{name:"wrapper",func:void 0}],Rr.prototype.clone=function(){var t=new Rr(this.__wrapped__);return t.__actions__=mi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=mi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=mi(this.__views__),t},Rr.prototype.reverse=function(){if(this.__filtered__){var t=new Rr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Rr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Ia(t),n=e<0,i=r?t.length:0,o=function(t,e,r){var n=-1,i=r.length;for(;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=ur(e,t+a);break;case"takeRight":t=ar(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,u=o.end,s=u-a,c=n?u:a-1,f=this.__iteratees__,l=f.length,h=0,p=ur(s,this.__takeCount__);if(!r||!n&&i==s&&p==s)return ni(t,this.__actions__);var d=[];t:for(;s--&&h<p;){for(var y=-1,v=t[c+=e];++y<l;){var g=f[y],m=g.iteratee,b=g.type,w=m(v);if(2==b)v=w;else if(!w){if(1==b)continue t;break t}}d[h++]=v}return d},Lr.prototype.at=ia,Lr.prototype.chain=function(){return ra(this)},Lr.prototype.commit=function(){return new Ar(this.value(),this.__chain__)},Lr.prototype.next=function(){void 0===this.__values__&&(this.__values__=ru(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Lr.prototype.plant=function(t){for(var e,r=this;r instanceof jr;){var n=Po(r);n.__index__=0,n.__values__=void 0,e?i.__wrapped__=n:e=n;var i=n;r=r.__wrapped__}return i.__wrapped__=t,e},Lr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Rr){var e=t;return this.__actions__.length&&(e=new Rr(this)),(e=e.reverse()).__actions__.push({func:na,args:[Vo],thisArg:void 0}),new Ar(e,this.__chain__)}return this.thru(Vo)},Lr.prototype.toJSON=Lr.prototype.valueOf=Lr.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},Lr.prototype.first=Lr.prototype.head,Zt&&(Lr.prototype[Zt]=function(){return this}),Lr}();Ht._=$e,void 0===(i=function(){return $e}.call(e,r,e,n))||(n.exports=i)}).call(this)}).call(this,r(15),r(71)(t))},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.WeekdayNamed=e.WeekdayNumbered=void 0,function(t){t[t.SUNDAY=0]="SUNDAY",t[t.MONDAY=1]="MONDAY",t[t.TUESDAY=2]="TUESDAY",t[t.WEDNESDAY=3]="WEDNESDAY",t[t.THURSDAY=4]="THURSDAY",t[t.FRIDAY=5]="FRIDAY",t[t.SATURDAY=6]="SATURDAY"}(n||(e.WeekdayNumbered=n={})),function(t){t.SUNDAY="SUNDAY",t.MONDAY="MONDAY",t.TUESDAY="TUESDAY",t.WEDNESDAY="WEDNESDAY",t.THURSDAY="THURSDAY",t.FRIDAY="FRIDAY",t.SATURDAY="SATURDAY"}(i||(e.WeekdayNamed=i={}))},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.enhanceStandardConsoleLogging=function(e){r.forEach((function(r){var n=t.console[r],i=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n.apply(t.console,o),e.apply(void 0,[r].concat(o))};i.__next=n,i.__enhancer=e,t.console[r]=i}))};var r=["debug","log","info","warn","error"]}).call(this,r(15))},function(t,e,r){r(232),t.exports=r(405)},function(t,e,r){r(233)},function(t,e,r){"use strict";r(234),r(377),r(379),r(382),r(384),r(386),r(388),r(390),r(392),r(394),r(396),r(398),r(400),r(404)},function(t,e,r){r(235),r(238),r(239),r(240),r(241),r(242),r(243),r(244),r(245),r(246),r(247),r(248),r(249),r(250),r(251),r(252),r(253),r(254),r(255),r(256),r(257),r(258),r(259),r(260),r(261),r(262),r(263),r(264),r(265),r(266),r(267),r(268),r(269),r(270),r(271),r(272),r(273),r(274),r(275),r(276),r(277),r(278),r(279),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(316),r(317),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(335),r(336),r(337),r(338),r(339),r(117),r(340),r(163),r(341),r(164),r(342),r(343),r(344),r(345),r(165),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(355),r(356),r(357),r(358),r(359),r(360),r(361),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(369),r(370),r(371),r(372),r(373),r(374),r(375),r(376),t.exports=r(10)},function(t,e,r){"use strict";var n=r(3),i=r(20),o=r(11),a=r(0),u=r(18),s=r(39).KEY,c=r(4),f=r(75),l=r(54),h=r(43),p=r(8),d=r(98),y=r(144),v=r(237),g=r(78),m=r(5),b=r(6),w=r(17),_=r(22),x=r(38),M=r(42),E=r(47),S=r(147),O=r(29),k=r(77),L=r(12),P=r(45),j=O.f,A=L.f,R=S.f,T=n.Symbol,I=n.JSON,F=I&&I.stringify,N=p("_hidden"),C=p("toPrimitive"),D={}.propertyIsEnumerable,G=f("symbol-registry"),q=f("symbols"),B=f("op-symbols"),U=Object.prototype,z="function"==typeof T&&!!k.f,V=n.QObject,Y=!V||!V.prototype||!V.prototype.findChild,W=o&&c((function(){return 7!=E(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=j(U,e);n&&delete U[e],A(t,e,r),n&&t!==U&&A(U,e,n)}:A,H=function(t){var e=q[t]=E(T.prototype);return e._k=t,e},K=z&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},X=function(t,e,r){return t===U&&X(B,e,r),m(t),e=x(e,!0),m(r),i(q,e)?(r.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),r=E(r,{enumerable:M(0,!1)})):(i(t,N)||A(t,N,M(1,{})),t[N][e]=!0),W(t,e,r)):A(t,e,r)},$=function(t,e){m(t);for(var r,n=v(e=_(e)),i=0,o=n.length;o>i;)X(t,r=n[i++],e[r]);return t},Z=function(t){var e=D.call(this,t=x(t,!0));return!(this===U&&i(q,t)&&!i(B,t))&&(!(e||!i(this,t)||!i(q,t)||i(this,N)&&this[N][t])||e)},J=function(t,e){if(t=_(t),e=x(e,!0),t!==U||!i(q,e)||i(B,e)){var r=j(t,e);return!r||!i(q,e)||i(t,N)&&t[N][e]||(r.enumerable=!0),r}},Q=function(t){for(var e,r=R(_(t)),n=[],o=0;r.length>o;)i(q,e=r[o++])||e==N||e==s||n.push(e);return n},tt=function(t){for(var e,r=t===U,n=R(r?B:_(t)),o=[],a=0;n.length>a;)!i(q,e=n[a++])||r&&!i(U,e)||o.push(q[e]);return o};z||(u((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(r){this===U&&e.call(B,r),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),W(this,t,M(1,r))};return o&&Y&&W(U,t,{configurable:!0,set:e}),H(t)}).prototype,"toString",(function(){return this._k})),O.f=J,L.f=X,r(48).f=S.f=Q,r(63).f=Z,k.f=tt,o&&!r(44)&&u(U,"propertyIsEnumerable",Z,!0),d.f=function(t){return H(p(t))}),a(a.G+a.W+a.F*!z,{Symbol:T});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)p(et[rt++]);for(var nt=P(p.store),it=0;nt.length>it;)y(nt[it++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return i(G,t+="")?G[t]:G[t]=T(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in G)if(G[e]===t)return e},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),a(a.S+a.F*!z,"Object",{create:function(t,e){return void 0===e?E(t):$(E(t),e)},defineProperty:X,defineProperties:$,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=c((function(){k.f(1)}));a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return k.f(w(t))}}),I&&a(a.S+a.F*(!z||c((function(){var t=T();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(b(e)||void 0!==t)&&!K(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!K(e))return e}),n[1]=e,F.apply(I,n)}}),T.prototype[C]||r(21)(T.prototype,C,T.prototype.valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e,r){t.exports=r(75)("native-function-to-string",Function.toString)},function(t,e,r){var n=r(45),i=r(77),o=r(63);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,u=r(t),s=o.f,c=0;u.length>c;)s.call(t,a=u[c++])&&e.push(a);return e}},function(t,e,r){var n=r(0);n(n.S,"Object",{create:r(47)})},function(t,e,r){var n=r(0);n(n.S+n.F*!r(11),"Object",{defineProperty:r(12).f})},function(t,e,r){var n=r(0);n(n.S+n.F*!r(11),"Object",{defineProperties:r(146)})},function(t,e,r){var n=r(22),i=r(29).f;r(30)("getOwnPropertyDescriptor",(function(){return function(t,e){return i(n(t),e)}}))},function(t,e,r){var n=r(17),i=r(49);r(30)("getPrototypeOf",(function(){return function(t){return i(n(t))}}))},function(t,e,r){var n=r(17),i=r(45);r(30)("keys",(function(){return function(t){return i(n(t))}}))},function(t,e,r){r(30)("getOwnPropertyNames",(function(){return r(147).f}))},function(t,e,r){var n=r(6),i=r(39).onFreeze;r(30)("freeze",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(6),i=r(39).onFreeze;r(30)("seal",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(6),i=r(39).onFreeze;r(30)("preventExtensions",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(6);r(30)("isFrozen",(function(t){return function(e){return!n(e)||!!t&&t(e)}}))},function(t,e,r){var n=r(6);r(30)("isSealed",(function(t){return function(e){return!n(e)||!!t&&t(e)}}))},function(t,e,r){var n=r(6);r(30)("isExtensible",(function(t){return function(e){return!!n(e)&&(!t||t(e))}}))},function(t,e,r){var n=r(0);n(n.S+n.F,"Object",{assign:r(148)})},function(t,e,r){var n=r(0);n(n.S,"Object",{is:r(149)})},function(t,e,r){var n=r(0);n(n.S,"Object",{setPrototypeOf:r(102).set})},function(t,e,r){"use strict";var n=r(64),i={};i[r(8)("toStringTag")]="z",i+""!="[object z]"&&r(18)(Object.prototype,"toString",(function(){return"[object "+n(this)+"]"}),!0)},function(t,e,r){var n=r(0);n(n.P,"Function",{bind:r(150)})},function(t,e,r){var n=r(12).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(11)&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,r){"use strict";var n=r(6),i=r(49),o=r(8)("hasInstance"),a=Function.prototype;o in a||r(12).f(a,o,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,r){var n=r(0),i=r(152);n(n.G+n.F*(parseInt!=i),{parseInt:i})},function(t,e,r){var n=r(0),i=r(153);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(t,e,r){"use strict";var n=r(3),i=r(20),o=r(34),a=r(104),u=r(38),s=r(4),c=r(48).f,f=r(29).f,l=r(12).f,h=r(55).trim,p=n.Number,d=p,y=p.prototype,v="Number"==o(r(47)(y)),g="trim"in String.prototype,m=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){var r,n,i,o=(e=g?e.trim():h(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=e.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var a,s=e.slice(2),c=0,f=s.length;c<f;c++)if((a=s.charCodeAt(c))<48||a>i)return NaN;return parseInt(s,n)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof p&&(v?s((function(){y.valueOf.call(r)})):"Number"!=o(r))?a(new d(m(e)),r,p):m(e)};for(var b,w=r(11)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;w.length>_;_++)i(d,b=w[_])&&!i(p,b)&&l(p,b,f(d,b));p.prototype=y,y.constructor=p,r(18)(n,"Number",p)}},function(t,e,r){"use strict";var n=r(0),i=r(28),o=r(154),a=r(105),u=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l=function(t,e){for(var r=-1,n=e;++r<6;)n+=t*c[r],c[r]=n%1e7,n=s(n/1e7)},h=function(t){for(var e=6,r=0;--e>=0;)r+=c[e],c[e]=s(r/t),r=r%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var r=String(c[t]);e=""===e?r:e+a.call("0",7-r.length)+r}return e},d=function(t,e,r){return 0===e?r:e%2==1?d(t,e-1,r*t):d(t*t,e/2,r)};n(n.P+n.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(4)((function(){u.call({})}))),"Number",{toFixed:function(t){var e,r,n,u,s=o(this,f),c=i(t),y="",v="0";if(c<0||c>20)throw RangeError(f);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(y="-",s=-s),s>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(s*d(2,69,1))-69)<0?s*d(2,-e,1):s/d(2,e,1),r*=4503599627370496,(e=52-e)>0){for(l(0,r),n=c;n>=7;)l(1e7,0),n-=7;for(l(d(10,n,1),0),n=e-1;n>=23;)h(1<<23),n-=23;h(1<<n),l(1,1),h(2),v=p()}else l(0,r),l(1<<-e,0),v=p()+a.call("0",c);return v=c>0?y+((u=v.length)<=c?"0."+a.call("0",c-u)+v:v.slice(0,u-c)+"."+v.slice(u-c)):y+v}})},function(t,e,r){"use strict";var n=r(0),i=r(4),o=r(154),a=1..toPrecision;n(n.P+n.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,r){var n=r(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,r){var n=r(0),i=r(3).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,r){var n=r(0);n(n.S,"Number",{isInteger:r(155)})},function(t,e,r){var n=r(0);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,r){var n=r(0),i=r(155),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,r){var n=r(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,r){var n=r(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,r){var n=r(0),i=r(153);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,r){var n=r(0),i=r(152);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,r){var n=r(0),i=r(156),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,r){var n=r(0),i=Math.asinh;n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,r){var n=r(0),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,r){var n=r(0),i=r(106);n(n.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,r){var n=r(0);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,r){var n=r(0),i=Math.exp;n(n.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,r){var n=r(0),i=r(107);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,r){var n=r(0);n(n.S,"Math",{fround:r(280)})},function(t,e,r){var n=r(106),i=Math.pow,o=i(2,-52),a=i(2,-23),u=i(2,127)*(2-a),s=i(2,-126);t.exports=Math.fround||function(t){var e,r,i=Math.abs(t),c=n(t);return i<s?c*(i/s/a+1/o-1/o)*s*a:(r=(e=(1+a/o)*i)-(e-i))>u||r!=r?c*(1/0):c*r}},function(t,e,r){var n=r(0),i=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var r,n,o=0,a=0,u=arguments.length,s=0;a<u;)s<(r=i(arguments[a++]))?(o=o*(n=s/r)*n+1,s=r):o+=r>0?(n=r/s)*n:r;return s===1/0?1/0:s*Math.sqrt(o)}})},function(t,e,r){var n=r(0),i=Math.imul;n(n.S+n.F*r(4)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,e){var r=+t,n=+e,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},function(t,e,r){var n=r(0);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,r){var n=r(0);n(n.S,"Math",{log1p:r(156)})},function(t,e,r){var n=r(0);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,r){var n=r(0);n(n.S,"Math",{sign:r(106)})},function(t,e,r){var n=r(0),i=r(107),o=Math.exp;n(n.S+n.F*r(4)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,r){var n=r(0),i=r(107),o=Math.exp;n(n.S,"Math",{tanh:function(t){var e=i(t=+t),r=i(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},function(t,e,r){var n=r(0);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,r){var n=r(0),i=r(46),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},function(t,e,r){var n=r(0),i=r(22),o=r(9);n(n.S,"String",{raw:function(t){for(var e=i(t.raw),r=o(e.length),n=arguments.length,a=[],u=0;r>u;)a.push(String(e[u++])),u<n&&a.push(String(arguments[u]));return a.join("")}})},function(t,e,r){"use strict";r(55)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,r){"use strict";var n=r(108)(!0);r(109)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e,r){"use strict";var n=r(0),i=r(108)(!1);n(n.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,r){"use strict";var n=r(0),i=r(9),o=r(110),a="".endsWith;n(n.P+n.F*r(112)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(e.length),u=void 0===r?n:Math.min(i(r),n),s=String(t);return a?a.call(e,s,u):e.slice(u-s.length,u)===s}})},function(t,e,r){"use strict";var n=r(0),i=r(110);n(n.P+n.F*r(112)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(0);n(n.P,"String",{repeat:r(105)})},function(t,e,r){"use strict";var n=r(0),i=r(9),o=r(110),a="".startsWith;n(n.P+n.F*r(112)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return a?a.call(e,n,r):e.slice(r,r+n.length)===n}})},function(t,e,r){"use strict";r(19)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,r){"use strict";r(19)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,r){"use strict";r(19)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,r){"use strict";r(19)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,r){"use strict";r(19)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,r){"use strict";r(19)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,r){"use strict";r(19)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,r){"use strict";r(19)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,r){"use strict";r(19)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,r){"use strict";r(19)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,r){"use strict";r(19)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,r){"use strict";r(19)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,r){"use strict";r(19)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,r){var n=r(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,r){"use strict";var n=r(0),i=r(17),o=r(38);n(n.P+n.F*r(4)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=i(this),r=o(e);return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},function(t,e,r){var n=r(0),i=r(315);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,r){"use strict";var n=r(4),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!n((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),r=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(r>99?r:"0"+a(r))+"Z"}:o},function(t,e,r){var n=Date.prototype,i=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&r(18)(n,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,e,r){var n=r(8)("toPrimitive"),i=Date.prototype;n in i||r(21)(i,n,r(318))},function(t,e,r){"use strict";var n=r(5),i=r(38);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(n(this),"number"!=t)}},function(t,e,r){var n=r(0);n(n.S,"Array",{isArray:r(78)})},function(t,e,r){"use strict";var n=r(26),i=r(0),o=r(17),a=r(158),u=r(113),s=r(9),c=r(114),f=r(115);i(i.S+i.F*!r(79)((function(t){Array.from(t)})),"Array",{from:function(t){var e,r,i,l,h=o(t),p="function"==typeof this?this:Array,d=arguments.length,y=d>1?arguments[1]:void 0,v=void 0!==y,g=0,m=f(h);if(v&&(y=n(y,d>2?arguments[2]:void 0,2)),null==m||p==Array&&u(m))for(r=new p(e=s(h.length));e>g;g++)c(r,g,v?y(h[g],g):h[g]);else for(l=m.call(h),r=new p;!(i=l.next()).done;g++)c(r,g,v?a(l,y,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,e,r){"use strict";var n=r(0),i=r(114);n(n.S+n.F*r(4)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);e>t;)i(r,t,arguments[t++]);return r.length=e,r}})},function(t,e,r){"use strict";var n=r(0),i=r(22),o=[].join;n(n.P+n.F*(r(62)!=Object||!r(25)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,r){"use strict";var n=r(0),i=r(101),o=r(34),a=r(46),u=r(9),s=[].slice;n(n.P+n.F*r(4)((function(){i&&s.call(i)})),"Array",{slice:function(t,e){var r=u(this.length),n=o(this);if(e=void 0===e?r:e,"Array"==n)return s.call(this,t,e);for(var i=a(t,r),c=a(e,r),f=u(c-i),l=new Array(f),h=0;h<f;h++)l[h]="String"==n?this.charAt(i+h):this[i+h];return l}})},function(t,e,r){"use strict";var n=r(0),i=r(27),o=r(17),a=r(4),u=[].sort,s=[1,2,3];n(n.P+n.F*(a((function(){s.sort(void 0)}))||!a((function(){s.sort(null)}))||!r(25)(u)),"Array",{sort:function(t){return void 0===t?u.call(o(this)):u.call(o(this),i(t))}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(0),o=r(25)([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,e,r){var n=r(6),i=r(78),o=r(8)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,r){"use strict";var n=r(0),i=r(31)(1);n(n.P+n.F*!r(25)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(2);n(n.P+n.F*!r(25)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(3);n(n.P+n.F*!r(25)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(4);n(n.P+n.F*!r(25)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(160);n(n.P+n.F*!r(25)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,e,r){"use strict";var n=r(0),i=r(160);n(n.P+n.F*!r(25)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,e,r){"use strict";var n=r(0),i=r(76)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!r(25)(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(22),o=r(28),a=r(9),u=[].lastIndexOf,s=!!u&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(s||!r(25)(u)),"Array",{lastIndexOf:function(t){if(s)return u.apply(this,arguments)||0;var e=i(this),r=a(e.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,r){var n=r(0);n(n.P,"Array",{copyWithin:r(161)}),r(50)("copyWithin")},function(t,e,r){var n=r(0);n(n.P,"Array",{fill:r(116)}),r(50)("fill")},function(t,e,r){"use strict";var n=r(0),i=r(31)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),n(n.P+n.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(50)("find")},function(t,e,r){"use strict";var n=r(0),i=r(31)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),n(n.P+n.F*a,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(50)(o)},function(t,e,r){r(57)("Array")},function(t,e,r){var n=r(3),i=r(104),o=r(12).f,a=r(48).f,u=r(111),s=r(80),c=n.RegExp,f=c,l=c.prototype,h=/a/g,p=/a/g,d=new c(h)!==h;if(r(11)&&(!d||r(4)((function(){return p[r(8)("match")]=!1,c(h)!=h||c(p)==p||"/a/i"!=c(h,"i")})))){c=function(t,e){var r=this instanceof c,n=u(t),o=void 0===e;return!r&&n&&t.constructor===c&&o?t:i(d?new f(n&&!o?t.source:t,e):f((n=t instanceof c)?t.source:t,n&&o?s.call(t):e),r?this:l,c)};for(var y=function(t){t in c||o(c,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})},v=a(f),g=0;v.length>g;)y(v[g++]);l.constructor=c,c.prototype=l,r(18)(n,"RegExp",c)}r(57)("RegExp")},function(t,e,r){"use strict";r(164);var n=r(5),i=r(80),o=r(11),a=/./.toString,u=function(t){r(18)(RegExp.prototype,"toString",t,!0)};r(4)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?u((function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=a.name&&u((function(){return a.call(this)}))},function(t,e,r){"use strict";var n=r(5),i=r(9),o=r(119),a=r(81);r(82)("match",1,(function(t,e,r,u){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=u(r,t,this);if(e.done)return e.value;var s=n(t),c=String(this);if(!s.global)return a(s,c);var f=s.unicode;s.lastIndex=0;for(var l,h=[],p=0;null!==(l=a(s,c));){var d=String(l[0]);h[p]=d,""===d&&(s.lastIndex=o(c,i(s.lastIndex),f)),p++}return 0===p?null:h}]}))},function(t,e,r){"use strict";var n=r(5),i=r(17),o=r(9),a=r(28),u=r(119),s=r(81),c=Math.max,f=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;r(82)("replace",2,(function(t,e,r,d){return[function(n,i){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},function(t,e){var i=d(r,t,this,e);if(i.done)return i.value;var l=n(t),h=String(this),p="function"==typeof e;p||(e=String(e));var v=l.global;if(v){var g=l.unicode;l.lastIndex=0}for(var m=[];;){var b=s(l,h);if(null===b)break;if(m.push(b),!v)break;""===String(b[0])&&(l.lastIndex=u(h,o(l.lastIndex),g))}for(var w,_="",x=0,M=0;M<m.length;M++){b=m[M];for(var E=String(b[0]),S=c(f(a(b.index),h.length),0),O=[],k=1;k<b.length;k++)O.push(void 0===(w=b[k])?w:String(w));var L=b.groups;if(p){var P=[E].concat(O,S,h);void 0!==L&&P.push(L);var j=String(e.apply(void 0,P))}else j=y(E,h,S,O,L,e);S>=x&&(_+=h.slice(x,S)+j,x=S+E.length)}return _+h.slice(x)}];function y(t,e,n,o,a,u){var s=n+t.length,c=o.length,f=p;return void 0!==a&&(a=i(a),f=h),r.call(u,f,(function(r,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(s);case"<":u=a[i.slice(1,-1)];break;default:var f=+i;if(0===f)return r;if(f>c){var h=l(f/10);return 0===h?r:h<=c?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):r}u=o[f-1]}return void 0===u?"":u}))}}))},function(t,e,r){"use strict";var n=r(5),i=r(149),o=r(81);r(82)("search",1,(function(t,e,r,a){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=a(r,t,this);if(e.done)return e.value;var u=n(t),s=String(this),c=u.lastIndex;i(c,0)||(u.lastIndex=0);var f=o(u,s);return i(u.lastIndex,c)||(u.lastIndex=c),null===f?-1:f.index}]}))},function(t,e,r){"use strict";var n=r(111),i=r(5),o=r(65),a=r(119),u=r(9),s=r(81),c=r(118),f=r(4),l=Math.min,h=[].push,p="length",d=!f((function(){RegExp(4294967295,"y")}));r(82)("split",2,(function(t,e,r,f){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!n(t))return r.call(i,t,e);for(var o,a,u,s=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,d=void 0===e?4294967295:e>>>0,y=new RegExp(t.source,f+"g");(o=c.call(y,i))&&!((a=y.lastIndex)>l&&(s.push(i.slice(l,o.index)),o[p]>1&&o.index<i[p]&&h.apply(s,o.slice(1)),u=o[0][p],l=a,s[p]>=d));)y.lastIndex===o.index&&y.lastIndex++;return l===i[p]?!u&&y.test("")||s.push(""):s.push(i.slice(l)),s[p]>d?s.slice(0,d):s}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)}:r,[function(r,n){var i=t(this),o=null==r?void 0:r[e];return void 0!==o?o.call(r,i,n):y.call(String(i),r,n)},function(t,e){var n=f(y,t,this,e,y!==r);if(n.done)return n.value;var c=i(t),h=String(this),p=o(c,RegExp),v=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g"),m=new p(d?c:"^(?:"+c.source+")",g),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===h.length)return null===s(m,h)?[h]:[];for(var w=0,_=0,x=[];_<h.length;){m.lastIndex=d?_:0;var M,E=s(m,d?h:h.slice(_));if(null===E||(M=l(u(m.lastIndex+(d?0:_)),h.length))===w)_=a(h,_,v);else{if(x.push(h.slice(w,_)),x.length===b)return x;for(var S=1;S<=E.length-1;S++)if(x.push(E[S]),x.length===b)return x;_=w=M}}return x.push(h.slice(w)),x}]}))},function(t,e,r){var n=r(3),i=r(120).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,s="process"==r(34)(a);t.exports=function(){var t,e,r,c=function(){var n,i;for(s&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(s)r=function(){a.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);r=function(){f.then(c)}}else r=function(){i.call(n,c)};else{var l=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),r=function(){h.data=l=!l}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){"use strict";var n=r(168),i=r(51);t.exports=r(85)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=n.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(i(this,"Map"),0===t?0:t,e)}},n,!0)},function(t,e,r){"use strict";var n=r(168),i=r(51);t.exports=r(85)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(i(this,"Set"),t=0===t?0:t,t)}},n)},function(t,e,r){"use strict";var n,i=r(3),o=r(31)(0),a=r(18),u=r(39),s=r(148),c=r(169),f=r(6),l=r(51),h=r(51),p=!i.ActiveXObject&&"ActiveXObject"in i,d=u.getWeak,y=Object.isExtensible,v=c.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(f(t)){var e=d(t);return!0===e?v(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(l(this,"WeakMap"),t,e)}},b=t.exports=r(85)("WeakMap",g,m,c,!0,!0);h&&p&&(s((n=c.getConstructor(g,"WeakMap")).prototype,m),u.NEED=!0,o(["delete","has","get","set"],(function(t){var e=b.prototype,r=e[t];a(e,t,(function(e,i){if(f(e)&&!y(e)){this._f||(this._f=new n);var o=this._f[t](e,i);return"set"==t?this:o}return r.call(this,e,i)}))})))},function(t,e,r){"use strict";var n=r(169),i=r(51);r(85)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(i(this,"WeakSet"),t,!0)}},n,!1,!0)},function(t,e,r){"use strict";var n=r(0),i=r(86),o=r(121),a=r(5),u=r(46),s=r(9),c=r(6),f=r(3).ArrayBuffer,l=r(65),h=o.ArrayBuffer,p=o.DataView,d=i.ABV&&f.isView,y=h.prototype.slice,v=i.VIEW;n(n.G+n.W+n.F*(f!==h),{ArrayBuffer:h}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||c(t)&&v in t}}),n(n.P+n.U+n.F*r(4)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==y&&void 0===e)return y.call(a(this),t);for(var r=a(this).byteLength,n=u(t,r),i=u(void 0===e?r:e,r),o=new(l(this,h))(s(i-n)),c=new p(this),f=new p(o),d=0;n<i;)f.setUint8(d++,c.getUint8(n++));return o}}),r(57)("ArrayBuffer")},function(t,e,r){var n=r(0);n(n.G+n.W+n.F*!r(86).ABV,{DataView:r(121).DataView})},function(t,e,r){r(36)("Int8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}),!0)},function(t,e,r){r(36)("Int16",2,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint16",2,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Int32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Float32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Float64",8,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){var n=r(0),i=r(27),o=r(5),a=(r(3).Reflect||{}).apply,u=Function.apply;n(n.S+n.F*!r(4)((function(){a((function(){}))})),"Reflect",{apply:function(t,e,r){var n=i(t),s=o(r);return a?a(n,e,s):u.call(n,e,s)}})},function(t,e,r){var n=r(0),i=r(47),o=r(27),a=r(5),u=r(6),s=r(4),c=r(150),f=(r(3).Reflect||{}).construct,l=s((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),h=!s((function(){f((function(){}))}));n(n.S+n.F*(l||h),"Reflect",{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(h&&!l)return f(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}var s=r.prototype,p=i(u(s)?s:Object.prototype),d=Function.apply.call(t,p,e);return u(d)?d:p}})},function(t,e,r){var n=r(12),i=r(0),o=r(5),a=r(38);i(i.S+i.F*r(4)((function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,r){o(t),e=a(e,!0),o(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},function(t,e,r){var n=r(0),i=r(29).f,o=r(5);n(n.S,"Reflect",{deleteProperty:function(t,e){var r=i(o(t),e);return!(r&&!r.configurable)&&delete t[e]}})},function(t,e,r){"use strict";var n=r(0),i=r(5),o=function(t){this._t=i(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)};r(157)(o,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),n(n.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,r){var n=r(29),i=r(49),o=r(20),a=r(0),u=r(6),s=r(5);a(a.S,"Reflect",{get:function t(e,r){var a,c,f=arguments.length<3?e:arguments[2];return s(e)===f?e[r]:(a=n.f(e,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(f):void 0:u(c=i(e))?t(c,r,f):void 0}})},function(t,e,r){var n=r(29),i=r(0),o=r(5);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},function(t,e,r){var n=r(0),i=r(49),o=r(5);n(n.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,r){var n=r(0);n(n.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,r){var n=r(0),i=r(5),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,r){var n=r(0);n(n.S,"Reflect",{ownKeys:r(171)})},function(t,e,r){var n=r(0),i=r(5),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,r){var n=r(12),i=r(29),o=r(49),a=r(20),u=r(0),s=r(42),c=r(5),f=r(6);u(u.S,"Reflect",{set:function t(e,r,u){var l,h,p=arguments.length<4?e:arguments[3],d=i.f(c(e),r);if(!d){if(f(h=o(e)))return t(h,r,u,p);d=s(0)}if(a(d,"value")){if(!1===d.writable||!f(p))return!1;if(l=i.f(p,r)){if(l.get||l.set||!1===l.writable)return!1;l.value=u,n.f(p,r,l)}else n.f(p,r,s(0,u));return!0}return void 0!==d.set&&(d.set.call(p,u),!0)}})},function(t,e,r){var n=r(0),i=r(102);i&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,r){r(378),t.exports=r(10).Array.includes},function(t,e,r){"use strict";var n=r(0),i=r(76)(!0);n(n.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(50)("includes")},function(t,e,r){r(380),t.exports=r(10).Array.flatMap},function(t,e,r){"use strict";var n=r(0),i=r(381),o=r(17),a=r(9),u=r(27),s=r(159);n(n.P,"Array",{flatMap:function(t){var e,r,n=o(this);return u(t),e=a(n.length),r=s(n,0),i(r,n,n,e,0,1,t,arguments[1]),r}}),r(50)("flatMap")},function(t,e,r){"use strict";var n=r(78),i=r(6),o=r(9),a=r(26),u=r(8)("isConcatSpreadable");t.exports=function t(e,r,s,c,f,l,h,p){for(var d,y,v=f,g=0,m=!!h&&a(h,p,3);g<c;){if(g in s){if(d=m?m(s[g],g,r):s[g],y=!1,i(d)&&(y=void 0!==(y=d[u])?!!y:n(d)),y&&l>0)v=t(e,r,d,o(d.length),v,l-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=d}v++}g++}return v}},function(t,e,r){r(383),t.exports=r(10).String.padStart},function(t,e,r){"use strict";var n=r(0),i=r(172),o=r(84),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,r){r(385),t.exports=r(10).String.padEnd},function(t,e,r){"use strict";var n=r(0),i=r(172),o=r(84),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,r){r(387),t.exports=r(10).String.trimLeft},function(t,e,r){"use strict";r(55)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,r){r(389),t.exports=r(10).String.trimRight},function(t,e,r){"use strict";r(55)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,r){r(391),t.exports=r(98).f("asyncIterator")},function(t,e,r){r(144)("asyncIterator")},function(t,e,r){r(393),t.exports=r(10).Object.getOwnPropertyDescriptors},function(t,e,r){var n=r(0),i=r(171),o=r(22),a=r(29),u=r(114);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,r,n=o(t),s=a.f,c=i(n),f={},l=0;c.length>l;)void 0!==(r=s(n,e=c[l++]))&&u(f,e,r);return f}})},function(t,e,r){r(395),t.exports=r(10).Object.values},function(t,e,r){var n=r(0),i=r(173)(!1);n(n.S,"Object",{values:function(t){return i(t)}})},function(t,e,r){r(397),t.exports=r(10).Object.entries},function(t,e,r){var n=r(0),i=r(173)(!0);n(n.S,"Object",{entries:function(t){return i(t)}})},function(t,e,r){"use strict";r(165),r(399),t.exports=r(10).Promise.finally},function(t,e,r){"use strict";var n=r(0),i=r(10),o=r(3),a=r(65),u=r(167);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then((function(){return r}))}:t,r?function(r){return u(e,t()).then((function(){throw r}))}:t)}})},function(t,e,r){r(401),r(402),r(403),t.exports=r(10)},function(t,e,r){var n=r(3),i=r(0),o=r(84),a=[].slice,u=/MSIE .\./.test(o),s=function(t){return function(e,r){var n=arguments.length>2,i=!!n&&a.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,r)}};i(i.G+i.B+i.F*u,{setTimeout:s(n.setTimeout),setInterval:s(n.setInterval)})},function(t,e,r){var n=r(0),i=r(120);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,r){for(var n=r(117),i=r(45),o=r(18),a=r(3),u=r(21),s=r(56),c=r(8),f=c("iterator"),l=c("toStringTag"),h=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),y=0;y<d.length;y++){var v,g=d[y],m=p[g],b=a[g],w=b&&b.prototype;if(w&&(w[f]||u(w,f,h),w[l]||u(w,l,g),s[g]=h,m))for(v in n)w[v]||o(w,v,n[v],!0)}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),u=new S(i||[]);return n(a,"_invoke",{value:_(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function h(){}function p(){}function d(){}var y={};s(y,o,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(O([])));g&&g!==e&&r.call(g,o)&&(y=g);var m=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var i;n(this,"_invoke",{value:function(n,o){function a(){return new e((function(i,a){!function n(i,o,a,u){var s=f(t[i],t,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}(n,o,i,a)}))}return i=i?i.then(a,a):a()}})}function _(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=x(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),l;var i=f(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,l;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=d,n(m,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),s(m,u,"Generator"),s(m,o,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=O,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.monitoring=e.sos=e.frontApplet=void 0;var a=o(r(406)),u=o(r(625));i(r(672),e),e.frontApplet=(0,a.default)(window,"hug"),e.sos=e.frontApplet,e.monitoring=new u.default(e.frontApplet),e.frontApplet.sos=e.frontApplet,e.frontApplet.frontApplet=e.frontApplet,e.frontApplet.monitoring=e.monitoring,e.frontApplet.default=e.frontApplet,window.sos=e.frontApplet,window.sosMonitoring=e.monitoring,e.default=e.frontApplet,t.exports=e.frontApplet},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return new i.default(t,e)};var i=n(r(407))},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),f=r(122),l=s(r(532)),h=s(r(539)),p=s(r(541)),d=s(r(224)),y=s(r(554)),v=s(r(556)),g=s(r(560)),m=s(r(563)),b=s(r(564)),w=s(r(565)),_=s(r(566)),x=s(r(567)),M=s(r(568)),E=s(r(569)),S=s(r(571)),O=s(r(573)),k=r(222),L=s(r(575)),P=s(r(613)),j=s(r(614)),A=r(616),R=s(r(617)),T=s(r(618)),I=s(r(620)),F=s(r(622)),N=function(){return t=function t(e,r){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.config=void 0,this.authHash=void 0,this.appletVersion=void 0;var i=(0,A.createExchange)(r,this.postMessage.bind(this));this.readyEmitter=new c.EventEmitter,this.invocationResponseEmitter=new c.EventEmitter,this.debug=new _.default(this.window,r,this.postMessage.bind(this)),this.deviceInfo=new x.default(r,this.postMessage.bind(this)),this.display=new M.default(r,this.postMessage.bind(this)),this.stream=new h.default(r,this.postMessage.bind(this)),this.video=new l.default(r,this.postMessage.bind(this)),this.command=new y.default(this.messagePrefix,this.postMessage.bind(this)),this.hardware=new v.default(this.messagePrefix,this.postMessage.bind(this)),this.offline=new p.default(r,this.window,this.postMessage.bind(this)),this.browser=new g.default(i.createNamespaced("browser")),this.touch=new b.default(this.window,this.messagePrefix,this.postMessage.bind(this)),this.iframe=new m.default(this.window,this.messagePrefix,this,[this.touch.transformIframeData.bind(this.touch)]),this.input=new w.default(this.window,this.messagePrefix),this.timing=new E.default(this.messagePrefix,this.postMessage.bind(this)),this.sync=new S.default(this.messagePrefix,this.postMessage.bind(this)),this.fileSystem=new O.default(this.messagePrefix,this.postMessage.bind(this)),this.management=new L.default(r,this.postMessage.bind(this)),this.monitors=new P.default(r,this.postMessage.bind(this)),this.osd=new R.default(r,this.postMessage.bind(this)),this.proofOfPlay=new T.default(this.command),this.sensors=new j.default(r),this.native=new I.default(r,this.postMessage.bind(this)),this.connect=new F.default(this.window,this.messagePrefix),this.javascriptLoadFileController=new d.default(this.window),this.window.addEventListener("message",(function(t){return n.handleMessage(t)})),this.postMessage({type:r+"_api.ready"}),this.startPinging()},(e=[{key:"postMessage",value:function(t){var e=this,r=(0,f.generateUniqueHash)();return this.window.setTimeout((function(){var n;null===(n=e.window.parent)||void 0===n||n.postMessage(Object.assign({invocationUid:r},t),"*")})),new Promise((function(t,n){e.invocationResponseEmitter.once(r,(function(e){e.error?e.error.error?n((0,k.createError)(e.error.error)):n(e.error):t(e.success)}))}))}},{key:"onReady",value:function(t){var e=this;return new Promise((function(r){e.readyEmitter.once("ready",(function(){r(),void 0!==t&&t()})),e.checkIfReady()}))}},{key:"restore",value:function(){this.postMessage({type:this.getMessage("restore")}),this.removeMediaListeners(),this.forwardRestoreToFrontAppletWindows()}},{key:"refresh",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("applet_refresh")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"forwardRestoreToFrontAppletWindows",value:function(){var t={type:this.messagePrefix+"restore"};this.iframe.forwardToFrontAppletWindows(t)}},{key:"removeMediaListeners",value:function(){this.video.removeEventListeners(),this.stream.removeEventListeners(),this.sync.removeEventListeners(),this.input.removeEventListeners()}},{key:"checkIfReady",value:function(){void 0!==this.authHash&&void 0!==this.config&&void 0!==this.display.version&&this.readyEmitter.emit("ready")}},{key:"handleMessage",value:function(t){if("object"===n(t.data)){var e=t.source;if(e===this.window.parent){var r=t.data;switch(r.type){case this.getMessage("invocation.success"):this.invocationResponseEmitter.emit(r.invocationUid,{success:r});break;case this.getMessage("invocation.error"):this.invocationResponseEmitter.emit(r.invocationUid,{error:r});break;case this.getMessage("config.update"):this.config=r.config,this.checkIfReady();break;case this.getMessage("auth_hash.update"):this.authHash=r.authHash,this.checkIfReady();break;case this.getMessage("front_display_version.update"):this.display.version=r.version,this.checkIfReady();break;case this.getMessage("applet_version.update"):this.appletVersion=r.version;break;case this.getMessage("restore"):this.removeMediaListeners();break;case this.getMessage("assets.load_js"):this.javascriptLoadFileController.load(r.src,this.window.document.body);break;default:this.browser.handleMessageData(r),this.sync.handleMessageData(r),this.video.handleMessageData(r),this.stream.handleMessageData(r),this.input.handleMessageData(r),this.command.handleMessageData(r),this.fileSystem.handleMessageData(r),this.sensors.handleMessageData(r),this.management.wifi.handleMessageData(r),this.hardware.handleMessageData(r),this.touch.handleMessageData(r),this.debug.handleMessageData(r),this.connect.handleMessageData(r)}this.iframe.forwardToFrontAppletWindows(r)}else if(function(t){return Boolean(t)}(e)&&e!==this.window){var i=t.data;switch(i.type){case this.messagePrefix+"_loader.ready":this.iframe.registerFrontAppletLoaderWindow(e);break;case this.messagePrefix+"_api.ready":this.iframe.registerBundledFrontAppletWindow(e);break;default:this.iframe.forwardFromFrontAppletWindows(e,i)}}}}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}},{key:"startPinging",value:function(){var t=this,e=function(){return t.postMessage({type:t.getMessage("ping")})};this.window.setInterval(e,3e4),e()}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=N},function(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(60),e.createHash=e.Hash=r(66),e.createHmac=e.Hmac=r(184);var n=r(428),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=r(186);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var u=r(468);e.Cipher=u.Cipher,e.createCipher=u.createCipher,e.Cipheriv=u.Cipheriv,e.createCipheriv=u.createCipheriv,e.Decipher=u.Decipher,e.createDecipher=u.createDecipher,e.Decipheriv=u.Decipheriv,e.createDecipheriv=u.createDecipheriv,e.getCiphers=u.getCiphers,e.listCiphers=u.listCiphers;var s=r(485);e.DiffieHellmanGroup=s.DiffieHellmanGroup,e.createDiffieHellmanGroup=s.createDiffieHellmanGroup,e.getDiffieHellman=s.getDiffieHellman,e.createDiffieHellman=s.createDiffieHellman,e.DiffieHellman=s.DiffieHellman;var c=r(490);e.createSign=c.createSign,e.Sign=c.Sign,e.createVerify=c.createVerify,e.Verify=c.Verify,e.createECDH=r(527);var f=r(528);e.publicEncrypt=f.publicEncrypt,e.privateEncrypt=f.privateEncrypt,e.publicDecrypt=f.publicDecrypt,e.privateDecrypt=f.privateDecrypt;var l=r(531);e.randomFill=l.randomFill,e.randomFillSync=l.randomFillSync,e.createCredentials=function(){throw new Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,r){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=c(t),a=n[0],u=n[1],s=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),f=0,l=u>0?a-4:a;for(r=0;r<l;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],s[f++]=e>>16&255,s[f++]=e>>8&255,s[f++]=255&e;2===u&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,s[f++]=255&e);1===u&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,s[f++]=e>>8&255,s[f++]=255&e);return s},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,u=r-i;a<u;a+=16383)o.push(f(t,a,a+16383>u?u:a+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,s=a.length;u<s;++u)n[u]=a[u],i[a.charCodeAt(u)]=u;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,r){for(var i,o,a=[],u=e;u<r;u+=3)i=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(255&t[u+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){
18
+ */(function(){var o="Expected a function",a="__lodash_placeholder__",u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",c="[object Array]",f="[object Boolean]",l="[object Date]",h="[object Error]",p="[object Function]",d="[object GeneratorFunction]",y="[object Map]",v="[object Number]",g="[object Object]",m="[object RegExp]",b="[object Set]",w="[object String]",_="[object Symbol]",x="[object WeakMap]",M="[object ArrayBuffer]",E="[object DataView]",S="[object Float32Array]",O="[object Float64Array]",k="[object Int8Array]",L="[object Int16Array]",P="[object Int32Array]",j="[object Uint8Array]",A="[object Uint16Array]",R="[object Uint32Array]",T=/\b__p \+= '';/g,I=/\b(__p \+=) '' \+/g,F=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,C=/[&<>"']/g,D=RegExp(N.source),G=RegExp(C.source),q=/<%-([\s\S]+?)%>/g,B=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,H=RegExp(W.source),K=/^\s+/,X=/\s/,$=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Z=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,ut=/^0o[0-7]+$/i,st=/^(?:0|[1-9]\d*)$/,ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ft=/($^)/,lt=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pt="\\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",dt="[\\ud800-\\udfff]",yt="["+pt+"]",vt="["+ht+"]",gt="\\d+",mt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+pt+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",xt="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",St="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ot="(?:"+bt+"|"+wt+")",kt="(?:"+St+"|"+wt+")",Lt="(?:"+vt+"|"+_t+")"+"?",Pt="[\\ufe0e\\ufe0f]?"+Lt+("(?:\\u200d(?:"+[xt,Mt,Et].join("|")+")[\\ufe0e\\ufe0f]?"+Lt+")*"),jt="(?:"+[mt,Mt,Et].join("|")+")"+Pt,At="(?:"+[xt+vt+"?",vt,Mt,Et,dt].join("|")+")",Rt=RegExp("['’]","g"),Tt=RegExp(vt,"g"),It=RegExp(_t+"(?="+_t+")|"+At+Pt,"g"),Ft=RegExp([St+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[yt,St,"$"].join("|")+")",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[yt,St+Ot,"$"].join("|")+")",St+"?"+Ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?",St+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,jt].join("|"),"g"),Nt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),Ct=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dt=["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"],Gt=-1,qt={};qt[S]=qt[O]=qt[k]=qt[L]=qt[P]=qt[j]=qt["[object Uint8ClampedArray]"]=qt[A]=qt[R]=!0,qt[s]=qt[c]=qt[M]=qt[f]=qt[E]=qt[l]=qt[h]=qt[p]=qt[y]=qt[v]=qt[g]=qt[m]=qt[b]=qt[w]=qt[x]=!1;var Bt={};Bt[s]=Bt[c]=Bt[M]=Bt[E]=Bt[f]=Bt[l]=Bt[S]=Bt[O]=Bt[k]=Bt[L]=Bt[P]=Bt[y]=Bt[v]=Bt[g]=Bt[m]=Bt[b]=Bt[w]=Bt[_]=Bt[j]=Bt["[object Uint8ClampedArray]"]=Bt[A]=Bt[R]=!0,Bt[h]=Bt[p]=Bt[x]=!1;var Ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zt=parseFloat,Vt=parseInt,Yt="object"==typeof t&&t&&t.Object===Object&&t,Wt="object"==typeof self&&self&&self.Object===Object&&self,Ht=Yt||Wt||Function("return this")(),Kt=e&&!e.nodeType&&e,Xt=Kt&&"object"==typeof n&&n&&!n.nodeType&&n,$t=Xt&&Xt.exports===Kt,Zt=$t&&Yt.process,Jt=function(){try{var t=Xt&&Xt.require&&Xt.require("util").types;return t||Zt&&Zt.binding&&Zt.binding("util")}catch(t){}}(),Qt=Jt&&Jt.isArrayBuffer,te=Jt&&Jt.isDate,ee=Jt&&Jt.isMap,re=Jt&&Jt.isRegExp,ne=Jt&&Jt.isSet,ie=Jt&&Jt.isTypedArray;function oe(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function ae(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(n,a,r(a),t)}return n}function ue(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function se(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function ce(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function fe(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}function le(t,e){return!!(null==t?0:t.length)&&_e(t,e,0)>-1}function he(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}function pe(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}function de(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}function ye(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}function ve(t,e,r,n){var i=null==t?0:t.length;for(n&&i&&(r=t[--i]);i--;)r=e(r,t[i],i,t);return r}function ge(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var me=Se("length");function be(t,e,r){var n;return r(t,(function(t,r,i){if(e(t,r,i))return n=r,!1})),n}function we(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function _e(t,e,r){return e==e?function(t,e,r){var n=r-1,i=t.length;for(;++n<i;)if(t[n]===e)return n;return-1}(t,e,r):we(t,Me,r)}function xe(t,e,r,n){for(var i=r-1,o=t.length;++i<o;)if(n(t[i],e))return i;return-1}function Me(t){return t!=t}function Ee(t,e){var r=null==t?0:t.length;return r?Le(t,e)/r:NaN}function Se(t){return function(e){return null==e?void 0:e[t]}}function Oe(t){return function(e){return null==t?void 0:t[e]}}function ke(t,e,r,n,i){return i(t,(function(t,i,o){r=n?(n=!1,t):e(r,t,i,o)})),r}function Le(t,e){for(var r,n=-1,i=t.length;++n<i;){var o=e(t[n]);void 0!==o&&(r=void 0===r?o:r+o)}return r}function Pe(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function je(t){return t?t.slice(0,Ke(t)+1).replace(K,""):t}function Ae(t){return function(e){return t(e)}}function Re(t,e){return pe(e,(function(e){return t[e]}))}function Te(t,e){return t.has(e)}function Ie(t,e){for(var r=-1,n=t.length;++r<n&&_e(e,t[r],0)>-1;);return r}function Fe(t,e){for(var r=t.length;r--&&_e(e,t[r],0)>-1;);return r}function Ne(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}var Ce=Oe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),De=Oe({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Ge(t){return"\\"+Ut[t]}function qe(t){return Nt.test(t)}function Be(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function Ue(t,e){return function(r){return t(e(r))}}function ze(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var u=t[r];u!==e&&u!==a||(t[r]=a,o[i++]=r)}return o}function Ve(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function Ye(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}function We(t){return qe(t)?function(t){var e=It.lastIndex=0;for(;It.test(t);)++e;return e}(t):me(t)}function He(t){return qe(t)?function(t){return t.match(It)||[]}(t):function(t){return t.split("")}(t)}function Ke(t){for(var e=t.length;e--&&X.test(t.charAt(e)););return e}var Xe=Oe({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var $e=function t(e){var r,n=(e=null==e?Ht:$e.defaults(Ht.Object(),e,$e.pick(Ht,Dt))).Array,i=e.Date,X=e.Error,ht=e.Function,pt=e.Math,dt=e.Object,yt=e.RegExp,vt=e.String,gt=e.TypeError,mt=n.prototype,bt=ht.prototype,wt=dt.prototype,_t=e["__core-js_shared__"],xt=bt.toString,Mt=wt.hasOwnProperty,Et=0,St=(r=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ot=wt.toString,kt=xt.call(dt),Lt=Ht._,Pt=yt("^"+xt.call(Mt).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jt=$t?e.Buffer:void 0,At=e.Symbol,It=e.Uint8Array,Nt=jt?jt.allocUnsafe:void 0,Ut=Ue(dt.getPrototypeOf,dt),Yt=dt.create,Wt=wt.propertyIsEnumerable,Kt=mt.splice,Xt=At?At.isConcatSpreadable:void 0,Zt=At?At.iterator:void 0,Jt=At?At.toStringTag:void 0,me=function(){try{var t=to(dt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Oe=e.clearTimeout!==Ht.clearTimeout&&e.clearTimeout,Ze=i&&i.now!==Ht.Date.now&&i.now,Je=e.setTimeout!==Ht.setTimeout&&e.setTimeout,Qe=pt.ceil,tr=pt.floor,er=dt.getOwnPropertySymbols,rr=jt?jt.isBuffer:void 0,nr=e.isFinite,ir=mt.join,or=Ue(dt.keys,dt),ar=pt.max,ur=pt.min,sr=i.now,cr=e.parseInt,fr=pt.random,lr=mt.reverse,hr=to(e,"DataView"),pr=to(e,"Map"),dr=to(e,"Promise"),yr=to(e,"Set"),vr=to(e,"WeakMap"),gr=to(dt,"create"),mr=vr&&new vr,br={},wr=Lo(hr),_r=Lo(pr),xr=Lo(dr),Mr=Lo(yr),Er=Lo(vr),Sr=At?At.prototype:void 0,Or=Sr?Sr.valueOf:void 0,kr=Sr?Sr.toString:void 0;function Lr(t){if(Ya(t)&&!Ia(t)&&!(t instanceof Rr)){if(t instanceof Ar)return t;if(Mt.call(t,"__wrapped__"))return Po(t)}return new Ar(t)}var Pr=function(){function t(){}return function(e){if(!Va(e))return{};if(Yt)return Yt(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function jr(){}function Ar(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Rr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Tr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ir(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Fr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Nr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Fr;++e<r;)this.add(t[e])}function Cr(t){var e=this.__data__=new Ir(t);this.size=e.size}function Dr(t,e){var r=Ia(t),n=!r&&Ta(t),i=!r&&!n&&Da(t),o=!r&&!n&&!i&&Qa(t),a=r||n||i||o,u=a?Pe(t.length,vt):[],s=u.length;for(var c in t)!e&&!Mt.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||uo(c,s))||u.push(c);return u}function Gr(t){var e=t.length;return e?t[Cn(0,e-1)]:void 0}function qr(t,e){return So(mi(t),Xr(e,0,t.length))}function Br(t){return So(mi(t))}function Ur(t,e,r){(void 0!==r&&!ja(t[e],r)||void 0===r&&!(e in t))&&Hr(t,e,r)}function zr(t,e,r){var n=t[e];Mt.call(t,e)&&ja(n,r)&&(void 0!==r||e in t)||Hr(t,e,r)}function Vr(t,e){for(var r=t.length;r--;)if(ja(t[r][0],e))return r;return-1}function Yr(t,e,r,n){return tn(t,(function(t,i,o){e(n,t,r(t),o)})),n}function Wr(t,e){return t&&bi(e,_u(e),t)}function Hr(t,e,r){"__proto__"==e&&me?me(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Kr(t,e){for(var r=-1,i=e.length,o=n(i),a=null==t;++r<i;)o[r]=a?void 0:vu(t,e[r]);return o}function Xr(t,e,r){return t==t&&(void 0!==r&&(t=t<=r?t:r),void 0!==e&&(t=t>=e?t:e)),t}function $r(t,e,r,n,i,o){var a,u=1&e,c=2&e,h=4&e;if(r&&(a=i?r(t,n,i,o):r(t)),void 0!==a)return a;if(!Va(t))return t;var x=Ia(t);if(x){if(a=function(t){var e=t.length,r=new t.constructor(e);e&&"string"==typeof t[0]&&Mt.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!u)return mi(t,a)}else{var T=no(t),I=T==p||T==d;if(Da(t))return hi(t,u);if(T==g||T==s||I&&!i){if(a=c||I?{}:oo(t),!u)return c?function(t,e){return bi(t,ro(t),e)}(t,function(t,e){return t&&bi(e,xu(e),t)}(a,t)):function(t,e){return bi(t,eo(t),e)}(t,Wr(a,t))}else{if(!Bt[T])return i?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case M:return pi(t);case f:case l:return new n(+t);case E:return function(t,e){var r=e?pi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case S:case O:case k:case L:case P:case j:case"[object Uint8ClampedArray]":case A:case R:return di(t,r);case y:return new n;case v:case w:return new n(t);case m:return function(t){var e=new t.constructor(t.source,nt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new n;case _:return i=t,Or?dt(Or.call(i)):{}}var i}(t,T,u)}}o||(o=new Cr);var F=o.get(t);if(F)return F;o.set(t,a),$a(t)?t.forEach((function(n){a.add($r(n,e,r,n,t,o))})):Wa(t)&&t.forEach((function(n,i){a.set(i,$r(n,e,r,i,t,o))}));var N=x?void 0:(h?c?Hi:Wi:c?xu:_u)(t);return ue(N||t,(function(n,i){N&&(n=t[i=n]),zr(a,i,$r(n,e,r,i,t,o))})),a}function Zr(t,e,r){var n=r.length;if(null==t)return!n;for(t=dt(t);n--;){var i=r[n],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function Jr(t,e,r){if("function"!=typeof t)throw new gt(o);return _o((function(){t.apply(void 0,r)}),e)}function Qr(t,e,r,n){var i=-1,o=le,a=!0,u=t.length,s=[],c=e.length;if(!u)return s;r&&(e=pe(e,Ae(r))),n?(o=he,a=!1):e.length>=200&&(o=Te,a=!1,e=new Nr(e));t:for(;++i<u;){var f=t[i],l=null==r?f:r(f);if(f=n||0!==f?f:0,a&&l==l){for(var h=c;h--;)if(e[h]===l)continue t;s.push(f)}else o(e,l,n)||s.push(f)}return s}Lr.templateSettings={escape:q,evaluate:B,interpolate:U,variable:"",imports:{_:Lr}},Lr.prototype=jr.prototype,Lr.prototype.constructor=Lr,Ar.prototype=Pr(jr.prototype),Ar.prototype.constructor=Ar,Rr.prototype=Pr(jr.prototype),Rr.prototype.constructor=Rr,Tr.prototype.clear=function(){this.__data__=gr?gr(null):{},this.size=0},Tr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Tr.prototype.get=function(t){var e=this.__data__;if(gr){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Mt.call(e,t)?e[t]:void 0},Tr.prototype.has=function(t){var e=this.__data__;return gr?void 0!==e[t]:Mt.call(e,t)},Tr.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=gr&&void 0===e?"__lodash_hash_undefined__":e,this},Ir.prototype.clear=function(){this.__data__=[],this.size=0},Ir.prototype.delete=function(t){var e=this.__data__,r=Vr(e,t);return!(r<0)&&(r==e.length-1?e.pop():Kt.call(e,r,1),--this.size,!0)},Ir.prototype.get=function(t){var e=this.__data__,r=Vr(e,t);return r<0?void 0:e[r][1]},Ir.prototype.has=function(t){return Vr(this.__data__,t)>-1},Ir.prototype.set=function(t,e){var r=this.__data__,n=Vr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Fr.prototype.clear=function(){this.size=0,this.__data__={hash:new Tr,map:new(pr||Ir),string:new Tr}},Fr.prototype.delete=function(t){var e=Ji(this,t).delete(t);return this.size-=e?1:0,e},Fr.prototype.get=function(t){return Ji(this,t).get(t)},Fr.prototype.has=function(t){return Ji(this,t).has(t)},Fr.prototype.set=function(t,e){var r=Ji(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Nr.prototype.add=Nr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Nr.prototype.has=function(t){return this.__data__.has(t)},Cr.prototype.clear=function(){this.__data__=new Ir,this.size=0},Cr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Cr.prototype.get=function(t){return this.__data__.get(t)},Cr.prototype.has=function(t){return this.__data__.has(t)},Cr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Ir){var n=r.__data__;if(!pr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Fr(n)}return r.set(t,e),this.size=r.size,this};var tn=xi(cn),en=xi(fn,!0);function rn(t,e){var r=!0;return tn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function nn(t,e,r){for(var n=-1,i=t.length;++n<i;){var o=t[n],a=e(o);if(null!=a&&(void 0===u?a==a&&!Ja(a):r(a,u)))var u=a,s=o}return s}function on(t,e){var r=[];return tn(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r}function an(t,e,r,n,i){var o=-1,a=t.length;for(r||(r=ao),i||(i=[]);++o<a;){var u=t[o];e>0&&r(u)?e>1?an(u,e-1,r,n,i):de(i,u):n||(i[i.length]=u)}return i}var un=Mi(),sn=Mi(!0);function cn(t,e){return t&&un(t,e,_u)}function fn(t,e){return t&&sn(t,e,_u)}function ln(t,e){return fe(e,(function(e){return Ba(t[e])}))}function hn(t,e){for(var r=0,n=(e=si(e,t)).length;null!=t&&r<n;)t=t[ko(e[r++])];return r&&r==n?t:void 0}function pn(t,e,r){var n=e(t);return Ia(t)?n:de(n,r(t))}function dn(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Jt&&Jt in dt(t)?function(t){var e=Mt.call(t,Jt),r=t[Jt];try{t[Jt]=void 0;var n=!0}catch(t){}var i=Ot.call(t);n&&(e?t[Jt]=r:delete t[Jt]);return i}(t):function(t){return Ot.call(t)}(t)}function yn(t,e){return t>e}function vn(t,e){return null!=t&&Mt.call(t,e)}function gn(t,e){return null!=t&&e in dt(t)}function mn(t,e,r){for(var i=r?he:le,o=t[0].length,a=t.length,u=a,s=n(a),c=1/0,f=[];u--;){var l=t[u];u&&e&&(l=pe(l,Ae(e))),c=ur(l.length,c),s[u]=!r&&(e||o>=120&&l.length>=120)?new Nr(u&&l):void 0}l=t[0];var h=-1,p=s[0];t:for(;++h<o&&f.length<c;){var d=l[h],y=e?e(d):d;if(d=r||0!==d?d:0,!(p?Te(p,y):i(f,y,r))){for(u=a;--u;){var v=s[u];if(!(v?Te(v,y):i(t[u],y,r)))continue t}p&&p.push(y),f.push(d)}}return f}function bn(t,e,r){var n=null==(t=go(t,e=si(e,t)))?t:t[ko(qo(e))];return null==n?void 0:oe(n,t,r)}function wn(t){return Ya(t)&&dn(t)==s}function _n(t,e,r,n,i){return t===e||(null==t||null==e||!Ya(t)&&!Ya(e)?t!=t&&e!=e:function(t,e,r,n,i,o){var a=Ia(t),u=Ia(e),p=a?c:no(t),d=u?c:no(e),x=(p=p==s?g:p)==g,S=(d=d==s?g:d)==g,O=p==d;if(O&&Da(t)){if(!Da(e))return!1;a=!0,x=!1}if(O&&!x)return o||(o=new Cr),a||Qa(t)?Vi(t,e,r,n,i,o):function(t,e,r,n,i,o,a){switch(r){case E:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case M:return!(t.byteLength!=e.byteLength||!o(new It(t),new It(e)));case f:case l:case v:return ja(+t,+e);case h:return t.name==e.name&&t.message==e.message;case m:case w:return t==e+"";case y:var u=Be;case b:var s=1&n;if(u||(u=Ve),t.size!=e.size&&!s)return!1;var c=a.get(t);if(c)return c==e;n|=2,a.set(t,e);var p=Vi(u(t),u(e),n,i,o,a);return a.delete(t),p;case _:if(Or)return Or.call(t)==Or.call(e)}return!1}(t,e,p,r,n,i,o);if(!(1&r)){var k=x&&Mt.call(t,"__wrapped__"),L=S&&Mt.call(e,"__wrapped__");if(k||L){var P=k?t.value():t,j=L?e.value():e;return o||(o=new Cr),i(P,j,r,n,o)}}if(!O)return!1;return o||(o=new Cr),function(t,e,r,n,i,o){var a=1&r,u=Wi(t),s=u.length,c=Wi(e).length;if(s!=c&&!a)return!1;var f=s;for(;f--;){var l=u[f];if(!(a?l in e:Mt.call(e,l)))return!1}var h=o.get(t),p=o.get(e);if(h&&p)return h==e&&p==t;var d=!0;o.set(t,e),o.set(e,t);var y=a;for(;++f<s;){l=u[f];var v=t[l],g=e[l];if(n)var m=a?n(g,v,l,e,t,o):n(v,g,l,t,e,o);if(!(void 0===m?v===g||i(v,g,r,n,o):m)){d=!1;break}y||(y="constructor"==l)}if(d&&!y){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(d=!1)}return o.delete(t),o.delete(e),d}(t,e,r,n,i,o)}(t,e,r,n,_n,i))}function xn(t,e,r,n){var i=r.length,o=i,a=!n;if(null==t)return!o;for(t=dt(t);i--;){var u=r[i];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){var s=(u=r[i])[0],c=t[s],f=u[1];if(a&&u[2]){if(void 0===c&&!(s in t))return!1}else{var l=new Cr;if(n)var h=n(c,f,s,t,e,l);if(!(void 0===h?_n(f,c,3,n,l):h))return!1}}return!0}function Mn(t){return!(!Va(t)||(e=t,St&&St in e))&&(Ba(t)?Pt:at).test(Lo(t));var e}function En(t){return"function"==typeof t?t:null==t?Hu:"object"==typeof t?Ia(t)?jn(t[0],t[1]):Pn(t):rs(t)}function Sn(t){if(!ho(t))return or(t);var e=[];for(var r in dt(t))Mt.call(t,r)&&"constructor"!=r&&e.push(r);return e}function On(t){if(!Va(t))return function(t){var e=[];if(null!=t)for(var r in dt(t))e.push(r);return e}(t);var e=ho(t),r=[];for(var n in t)("constructor"!=n||!e&&Mt.call(t,n))&&r.push(n);return r}function kn(t,e){return t<e}function Ln(t,e){var r=-1,i=Na(t)?n(t.length):[];return tn(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function Pn(t){var e=Qi(t);return 1==e.length&&e[0][2]?yo(e[0][0],e[0][1]):function(r){return r===t||xn(r,t,e)}}function jn(t,e){return co(t)&&po(e)?yo(ko(t),e):function(r){var n=vu(r,t);return void 0===n&&n===e?gu(r,t):_n(e,n,3)}}function An(t,e,r,n,i){t!==e&&un(e,(function(o,a){if(i||(i=new Cr),Va(o))!function(t,e,r,n,i,o,a){var u=bo(t,r),s=bo(e,r),c=a.get(s);if(c)return void Ur(t,r,c);var f=o?o(u,s,r+"",t,e,a):void 0,l=void 0===f;if(l){var h=Ia(s),p=!h&&Da(s),d=!h&&!p&&Qa(s);f=s,h||p||d?Ia(u)?f=u:Ca(u)?f=mi(u):p?(l=!1,f=hi(s,!0)):d?(l=!1,f=di(s,!0)):f=[]:Ka(s)||Ta(s)?(f=u,Ta(u)?f=uu(u):Va(u)&&!Ba(u)||(f=oo(s))):l=!1}l&&(a.set(s,f),i(f,s,n,o,a),a.delete(s));Ur(t,r,f)}(t,e,a,r,An,n,i);else{var u=n?n(bo(t,a),o,a+"",t,e,i):void 0;void 0===u&&(u=o),Ur(t,a,u)}}),xu)}function Rn(t,e){var r=t.length;if(r)return uo(e+=e<0?r:0,r)?t[e]:void 0}function Tn(t,e,r){e=e.length?pe(e,(function(t){return Ia(t)?function(e){return hn(e,1===t.length?t[0]:t)}:t})):[Hu];var n=-1;return e=pe(e,Ae(Zi())),function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}(Ln(t,(function(t,r,i){return{criteria:pe(e,(function(e){return e(t)})),index:++n,value:t}})),(function(t,e){return function(t,e,r){var n=-1,i=t.criteria,o=e.criteria,a=i.length,u=r.length;for(;++n<a;){var s=yi(i[n],o[n]);if(s){if(n>=u)return s;var c=r[n];return s*("desc"==c?-1:1)}}return t.index-e.index}(t,e,r)}))}function In(t,e,r){for(var n=-1,i=e.length,o={};++n<i;){var a=e[n],u=hn(t,a);r(u,a)&&Un(o,si(a,t),u)}return o}function Fn(t,e,r,n){var i=n?xe:_e,o=-1,a=e.length,u=t;for(t===e&&(e=mi(e)),r&&(u=pe(t,Ae(r)));++o<a;)for(var s=0,c=e[o],f=r?r(c):c;(s=i(u,f,s,n))>-1;)u!==t&&Kt.call(u,s,1),Kt.call(t,s,1);return t}function Nn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;uo(i)?Kt.call(t,i,1):ti(t,i)}}return t}function Cn(t,e){return t+tr(fr()*(e-t+1))}function Dn(t,e){var r="";if(!t||e<1||e>9007199254740991)return r;do{e%2&&(r+=t),(e=tr(e/2))&&(t+=t)}while(e);return r}function Gn(t,e){return xo(vo(t,e,Hu),t+"")}function qn(t){return Gr(ju(t))}function Bn(t,e){var r=ju(t);return So(r,Xr(e,0,r.length))}function Un(t,e,r,n){if(!Va(t))return t;for(var i=-1,o=(e=si(e,t)).length,a=o-1,u=t;null!=u&&++i<o;){var s=ko(e[i]),c=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(i!=a){var f=u[s];void 0===(c=n?n(f,s,u):void 0)&&(c=Va(f)?f:uo(e[i+1])?[]:{})}zr(u,s,c),u=u[s]}return t}var zn=mr?function(t,e){return mr.set(t,e),t}:Hu,Vn=me?function(t,e){return me(t,"toString",{configurable:!0,enumerable:!1,value:Vu(e),writable:!0})}:Hu;function Yn(t){return So(ju(t))}function Wn(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=n(o);++i<o;)a[i]=t[i+e];return a}function Hn(t,e){var r;return tn(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r}function Kn(t,e,r){var n=0,i=null==t?n:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=t[o];null!==a&&!Ja(a)&&(r?a<=e:a<e)?n=o+1:i=o}return i}return Xn(t,e,Hu,r)}function Xn(t,e,r,n){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=r(e))!=e,u=null===e,s=Ja(e),c=void 0===e;i<o;){var f=tr((i+o)/2),l=r(t[f]),h=void 0!==l,p=null===l,d=l==l,y=Ja(l);if(a)var v=n||d;else v=c?d&&(n||h):u?d&&h&&(n||!p):s?d&&h&&!p&&(n||!y):!p&&!y&&(n?l<=e:l<e);v?i=f+1:o=f}return ur(o,4294967294)}function $n(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var a=t[r],u=e?e(a):a;if(!r||!ja(u,s)){var s=u;o[i++]=0===a?0:a}}return o}function Zn(t){return"number"==typeof t?t:Ja(t)?NaN:+t}function Jn(t){if("string"==typeof t)return t;if(Ia(t))return pe(t,Jn)+"";if(Ja(t))return kr?kr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Qn(t,e,r){var n=-1,i=le,o=t.length,a=!0,u=[],s=u;if(r)a=!1,i=he;else if(o>=200){var c=e?null:Di(t);if(c)return Ve(c);a=!1,i=Te,s=new Nr}else s=e?[]:u;t:for(;++n<o;){var f=t[n],l=e?e(f):f;if(f=r||0!==f?f:0,a&&l==l){for(var h=s.length;h--;)if(s[h]===l)continue t;e&&s.push(l),u.push(f)}else i(s,l,r)||(s!==u&&s.push(l),u.push(f))}return u}function ti(t,e){return null==(t=go(t,e=si(e,t)))||delete t[ko(qo(e))]}function ei(t,e,r,n){return Un(t,e,r(hn(t,e)),n)}function ri(t,e,r,n){for(var i=t.length,o=n?i:-1;(n?o--:++o<i)&&e(t[o],o,t););return r?Wn(t,n?0:o,n?o+1:i):Wn(t,n?o+1:0,n?i:o)}function ni(t,e){var r=t;return r instanceof Rr&&(r=r.value()),ye(e,(function(t,e){return e.func.apply(e.thisArg,de([t],e.args))}),r)}function ii(t,e,r){var i=t.length;if(i<2)return i?Qn(t[0]):[];for(var o=-1,a=n(i);++o<i;)for(var u=t[o],s=-1;++s<i;)s!=o&&(a[o]=Qr(a[o]||u,t[s],e,r));return Qn(an(a,1),e,r)}function oi(t,e,r){for(var n=-1,i=t.length,o=e.length,a={};++n<i;){var u=n<o?e[n]:void 0;r(a,t[n],u)}return a}function ai(t){return Ca(t)?t:[]}function ui(t){return"function"==typeof t?t:Hu}function si(t,e){return Ia(t)?t:co(t,e)?[t]:Oo(su(t))}var ci=Gn;function fi(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Wn(t,e,r)}var li=Oe||function(t){return Ht.clearTimeout(t)};function hi(t,e){if(e)return t.slice();var r=t.length,n=Nt?Nt(r):new t.constructor(r);return t.copy(n),n}function pi(t){var e=new t.constructor(t.byteLength);return new It(e).set(new It(t)),e}function di(t,e){var r=e?pi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function yi(t,e){if(t!==e){var r=void 0!==t,n=null===t,i=t==t,o=Ja(t),a=void 0!==e,u=null===e,s=e==e,c=Ja(e);if(!u&&!c&&!o&&t>e||o&&a&&s&&!u&&!c||n&&a&&s||!r&&s||!i)return 1;if(!n&&!o&&!c&&t<e||c&&r&&i&&!n&&!o||u&&r&&i||!a&&i||!s)return-1}return 0}function vi(t,e,r,i){for(var o=-1,a=t.length,u=r.length,s=-1,c=e.length,f=ar(a-u,0),l=n(c+f),h=!i;++s<c;)l[s]=e[s];for(;++o<u;)(h||o<a)&&(l[r[o]]=t[o]);for(;f--;)l[s++]=t[o++];return l}function gi(t,e,r,i){for(var o=-1,a=t.length,u=-1,s=r.length,c=-1,f=e.length,l=ar(a-s,0),h=n(l+f),p=!i;++o<l;)h[o]=t[o];for(var d=o;++c<f;)h[d+c]=e[c];for(;++u<s;)(p||o<a)&&(h[d+r[u]]=t[o++]);return h}function mi(t,e){var r=-1,i=t.length;for(e||(e=n(i));++r<i;)e[r]=t[r];return e}function bi(t,e,r,n){var i=!r;r||(r={});for(var o=-1,a=e.length;++o<a;){var u=e[o],s=n?n(r[u],t[u],u,r,t):void 0;void 0===s&&(s=t[u]),i?Hr(r,u,s):zr(r,u,s)}return r}function wi(t,e){return function(r,n){var i=Ia(r)?ae:Yr,o=e?e():{};return i(r,t,Zi(n,2),o)}}function _i(t){return Gn((function(e,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),e=dt(e);++n<i;){var u=r[n];u&&t(e,u,n,o)}return e}))}function xi(t,e){return function(r,n){if(null==r)return r;if(!Na(r))return t(r,n);for(var i=r.length,o=e?i:-1,a=dt(r);(e?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function Mi(t){return function(e,r,n){for(var i=-1,o=dt(e),a=n(e),u=a.length;u--;){var s=a[t?u:++i];if(!1===r(o[s],s,o))break}return e}}function Ei(t){return function(e){var r=qe(e=su(e))?He(e):void 0,n=r?r[0]:e.charAt(0),i=r?fi(r,1).join(""):e.slice(1);return n[t]()+i}}function Si(t){return function(e){return ye(Bu(Tu(e).replace(Rt,"")),t,"")}}function Oi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=Pr(t.prototype),n=t.apply(r,e);return Va(n)?n:r}}function ki(t){return function(e,r,n){var i=dt(e);if(!Na(e)){var o=Zi(r,3);e=_u(e),r=function(t){return o(i[t],t,i)}}var a=t(e,r,n);return a>-1?i[o?e[a]:a]:void 0}}function Li(t){return Yi((function(e){var r=e.length,n=r,i=Ar.prototype.thru;for(t&&e.reverse();n--;){var a=e[n];if("function"!=typeof a)throw new gt(o);if(i&&!u&&"wrapper"==Xi(a))var u=new Ar([],!0)}for(n=u?n:r;++n<r;){var s=Xi(a=e[n]),c="wrapper"==s?Ki(a):void 0;u=c&&fo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[Xi(c[0])].apply(u,c[3]):1==a.length&&fo(a)?u[s]():u.thru(a)}return function(){var t=arguments,n=t[0];if(u&&1==t.length&&Ia(n))return u.plant(n).value();for(var i=0,o=r?e[i].apply(this,t):n;++i<r;)o=e[i].call(this,o);return o}}))}function Pi(t,e,r,i,o,a,u,s,c,f){var l=128&e,h=1&e,p=2&e,d=24&e,y=512&e,v=p?void 0:Oi(t);return function g(){for(var m=arguments.length,b=n(m),w=m;w--;)b[w]=arguments[w];if(d)var _=$i(g),x=Ne(b,_);if(i&&(b=vi(b,i,o,d)),a&&(b=gi(b,a,u,d)),m-=x,d&&m<f){var M=ze(b,_);return Ni(t,e,Pi,g.placeholder,r,b,M,s,c,f-m)}var E=h?r:this,S=p?E[t]:t;return m=b.length,s?b=mo(b,s):y&&m>1&&b.reverse(),l&&c<m&&(b.length=c),this&&this!==Ht&&this instanceof g&&(S=v||Oi(S)),S.apply(E,b)}}function ji(t,e){return function(r,n){return function(t,e,r,n){return cn(t,(function(t,i,o){e(n,r(t),i,o)})),n}(r,t,e(n),{})}}function Ai(t,e){return function(r,n){var i;if(void 0===r&&void 0===n)return e;if(void 0!==r&&(i=r),void 0!==n){if(void 0===i)return n;"string"==typeof r||"string"==typeof n?(r=Jn(r),n=Jn(n)):(r=Zn(r),n=Zn(n)),i=t(r,n)}return i}}function Ri(t){return Yi((function(e){return e=pe(e,Ae(Zi())),Gn((function(r){var n=this;return t(e,(function(t){return oe(t,n,r)}))}))}))}function Ti(t,e){var r=(e=void 0===e?" ":Jn(e)).length;if(r<2)return r?Dn(e,t):e;var n=Dn(e,Qe(t/We(e)));return qe(e)?fi(He(n),0,t).join(""):n.slice(0,t)}function Ii(t){return function(e,r,i){return i&&"number"!=typeof i&&so(e,r,i)&&(r=i=void 0),e=nu(e),void 0===r?(r=e,e=0):r=nu(r),function(t,e,r,i){for(var o=-1,a=ar(Qe((e-t)/(r||1)),0),u=n(a);a--;)u[i?a:++o]=t,t+=r;return u}(e,r,i=void 0===i?e<r?1:-1:nu(i),t)}}function Fi(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=au(e),r=au(r)),t(e,r)}}function Ni(t,e,r,n,i,o,a,u,s,c){var f=8&e;e|=f?32:64,4&(e&=~(f?64:32))||(e&=-4);var l=[t,e,i,f?o:void 0,f?a:void 0,f?void 0:o,f?void 0:a,u,s,c],h=r.apply(void 0,l);return fo(t)&&wo(h,l),h.placeholder=n,Mo(h,t,e)}function Ci(t){var e=pt[t];return function(t,r){if(t=au(t),(r=null==r?0:ur(iu(r),292))&&nr(t)){var n=(su(t)+"e").split("e");return+((n=(su(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Di=yr&&1/Ve(new yr([,-0]))[1]==1/0?function(t){return new yr(t)}:Ju;function Gi(t){return function(e){var r=no(e);return r==y?Be(e):r==b?Ye(e):function(t,e){return pe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function qi(t,e,r,i,u,s,c,f){var l=2&e;if(!l&&"function"!=typeof t)throw new gt(o);var h=i?i.length:0;if(h||(e&=-97,i=u=void 0),c=void 0===c?c:ar(iu(c),0),f=void 0===f?f:iu(f),h-=u?u.length:0,64&e){var p=i,d=u;i=u=void 0}var y=l?void 0:Ki(t),v=[t,e,r,i,u,p,d,s,c,f];if(y&&function(t,e){var r=t[1],n=e[1],i=r|n,o=i<131,u=128==n&&8==r||128==n&&256==r&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!o&&!u)return t;1&n&&(t[2]=e[2],i|=1&r?0:4);var s=e[3];if(s){var c=t[3];t[3]=c?vi(c,s,e[4]):s,t[4]=c?ze(t[3],a):e[4]}(s=e[5])&&(c=t[5],t[5]=c?gi(c,s,e[6]):s,t[6]=c?ze(t[5],a):e[6]);(s=e[7])&&(t[7]=s);128&n&&(t[8]=null==t[8]?e[8]:ur(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(v,y),t=v[0],e=v[1],r=v[2],i=v[3],u=v[4],!(f=v[9]=void 0===v[9]?l?0:t.length:ar(v[9]-h,0))&&24&e&&(e&=-25),e&&1!=e)g=8==e||16==e?function(t,e,r){var i=Oi(t);return function o(){for(var a=arguments.length,u=n(a),s=a,c=$i(o);s--;)u[s]=arguments[s];var f=a<3&&u[0]!==c&&u[a-1]!==c?[]:ze(u,c);if((a-=f.length)<r)return Ni(t,e,Pi,o.placeholder,void 0,u,f,void 0,void 0,r-a);var l=this&&this!==Ht&&this instanceof o?i:t;return oe(l,this,u)}}(t,e,f):32!=e&&33!=e||u.length?Pi.apply(void 0,v):function(t,e,r,i){var o=1&e,a=Oi(t);return function e(){for(var u=-1,s=arguments.length,c=-1,f=i.length,l=n(f+s),h=this&&this!==Ht&&this instanceof e?a:t;++c<f;)l[c]=i[c];for(;s--;)l[c++]=arguments[++u];return oe(h,o?r:this,l)}}(t,e,r,i);else var g=function(t,e,r){var n=1&e,i=Oi(t);return function e(){var o=this&&this!==Ht&&this instanceof e?i:t;return o.apply(n?r:this,arguments)}}(t,e,r);return Mo((y?zn:wo)(g,v),t,e)}function Bi(t,e,r,n){return void 0===t||ja(t,wt[r])&&!Mt.call(n,r)?e:t}function Ui(t,e,r,n,i,o){return Va(t)&&Va(e)&&(o.set(e,t),An(t,e,void 0,Ui,o),o.delete(e)),t}function zi(t){return Ka(t)?void 0:t}function Vi(t,e,r,n,i,o){var a=1&r,u=t.length,s=e.length;if(u!=s&&!(a&&s>u))return!1;var c=o.get(t),f=o.get(e);if(c&&f)return c==e&&f==t;var l=-1,h=!0,p=2&r?new Nr:void 0;for(o.set(t,e),o.set(e,t);++l<u;){var d=t[l],y=e[l];if(n)var v=a?n(y,d,l,e,t,o):n(d,y,l,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!ge(e,(function(t,e){if(!Te(p,e)&&(d===t||i(d,t,r,n,o)))return p.push(e)}))){h=!1;break}}else if(d!==y&&!i(d,y,r,n,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function Yi(t){return xo(vo(t,void 0,Fo),t+"")}function Wi(t){return pn(t,_u,eo)}function Hi(t){return pn(t,xu,ro)}var Ki=mr?function(t){return mr.get(t)}:Ju;function Xi(t){for(var e=t.name+"",r=br[e],n=Mt.call(br,e)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==t)return i.name}return e}function $i(t){return(Mt.call(Lr,"placeholder")?Lr:t).placeholder}function Zi(){var t=Lr.iteratee||Ku;return t=t===Ku?En:t,arguments.length?t(arguments[0],arguments[1]):t}function Ji(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Qi(t){for(var e=_u(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,po(i)]}return e}function to(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Mn(r)?r:void 0}var eo=er?function(t){return null==t?[]:(t=dt(t),fe(er(t),(function(e){return Wt.call(t,e)})))}:os,ro=er?function(t){for(var e=[];t;)de(e,eo(t)),t=Ut(t);return e}:os,no=dn;function io(t,e,r){for(var n=-1,i=(e=si(e,t)).length,o=!1;++n<i;){var a=ko(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&za(i)&&uo(a,i)&&(Ia(t)||Ta(t))}function oo(t){return"function"!=typeof t.constructor||ho(t)?{}:Pr(Ut(t))}function ao(t){return Ia(t)||Ta(t)||!!(Xt&&t&&t[Xt])}function uo(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&st.test(t))&&t>-1&&t%1==0&&t<e}function so(t,e,r){if(!Va(r))return!1;var n=typeof e;return!!("number"==n?Na(r)&&uo(e,r.length):"string"==n&&e in r)&&ja(r[e],t)}function co(t,e){if(Ia(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Ja(t))||(V.test(t)||!z.test(t)||null!=e&&t in dt(e))}function fo(t){var e=Xi(t),r=Lr[e];if("function"!=typeof r||!(e in Rr.prototype))return!1;if(t===r)return!0;var n=Ki(r);return!!n&&t===n[0]}(hr&&no(new hr(new ArrayBuffer(1)))!=E||pr&&no(new pr)!=y||dr&&"[object Promise]"!=no(dr.resolve())||yr&&no(new yr)!=b||vr&&no(new vr)!=x)&&(no=function(t){var e=dn(t),r=e==g?t.constructor:void 0,n=r?Lo(r):"";if(n)switch(n){case wr:return E;case _r:return y;case xr:return"[object Promise]";case Mr:return b;case Er:return x}return e});var lo=_t?Ba:as;function ho(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||wt)}function po(t){return t==t&&!Va(t)}function yo(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in dt(r)))}}function vo(t,e,r){return e=ar(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=ar(i.length-e,0),u=n(a);++o<a;)u[o]=i[e+o];o=-1;for(var s=n(e+1);++o<e;)s[o]=i[o];return s[e]=r(u),oe(t,this,s)}}function go(t,e){return e.length<2?t:hn(t,Wn(e,0,-1))}function mo(t,e){for(var r=t.length,n=ur(e.length,r),i=mi(t);n--;){var o=e[n];t[n]=uo(o,r)?i[o]:void 0}return t}function bo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var wo=Eo(zn),_o=Je||function(t,e){return Ht.setTimeout(t,e)},xo=Eo(Vn);function Mo(t,e,r){var n=e+"";return xo(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace($,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return ue(u,(function(r){var n="_."+r[0];e&r[1]&&!le(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(Z);return e?e[1].split(J):[]}(n),r)))}function Eo(t){var e=0,r=0;return function(){var n=sr(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function So(t,e){var r=-1,n=t.length,i=n-1;for(e=void 0===e?n:e;++r<e;){var o=Cn(r,i),a=t[o];t[o]=t[r],t[r]=a}return t.length=e,t}var Oo=function(t){var e=Ea(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Y,(function(t,r,n,i){e.push(n?i.replace(et,"$1"):r||t)})),e}));function ko(t){if("string"==typeof t||Ja(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Lo(t){if(null!=t){try{return xt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Po(t){if(t instanceof Rr)return t.clone();var e=new Ar(t.__wrapped__,t.__chain__);return e.__actions__=mi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var jo=Gn((function(t,e){return Ca(t)?Qr(t,an(e,1,Ca,!0)):[]})),Ao=Gn((function(t,e){var r=qo(e);return Ca(r)&&(r=void 0),Ca(t)?Qr(t,an(e,1,Ca,!0),Zi(r,2)):[]})),Ro=Gn((function(t,e){var r=qo(e);return Ca(r)&&(r=void 0),Ca(t)?Qr(t,an(e,1,Ca,!0),void 0,r):[]}));function To(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:iu(r);return i<0&&(i=ar(n+i,0)),we(t,Zi(e,3),i)}function Io(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=n-1;return void 0!==r&&(i=iu(r),i=r<0?ar(n+i,0):ur(i,n-1)),we(t,Zi(e,3),i,!0)}function Fo(t){return(null==t?0:t.length)?an(t,1):[]}function No(t){return t&&t.length?t[0]:void 0}var Co=Gn((function(t){var e=pe(t,ai);return e.length&&e[0]===t[0]?mn(e):[]})),Do=Gn((function(t){var e=qo(t),r=pe(t,ai);return e===qo(r)?e=void 0:r.pop(),r.length&&r[0]===t[0]?mn(r,Zi(e,2)):[]})),Go=Gn((function(t){var e=qo(t),r=pe(t,ai);return(e="function"==typeof e?e:void 0)&&r.pop(),r.length&&r[0]===t[0]?mn(r,void 0,e):[]}));function qo(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Bo=Gn(Uo);function Uo(t,e){return t&&t.length&&e&&e.length?Fn(t,e):t}var zo=Yi((function(t,e){var r=null==t?0:t.length,n=Kr(t,e);return Nn(t,pe(e,(function(t){return uo(t,r)?+t:t})).sort(yi)),n}));function Vo(t){return null==t?t:lr.call(t)}var Yo=Gn((function(t){return Qn(an(t,1,Ca,!0))})),Wo=Gn((function(t){var e=qo(t);return Ca(e)&&(e=void 0),Qn(an(t,1,Ca,!0),Zi(e,2))})),Ho=Gn((function(t){var e=qo(t);return e="function"==typeof e?e:void 0,Qn(an(t,1,Ca,!0),void 0,e)}));function Ko(t){if(!t||!t.length)return[];var e=0;return t=fe(t,(function(t){if(Ca(t))return e=ar(t.length,e),!0})),Pe(e,(function(e){return pe(t,Se(e))}))}function Xo(t,e){if(!t||!t.length)return[];var r=Ko(t);return null==e?r:pe(r,(function(t){return oe(e,void 0,t)}))}var $o=Gn((function(t,e){return Ca(t)?Qr(t,e):[]})),Zo=Gn((function(t){return ii(fe(t,Ca))})),Jo=Gn((function(t){var e=qo(t);return Ca(e)&&(e=void 0),ii(fe(t,Ca),Zi(e,2))})),Qo=Gn((function(t){var e=qo(t);return e="function"==typeof e?e:void 0,ii(fe(t,Ca),void 0,e)})),ta=Gn(Ko);var ea=Gn((function(t){var e=t.length,r=e>1?t[e-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,Xo(t,r)}));function ra(t){var e=Lr(t);return e.__chain__=!0,e}function na(t,e){return e(t)}var ia=Yi((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,i=function(e){return Kr(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Rr&&uo(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Ar(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var oa=wi((function(t,e,r){Mt.call(t,r)?++t[r]:Hr(t,r,1)}));var aa=ki(To),ua=ki(Io);function sa(t,e){return(Ia(t)?ue:tn)(t,Zi(e,3))}function ca(t,e){return(Ia(t)?se:en)(t,Zi(e,3))}var fa=wi((function(t,e,r){Mt.call(t,r)?t[r].push(e):Hr(t,r,[e])}));var la=Gn((function(t,e,r){var i=-1,o="function"==typeof e,a=Na(t)?n(t.length):[];return tn(t,(function(t){a[++i]=o?oe(e,t,r):bn(t,e,r)})),a})),ha=wi((function(t,e,r){Hr(t,r,e)}));function pa(t,e){return(Ia(t)?pe:Ln)(t,Zi(e,3))}var da=wi((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]}));var ya=Gn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&so(t,e[0],e[1])?e=[]:r>2&&so(e[0],e[1],e[2])&&(e=[e[0]]),Tn(t,an(e,1),[])})),va=Ze||function(){return Ht.Date.now()};function ga(t,e,r){return e=r?void 0:e,qi(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ma(t,e){var r;if("function"!=typeof e)throw new gt(o);return t=iu(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=void 0),r}}var ba=Gn((function(t,e,r){var n=1;if(r.length){var i=ze(r,$i(ba));n|=32}return qi(t,n,e,r,i)})),wa=Gn((function(t,e,r){var n=3;if(r.length){var i=ze(r,$i(wa));n|=32}return qi(e,n,t,r,i)}));function _a(t,e,r){var n,i,a,u,s,c,f=0,l=!1,h=!1,p=!0;if("function"!=typeof t)throw new gt(o);function d(e){var r=n,o=i;return n=i=void 0,f=e,u=t.apply(o,r)}function y(t){return f=t,s=_o(g,e),l?d(t):u}function v(t){var r=t-c;return void 0===c||r>=e||r<0||h&&t-f>=a}function g(){var t=va();if(v(t))return m(t);s=_o(g,function(t){var r=e-(t-c);return h?ur(r,a-(t-f)):r}(t))}function m(t){return s=void 0,p&&n?d(t):(n=i=void 0,u)}function b(){var t=va(),r=v(t);if(n=arguments,i=this,c=t,r){if(void 0===s)return y(c);if(h)return li(s),s=_o(g,e),d(c)}return void 0===s&&(s=_o(g,e)),u}return e=au(e)||0,Va(r)&&(l=!!r.leading,a=(h="maxWait"in r)?ar(au(r.maxWait)||0,e):a,p="trailing"in r?!!r.trailing:p),b.cancel=function(){void 0!==s&&li(s),f=0,n=c=i=s=void 0},b.flush=function(){return void 0===s?u:m(va())},b}var xa=Gn((function(t,e){return Jr(t,1,e)})),Ma=Gn((function(t,e,r){return Jr(t,au(e)||0,r)}));function Ea(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new gt(o);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Ea.Cache||Fr),r}function Sa(t){if("function"!=typeof t)throw new gt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ea.Cache=Fr;var Oa=ci((function(t,e){var r=(e=1==e.length&&Ia(e[0])?pe(e[0],Ae(Zi())):pe(an(e,1),Ae(Zi()))).length;return Gn((function(n){for(var i=-1,o=ur(n.length,r);++i<o;)n[i]=e[i].call(this,n[i]);return oe(t,this,n)}))})),ka=Gn((function(t,e){return qi(t,32,void 0,e,ze(e,$i(ka)))})),La=Gn((function(t,e){return qi(t,64,void 0,e,ze(e,$i(La)))})),Pa=Yi((function(t,e){return qi(t,256,void 0,void 0,void 0,e)}));function ja(t,e){return t===e||t!=t&&e!=e}var Aa=Fi(yn),Ra=Fi((function(t,e){return t>=e})),Ta=wn(function(){return arguments}())?wn:function(t){return Ya(t)&&Mt.call(t,"callee")&&!Wt.call(t,"callee")},Ia=n.isArray,Fa=Qt?Ae(Qt):function(t){return Ya(t)&&dn(t)==M};function Na(t){return null!=t&&za(t.length)&&!Ba(t)}function Ca(t){return Ya(t)&&Na(t)}var Da=rr||as,Ga=te?Ae(te):function(t){return Ya(t)&&dn(t)==l};function qa(t){if(!Ya(t))return!1;var e=dn(t);return e==h||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ka(t)}function Ba(t){if(!Va(t))return!1;var e=dn(t);return e==p||e==d||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ua(t){return"number"==typeof t&&t==iu(t)}function za(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Va(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ya(t){return null!=t&&"object"==typeof t}var Wa=ee?Ae(ee):function(t){return Ya(t)&&no(t)==y};function Ha(t){return"number"==typeof t||Ya(t)&&dn(t)==v}function Ka(t){if(!Ya(t)||dn(t)!=g)return!1;var e=Ut(t);if(null===e)return!0;var r=Mt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&xt.call(r)==kt}var Xa=re?Ae(re):function(t){return Ya(t)&&dn(t)==m};var $a=ne?Ae(ne):function(t){return Ya(t)&&no(t)==b};function Za(t){return"string"==typeof t||!Ia(t)&&Ya(t)&&dn(t)==w}function Ja(t){return"symbol"==typeof t||Ya(t)&&dn(t)==_}var Qa=ie?Ae(ie):function(t){return Ya(t)&&za(t.length)&&!!qt[dn(t)]};var tu=Fi(kn),eu=Fi((function(t,e){return t<=e}));function ru(t){if(!t)return[];if(Na(t))return Za(t)?He(t):mi(t);if(Zt&&t[Zt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Zt]());var e=no(t);return(e==y?Be:e==b?Ve:ju)(t)}function nu(t){return t?(t=au(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function iu(t){var e=nu(t),r=e%1;return e==e?r?e-r:e:0}function ou(t){return t?Xr(iu(t),0,4294967295):0}function au(t){if("number"==typeof t)return t;if(Ja(t))return NaN;if(Va(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Va(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=je(t);var r=ot.test(t);return r||ut.test(t)?Vt(t.slice(2),r?2:8):it.test(t)?NaN:+t}function uu(t){return bi(t,xu(t))}function su(t){return null==t?"":Jn(t)}var cu=_i((function(t,e){if(ho(e)||Na(e))bi(e,_u(e),t);else for(var r in e)Mt.call(e,r)&&zr(t,r,e[r])})),fu=_i((function(t,e){bi(e,xu(e),t)})),lu=_i((function(t,e,r,n){bi(e,xu(e),t,n)})),hu=_i((function(t,e,r,n){bi(e,_u(e),t,n)})),pu=Yi(Kr);var du=Gn((function(t,e){t=dt(t);var r=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&so(e[0],e[1],i)&&(n=1);++r<n;)for(var o=e[r],a=xu(o),u=-1,s=a.length;++u<s;){var c=a[u],f=t[c];(void 0===f||ja(f,wt[c])&&!Mt.call(t,c))&&(t[c]=o[c])}return t})),yu=Gn((function(t){return t.push(void 0,Ui),oe(Eu,void 0,t)}));function vu(t,e,r){var n=null==t?void 0:hn(t,e);return void 0===n?r:n}function gu(t,e){return null!=t&&io(t,e,gn)}var mu=ji((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Ot.call(e)),t[e]=r}),Vu(Hu)),bu=ji((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Ot.call(e)),Mt.call(t,e)?t[e].push(r):t[e]=[r]}),Zi),wu=Gn(bn);function _u(t){return Na(t)?Dr(t):Sn(t)}function xu(t){return Na(t)?Dr(t,!0):On(t)}var Mu=_i((function(t,e,r){An(t,e,r)})),Eu=_i((function(t,e,r,n){An(t,e,r,n)})),Su=Yi((function(t,e){var r={};if(null==t)return r;var n=!1;e=pe(e,(function(e){return e=si(e,t),n||(n=e.length>1),e})),bi(t,Hi(t),r),n&&(r=$r(r,7,zi));for(var i=e.length;i--;)ti(r,e[i]);return r}));var Ou=Yi((function(t,e){return null==t?{}:function(t,e){return In(t,e,(function(e,r){return gu(t,r)}))}(t,e)}));function ku(t,e){if(null==t)return{};var r=pe(Hi(t),(function(t){return[t]}));return e=Zi(e),In(t,r,(function(t,r){return e(t,r[0])}))}var Lu=Gi(_u),Pu=Gi(xu);function ju(t){return null==t?[]:Re(t,_u(t))}var Au=Si((function(t,e,r){return e=e.toLowerCase(),t+(r?Ru(e):e)}));function Ru(t){return qu(su(t).toLowerCase())}function Tu(t){return(t=su(t))&&t.replace(ct,Ce).replace(Tt,"")}var Iu=Si((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Fu=Si((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Nu=Ei("toLowerCase");var Cu=Si((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()}));var Du=Si((function(t,e,r){return t+(r?" ":"")+qu(e)}));var Gu=Si((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),qu=Ei("toUpperCase");function Bu(t,e,r){return t=su(t),void 0===(e=r?void 0:e)?function(t){return Ct.test(t)}(t)?function(t){return t.match(Ft)||[]}(t):function(t){return t.match(Q)||[]}(t):t.match(e)||[]}var Uu=Gn((function(t,e){try{return oe(t,void 0,e)}catch(t){return qa(t)?t:new X(t)}})),zu=Yi((function(t,e){return ue(e,(function(e){e=ko(e),Hr(t,e,ba(t[e],t))})),t}));function Vu(t){return function(){return t}}var Yu=Li(),Wu=Li(!0);function Hu(t){return t}function Ku(t){return En("function"==typeof t?t:$r(t,1))}var Xu=Gn((function(t,e){return function(r){return bn(r,t,e)}})),$u=Gn((function(t,e){return function(r){return bn(t,r,e)}}));function Zu(t,e,r){var n=_u(e),i=ln(e,n);null!=r||Va(e)&&(i.length||!n.length)||(r=e,e=t,t=this,i=ln(e,_u(e)));var o=!(Va(r)&&"chain"in r&&!r.chain),a=Ba(t);return ue(i,(function(r){var n=e[r];t[r]=n,a&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__),i=r.__actions__=mi(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,de([this.value()],arguments))})})),t}function Ju(){}var Qu=Ri(pe),ts=Ri(ce),es=Ri(ge);function rs(t){return co(t)?Se(ko(t)):function(t){return function(e){return hn(e,t)}}(t)}var ns=Ii(),is=Ii(!0);function os(){return[]}function as(){return!1}var us=Ai((function(t,e){return t+e}),0),ss=Ci("ceil"),cs=Ai((function(t,e){return t/e}),1),fs=Ci("floor");var ls,hs=Ai((function(t,e){return t*e}),1),ps=Ci("round"),ds=Ai((function(t,e){return t-e}),0);return Lr.after=function(t,e){if("function"!=typeof e)throw new gt(o);return t=iu(t),function(){if(--t<1)return e.apply(this,arguments)}},Lr.ary=ga,Lr.assign=cu,Lr.assignIn=fu,Lr.assignInWith=lu,Lr.assignWith=hu,Lr.at=pu,Lr.before=ma,Lr.bind=ba,Lr.bindAll=zu,Lr.bindKey=wa,Lr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ia(t)?t:[t]},Lr.chain=ra,Lr.chunk=function(t,e,r){e=(r?so(t,e,r):void 0===e)?1:ar(iu(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,u=n(Qe(i/e));o<i;)u[a++]=Wn(t,o,o+=e);return u},Lr.compact=function(t){for(var e=-1,r=null==t?0:t.length,n=0,i=[];++e<r;){var o=t[e];o&&(i[n++]=o)}return i},Lr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),r=arguments[0],i=t;i--;)e[i-1]=arguments[i];return de(Ia(r)?mi(r):[r],an(e,1))},Lr.cond=function(t){var e=null==t?0:t.length,r=Zi();return t=e?pe(t,(function(t){if("function"!=typeof t[1])throw new gt(o);return[r(t[0]),t[1]]})):[],Gn((function(r){for(var n=-1;++n<e;){var i=t[n];if(oe(i[0],this,r))return oe(i[1],this,r)}}))},Lr.conforms=function(t){return function(t){var e=_u(t);return function(r){return Zr(r,t,e)}}($r(t,1))},Lr.constant=Vu,Lr.countBy=oa,Lr.create=function(t,e){var r=Pr(t);return null==e?r:Wr(r,e)},Lr.curry=function t(e,r,n){var i=qi(e,8,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return i.placeholder=t.placeholder,i},Lr.curryRight=function t(e,r,n){var i=qi(e,16,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return i.placeholder=t.placeholder,i},Lr.debounce=_a,Lr.defaults=du,Lr.defaultsDeep=yu,Lr.defer=xa,Lr.delay=Ma,Lr.difference=jo,Lr.differenceBy=Ao,Lr.differenceWith=Ro,Lr.drop=function(t,e,r){var n=null==t?0:t.length;return n?Wn(t,(e=r||void 0===e?1:iu(e))<0?0:e,n):[]},Lr.dropRight=function(t,e,r){var n=null==t?0:t.length;return n?Wn(t,0,(e=n-(e=r||void 0===e?1:iu(e)))<0?0:e):[]},Lr.dropRightWhile=function(t,e){return t&&t.length?ri(t,Zi(e,3),!0,!0):[]},Lr.dropWhile=function(t,e){return t&&t.length?ri(t,Zi(e,3),!0):[]},Lr.fill=function(t,e,r,n){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&so(t,e,r)&&(r=0,n=i),function(t,e,r,n){var i=t.length;for((r=iu(r))<0&&(r=-r>i?0:i+r),(n=void 0===n||n>i?i:iu(n))<0&&(n+=i),n=r>n?0:ou(n);r<n;)t[r++]=e;return t}(t,e,r,n)):[]},Lr.filter=function(t,e){return(Ia(t)?fe:on)(t,Zi(e,3))},Lr.flatMap=function(t,e){return an(pa(t,e),1)},Lr.flatMapDeep=function(t,e){return an(pa(t,e),1/0)},Lr.flatMapDepth=function(t,e,r){return r=void 0===r?1:iu(r),an(pa(t,e),r)},Lr.flatten=Fo,Lr.flattenDeep=function(t){return(null==t?0:t.length)?an(t,1/0):[]},Lr.flattenDepth=function(t,e){return(null==t?0:t.length)?an(t,e=void 0===e?1:iu(e)):[]},Lr.flip=function(t){return qi(t,512)},Lr.flow=Yu,Lr.flowRight=Wu,Lr.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var i=t[e];n[i[0]]=i[1]}return n},Lr.functions=function(t){return null==t?[]:ln(t,_u(t))},Lr.functionsIn=function(t){return null==t?[]:ln(t,xu(t))},Lr.groupBy=fa,Lr.initial=function(t){return(null==t?0:t.length)?Wn(t,0,-1):[]},Lr.intersection=Co,Lr.intersectionBy=Do,Lr.intersectionWith=Go,Lr.invert=mu,Lr.invertBy=bu,Lr.invokeMap=la,Lr.iteratee=Ku,Lr.keyBy=ha,Lr.keys=_u,Lr.keysIn=xu,Lr.map=pa,Lr.mapKeys=function(t,e){var r={};return e=Zi(e,3),cn(t,(function(t,n,i){Hr(r,e(t,n,i),t)})),r},Lr.mapValues=function(t,e){var r={};return e=Zi(e,3),cn(t,(function(t,n,i){Hr(r,n,e(t,n,i))})),r},Lr.matches=function(t){return Pn($r(t,1))},Lr.matchesProperty=function(t,e){return jn(t,$r(e,1))},Lr.memoize=Ea,Lr.merge=Mu,Lr.mergeWith=Eu,Lr.method=Xu,Lr.methodOf=$u,Lr.mixin=Zu,Lr.negate=Sa,Lr.nthArg=function(t){return t=iu(t),Gn((function(e){return Rn(e,t)}))},Lr.omit=Su,Lr.omitBy=function(t,e){return ku(t,Sa(Zi(e)))},Lr.once=function(t){return ma(2,t)},Lr.orderBy=function(t,e,r,n){return null==t?[]:(Ia(e)||(e=null==e?[]:[e]),Ia(r=n?void 0:r)||(r=null==r?[]:[r]),Tn(t,e,r))},Lr.over=Qu,Lr.overArgs=Oa,Lr.overEvery=ts,Lr.overSome=es,Lr.partial=ka,Lr.partialRight=La,Lr.partition=da,Lr.pick=Ou,Lr.pickBy=ku,Lr.property=rs,Lr.propertyOf=function(t){return function(e){return null==t?void 0:hn(t,e)}},Lr.pull=Bo,Lr.pullAll=Uo,Lr.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Fn(t,e,Zi(r,2)):t},Lr.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Fn(t,e,void 0,r):t},Lr.pullAt=zo,Lr.range=ns,Lr.rangeRight=is,Lr.rearg=Pa,Lr.reject=function(t,e){return(Ia(t)?fe:on)(t,Sa(Zi(e,3)))},Lr.remove=function(t,e){var r=[];if(!t||!t.length)return r;var n=-1,i=[],o=t.length;for(e=Zi(e,3);++n<o;){var a=t[n];e(a,n,t)&&(r.push(a),i.push(n))}return Nn(t,i),r},Lr.rest=function(t,e){if("function"!=typeof t)throw new gt(o);return Gn(t,e=void 0===e?e:iu(e))},Lr.reverse=Vo,Lr.sampleSize=function(t,e,r){return e=(r?so(t,e,r):void 0===e)?1:iu(e),(Ia(t)?qr:Bn)(t,e)},Lr.set=function(t,e,r){return null==t?t:Un(t,e,r)},Lr.setWith=function(t,e,r,n){return n="function"==typeof n?n:void 0,null==t?t:Un(t,e,r,n)},Lr.shuffle=function(t){return(Ia(t)?Br:Yn)(t)},Lr.slice=function(t,e,r){var n=null==t?0:t.length;return n?(r&&"number"!=typeof r&&so(t,e,r)?(e=0,r=n):(e=null==e?0:iu(e),r=void 0===r?n:iu(r)),Wn(t,e,r)):[]},Lr.sortBy=ya,Lr.sortedUniq=function(t){return t&&t.length?$n(t):[]},Lr.sortedUniqBy=function(t,e){return t&&t.length?$n(t,Zi(e,2)):[]},Lr.split=function(t,e,r){return r&&"number"!=typeof r&&so(t,e,r)&&(e=r=void 0),(r=void 0===r?4294967295:r>>>0)?(t=su(t))&&("string"==typeof e||null!=e&&!Xa(e))&&!(e=Jn(e))&&qe(t)?fi(He(t),0,r):t.split(e,r):[]},Lr.spread=function(t,e){if("function"!=typeof t)throw new gt(o);return e=null==e?0:ar(iu(e),0),Gn((function(r){var n=r[e],i=fi(r,0,e);return n&&de(i,n),oe(t,this,i)}))},Lr.tail=function(t){var e=null==t?0:t.length;return e?Wn(t,1,e):[]},Lr.take=function(t,e,r){return t&&t.length?Wn(t,0,(e=r||void 0===e?1:iu(e))<0?0:e):[]},Lr.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?Wn(t,(e=n-(e=r||void 0===e?1:iu(e)))<0?0:e,n):[]},Lr.takeRightWhile=function(t,e){return t&&t.length?ri(t,Zi(e,3),!1,!0):[]},Lr.takeWhile=function(t,e){return t&&t.length?ri(t,Zi(e,3)):[]},Lr.tap=function(t,e){return e(t),t},Lr.throttle=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new gt(o);return Va(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),_a(t,e,{leading:n,maxWait:e,trailing:i})},Lr.thru=na,Lr.toArray=ru,Lr.toPairs=Lu,Lr.toPairsIn=Pu,Lr.toPath=function(t){return Ia(t)?pe(t,ko):Ja(t)?[t]:mi(Oo(su(t)))},Lr.toPlainObject=uu,Lr.transform=function(t,e,r){var n=Ia(t),i=n||Da(t)||Qa(t);if(e=Zi(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:Va(t)&&Ba(o)?Pr(Ut(t)):{}}return(i?ue:cn)(t,(function(t,n,i){return e(r,t,n,i)})),r},Lr.unary=function(t){return ga(t,1)},Lr.union=Yo,Lr.unionBy=Wo,Lr.unionWith=Ho,Lr.uniq=function(t){return t&&t.length?Qn(t):[]},Lr.uniqBy=function(t,e){return t&&t.length?Qn(t,Zi(e,2)):[]},Lr.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Qn(t,void 0,e):[]},Lr.unset=function(t,e){return null==t||ti(t,e)},Lr.unzip=Ko,Lr.unzipWith=Xo,Lr.update=function(t,e,r){return null==t?t:ei(t,e,ui(r))},Lr.updateWith=function(t,e,r,n){return n="function"==typeof n?n:void 0,null==t?t:ei(t,e,ui(r),n)},Lr.values=ju,Lr.valuesIn=function(t){return null==t?[]:Re(t,xu(t))},Lr.without=$o,Lr.words=Bu,Lr.wrap=function(t,e){return ka(ui(e),t)},Lr.xor=Zo,Lr.xorBy=Jo,Lr.xorWith=Qo,Lr.zip=ta,Lr.zipObject=function(t,e){return oi(t||[],e||[],zr)},Lr.zipObjectDeep=function(t,e){return oi(t||[],e||[],Un)},Lr.zipWith=ea,Lr.entries=Lu,Lr.entriesIn=Pu,Lr.extend=fu,Lr.extendWith=lu,Zu(Lr,Lr),Lr.add=us,Lr.attempt=Uu,Lr.camelCase=Au,Lr.capitalize=Ru,Lr.ceil=ss,Lr.clamp=function(t,e,r){return void 0===r&&(r=e,e=void 0),void 0!==r&&(r=(r=au(r))==r?r:0),void 0!==e&&(e=(e=au(e))==e?e:0),Xr(au(t),e,r)},Lr.clone=function(t){return $r(t,4)},Lr.cloneDeep=function(t){return $r(t,5)},Lr.cloneDeepWith=function(t,e){return $r(t,5,e="function"==typeof e?e:void 0)},Lr.cloneWith=function(t,e){return $r(t,4,e="function"==typeof e?e:void 0)},Lr.conformsTo=function(t,e){return null==e||Zr(t,e,_u(e))},Lr.deburr=Tu,Lr.defaultTo=function(t,e){return null==t||t!=t?e:t},Lr.divide=cs,Lr.endsWith=function(t,e,r){t=su(t),e=Jn(e);var n=t.length,i=r=void 0===r?n:Xr(iu(r),0,n);return(r-=e.length)>=0&&t.slice(r,i)==e},Lr.eq=ja,Lr.escape=function(t){return(t=su(t))&&G.test(t)?t.replace(C,De):t},Lr.escapeRegExp=function(t){return(t=su(t))&&H.test(t)?t.replace(W,"\\$&"):t},Lr.every=function(t,e,r){var n=Ia(t)?ce:rn;return r&&so(t,e,r)&&(e=void 0),n(t,Zi(e,3))},Lr.find=aa,Lr.findIndex=To,Lr.findKey=function(t,e){return be(t,Zi(e,3),cn)},Lr.findLast=ua,Lr.findLastIndex=Io,Lr.findLastKey=function(t,e){return be(t,Zi(e,3),fn)},Lr.floor=fs,Lr.forEach=sa,Lr.forEachRight=ca,Lr.forIn=function(t,e){return null==t?t:un(t,Zi(e,3),xu)},Lr.forInRight=function(t,e){return null==t?t:sn(t,Zi(e,3),xu)},Lr.forOwn=function(t,e){return t&&cn(t,Zi(e,3))},Lr.forOwnRight=function(t,e){return t&&fn(t,Zi(e,3))},Lr.get=vu,Lr.gt=Aa,Lr.gte=Ra,Lr.has=function(t,e){return null!=t&&io(t,e,vn)},Lr.hasIn=gu,Lr.head=No,Lr.identity=Hu,Lr.includes=function(t,e,r,n){t=Na(t)?t:ju(t),r=r&&!n?iu(r):0;var i=t.length;return r<0&&(r=ar(i+r,0)),Za(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&_e(t,e,r)>-1},Lr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:iu(r);return i<0&&(i=ar(n+i,0)),_e(t,e,i)},Lr.inRange=function(t,e,r){return e=nu(e),void 0===r?(r=e,e=0):r=nu(r),function(t,e,r){return t>=ur(e,r)&&t<ar(e,r)}(t=au(t),e,r)},Lr.invoke=wu,Lr.isArguments=Ta,Lr.isArray=Ia,Lr.isArrayBuffer=Fa,Lr.isArrayLike=Na,Lr.isArrayLikeObject=Ca,Lr.isBoolean=function(t){return!0===t||!1===t||Ya(t)&&dn(t)==f},Lr.isBuffer=Da,Lr.isDate=Ga,Lr.isElement=function(t){return Ya(t)&&1===t.nodeType&&!Ka(t)},Lr.isEmpty=function(t){if(null==t)return!0;if(Na(t)&&(Ia(t)||"string"==typeof t||"function"==typeof t.splice||Da(t)||Qa(t)||Ta(t)))return!t.length;var e=no(t);if(e==y||e==b)return!t.size;if(ho(t))return!Sn(t).length;for(var r in t)if(Mt.call(t,r))return!1;return!0},Lr.isEqual=function(t,e){return _n(t,e)},Lr.isEqualWith=function(t,e,r){var n=(r="function"==typeof r?r:void 0)?r(t,e):void 0;return void 0===n?_n(t,e,void 0,r):!!n},Lr.isError=qa,Lr.isFinite=function(t){return"number"==typeof t&&nr(t)},Lr.isFunction=Ba,Lr.isInteger=Ua,Lr.isLength=za,Lr.isMap=Wa,Lr.isMatch=function(t,e){return t===e||xn(t,e,Qi(e))},Lr.isMatchWith=function(t,e,r){return r="function"==typeof r?r:void 0,xn(t,e,Qi(e),r)},Lr.isNaN=function(t){return Ha(t)&&t!=+t},Lr.isNative=function(t){if(lo(t))throw new X("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mn(t)},Lr.isNil=function(t){return null==t},Lr.isNull=function(t){return null===t},Lr.isNumber=Ha,Lr.isObject=Va,Lr.isObjectLike=Ya,Lr.isPlainObject=Ka,Lr.isRegExp=Xa,Lr.isSafeInteger=function(t){return Ua(t)&&t>=-9007199254740991&&t<=9007199254740991},Lr.isSet=$a,Lr.isString=Za,Lr.isSymbol=Ja,Lr.isTypedArray=Qa,Lr.isUndefined=function(t){return void 0===t},Lr.isWeakMap=function(t){return Ya(t)&&no(t)==x},Lr.isWeakSet=function(t){return Ya(t)&&"[object WeakSet]"==dn(t)},Lr.join=function(t,e){return null==t?"":ir.call(t,e)},Lr.kebabCase=Iu,Lr.last=qo,Lr.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=n;return void 0!==r&&(i=(i=iu(r))<0?ar(n+i,0):ur(i,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,i):we(t,Me,i,!0)},Lr.lowerCase=Fu,Lr.lowerFirst=Nu,Lr.lt=tu,Lr.lte=eu,Lr.max=function(t){return t&&t.length?nn(t,Hu,yn):void 0},Lr.maxBy=function(t,e){return t&&t.length?nn(t,Zi(e,2),yn):void 0},Lr.mean=function(t){return Ee(t,Hu)},Lr.meanBy=function(t,e){return Ee(t,Zi(e,2))},Lr.min=function(t){return t&&t.length?nn(t,Hu,kn):void 0},Lr.minBy=function(t,e){return t&&t.length?nn(t,Zi(e,2),kn):void 0},Lr.stubArray=os,Lr.stubFalse=as,Lr.stubObject=function(){return{}},Lr.stubString=function(){return""},Lr.stubTrue=function(){return!0},Lr.multiply=hs,Lr.nth=function(t,e){return t&&t.length?Rn(t,iu(e)):void 0},Lr.noConflict=function(){return Ht._===this&&(Ht._=Lt),this},Lr.noop=Ju,Lr.now=va,Lr.pad=function(t,e,r){t=su(t);var n=(e=iu(e))?We(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Ti(tr(i),r)+t+Ti(Qe(i),r)},Lr.padEnd=function(t,e,r){t=su(t);var n=(e=iu(e))?We(t):0;return e&&n<e?t+Ti(e-n,r):t},Lr.padStart=function(t,e,r){t=su(t);var n=(e=iu(e))?We(t):0;return e&&n<e?Ti(e-n,r)+t:t},Lr.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),cr(su(t).replace(K,""),e||0)},Lr.random=function(t,e,r){if(r&&"boolean"!=typeof r&&so(t,e,r)&&(e=r=void 0),void 0===r&&("boolean"==typeof e?(r=e,e=void 0):"boolean"==typeof t&&(r=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=nu(t),void 0===e?(e=t,t=0):e=nu(e)),t>e){var n=t;t=e,e=n}if(r||t%1||e%1){var i=fr();return ur(t+i*(e-t+zt("1e-"+((i+"").length-1))),e)}return Cn(t,e)},Lr.reduce=function(t,e,r){var n=Ia(t)?ye:ke,i=arguments.length<3;return n(t,Zi(e,4),r,i,tn)},Lr.reduceRight=function(t,e,r){var n=Ia(t)?ve:ke,i=arguments.length<3;return n(t,Zi(e,4),r,i,en)},Lr.repeat=function(t,e,r){return e=(r?so(t,e,r):void 0===e)?1:iu(e),Dn(su(t),e)},Lr.replace=function(){var t=arguments,e=su(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Lr.result=function(t,e,r){var n=-1,i=(e=si(e,t)).length;for(i||(i=1,t=void 0);++n<i;){var o=null==t?void 0:t[ko(e[n])];void 0===o&&(n=i,o=r),t=Ba(o)?o.call(t):o}return t},Lr.round=ps,Lr.runInContext=t,Lr.sample=function(t){return(Ia(t)?Gr:qn)(t)},Lr.size=function(t){if(null==t)return 0;if(Na(t))return Za(t)?We(t):t.length;var e=no(t);return e==y||e==b?t.size:Sn(t).length},Lr.snakeCase=Cu,Lr.some=function(t,e,r){var n=Ia(t)?ge:Hn;return r&&so(t,e,r)&&(e=void 0),n(t,Zi(e,3))},Lr.sortedIndex=function(t,e){return Kn(t,e)},Lr.sortedIndexBy=function(t,e,r){return Xn(t,e,Zi(r,2))},Lr.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var n=Kn(t,e);if(n<r&&ja(t[n],e))return n}return-1},Lr.sortedLastIndex=function(t,e){return Kn(t,e,!0)},Lr.sortedLastIndexBy=function(t,e,r){return Xn(t,e,Zi(r,2),!0)},Lr.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var r=Kn(t,e,!0)-1;if(ja(t[r],e))return r}return-1},Lr.startCase=Du,Lr.startsWith=function(t,e,r){return t=su(t),r=null==r?0:Xr(iu(r),0,t.length),e=Jn(e),t.slice(r,r+e.length)==e},Lr.subtract=ds,Lr.sum=function(t){return t&&t.length?Le(t,Hu):0},Lr.sumBy=function(t,e){return t&&t.length?Le(t,Zi(e,2)):0},Lr.template=function(t,e,r){var n=Lr.templateSettings;r&&so(t,e,r)&&(e=void 0),t=su(t),e=lu({},e,n,Bi);var i,o,a=lu({},e.imports,n.imports,Bi),u=_u(a),s=Re(a,u),c=0,f=e.interpolate||ft,l="__p += '",h=yt((e.escape||ft).source+"|"+f.source+"|"+(f===U?rt:ft).source+"|"+(e.evaluate||ft).source+"|$","g"),p="//# sourceURL="+(Mt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gt+"]")+"\n";t.replace(h,(function(e,r,n,a,u,s){return n||(n=a),l+=t.slice(c,s).replace(lt,Ge),r&&(i=!0,l+="' +\n__e("+r+") +\n'"),u&&(o=!0,l+="';\n"+u+";\n__p += '"),n&&(l+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=s+e.length,e})),l+="';\n";var d=Mt.call(e,"variable")&&e.variable;if(d){if(tt.test(d))throw new X("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(o?l.replace(T,""):l).replace(I,"$1").replace(F,"$1;"),l="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var y=Uu((function(){return ht(u,p+"return "+l).apply(void 0,s)}));if(y.source=l,qa(y))throw y;return y},Lr.times=function(t,e){if((t=iu(t))<1||t>9007199254740991)return[];var r=4294967295,n=ur(t,4294967295);t-=4294967295;for(var i=Pe(n,e=Zi(e));++r<t;)e(r);return i},Lr.toFinite=nu,Lr.toInteger=iu,Lr.toLength=ou,Lr.toLower=function(t){return su(t).toLowerCase()},Lr.toNumber=au,Lr.toSafeInteger=function(t){return t?Xr(iu(t),-9007199254740991,9007199254740991):0===t?t:0},Lr.toString=su,Lr.toUpper=function(t){return su(t).toUpperCase()},Lr.trim=function(t,e,r){if((t=su(t))&&(r||void 0===e))return je(t);if(!t||!(e=Jn(e)))return t;var n=He(t),i=He(e);return fi(n,Ie(n,i),Fe(n,i)+1).join("")},Lr.trimEnd=function(t,e,r){if((t=su(t))&&(r||void 0===e))return t.slice(0,Ke(t)+1);if(!t||!(e=Jn(e)))return t;var n=He(t);return fi(n,0,Fe(n,He(e))+1).join("")},Lr.trimStart=function(t,e,r){if((t=su(t))&&(r||void 0===e))return t.replace(K,"");if(!t||!(e=Jn(e)))return t;var n=He(t);return fi(n,Ie(n,He(e))).join("")},Lr.truncate=function(t,e){var r=30,n="...";if(Va(e)){var i="separator"in e?e.separator:i;r="length"in e?iu(e.length):r,n="omission"in e?Jn(e.omission):n}var o=(t=su(t)).length;if(qe(t)){var a=He(t);o=a.length}if(r>=o)return t;var u=r-We(n);if(u<1)return n;var s=a?fi(a,0,u).join(""):t.slice(0,u);if(void 0===i)return s+n;if(a&&(u+=s.length-u),Xa(i)){if(t.slice(u).search(i)){var c,f=s;for(i.global||(i=yt(i.source,su(nt.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var l=c.index;s=s.slice(0,void 0===l?u:l)}}else if(t.indexOf(Jn(i),u)!=u){var h=s.lastIndexOf(i);h>-1&&(s=s.slice(0,h))}return s+n},Lr.unescape=function(t){return(t=su(t))&&D.test(t)?t.replace(N,Xe):t},Lr.uniqueId=function(t){var e=++Et;return su(t)+e},Lr.upperCase=Gu,Lr.upperFirst=qu,Lr.each=sa,Lr.eachRight=ca,Lr.first=No,Zu(Lr,(ls={},cn(Lr,(function(t,e){Mt.call(Lr.prototype,e)||(ls[e]=t)})),ls),{chain:!1}),Lr.VERSION="4.17.21",ue(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Lr[t].placeholder=Lr})),ue(["drop","take"],(function(t,e){Rr.prototype[t]=function(r){r=void 0===r?1:ar(iu(r),0);var n=this.__filtered__&&!e?new Rr(this):this.clone();return n.__filtered__?n.__takeCount__=ur(r,n.__takeCount__):n.__views__.push({size:ur(r,4294967295),type:t+(n.__dir__<0?"Right":"")}),n},Rr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ue(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Rr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Zi(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),ue(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Rr.prototype[t]=function(){return this[r](1).value()[0]}})),ue(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Rr.prototype[t]=function(){return this.__filtered__?new Rr(this):this[r](1)}})),Rr.prototype.compact=function(){return this.filter(Hu)},Rr.prototype.find=function(t){return this.filter(t).head()},Rr.prototype.findLast=function(t){return this.reverse().find(t)},Rr.prototype.invokeMap=Gn((function(t,e){return"function"==typeof t?new Rr(this):this.map((function(r){return bn(r,t,e)}))})),Rr.prototype.reject=function(t){return this.filter(Sa(Zi(t)))},Rr.prototype.slice=function(t,e){t=iu(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Rr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==e&&(r=(e=iu(e))<0?r.dropRight(-e):r.take(e-t)),r)},Rr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Rr.prototype.toArray=function(){return this.take(4294967295)},cn(Rr.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),i=Lr[n?"take"+("last"==e?"Right":""):e],o=n||/^find/.test(e);i&&(Lr.prototype[e]=function(){var e=this.__wrapped__,a=n?[1]:arguments,u=e instanceof Rr,s=a[0],c=u||Ia(e),f=function(t){var e=i.apply(Lr,de([t],a));return n&&l?e[0]:e};c&&r&&"function"==typeof s&&1!=s.length&&(u=c=!1);var l=this.__chain__,h=!!this.__actions__.length,p=o&&!l,d=u&&!h;if(!o&&c){e=d?e:new Rr(this);var y=t.apply(e,a);return y.__actions__.push({func:na,args:[f],thisArg:void 0}),new Ar(y,l)}return p&&d?t.apply(this,a):(y=this.thru(f),p?n?y.value()[0]:y.value():y)})})),ue(["pop","push","shift","sort","splice","unshift"],(function(t){var e=mt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Lr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(Ia(i)?i:[],t)}return this[r]((function(r){return e.apply(Ia(r)?r:[],t)}))}})),cn(Rr.prototype,(function(t,e){var r=Lr[e];if(r){var n=r.name+"";Mt.call(br,n)||(br[n]=[]),br[n].push({name:e,func:r})}})),br[Pi(void 0,2).name]=[{name:"wrapper",func:void 0}],Rr.prototype.clone=function(){var t=new Rr(this.__wrapped__);return t.__actions__=mi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=mi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=mi(this.__views__),t},Rr.prototype.reverse=function(){if(this.__filtered__){var t=new Rr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Rr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Ia(t),n=e<0,i=r?t.length:0,o=function(t,e,r){var n=-1,i=r.length;for(;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=ur(e,t+a);break;case"takeRight":t=ar(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,u=o.end,s=u-a,c=n?u:a-1,f=this.__iteratees__,l=f.length,h=0,p=ur(s,this.__takeCount__);if(!r||!n&&i==s&&p==s)return ni(t,this.__actions__);var d=[];t:for(;s--&&h<p;){for(var y=-1,v=t[c+=e];++y<l;){var g=f[y],m=g.iteratee,b=g.type,w=m(v);if(2==b)v=w;else if(!w){if(1==b)continue t;break t}}d[h++]=v}return d},Lr.prototype.at=ia,Lr.prototype.chain=function(){return ra(this)},Lr.prototype.commit=function(){return new Ar(this.value(),this.__chain__)},Lr.prototype.next=function(){void 0===this.__values__&&(this.__values__=ru(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Lr.prototype.plant=function(t){for(var e,r=this;r instanceof jr;){var n=Po(r);n.__index__=0,n.__values__=void 0,e?i.__wrapped__=n:e=n;var i=n;r=r.__wrapped__}return i.__wrapped__=t,e},Lr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Rr){var e=t;return this.__actions__.length&&(e=new Rr(this)),(e=e.reverse()).__actions__.push({func:na,args:[Vo],thisArg:void 0}),new Ar(e,this.__chain__)}return this.thru(Vo)},Lr.prototype.toJSON=Lr.prototype.valueOf=Lr.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},Lr.prototype.first=Lr.prototype.head,Zt&&(Lr.prototype[Zt]=function(){return this}),Lr}();Ht._=$e,void 0===(i=function(){return $e}.call(e,r,e,n))||(n.exports=i)}).call(this)}).call(this,r(15),r(71)(t))},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.WeekdayNamed=e.WeekdayNumbered=void 0,function(t){t[t.SUNDAY=0]="SUNDAY",t[t.MONDAY=1]="MONDAY",t[t.TUESDAY=2]="TUESDAY",t[t.WEDNESDAY=3]="WEDNESDAY",t[t.THURSDAY=4]="THURSDAY",t[t.FRIDAY=5]="FRIDAY",t[t.SATURDAY=6]="SATURDAY"}(n||(e.WeekdayNumbered=n={})),function(t){t.SUNDAY="SUNDAY",t.MONDAY="MONDAY",t.TUESDAY="TUESDAY",t.WEDNESDAY="WEDNESDAY",t.THURSDAY="THURSDAY",t.FRIDAY="FRIDAY",t.SATURDAY="SATURDAY"}(i||(e.WeekdayNamed=i={}))},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.enhanceStandardConsoleLogging=function(e){r.forEach((function(r){var n=t.console[r],i=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n.apply(t.console,o),e.apply(void 0,[r].concat(o))};i.__next=n,i.__enhancer=e,t.console[r]=i}))};var r=["debug","log","info","warn","error"]}).call(this,r(15))},function(t,e,r){r(232),t.exports=r(405)},function(t,e,r){r(233)},function(t,e,r){"use strict";r(234),r(377),r(379),r(382),r(384),r(386),r(388),r(390),r(392),r(394),r(396),r(398),r(400),r(404)},function(t,e,r){r(235),r(238),r(239),r(240),r(241),r(242),r(243),r(244),r(245),r(246),r(247),r(248),r(249),r(250),r(251),r(252),r(253),r(254),r(255),r(256),r(257),r(258),r(259),r(260),r(261),r(262),r(263),r(264),r(265),r(266),r(267),r(268),r(269),r(270),r(271),r(272),r(273),r(274),r(275),r(276),r(277),r(278),r(279),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(316),r(317),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(335),r(336),r(337),r(338),r(339),r(117),r(340),r(163),r(341),r(164),r(342),r(343),r(344),r(345),r(165),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(355),r(356),r(357),r(358),r(359),r(360),r(361),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(369),r(370),r(371),r(372),r(373),r(374),r(375),r(376),t.exports=r(10)},function(t,e,r){"use strict";var n=r(3),i=r(20),o=r(11),a=r(0),u=r(18),s=r(39).KEY,c=r(4),f=r(75),l=r(54),h=r(43),p=r(8),d=r(98),y=r(144),v=r(237),g=r(78),m=r(5),b=r(6),w=r(17),_=r(22),x=r(38),M=r(42),E=r(47),S=r(147),O=r(29),k=r(77),L=r(12),P=r(45),j=O.f,A=L.f,R=S.f,T=n.Symbol,I=n.JSON,F=I&&I.stringify,N=p("_hidden"),C=p("toPrimitive"),D={}.propertyIsEnumerable,G=f("symbol-registry"),q=f("symbols"),B=f("op-symbols"),U=Object.prototype,z="function"==typeof T&&!!k.f,V=n.QObject,Y=!V||!V.prototype||!V.prototype.findChild,W=o&&c((function(){return 7!=E(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=j(U,e);n&&delete U[e],A(t,e,r),n&&t!==U&&A(U,e,n)}:A,H=function(t){var e=q[t]=E(T.prototype);return e._k=t,e},K=z&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},X=function(t,e,r){return t===U&&X(B,e,r),m(t),e=x(e,!0),m(r),i(q,e)?(r.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),r=E(r,{enumerable:M(0,!1)})):(i(t,N)||A(t,N,M(1,{})),t[N][e]=!0),W(t,e,r)):A(t,e,r)},$=function(t,e){m(t);for(var r,n=v(e=_(e)),i=0,o=n.length;o>i;)X(t,r=n[i++],e[r]);return t},Z=function(t){var e=D.call(this,t=x(t,!0));return!(this===U&&i(q,t)&&!i(B,t))&&(!(e||!i(this,t)||!i(q,t)||i(this,N)&&this[N][t])||e)},J=function(t,e){if(t=_(t),e=x(e,!0),t!==U||!i(q,e)||i(B,e)){var r=j(t,e);return!r||!i(q,e)||i(t,N)&&t[N][e]||(r.enumerable=!0),r}},Q=function(t){for(var e,r=R(_(t)),n=[],o=0;r.length>o;)i(q,e=r[o++])||e==N||e==s||n.push(e);return n},tt=function(t){for(var e,r=t===U,n=R(r?B:_(t)),o=[],a=0;n.length>a;)!i(q,e=n[a++])||r&&!i(U,e)||o.push(q[e]);return o};z||(u((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(r){this===U&&e.call(B,r),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),W(this,t,M(1,r))};return o&&Y&&W(U,t,{configurable:!0,set:e}),H(t)}).prototype,"toString",(function(){return this._k})),O.f=J,L.f=X,r(48).f=S.f=Q,r(63).f=Z,k.f=tt,o&&!r(44)&&u(U,"propertyIsEnumerable",Z,!0),d.f=function(t){return H(p(t))}),a(a.G+a.W+a.F*!z,{Symbol:T});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)p(et[rt++]);for(var nt=P(p.store),it=0;nt.length>it;)y(nt[it++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return i(G,t+="")?G[t]:G[t]=T(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in G)if(G[e]===t)return e},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),a(a.S+a.F*!z,"Object",{create:function(t,e){return void 0===e?E(t):$(E(t),e)},defineProperty:X,defineProperties:$,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=c((function(){k.f(1)}));a(a.S+a.F*ot,"Object",{getOwnPropertySymbols:function(t){return k.f(w(t))}}),I&&a(a.S+a.F*(!z||c((function(){var t=T();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(b(e)||void 0!==t)&&!K(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!K(e))return e}),n[1]=e,F.apply(I,n)}}),T.prototype[C]||r(21)(T.prototype,C,T.prototype.valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e,r){t.exports=r(75)("native-function-to-string",Function.toString)},function(t,e,r){var n=r(45),i=r(77),o=r(63);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,u=r(t),s=o.f,c=0;u.length>c;)s.call(t,a=u[c++])&&e.push(a);return e}},function(t,e,r){var n=r(0);n(n.S,"Object",{create:r(47)})},function(t,e,r){var n=r(0);n(n.S+n.F*!r(11),"Object",{defineProperty:r(12).f})},function(t,e,r){var n=r(0);n(n.S+n.F*!r(11),"Object",{defineProperties:r(146)})},function(t,e,r){var n=r(22),i=r(29).f;r(30)("getOwnPropertyDescriptor",(function(){return function(t,e){return i(n(t),e)}}))},function(t,e,r){var n=r(17),i=r(49);r(30)("getPrototypeOf",(function(){return function(t){return i(n(t))}}))},function(t,e,r){var n=r(17),i=r(45);r(30)("keys",(function(){return function(t){return i(n(t))}}))},function(t,e,r){r(30)("getOwnPropertyNames",(function(){return r(147).f}))},function(t,e,r){var n=r(6),i=r(39).onFreeze;r(30)("freeze",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(6),i=r(39).onFreeze;r(30)("seal",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(6),i=r(39).onFreeze;r(30)("preventExtensions",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(6);r(30)("isFrozen",(function(t){return function(e){return!n(e)||!!t&&t(e)}}))},function(t,e,r){var n=r(6);r(30)("isSealed",(function(t){return function(e){return!n(e)||!!t&&t(e)}}))},function(t,e,r){var n=r(6);r(30)("isExtensible",(function(t){return function(e){return!!n(e)&&(!t||t(e))}}))},function(t,e,r){var n=r(0);n(n.S+n.F,"Object",{assign:r(148)})},function(t,e,r){var n=r(0);n(n.S,"Object",{is:r(149)})},function(t,e,r){var n=r(0);n(n.S,"Object",{setPrototypeOf:r(102).set})},function(t,e,r){"use strict";var n=r(64),i={};i[r(8)("toStringTag")]="z",i+""!="[object z]"&&r(18)(Object.prototype,"toString",(function(){return"[object "+n(this)+"]"}),!0)},function(t,e,r){var n=r(0);n(n.P,"Function",{bind:r(150)})},function(t,e,r){var n=r(12).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(11)&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,r){"use strict";var n=r(6),i=r(49),o=r(8)("hasInstance"),a=Function.prototype;o in a||r(12).f(a,o,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,r){var n=r(0),i=r(152);n(n.G+n.F*(parseInt!=i),{parseInt:i})},function(t,e,r){var n=r(0),i=r(153);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},function(t,e,r){"use strict";var n=r(3),i=r(20),o=r(34),a=r(104),u=r(38),s=r(4),c=r(48).f,f=r(29).f,l=r(12).f,h=r(55).trim,p=n.Number,d=p,y=p.prototype,v="Number"==o(r(47)(y)),g="trim"in String.prototype,m=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){var r,n,i,o=(e=g?e.trim():h(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=e.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var a,s=e.slice(2),c=0,f=s.length;c<f;c++)if((a=s.charCodeAt(c))<48||a>i)return NaN;return parseInt(s,n)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof p&&(v?s((function(){y.valueOf.call(r)})):"Number"!=o(r))?a(new d(m(e)),r,p):m(e)};for(var b,w=r(11)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;w.length>_;_++)i(d,b=w[_])&&!i(p,b)&&l(p,b,f(d,b));p.prototype=y,y.constructor=p,r(18)(n,"Number",p)}},function(t,e,r){"use strict";var n=r(0),i=r(28),o=r(154),a=r(105),u=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l=function(t,e){for(var r=-1,n=e;++r<6;)n+=t*c[r],c[r]=n%1e7,n=s(n/1e7)},h=function(t){for(var e=6,r=0;--e>=0;)r+=c[e],c[e]=s(r/t),r=r%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var r=String(c[t]);e=""===e?r:e+a.call("0",7-r.length)+r}return e},d=function(t,e,r){return 0===e?r:e%2==1?d(t,e-1,r*t):d(t*t,e/2,r)};n(n.P+n.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(4)((function(){u.call({})}))),"Number",{toFixed:function(t){var e,r,n,u,s=o(this,f),c=i(t),y="",v="0";if(c<0||c>20)throw RangeError(f);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(y="-",s=-s),s>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(s*d(2,69,1))-69)<0?s*d(2,-e,1):s/d(2,e,1),r*=4503599627370496,(e=52-e)>0){for(l(0,r),n=c;n>=7;)l(1e7,0),n-=7;for(l(d(10,n,1),0),n=e-1;n>=23;)h(1<<23),n-=23;h(1<<n),l(1,1),h(2),v=p()}else l(0,r),l(1<<-e,0),v=p()+a.call("0",c);return v=c>0?y+((u=v.length)<=c?"0."+a.call("0",c-u)+v:v.slice(0,u-c)+"."+v.slice(u-c)):y+v}})},function(t,e,r){"use strict";var n=r(0),i=r(4),o=r(154),a=1..toPrecision;n(n.P+n.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,r){var n=r(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,r){var n=r(0),i=r(3).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,r){var n=r(0);n(n.S,"Number",{isInteger:r(155)})},function(t,e,r){var n=r(0);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,r){var n=r(0),i=r(155),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,r){var n=r(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,r){var n=r(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,r){var n=r(0),i=r(153);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,r){var n=r(0),i=r(152);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,r){var n=r(0),i=r(156),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,r){var n=r(0),i=Math.asinh;n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,r){var n=r(0),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,r){var n=r(0),i=r(106);n(n.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,r){var n=r(0);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,r){var n=r(0),i=Math.exp;n(n.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,r){var n=r(0),i=r(107);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,r){var n=r(0);n(n.S,"Math",{fround:r(280)})},function(t,e,r){var n=r(106),i=Math.pow,o=i(2,-52),a=i(2,-23),u=i(2,127)*(2-a),s=i(2,-126);t.exports=Math.fround||function(t){var e,r,i=Math.abs(t),c=n(t);return i<s?c*(i/s/a+1/o-1/o)*s*a:(r=(e=(1+a/o)*i)-(e-i))>u||r!=r?c*(1/0):c*r}},function(t,e,r){var n=r(0),i=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var r,n,o=0,a=0,u=arguments.length,s=0;a<u;)s<(r=i(arguments[a++]))?(o=o*(n=s/r)*n+1,s=r):o+=r>0?(n=r/s)*n:r;return s===1/0?1/0:s*Math.sqrt(o)}})},function(t,e,r){var n=r(0),i=Math.imul;n(n.S+n.F*r(4)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,e){var r=+t,n=+e,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},function(t,e,r){var n=r(0);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,r){var n=r(0);n(n.S,"Math",{log1p:r(156)})},function(t,e,r){var n=r(0);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,r){var n=r(0);n(n.S,"Math",{sign:r(106)})},function(t,e,r){var n=r(0),i=r(107),o=Math.exp;n(n.S+n.F*r(4)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,r){var n=r(0),i=r(107),o=Math.exp;n(n.S,"Math",{tanh:function(t){var e=i(t=+t),r=i(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},function(t,e,r){var n=r(0);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,r){var n=r(0),i=r(46),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},function(t,e,r){var n=r(0),i=r(22),o=r(9);n(n.S,"String",{raw:function(t){for(var e=i(t.raw),r=o(e.length),n=arguments.length,a=[],u=0;r>u;)a.push(String(e[u++])),u<n&&a.push(String(arguments[u]));return a.join("")}})},function(t,e,r){"use strict";r(55)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,r){"use strict";var n=r(108)(!0);r(109)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e,r){"use strict";var n=r(0),i=r(108)(!1);n(n.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,r){"use strict";var n=r(0),i=r(9),o=r(110),a="".endsWith;n(n.P+n.F*r(112)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(e.length),u=void 0===r?n:Math.min(i(r),n),s=String(t);return a?a.call(e,s,u):e.slice(u-s.length,u)===s}})},function(t,e,r){"use strict";var n=r(0),i=r(110);n(n.P+n.F*r(112)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(0);n(n.P,"String",{repeat:r(105)})},function(t,e,r){"use strict";var n=r(0),i=r(9),o=r(110),a="".startsWith;n(n.P+n.F*r(112)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return a?a.call(e,n,r):e.slice(r,r+n.length)===n}})},function(t,e,r){"use strict";r(19)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,r){"use strict";r(19)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,r){"use strict";r(19)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,r){"use strict";r(19)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,r){"use strict";r(19)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,r){"use strict";r(19)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,r){"use strict";r(19)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,r){"use strict";r(19)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,r){"use strict";r(19)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,r){"use strict";r(19)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,r){"use strict";r(19)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,r){"use strict";r(19)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,r){"use strict";r(19)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,r){var n=r(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,r){"use strict";var n=r(0),i=r(17),o=r(38);n(n.P+n.F*r(4)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=i(this),r=o(e);return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},function(t,e,r){var n=r(0),i=r(315);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,e,r){"use strict";var n=r(4),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!n((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),r=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(r>99?r:"0"+a(r))+"Z"}:o},function(t,e,r){var n=Date.prototype,i=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&r(18)(n,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,e,r){var n=r(8)("toPrimitive"),i=Date.prototype;n in i||r(21)(i,n,r(318))},function(t,e,r){"use strict";var n=r(5),i=r(38);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(n(this),"number"!=t)}},function(t,e,r){var n=r(0);n(n.S,"Array",{isArray:r(78)})},function(t,e,r){"use strict";var n=r(26),i=r(0),o=r(17),a=r(158),u=r(113),s=r(9),c=r(114),f=r(115);i(i.S+i.F*!r(79)((function(t){Array.from(t)})),"Array",{from:function(t){var e,r,i,l,h=o(t),p="function"==typeof this?this:Array,d=arguments.length,y=d>1?arguments[1]:void 0,v=void 0!==y,g=0,m=f(h);if(v&&(y=n(y,d>2?arguments[2]:void 0,2)),null==m||p==Array&&u(m))for(r=new p(e=s(h.length));e>g;g++)c(r,g,v?y(h[g],g):h[g]);else for(l=m.call(h),r=new p;!(i=l.next()).done;g++)c(r,g,v?a(l,y,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,e,r){"use strict";var n=r(0),i=r(114);n(n.S+n.F*r(4)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);e>t;)i(r,t,arguments[t++]);return r.length=e,r}})},function(t,e,r){"use strict";var n=r(0),i=r(22),o=[].join;n(n.P+n.F*(r(62)!=Object||!r(25)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,r){"use strict";var n=r(0),i=r(101),o=r(34),a=r(46),u=r(9),s=[].slice;n(n.P+n.F*r(4)((function(){i&&s.call(i)})),"Array",{slice:function(t,e){var r=u(this.length),n=o(this);if(e=void 0===e?r:e,"Array"==n)return s.call(this,t,e);for(var i=a(t,r),c=a(e,r),f=u(c-i),l=new Array(f),h=0;h<f;h++)l[h]="String"==n?this.charAt(i+h):this[i+h];return l}})},function(t,e,r){"use strict";var n=r(0),i=r(27),o=r(17),a=r(4),u=[].sort,s=[1,2,3];n(n.P+n.F*(a((function(){s.sort(void 0)}))||!a((function(){s.sort(null)}))||!r(25)(u)),"Array",{sort:function(t){return void 0===t?u.call(o(this)):u.call(o(this),i(t))}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(0),o=r(25)([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,e,r){var n=r(6),i=r(78),o=r(8)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,r){"use strict";var n=r(0),i=r(31)(1);n(n.P+n.F*!r(25)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(2);n(n.P+n.F*!r(25)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(3);n(n.P+n.F*!r(25)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(31)(4);n(n.P+n.F*!r(25)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(160);n(n.P+n.F*!r(25)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,e,r){"use strict";var n=r(0),i=r(160);n(n.P+n.F*!r(25)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,e,r){"use strict";var n=r(0),i=r(76)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!r(25)(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,r){"use strict";var n=r(0),i=r(22),o=r(28),a=r(9),u=[].lastIndexOf,s=!!u&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(s||!r(25)(u)),"Array",{lastIndexOf:function(t){if(s)return u.apply(this,arguments)||0;var e=i(this),r=a(e.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,r){var n=r(0);n(n.P,"Array",{copyWithin:r(161)}),r(50)("copyWithin")},function(t,e,r){var n=r(0);n(n.P,"Array",{fill:r(116)}),r(50)("fill")},function(t,e,r){"use strict";var n=r(0),i=r(31)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),n(n.P+n.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(50)("find")},function(t,e,r){"use strict";var n=r(0),i=r(31)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),n(n.P+n.F*a,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(50)(o)},function(t,e,r){r(57)("Array")},function(t,e,r){var n=r(3),i=r(104),o=r(12).f,a=r(48).f,u=r(111),s=r(80),c=n.RegExp,f=c,l=c.prototype,h=/a/g,p=/a/g,d=new c(h)!==h;if(r(11)&&(!d||r(4)((function(){return p[r(8)("match")]=!1,c(h)!=h||c(p)==p||"/a/i"!=c(h,"i")})))){c=function(t,e){var r=this instanceof c,n=u(t),o=void 0===e;return!r&&n&&t.constructor===c&&o?t:i(d?new f(n&&!o?t.source:t,e):f((n=t instanceof c)?t.source:t,n&&o?s.call(t):e),r?this:l,c)};for(var y=function(t){t in c||o(c,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})},v=a(f),g=0;v.length>g;)y(v[g++]);l.constructor=c,c.prototype=l,r(18)(n,"RegExp",c)}r(57)("RegExp")},function(t,e,r){"use strict";r(164);var n=r(5),i=r(80),o=r(11),a=/./.toString,u=function(t){r(18)(RegExp.prototype,"toString",t,!0)};r(4)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?u((function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=a.name&&u((function(){return a.call(this)}))},function(t,e,r){"use strict";var n=r(5),i=r(9),o=r(119),a=r(81);r(82)("match",1,(function(t,e,r,u){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=u(r,t,this);if(e.done)return e.value;var s=n(t),c=String(this);if(!s.global)return a(s,c);var f=s.unicode;s.lastIndex=0;for(var l,h=[],p=0;null!==(l=a(s,c));){var d=String(l[0]);h[p]=d,""===d&&(s.lastIndex=o(c,i(s.lastIndex),f)),p++}return 0===p?null:h}]}))},function(t,e,r){"use strict";var n=r(5),i=r(17),o=r(9),a=r(28),u=r(119),s=r(81),c=Math.max,f=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;r(82)("replace",2,(function(t,e,r,d){return[function(n,i){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},function(t,e){var i=d(r,t,this,e);if(i.done)return i.value;var l=n(t),h=String(this),p="function"==typeof e;p||(e=String(e));var v=l.global;if(v){var g=l.unicode;l.lastIndex=0}for(var m=[];;){var b=s(l,h);if(null===b)break;if(m.push(b),!v)break;""===String(b[0])&&(l.lastIndex=u(h,o(l.lastIndex),g))}for(var w,_="",x=0,M=0;M<m.length;M++){b=m[M];for(var E=String(b[0]),S=c(f(a(b.index),h.length),0),O=[],k=1;k<b.length;k++)O.push(void 0===(w=b[k])?w:String(w));var L=b.groups;if(p){var P=[E].concat(O,S,h);void 0!==L&&P.push(L);var j=String(e.apply(void 0,P))}else j=y(E,h,S,O,L,e);S>=x&&(_+=h.slice(x,S)+j,x=S+E.length)}return _+h.slice(x)}];function y(t,e,n,o,a,u){var s=n+t.length,c=o.length,f=p;return void 0!==a&&(a=i(a),f=h),r.call(u,f,(function(r,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(s);case"<":u=a[i.slice(1,-1)];break;default:var f=+i;if(0===f)return r;if(f>c){var h=l(f/10);return 0===h?r:h<=c?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):r}u=o[f-1]}return void 0===u?"":u}))}}))},function(t,e,r){"use strict";var n=r(5),i=r(149),o=r(81);r(82)("search",1,(function(t,e,r,a){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=a(r,t,this);if(e.done)return e.value;var u=n(t),s=String(this),c=u.lastIndex;i(c,0)||(u.lastIndex=0);var f=o(u,s);return i(u.lastIndex,c)||(u.lastIndex=c),null===f?-1:f.index}]}))},function(t,e,r){"use strict";var n=r(111),i=r(5),o=r(65),a=r(119),u=r(9),s=r(81),c=r(118),f=r(4),l=Math.min,h=[].push,p="length",d=!f((function(){RegExp(4294967295,"y")}));r(82)("split",2,(function(t,e,r,f){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!n(t))return r.call(i,t,e);for(var o,a,u,s=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,d=void 0===e?4294967295:e>>>0,y=new RegExp(t.source,f+"g");(o=c.call(y,i))&&!((a=y.lastIndex)>l&&(s.push(i.slice(l,o.index)),o[p]>1&&o.index<i[p]&&h.apply(s,o.slice(1)),u=o[0][p],l=a,s[p]>=d));)y.lastIndex===o.index&&y.lastIndex++;return l===i[p]?!u&&y.test("")||s.push(""):s.push(i.slice(l)),s[p]>d?s.slice(0,d):s}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)}:r,[function(r,n){var i=t(this),o=null==r?void 0:r[e];return void 0!==o?o.call(r,i,n):y.call(String(i),r,n)},function(t,e){var n=f(y,t,this,e,y!==r);if(n.done)return n.value;var c=i(t),h=String(this),p=o(c,RegExp),v=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g"),m=new p(d?c:"^(?:"+c.source+")",g),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===h.length)return null===s(m,h)?[h]:[];for(var w=0,_=0,x=[];_<h.length;){m.lastIndex=d?_:0;var M,E=s(m,d?h:h.slice(_));if(null===E||(M=l(u(m.lastIndex+(d?0:_)),h.length))===w)_=a(h,_,v);else{if(x.push(h.slice(w,_)),x.length===b)return x;for(var S=1;S<=E.length-1;S++)if(x.push(E[S]),x.length===b)return x;_=w=M}}return x.push(h.slice(w)),x}]}))},function(t,e,r){var n=r(3),i=r(120).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,s="process"==r(34)(a);t.exports=function(){var t,e,r,c=function(){var n,i;for(s&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(s)r=function(){a.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);r=function(){f.then(c)}}else r=function(){i.call(n,c)};else{var l=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),r=function(){h.data=l=!l}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){"use strict";var n=r(168),i=r(51);t.exports=r(85)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=n.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(i(this,"Map"),0===t?0:t,e)}},n,!0)},function(t,e,r){"use strict";var n=r(168),i=r(51);t.exports=r(85)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(i(this,"Set"),t=0===t?0:t,t)}},n)},function(t,e,r){"use strict";var n,i=r(3),o=r(31)(0),a=r(18),u=r(39),s=r(148),c=r(169),f=r(6),l=r(51),h=r(51),p=!i.ActiveXObject&&"ActiveXObject"in i,d=u.getWeak,y=Object.isExtensible,v=c.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(f(t)){var e=d(t);return!0===e?v(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(l(this,"WeakMap"),t,e)}},b=t.exports=r(85)("WeakMap",g,m,c,!0,!0);h&&p&&(s((n=c.getConstructor(g,"WeakMap")).prototype,m),u.NEED=!0,o(["delete","has","get","set"],(function(t){var e=b.prototype,r=e[t];a(e,t,(function(e,i){if(f(e)&&!y(e)){this._f||(this._f=new n);var o=this._f[t](e,i);return"set"==t?this:o}return r.call(this,e,i)}))})))},function(t,e,r){"use strict";var n=r(169),i=r(51);r(85)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(i(this,"WeakSet"),t,!0)}},n,!1,!0)},function(t,e,r){"use strict";var n=r(0),i=r(86),o=r(121),a=r(5),u=r(46),s=r(9),c=r(6),f=r(3).ArrayBuffer,l=r(65),h=o.ArrayBuffer,p=o.DataView,d=i.ABV&&f.isView,y=h.prototype.slice,v=i.VIEW;n(n.G+n.W+n.F*(f!==h),{ArrayBuffer:h}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||c(t)&&v in t}}),n(n.P+n.U+n.F*r(4)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==y&&void 0===e)return y.call(a(this),t);for(var r=a(this).byteLength,n=u(t,r),i=u(void 0===e?r:e,r),o=new(l(this,h))(s(i-n)),c=new p(this),f=new p(o),d=0;n<i;)f.setUint8(d++,c.getUint8(n++));return o}}),r(57)("ArrayBuffer")},function(t,e,r){var n=r(0);n(n.G+n.W+n.F*!r(86).ABV,{DataView:r(121).DataView})},function(t,e,r){r(36)("Int8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint8",1,(function(t){return function(e,r,n){return t(this,e,r,n)}}),!0)},function(t,e,r){r(36)("Int16",2,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint16",2,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Int32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Uint32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Float32",4,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(36)("Float64",8,(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){var n=r(0),i=r(27),o=r(5),a=(r(3).Reflect||{}).apply,u=Function.apply;n(n.S+n.F*!r(4)((function(){a((function(){}))})),"Reflect",{apply:function(t,e,r){var n=i(t),s=o(r);return a?a(n,e,s):u.call(n,e,s)}})},function(t,e,r){var n=r(0),i=r(47),o=r(27),a=r(5),u=r(6),s=r(4),c=r(150),f=(r(3).Reflect||{}).construct,l=s((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),h=!s((function(){f((function(){}))}));n(n.S+n.F*(l||h),"Reflect",{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(h&&!l)return f(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}var s=r.prototype,p=i(u(s)?s:Object.prototype),d=Function.apply.call(t,p,e);return u(d)?d:p}})},function(t,e,r){var n=r(12),i=r(0),o=r(5),a=r(38);i(i.S+i.F*r(4)((function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,r){o(t),e=a(e,!0),o(r);try{return n.f(t,e,r),!0}catch(t){return!1}}})},function(t,e,r){var n=r(0),i=r(29).f,o=r(5);n(n.S,"Reflect",{deleteProperty:function(t,e){var r=i(o(t),e);return!(r&&!r.configurable)&&delete t[e]}})},function(t,e,r){"use strict";var n=r(0),i=r(5),o=function(t){this._t=i(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)};r(157)(o,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),n(n.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,r){var n=r(29),i=r(49),o=r(20),a=r(0),u=r(6),s=r(5);a(a.S,"Reflect",{get:function t(e,r){var a,c,f=arguments.length<3?e:arguments[2];return s(e)===f?e[r]:(a=n.f(e,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(f):void 0:u(c=i(e))?t(c,r,f):void 0}})},function(t,e,r){var n=r(29),i=r(0),o=r(5);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},function(t,e,r){var n=r(0),i=r(49),o=r(5);n(n.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,r){var n=r(0);n(n.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,r){var n=r(0),i=r(5),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,r){var n=r(0);n(n.S,"Reflect",{ownKeys:r(171)})},function(t,e,r){var n=r(0),i=r(5),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,r){var n=r(12),i=r(29),o=r(49),a=r(20),u=r(0),s=r(42),c=r(5),f=r(6);u(u.S,"Reflect",{set:function t(e,r,u){var l,h,p=arguments.length<4?e:arguments[3],d=i.f(c(e),r);if(!d){if(f(h=o(e)))return t(h,r,u,p);d=s(0)}if(a(d,"value")){if(!1===d.writable||!f(p))return!1;if(l=i.f(p,r)){if(l.get||l.set||!1===l.writable)return!1;l.value=u,n.f(p,r,l)}else n.f(p,r,s(0,u));return!0}return void 0!==d.set&&(d.set.call(p,u),!0)}})},function(t,e,r){var n=r(0),i=r(102);i&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,r){r(378),t.exports=r(10).Array.includes},function(t,e,r){"use strict";var n=r(0),i=r(76)(!0);n(n.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(50)("includes")},function(t,e,r){r(380),t.exports=r(10).Array.flatMap},function(t,e,r){"use strict";var n=r(0),i=r(381),o=r(17),a=r(9),u=r(27),s=r(159);n(n.P,"Array",{flatMap:function(t){var e,r,n=o(this);return u(t),e=a(n.length),r=s(n,0),i(r,n,n,e,0,1,t,arguments[1]),r}}),r(50)("flatMap")},function(t,e,r){"use strict";var n=r(78),i=r(6),o=r(9),a=r(26),u=r(8)("isConcatSpreadable");t.exports=function t(e,r,s,c,f,l,h,p){for(var d,y,v=f,g=0,m=!!h&&a(h,p,3);g<c;){if(g in s){if(d=m?m(s[g],g,r):s[g],y=!1,i(d)&&(y=void 0!==(y=d[u])?!!y:n(d)),y&&l>0)v=t(e,r,d,o(d.length),v,l-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=d}v++}g++}return v}},function(t,e,r){r(383),t.exports=r(10).String.padStart},function(t,e,r){"use strict";var n=r(0),i=r(172),o=r(84),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,r){r(385),t.exports=r(10).String.padEnd},function(t,e,r){"use strict";var n=r(0),i=r(172),o=r(84),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,r){r(387),t.exports=r(10).String.trimLeft},function(t,e,r){"use strict";r(55)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,r){r(389),t.exports=r(10).String.trimRight},function(t,e,r){"use strict";r(55)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,r){r(391),t.exports=r(98).f("asyncIterator")},function(t,e,r){r(144)("asyncIterator")},function(t,e,r){r(393),t.exports=r(10).Object.getOwnPropertyDescriptors},function(t,e,r){var n=r(0),i=r(171),o=r(22),a=r(29),u=r(114);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,r,n=o(t),s=a.f,c=i(n),f={},l=0;c.length>l;)void 0!==(r=s(n,e=c[l++]))&&u(f,e,r);return f}})},function(t,e,r){r(395),t.exports=r(10).Object.values},function(t,e,r){var n=r(0),i=r(173)(!1);n(n.S,"Object",{values:function(t){return i(t)}})},function(t,e,r){r(397),t.exports=r(10).Object.entries},function(t,e,r){var n=r(0),i=r(173)(!0);n(n.S,"Object",{entries:function(t){return i(t)}})},function(t,e,r){"use strict";r(165),r(399),t.exports=r(10).Promise.finally},function(t,e,r){"use strict";var n=r(0),i=r(10),o=r(3),a=r(65),u=r(167);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then((function(){return r}))}:t,r?function(r){return u(e,t()).then((function(){throw r}))}:t)}})},function(t,e,r){r(401),r(402),r(403),t.exports=r(10)},function(t,e,r){var n=r(3),i=r(0),o=r(84),a=[].slice,u=/MSIE .\./.test(o),s=function(t){return function(e,r){var n=arguments.length>2,i=!!n&&a.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,r)}};i(i.G+i.B+i.F*u,{setTimeout:s(n.setTimeout),setInterval:s(n.setInterval)})},function(t,e,r){var n=r(0),i=r(120);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,r){for(var n=r(117),i=r(45),o=r(18),a=r(3),u=r(21),s=r(56),c=r(8),f=c("iterator"),l=c("toStringTag"),h=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),y=0;y<d.length;y++){var v,g=d[y],m=p[g],b=a[g],w=b&&b.prototype;if(w&&(w[f]||u(w,f,h),w[l]||u(w,l,g),s[g]=h,m))for(v in n)w[v]||o(w,v,n[v],!0)}},function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),u=new S(i||[]);return n(a,"_invoke",{value:_(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function h(){}function p(){}function d(){}var y={};s(y,o,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(O([])));g&&g!==e&&r.call(g,o)&&(y=g);var m=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var i;n(this,"_invoke",{value:function(n,o){function a(){return new e((function(i,a){!function n(i,o,a,u){var s=f(t[i],t,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}(n,o,i,a)}))}return i=i?i.then(a,a):a()}})}function _(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=x(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),l;var i=f(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,l;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=d,n(m,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),s(m,u,"Generator"),s(m,o,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=O,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.fpath=e.monitoring=e.sos=e.frontApplet=void 0;var i=n(r(406)),o=n(r(625)),a=r(672);e.frontApplet=(0,i.default)(window,"hug"),e.sos=e.frontApplet,e.monitoring=new o.default(e.frontApplet),e.fpath=a.fpath,e.frontApplet.sos=e.frontApplet,e.frontApplet.frontApplet=e.frontApplet,e.frontApplet.monitoring=e.monitoring,e.frontApplet.default=e.frontApplet,e.frontApplet.fpath=e.fpath,window.sos=e.frontApplet,window.sosMonitoring=e.monitoring,e.default=e.frontApplet,t.exports=e.frontApplet},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return new i.default(t,e)};var i=n(r(407))},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),f=r(122),l=s(r(532)),h=s(r(539)),p=s(r(541)),d=s(r(224)),y=s(r(554)),v=s(r(556)),g=s(r(560)),m=s(r(563)),b=s(r(564)),w=s(r(565)),_=s(r(566)),x=s(r(567)),M=s(r(568)),E=s(r(569)),S=s(r(571)),O=s(r(573)),k=r(222),L=s(r(575)),P=s(r(613)),j=s(r(614)),A=r(616),R=s(r(617)),T=s(r(618)),I=s(r(620)),F=s(r(622)),N=function(){return t=function t(e,r){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.config=void 0,this.authHash=void 0,this.appletVersion=void 0;var i=(0,A.createExchange)(r,this.postMessage.bind(this));this.readyEmitter=new c.EventEmitter,this.invocationResponseEmitter=new c.EventEmitter,this.debug=new _.default(this.window,r,this.postMessage.bind(this)),this.deviceInfo=new x.default(r,this.postMessage.bind(this)),this.display=new M.default(r,this.postMessage.bind(this)),this.stream=new h.default(r,this.postMessage.bind(this)),this.video=new l.default(r,this.postMessage.bind(this)),this.command=new y.default(this.messagePrefix,this.postMessage.bind(this)),this.hardware=new v.default(this.messagePrefix,this.postMessage.bind(this)),this.offline=new p.default(r,this.window,this.postMessage.bind(this)),this.browser=new g.default(i.createNamespaced("browser")),this.touch=new b.default(this.window,this.messagePrefix,this.postMessage.bind(this)),this.iframe=new m.default(this.window,this.messagePrefix,this,[this.touch.transformIframeData.bind(this.touch)]),this.input=new w.default(this.window,this.messagePrefix),this.timing=new E.default(this.messagePrefix,this.postMessage.bind(this)),this.sync=new S.default(this.messagePrefix,this.postMessage.bind(this)),this.fileSystem=new O.default(this.messagePrefix,this.postMessage.bind(this)),this.management=new L.default(r,this.postMessage.bind(this)),this.monitors=new P.default(r,this.postMessage.bind(this)),this.osd=new R.default(r,this.postMessage.bind(this)),this.proofOfPlay=new T.default(this.command),this.sensors=new j.default(r),this.native=new I.default(r,this.postMessage.bind(this)),this.connect=new F.default(this.window,this.messagePrefix),this.javascriptLoadFileController=new d.default(this.window),this.window.addEventListener("message",(function(t){return n.handleMessage(t)})),this.postMessage({type:r+"_api.ready"}),this.startPinging()},(e=[{key:"postMessage",value:function(t){var e=this,r=(0,f.generateUniqueHash)();return this.window.setTimeout((function(){var n;null===(n=e.window.parent)||void 0===n||n.postMessage(Object.assign({invocationUid:r},t),"*")})),new Promise((function(t,n){e.invocationResponseEmitter.once(r,(function(e){e.error?e.error.error?n((0,k.createError)(e.error.error)):n(e.error):t(e.success)}))}))}},{key:"onReady",value:function(t){var e=this;return new Promise((function(r){e.readyEmitter.once("ready",(function(){r(),void 0!==t&&t()})),e.checkIfReady()}))}},{key:"restore",value:function(){this.postMessage({type:this.getMessage("restore")}),this.removeMediaListeners(),this.forwardRestoreToFrontAppletWindows()}},{key:"refresh",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("applet_refresh")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"forwardRestoreToFrontAppletWindows",value:function(){var t={type:this.messagePrefix+"restore"};this.iframe.forwardToFrontAppletWindows(t)}},{key:"removeMediaListeners",value:function(){this.video.removeEventListeners(),this.stream.removeEventListeners(),this.sync.removeEventListeners(),this.input.removeEventListeners()}},{key:"checkIfReady",value:function(){void 0!==this.authHash&&void 0!==this.config&&void 0!==this.display.version&&this.readyEmitter.emit("ready")}},{key:"handleMessage",value:function(t){if("object"===n(t.data)){var e=t.source;if(e===this.window.parent){var r=t.data;switch(r.type){case this.getMessage("invocation.success"):this.invocationResponseEmitter.emit(r.invocationUid,{success:r});break;case this.getMessage("invocation.error"):this.invocationResponseEmitter.emit(r.invocationUid,{error:r});break;case this.getMessage("config.update"):this.config=r.config,this.checkIfReady();break;case this.getMessage("auth_hash.update"):this.authHash=r.authHash,this.checkIfReady();break;case this.getMessage("front_display_version.update"):this.display.version=r.version,this.checkIfReady();break;case this.getMessage("applet_version.update"):this.appletVersion=r.version;break;case this.getMessage("restore"):this.removeMediaListeners();break;case this.getMessage("assets.load_js"):this.javascriptLoadFileController.load(r.src,this.window.document.body);break;default:this.browser.handleMessageData(r),this.sync.handleMessageData(r),this.video.handleMessageData(r),this.stream.handleMessageData(r),this.input.handleMessageData(r),this.command.handleMessageData(r),this.fileSystem.handleMessageData(r),this.sensors.handleMessageData(r),this.management.wifi.handleMessageData(r),this.hardware.handleMessageData(r),this.touch.handleMessageData(r),this.debug.handleMessageData(r),this.connect.handleMessageData(r)}this.iframe.forwardToFrontAppletWindows(r)}else if(function(t){return Boolean(t)}(e)&&e!==this.window){var i=t.data;switch(i.type){case this.messagePrefix+"_loader.ready":this.iframe.registerFrontAppletLoaderWindow(e);break;case this.messagePrefix+"_api.ready":this.iframe.registerBundledFrontAppletWindow(e);break;default:this.iframe.forwardFromFrontAppletWindows(e,i)}}}}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}},{key:"startPinging",value:function(){var t=this,e=function(){return t.postMessage({type:t.getMessage("ping")})};this.window.setInterval(e,3e4),e()}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=N},function(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(60),e.createHash=e.Hash=r(66),e.createHmac=e.Hmac=r(184);var n=r(428),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=r(186);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var u=r(468);e.Cipher=u.Cipher,e.createCipher=u.createCipher,e.Cipheriv=u.Cipheriv,e.createCipheriv=u.createCipheriv,e.Decipher=u.Decipher,e.createDecipher=u.createDecipher,e.Decipheriv=u.Decipheriv,e.createDecipheriv=u.createDecipheriv,e.getCiphers=u.getCiphers,e.listCiphers=u.listCiphers;var s=r(485);e.DiffieHellmanGroup=s.DiffieHellmanGroup,e.createDiffieHellmanGroup=s.createDiffieHellmanGroup,e.getDiffieHellman=s.getDiffieHellman,e.createDiffieHellman=s.createDiffieHellman,e.DiffieHellman=s.DiffieHellman;var c=r(490);e.createSign=c.createSign,e.Sign=c.Sign,e.createVerify=c.createVerify,e.Verify=c.Verify,e.createECDH=r(527);var f=r(528);e.publicEncrypt=f.publicEncrypt,e.privateEncrypt=f.privateEncrypt,e.publicDecrypt=f.publicDecrypt,e.privateDecrypt=f.privateDecrypt;var l=r(531);e.randomFill=l.randomFill,e.randomFillSync=l.randomFillSync,e.createCredentials=function(){throw new Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,r){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=c(t),a=n[0],u=n[1],s=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),f=0,l=u>0?a-4:a;for(r=0;r<l;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],s[f++]=e>>16&255,s[f++]=e>>8&255,s[f++]=255&e;2===u&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,s[f++]=255&e);1===u&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,s[f++]=e>>8&255,s[f++]=255&e);return s},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,u=r-i;a<u;a+=16383)o.push(f(t,a,a+16383>u?u:a+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,s=a.length;u<s;++u)n[u]=a[u],i[a.charCodeAt(u)]=u;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t,e,r){for(var i,o,a=[],u=e;u<r;u+=3)i=(t[u]<<16&16711680)+(t[u+1]<<8&65280)+(255&t[u+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){
19
19
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
20
20
  e.read=function(t,e,r,n,i){var o,a,u=8*i-n-1,s=(1<<u)-1,c=s>>1,f=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,o=p&(1<<-f)-1,p>>=-f,f+=u;f>0;o=256*o+t[e+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,u,s,c=8*o-i-1,f=(1<<c)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+l>=1?h/s:h*Math.pow(2,1-l))*s>=2&&(a++,s/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*s-1)*Math.pow(2,i),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&u,p+=d,u/=256,i-=8);for(a=a<<i|u,c+=i;c>0;t[r+p]=255&a,p+=d,a/=256,c-=8);t[r+p-d]|=128*y}},function(t,e){},function(t,e,r){"use strict";var n=r(125).Buffer,i=r(413);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);for(var e,r,i,o=n.allocUnsafe(t>>>0),a=this.head,u=0;a;)e=a.data,r=o,i=u,e.copy(r,i),u+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,r){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r(415),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(15))},function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,i,o,a,u,s=1,c={},f=!1,l=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){d(t.data)},n=function(t){o.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,n=function(t){var e=l.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):n=function(t){setTimeout(d,0,t)}:(a="setImmediate$"+Math.random()+"$",u=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&d(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",u,!1):t.attachEvent("onmessage",u),n=function(e){t.postMessage(a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return c[s]=i,n(s),s++},h.clearImmediate=p}function p(t){delete c[t]}function d(t){if(f)setTimeout(d,0,t);else{var e=c[t];if(e){f=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{p(t),f=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,r(15),r(32))},function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this,r(15))},function(t,e,r){"use strict";t.exports=o;var n=r(180),i=Object.create(r(67));function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}i.inherits=r(2),i.inherits(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},function(t,e,r){t.exports=r(126)},function(t,e,r){t.exports=r(52)},function(t,e,r){t.exports=r(87).Transform},function(t,e,r){t.exports=r(87).PassThrough},function(t,e,r){var n=r(2),i=r(61),o=r(1).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=new Array(80);function s(){this.init(),this._w=u,i.call(this,64,56)}function c(t){return t<<30|t>>>2}function f(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,u=0|this._d,s=0|this._e,l=0;l<16;++l)r[l]=t.readInt32BE(4*l);for(;l<80;++l)r[l]=r[l-3]^r[l-8]^r[l-14]^r[l-16];for(var h=0;h<80;++h){var p=~~(h/20),d=0|((e=n)<<5|e>>>27)+f(p,i,o,u)+s+r[h]+a[p];s=u,u=o,o=c(i),i=n,n=d}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=s},function(t,e,r){var n=r(2),i=r(61),o=r(1).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=new Array(80);function s(){this.init(),this._w=u,i.call(this,64,56)}function c(t){return t<<5|t>>>27}function f(t){return t<<30|t>>>2}function l(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,u=0|this._d,s=0|this._e,h=0;h<16;++h)r[h]=t.readInt32BE(4*h);for(;h<80;++h)r[h]=(e=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|e>>>31;for(var p=0;p<80;++p){var d=~~(p/20),y=c(n)+l(d,i,o,u)+s+r[p]+a[d]|0;s=u,u=o,o=f(i),i=n,n=y}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=s},function(t,e,r){var n=r(2),i=r(182),o=r(61),a=r(1).Buffer,u=new Array(64);function s(){this.init(),this._w=u,o.call(this,64,56)}n(s,i),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=s},function(t,e,r){var n=r(2),i=r(183),o=r(61),a=r(1).Buffer,u=new Array(160);function s(){this.init(),this._w=u,o.call(this,128,112)}n(s,i),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=s},function(t,e,r){"use strict";var n=r(2),i=r(1).Buffer,o=r(40),a=i.alloc(128);function u(t,e){o.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>64?e=t(e):e.length<64&&(e=i.concat([e,a],64));for(var r=this._ipad=i.allocUnsafe(64),n=this._opad=i.allocUnsafe(64),u=0;u<64;u++)r[u]=54^e[u],n[u]=92^e[u];this._hash=[r]}n(u,o),u.prototype._update=function(t){this._hash.push(t)},u.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=u},function(t,e,r){var n=r(123);t.exports=function(t){return(new n).update(t).digest()}},function(t,e,r){"use strict";t.exports=r(185)},function(t,e,r){"use strict";(function(e){var n,i,o=r(1).Buffer,a=r(187),u=r(188),s=r(189),c=r(190),f=e.crypto&&e.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function p(){return i||(i=e.process&&e.process.nextTick?e.process.nextTick:e.queueMicrotask?e.queueMicrotask:e.setImmediate?e.setImmediate:e.setTimeout)}function d(t,e,r,n,i){return f.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return f.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)})).then((function(t){return o.from(t)}))}t.exports=function(t,r,i,y,v,g){"function"==typeof v&&(g=v,v=void 0);var m=l[(v=v||"sha1").toLowerCase()];if(m&&"function"==typeof e.Promise){if(a(i,y),t=c(t,u,"Password"),r=c(r,u,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){p()((function(){e(null,t)}))}),(function(t){p()((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==h[t])return h[t];var r=d(n=n||o.alloc(8),n,10,128,t).then((function(){return!0}),(function(){return!1}));return h[t]=r,r}(m).then((function(e){return e?d(t,r,i,y,m):s(t,r,i,y,v)})),g)}else p()((function(){var e;try{e=s(t,r,i,y,v)}catch(t){return void g(t)}g(null,e)}))}}).call(this,r(15))},function(t,e,r){"use strict";var n=r(431);function i(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,l=0;l<t.length;l+=16){var h=r,p=n,d=i,y=o;r=a(r,n,i,o,t[l+0],7,-680876936),o=a(o,r,n,i,t[l+1],12,-389564586),i=a(i,o,r,n,t[l+2],17,606105819),n=a(n,i,o,r,t[l+3],22,-1044525330),r=a(r,n,i,o,t[l+4],7,-176418897),o=a(o,r,n,i,t[l+5],12,1200080426),i=a(i,o,r,n,t[l+6],17,-1473231341),n=a(n,i,o,r,t[l+7],22,-45705983),r=a(r,n,i,o,t[l+8],7,1770035416),o=a(o,r,n,i,t[l+9],12,-1958414417),i=a(i,o,r,n,t[l+10],17,-42063),n=a(n,i,o,r,t[l+11],22,-1990404162),r=a(r,n,i,o,t[l+12],7,1804603682),o=a(o,r,n,i,t[l+13],12,-40341101),i=a(i,o,r,n,t[l+14],17,-1502002290),r=u(r,n=a(n,i,o,r,t[l+15],22,1236535329),i,o,t[l+1],5,-165796510),o=u(o,r,n,i,t[l+6],9,-1069501632),i=u(i,o,r,n,t[l+11],14,643717713),n=u(n,i,o,r,t[l+0],20,-373897302),r=u(r,n,i,o,t[l+5],5,-701558691),o=u(o,r,n,i,t[l+10],9,38016083),i=u(i,o,r,n,t[l+15],14,-660478335),n=u(n,i,o,r,t[l+4],20,-405537848),r=u(r,n,i,o,t[l+9],5,568446438),o=u(o,r,n,i,t[l+14],9,-1019803690),i=u(i,o,r,n,t[l+3],14,-187363961),n=u(n,i,o,r,t[l+8],20,1163531501),r=u(r,n,i,o,t[l+13],5,-1444681467),o=u(o,r,n,i,t[l+2],9,-51403784),i=u(i,o,r,n,t[l+7],14,1735328473),r=s(r,n=u(n,i,o,r,t[l+12],20,-1926607734),i,o,t[l+5],4,-378558),o=s(o,r,n,i,t[l+8],11,-2022574463),i=s(i,o,r,n,t[l+11],16,1839030562),n=s(n,i,o,r,t[l+14],23,-35309556),r=s(r,n,i,o,t[l+1],4,-1530992060),o=s(o,r,n,i,t[l+4],11,1272893353),i=s(i,o,r,n,t[l+7],16,-155497632),n=s(n,i,o,r,t[l+10],23,-1094730640),r=s(r,n,i,o,t[l+13],4,681279174),o=s(o,r,n,i,t[l+0],11,-358537222),i=s(i,o,r,n,t[l+3],16,-722521979),n=s(n,i,o,r,t[l+6],23,76029189),r=s(r,n,i,o,t[l+9],4,-640364487),o=s(o,r,n,i,t[l+12],11,-421815835),i=s(i,o,r,n,t[l+15],16,530742520),r=c(r,n=s(n,i,o,r,t[l+2],23,-995338651),i,o,t[l+0],6,-198630844),o=c(o,r,n,i,t[l+7],10,1126891415),i=c(i,o,r,n,t[l+14],15,-1416354905),n=c(n,i,o,r,t[l+5],21,-57434055),r=c(r,n,i,o,t[l+12],6,1700485571),o=c(o,r,n,i,t[l+3],10,-1894986606),i=c(i,o,r,n,t[l+10],15,-1051523),n=c(n,i,o,r,t[l+1],21,-2054922799),r=c(r,n,i,o,t[l+8],6,1873313359),o=c(o,r,n,i,t[l+15],10,-30611744),i=c(i,o,r,n,t[l+6],15,-1560198380),n=c(n,i,o,r,t[l+13],21,1309151649),r=c(r,n,i,o,t[l+4],6,-145523070),o=c(o,r,n,i,t[l+11],10,-1120210379),i=c(i,o,r,n,t[l+2],15,718787259),n=c(n,i,o,r,t[l+9],21,-343485551),r=f(r,h),n=f(n,p),i=f(i,d),o=f(o,y)}return[r,n,i,o]}function o(t,e,r,n,i,o){return f((a=f(f(e,t),f(n,o)))<<(u=i)|a>>>32-u,r);var a,u}function a(t,e,r,n,i,a,u){return o(e&r|~e&n,t,e,i,a,u)}function u(t,e,r,n,i,a,u){return o(e&n|r&~n,t,e,i,a,u)}function s(t,e,r,n,i,a,u){return o(e^r^n,t,e,i,a,u)}function c(t,e,r,n,i,a,u){return o(r^(e|~n),t,e,i,a,u)}function f(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}t.exports=function(t){return n(t,i)}},function(t,e,r){"use strict";(function(e){var r=new e(4);r.fill(0);t.exports=function(t,n){var i=n(function(t){if(t.length%4!=0){var n=t.length+(4-t.length%4);t=e.concat([t,r],n)}for(var i=new Array(t.length>>>2),o=0,a=0;o<t.length;o+=4,a++)i[a]=t.readInt32LE(o);return i}(t),8*t.length);t=new e(16);for(var o=0;o<i.length;o++)t.writeInt32LE(i[o],o<<2,!0);return t}}).call(this,r(16).Buffer)},function(t,e,r){"use strict";(function(e){var n=r(2),i=r(433);function o(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function a(t,e){return t<<e|t>>>32-e}function u(t,e,r,n,i,o,u,s){return a(t+(e^r^n)+o+u|0,s)+i|0}function s(t,e,r,n,i,o,u,s){return a(t+(e&r|~e&n)+o+u|0,s)+i|0}function c(t,e,r,n,i,o,u,s){return a(t+((e|~r)^n)+o+u|0,s)+i|0}function f(t,e,r,n,i,o,u,s){return a(t+(e&n|r&~n)+o+u|0,s)+i|0}function l(t,e,r,n,i,o,u,s){return a(t+(e^(r|~n))+o+u|0,s)+i|0}n(o,i),o.prototype._update=function(){for(var t=new Array(16),e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,o=this._d,h=this._e;r=u(r,n,i,o,h,t[0],0,11),h=u(h,r,n,i=a(i,10),o,t[1],0,14),o=u(o,h,r,n=a(n,10),i,t[2],0,15),i=u(i,o,h,r=a(r,10),n,t[3],0,12),n=u(n,i,o,h=a(h,10),r,t[4],0,5),r=u(r,n,i,o=a(o,10),h,t[5],0,8),h=u(h,r,n,i=a(i,10),o,t[6],0,7),o=u(o,h,r,n=a(n,10),i,t[7],0,9),i=u(i,o,h,r=a(r,10),n,t[8],0,11),n=u(n,i,o,h=a(h,10),r,t[9],0,13),r=u(r,n,i,o=a(o,10),h,t[10],0,14),h=u(h,r,n,i=a(i,10),o,t[11],0,15),o=u(o,h,r,n=a(n,10),i,t[12],0,6),i=u(i,o,h,r=a(r,10),n,t[13],0,7),n=u(n,i,o,h=a(h,10),r,t[14],0,9),h=s(h,r=u(r,n,i,o=a(o,10),h,t[15],0,8),n,i=a(i,10),o,t[7],1518500249,7),o=s(o,h,r,n=a(n,10),i,t[4],1518500249,6),i=s(i,o,h,r=a(r,10),n,t[13],1518500249,8),n=s(n,i,o,h=a(h,10),r,t[1],1518500249,13),r=s(r,n,i,o=a(o,10),h,t[10],1518500249,11),h=s(h,r,n,i=a(i,10),o,t[6],1518500249,9),o=s(o,h,r,n=a(n,10),i,t[15],1518500249,7),i=s(i,o,h,r=a(r,10),n,t[3],1518500249,15),n=s(n,i,o,h=a(h,10),r,t[12],1518500249,7),r=s(r,n,i,o=a(o,10),h,t[0],1518500249,12),h=s(h,r,n,i=a(i,10),o,t[9],1518500249,15),o=s(o,h,r,n=a(n,10),i,t[5],1518500249,9),i=s(i,o,h,r=a(r,10),n,t[2],1518500249,11),n=s(n,i,o,h=a(h,10),r,t[14],1518500249,7),r=s(r,n,i,o=a(o,10),h,t[11],1518500249,13),o=c(o,h=s(h,r,n,i=a(i,10),o,t[8],1518500249,12),r,n=a(n,10),i,t[3],1859775393,11),i=c(i,o,h,r=a(r,10),n,t[10],1859775393,13),n=c(n,i,o,h=a(h,10),r,t[14],1859775393,6),r=c(r,n,i,o=a(o,10),h,t[4],1859775393,7),h=c(h,r,n,i=a(i,10),o,t[9],1859775393,14),o=c(o,h,r,n=a(n,10),i,t[15],1859775393,9),i=c(i,o,h,r=a(r,10),n,t[8],1859775393,13),n=c(n,i,o,h=a(h,10),r,t[1],1859775393,15),r=c(r,n,i,o=a(o,10),h,t[2],1859775393,14),h=c(h,r,n,i=a(i,10),o,t[7],1859775393,8),o=c(o,h,r,n=a(n,10),i,t[0],1859775393,13),i=c(i,o,h,r=a(r,10),n,t[6],1859775393,6),n=c(n,i,o,h=a(h,10),r,t[13],1859775393,5),r=c(r,n,i,o=a(o,10),h,t[11],1859775393,12),h=c(h,r,n,i=a(i,10),o,t[5],1859775393,7),i=f(i,o=c(o,h,r,n=a(n,10),i,t[12],1859775393,5),h,r=a(r,10),n,t[1],2400959708,11),n=f(n,i,o,h=a(h,10),r,t[9],2400959708,12),r=f(r,n,i,o=a(o,10),h,t[11],2400959708,14),h=f(h,r,n,i=a(i,10),o,t[10],2400959708,15),o=f(o,h,r,n=a(n,10),i,t[0],2400959708,14),i=f(i,o,h,r=a(r,10),n,t[8],2400959708,15),n=f(n,i,o,h=a(h,10),r,t[12],2400959708,9),r=f(r,n,i,o=a(o,10),h,t[4],2400959708,8),h=f(h,r,n,i=a(i,10),o,t[13],2400959708,9),o=f(o,h,r,n=a(n,10),i,t[3],2400959708,14),i=f(i,o,h,r=a(r,10),n,t[7],2400959708,5),n=f(n,i,o,h=a(h,10),r,t[15],2400959708,6),r=f(r,n,i,o=a(o,10),h,t[14],2400959708,8),h=f(h,r,n,i=a(i,10),o,t[5],2400959708,6),o=f(o,h,r,n=a(n,10),i,t[6],2400959708,5),n=l(n,i=f(i,o,h,r=a(r,10),n,t[2],2400959708,12),o,h=a(h,10),r,t[4],2840853838,9),r=l(r,n,i,o=a(o,10),h,t[0],2840853838,15),h=l(h,r,n,i=a(i,10),o,t[5],2840853838,5),o=l(o,h,r,n=a(n,10),i,t[9],2840853838,11),i=l(i,o,h,r=a(r,10),n,t[7],2840853838,6),n=l(n,i,o,h=a(h,10),r,t[12],2840853838,8),r=l(r,n,i,o=a(o,10),h,t[2],2840853838,13),h=l(h,r,n,i=a(i,10),o,t[10],2840853838,12),o=l(o,h,r,n=a(n,10),i,t[14],2840853838,5),i=l(i,o,h,r=a(r,10),n,t[1],2840853838,12),n=l(n,i,o,h=a(h,10),r,t[3],2840853838,13),r=l(r,n,i,o=a(o,10),h,t[8],2840853838,14),h=l(h,r,n,i=a(i,10),o,t[11],2840853838,11),o=l(o,h,r,n=a(n,10),i,t[6],2840853838,8),i=l(i,o,h,r=a(r,10),n,t[15],2840853838,5),n=l(n,i,o,h=a(h,10),r,t[13],2840853838,6),o=a(o,10);var p=this._a,d=this._b,y=this._c,v=this._d,g=this._e;p=l(p,d,y,v,g,t[5],1352829926,8),g=l(g,p,d,y=a(y,10),v,t[14],1352829926,9),v=l(v,g,p,d=a(d,10),y,t[7],1352829926,9),y=l(y,v,g,p=a(p,10),d,t[0],1352829926,11),d=l(d,y,v,g=a(g,10),p,t[9],1352829926,13),p=l(p,d,y,v=a(v,10),g,t[2],1352829926,15),g=l(g,p,d,y=a(y,10),v,t[11],1352829926,15),v=l(v,g,p,d=a(d,10),y,t[4],1352829926,5),y=l(y,v,g,p=a(p,10),d,t[13],1352829926,7),d=l(d,y,v,g=a(g,10),p,t[6],1352829926,7),p=l(p,d,y,v=a(v,10),g,t[15],1352829926,8),g=l(g,p,d,y=a(y,10),v,t[8],1352829926,11),v=l(v,g,p,d=a(d,10),y,t[1],1352829926,14),y=l(y,v,g,p=a(p,10),d,t[10],1352829926,14),d=l(d,y,v,g=a(g,10),p,t[3],1352829926,12),g=f(g,p=l(p,d,y,v=a(v,10),g,t[12],1352829926,6),d,y=a(y,10),v,t[6],1548603684,9),v=f(v,g,p,d=a(d,10),y,t[11],1548603684,13),y=f(y,v,g,p=a(p,10),d,t[3],1548603684,15),d=f(d,y,v,g=a(g,10),p,t[7],1548603684,7),p=f(p,d,y,v=a(v,10),g,t[0],1548603684,12),g=f(g,p,d,y=a(y,10),v,t[13],1548603684,8),v=f(v,g,p,d=a(d,10),y,t[5],1548603684,9),y=f(y,v,g,p=a(p,10),d,t[10],1548603684,11),d=f(d,y,v,g=a(g,10),p,t[14],1548603684,7),p=f(p,d,y,v=a(v,10),g,t[15],1548603684,7),g=f(g,p,d,y=a(y,10),v,t[8],1548603684,12),v=f(v,g,p,d=a(d,10),y,t[12],1548603684,7),y=f(y,v,g,p=a(p,10),d,t[4],1548603684,6),d=f(d,y,v,g=a(g,10),p,t[9],1548603684,15),p=f(p,d,y,v=a(v,10),g,t[1],1548603684,13),v=c(v,g=f(g,p,d,y=a(y,10),v,t[2],1548603684,11),p,d=a(d,10),y,t[15],1836072691,9),y=c(y,v,g,p=a(p,10),d,t[5],1836072691,7),d=c(d,y,v,g=a(g,10),p,t[1],1836072691,15),p=c(p,d,y,v=a(v,10),g,t[3],1836072691,11),g=c(g,p,d,y=a(y,10),v,t[7],1836072691,8),v=c(v,g,p,d=a(d,10),y,t[14],1836072691,6),y=c(y,v,g,p=a(p,10),d,t[6],1836072691,6),d=c(d,y,v,g=a(g,10),p,t[9],1836072691,14),p=c(p,d,y,v=a(v,10),g,t[11],1836072691,12),g=c(g,p,d,y=a(y,10),v,t[8],1836072691,13),v=c(v,g,p,d=a(d,10),y,t[12],1836072691,5),y=c(y,v,g,p=a(p,10),d,t[2],1836072691,14),d=c(d,y,v,g=a(g,10),p,t[10],1836072691,13),p=c(p,d,y,v=a(v,10),g,t[0],1836072691,13),g=c(g,p,d,y=a(y,10),v,t[4],1836072691,7),y=s(y,v=c(v,g,p,d=a(d,10),y,t[13],1836072691,5),g,p=a(p,10),d,t[8],2053994217,15),d=s(d,y,v,g=a(g,10),p,t[6],2053994217,5),p=s(p,d,y,v=a(v,10),g,t[4],2053994217,8),g=s(g,p,d,y=a(y,10),v,t[1],2053994217,11),v=s(v,g,p,d=a(d,10),y,t[3],2053994217,14),y=s(y,v,g,p=a(p,10),d,t[11],2053994217,14),d=s(d,y,v,g=a(g,10),p,t[15],2053994217,6),p=s(p,d,y,v=a(v,10),g,t[0],2053994217,14),g=s(g,p,d,y=a(y,10),v,t[5],2053994217,6),v=s(v,g,p,d=a(d,10),y,t[12],2053994217,9),y=s(y,v,g,p=a(p,10),d,t[2],2053994217,12),d=s(d,y,v,g=a(g,10),p,t[13],2053994217,9),p=s(p,d,y,v=a(v,10),g,t[9],2053994217,12),g=s(g,p,d,y=a(y,10),v,t[7],2053994217,5),v=s(v,g,p,d=a(d,10),y,t[10],2053994217,15),d=u(d,y=s(y,v,g,p=a(p,10),d,t[14],2053994217,8),v,g=a(g,10),p,t[12],0,8),p=u(p,d,y,v=a(v,10),g,t[15],0,5),g=u(g,p,d,y=a(y,10),v,t[10],0,12),v=u(v,g,p,d=a(d,10),y,t[4],0,9),y=u(y,v,g,p=a(p,10),d,t[1],0,12),d=u(d,y,v,g=a(g,10),p,t[5],0,5),p=u(p,d,y,v=a(v,10),g,t[8],0,14),g=u(g,p,d,y=a(y,10),v,t[7],0,6),v=u(v,g,p,d=a(d,10),y,t[6],0,8),y=u(y,v,g,p=a(p,10),d,t[2],0,13),d=u(d,y,v,g=a(g,10),p,t[13],0,6),p=u(p,d,y,v=a(v,10),g,t[14],0,5),g=u(g,p,d,y=a(y,10),v,t[0],0,15),v=u(v,g,p,d=a(d,10),y,t[3],0,13),y=u(y,v,g,p=a(p,10),d,t[9],0,11),d=u(d,y,v,g=a(g,10),p,t[11],0,11),v=a(v,10);var m=this._b+i+v|0;this._b=this._c+o+g|0,this._c=this._d+h+p|0,this._d=this._e+r+d|0,this._e=this._a+n+y|0,this._a=m},o.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 t=new e(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=o}).call(this,r(16).Buffer)},function(t,e,r){"use strict";(function(e){var n=r(124).Transform;function i(t){n.call(this),this._block=new e(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(2)(i,n),i.prototype._transform=function(t,r,n){var i=null;try{"buffer"!==r&&(t=new e(t,r)),this.update(t)}catch(t){i=t}n(i)},i.prototype._flush=function(t){var e=null;try{this.push(this._digest())}catch(t){e=t}t(e)},i.prototype.update=function(t,r){if(!e.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");e.isBuffer(t)||(t=new e(t,r||"binary"));for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset++]=t[i++];for(var a=0,u=8*t.length;u>0;++a)this._length[a]+=u,(u=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*u);return this},i.prototype._update=function(t){throw new Error("_update is not implemented")},i.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();return void 0!==t&&(e=e.toString(t)),e},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i}).call(this,r(16).Buffer)},function(t,e,r){"use strict";var n=r(1).Buffer,i=r(435),o=r(436),a=ArrayBuffer.isView||function(t){try{return o(t),!0}catch(t){return!1}},u="undefined"!=typeof Uint8Array,s="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,c=s&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);t.exports=function(t,e){if(t instanceof n)return t;if("string"==typeof t)return n.from(t,e);if(s&&a(t)){if(0===t.byteLength)return n.alloc(0);if(c){var r=n.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),f=n.from(o);if(f.length===t.byteLength)return f}if(u&&t instanceof Uint8Array)return n.from(t);var l=i(t);if(l)for(var h=0;h<t.length;h+=1){var p=t[h];if("number"!=typeof p||p<0||p>255||~~p!==p)throw new RangeError("Array items must be numbers in the range 0-255.")}if(l||n.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return n.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";var n=r(37),i=r(89)("TypedArray.prototype.buffer",!0),o=r(456);t.exports=i||function(t){if(!o(t))throw new n("Not a Typed Array");return t.buffer}},function(t,e,r){"use strict";t.exports=Error},function(t,e,r){"use strict";t.exports=EvalError},function(t,e,r){"use strict";t.exports=RangeError},function(t,e,r){"use strict";t.exports=ReferenceError},function(t,e,r){"use strict";t.exports=URIError},function(t,e,r){"use strict";t.exports=Math.abs},function(t,e,r){"use strict";t.exports=Math.floor},function(t,e,r){"use strict";t.exports=Math.max},function(t,e,r){"use strict";t.exports=Math.min},function(t,e,r){"use strict";t.exports=Math.pow},function(t,e,r){"use strict";t.exports=Math.round},function(t,e,r){"use strict";var n=r(449);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},function(t,e,r){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},function(t,e,r){"use strict";t.exports=Object.getOwnPropertyDescriptor},function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(193);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},function(t,e,r){"use strict";var n,i=r(129),o=r(68);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!n&&o&&o(Object.prototype,"__proto__"),u=Object,s=u.getPrototypeOf;t.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof s&&function(t){return s(null==t?t:u(t))}},function(t,e,r){"use strict";var n="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,a=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r},u=function(t,e){for(var r=[],n=e||0,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r},s=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.apply(e))throw new TypeError(n+e);for(var r,c=u(arguments,1),f=function(){if(this instanceof r){var n=e.apply(this,a(c,arguments));return Object(n)===n?n:this}return e.apply(t,a(c,arguments))},l=o(0,e.length-c.length),h=[],p=0;p<l;p++)h[p]="$"+p;if(r=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(f),e.prototype){var d=function(){};d.prototype=e.prototype,r.prototype=new d,d.prototype=null}return r}},function(t,e,r){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},function(t,e,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(69);t.exports=o.call(n,i)},function(t,e,r){"use strict";var n=r(457);t.exports=function(t){return!!n(t)}},function(t,e,r){"use strict";(function(e){var n=r(458),i=r(460),o=r(462),a=r(89),u=r(68),s=r(194),c=a("Object.prototype.toString"),f=r(467)(),l="undefined"==typeof globalThis?e:globalThis,h=i(),p=a("String.prototype.slice"),d=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},y={__proto__:null};n(h,f&&u&&s?function(t){var e=new l[t];if(Symbol.toStringTag in e&&s){var r=s(e),n=u(r,Symbol.toStringTag);if(!n&&r){var i=s(r);n=u(i,Symbol.toStringTag)}y["$"+t]=o(n.get)}}:function(t){var e=new l[t],r=e.slice||e.set;r&&(y["$"+t]=o(r))});t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!f){var e=p(c(t),8,-1);return d(h,e)>-1?e:"Object"===e&&function(t){var e=!1;return n(y,(function(r,n){if(!e)try{r(t),e=p(n,1)}catch(t){}})),e}(t)}return u?function(t){var e=!1;return n(y,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=p(n,1))}catch(t){}})),e}(t):null}}).call(this,r(15))},function(t,e,r){"use strict";var n=r(459),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(t,e,r){for(var n=0,i=t.length;n<i;n++)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))},u=function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)},s=function(t,e,r){for(var n in t)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))};function c(t){return"[object Array]"===i.call(t)}t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),c(t)?a(t,e,i):"string"==typeof t?u(t,e,i):s(t,e,i)}},function(t,e,r){"use strict";var n,i,o=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw i}}),i={},a((function(){throw 42}),null,n)}catch(t){t!==i&&(a=null)}else a=null;var u=/^\s*class\b/,s=function(t){try{var e=o.call(t);return u.test(e)}catch(t){return!1}},c=function(t){try{return!s(t)&&(o.call(t),!0)}catch(t){return!1}},f=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,h=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var d=document.all;f.call(d)===f.call(document.all)&&(p=function(t){if((h||!t)&&(void 0===t||"object"==typeof t))try{var e=f.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=a?function(t){if(p(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{a(t,null,n)}catch(t){if(t!==i)return!1}return!s(t)&&c(t)}:function(t){if(p(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return c(t);if(s(t))return!1;var e=f.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&c(t)}},function(t,e,r){"use strict";(function(e){var n=r(461),i="undefined"==typeof globalThis?e:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}}).call(this,r(15))},function(t,e,r){"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},function(t,e,r){"use strict";var n=r(463),i=r(91),o=r(129),a=r(466);t.exports=function(t){var e=o(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},i?i(t.exports,"apply",{value:a}):t.exports.apply=a},function(t,e,r){"use strict";var n=r(90),i=r(464),o=r(465)(),a=r(68),u=r(37),s=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new u("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||s(e)!==e)throw new u("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in t&&a){var f=a(t,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(c=!1)}return(n||c||!r)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},function(t,e,r){"use strict";var n=r(91),i=r(192),o=r(37),a=r(68);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],l=!!a&&a(t,e);if(n)n(t,e,{configurable:null===c&&l?l.configurable:!c,enumerable:null===u&&l?l.enumerable:!u,value:r,writable:null===s&&l?l.writable:!s});else{if(!f&&(u||s||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},function(t,e,r){"use strict";var n=r(91),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,r){"use strict";var n=r(69),i=r(131),o=r(197);t.exports=function(){return o(n,i,arguments)}},function(t,e,r){"use strict";var n=r(193);t.exports=function(){return n()&&!!Symbol.toStringTag}},function(t,e,r){var n=r(469),i=r(133),o=r(134),a=r(484),u=r(93);function s(t,e,r){if(t=t.toLowerCase(),o[t])return i.createCipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function c(t,e,r){if(t=t.toLowerCase(),o[t])return i.createDecipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=u(e,!1,r,n);return s(t,i.key,i.iv)},e.createCipheriv=e.Cipheriv=s,e.createDecipher=e.Decipher=function(t,e){var r,n;if(t=t.toLowerCase(),o[t])r=o[t].key,n=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var i=u(e,!1,r,n);return c(t,i.key,i.iv)},e.createDecipheriv=e.Decipheriv=c,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(t,e,r){var n=r(40),i=r(132),o=r(2),a=r(1).Buffer,u={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function s(t){n.call(this);var e,r=t.mode.toLowerCase(),i=u[r];e=t.decrypt?"decrypt":"encrypt";var o=t.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var s=t.iv;a.isBuffer(s)||(s=a.from(s)),this._des=i.create({key:o,iv:s,type:e})}u.des=u["des-cbc"],u.des3=u["des-ede3-cbc"],t.exports=s,o(s,n),s.prototype._update=function(t){return a.from(this._des.update(t))},s.prototype._final=function(){return a.from(this._des.final())}},function(t,e,r){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},e.ip=function(t,e,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var u=0;u<=24;u+=8)i<<=1,i|=e>>>u+a&1;for(u=0;u<=24;u+=8)i<<=1,i|=t>>>u+a&1}for(a=6;a>=0;a-=2){for(u=1;u<=25;u+=8)o<<=1,o|=e>>>u+a&1;for(u=1;u<=25;u+=8)o<<=1,o|=t>>>u+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},e.rip=function(t,e,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var u=24;u>=0;u-=8)i<<=1,i|=e>>>u+a&1,i<<=1,i|=t>>>u+a&1;for(a=4;a<8;a++)for(u=24;u>=0;u-=8)o<<=1,o|=e>>>u+a&1,o<<=1,o|=t>>>u+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.pc1=function(t,e,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var u=0;u<=24;u+=8)i<<=1,i|=e>>u+a&1;for(u=0;u<=24;u+=8)i<<=1,i|=t>>u+a&1}for(u=0;u<=24;u+=8)i<<=1,i|=e>>u+a&1;for(a=1;a<=3;a++){for(u=0;u<=24;u+=8)o<<=1,o|=e>>u+a&1;for(u=0;u<=24;u+=8)o<<=1,o|=t>>u+a&1}for(u=0;u<=24;u+=8)o<<=1,o|=t>>u+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,r,i){for(var o=0,a=0,u=n.length>>>1,s=0;s<u;s++)o<<=1,o|=t>>>n[s]&1;for(s=u;s<n.length;s++)a<<=1,a|=e>>>n[s]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},e.expand=function(t,e,r){var n=0,i=0;n=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(t>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(e>>>18-6*n&63)]}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,r=0;r<o.length;r++)e<<=1,e|=t>>>o[r]&1;return e>>>0},e.padSplit=function(t,e,r){for(var n=t.toString(2);n.length<e;)n="0"+n;for(var i=[],o=0;o<e;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},function(t,e,r){"use strict";var n=r(23);function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var r=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n<r;n++)this.buffer[this.bufferOff+n]=t[e+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(t){var e=0,r=0,n=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,i,r),r+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},i.prototype._updateDecrypt=function(t){for(var e=0,r=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)e+=this._buffer(t,e),r+=this._flushBuffer(i,r);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,r;return t&&(e=this.update(t)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},i.prototype._unpad=function(t){return t},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},function(t,e,r){"use strict";var n=r(23),i=r(2),o=r(132),a=o.utils,u=o.Cipher;function s(){this.tmp=new Array(2),this.keys=null}function c(t){u.call(this,t);var e=new s;this._desState=e,this.deriveKeys(e,t.key)}i(c,u),t.exports=c,c.create=function(t){return new c(t)};var f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var r=a.readUInt32BE(e,0),i=a.readUInt32BE(e,4);a.pc1(r,i,t.tmp,0),r=t.tmp[0],i=t.tmp[1];for(var o=0;o<t.keys.length;o+=2){var u=f[o>>>1];r=a.r28shl(r,u),i=a.r28shl(i,u),a.pc2(r,i,t.keys,o)}},c.prototype._update=function(t,e,r,n){var i=this._desState,o=a.readUInt32BE(t,e),u=a.readUInt32BE(t,e+4);a.ip(o,u,i.tmp,0),o=i.tmp[0],u=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,u,i.tmp,0):this._decrypt(i,o,u,i.tmp,0),o=i.tmp[0],u=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,u,n+4)},c.prototype._pad=function(t,e){for(var r=t.length-e,n=e;n<t.length;n++)t[n]=r;return!0},c.prototype._unpad=function(t){for(var e=t[t.length-1],r=t.length-e;r<t.length;r++)n.equal(t[r],e);return t.slice(0,t.length-e)},c.prototype._encrypt=function(t,e,r,n,i){for(var o=e,u=r,s=0;s<t.keys.length;s+=2){var c=t.keys[s],f=t.keys[s+1];a.expand(u,t.tmp,0),c^=t.tmp[0],f^=t.tmp[1];var l=a.substitute(c,f),h=u;u=(o^a.permute(l))>>>0,o=h}a.rip(u,o,n,i)},c.prototype._decrypt=function(t,e,r,n,i){for(var o=r,u=e,s=t.keys.length-2;s>=0;s-=2){var c=t.keys[s],f=t.keys[s+1];a.expand(o,t.tmp,0),c^=t.tmp[0],f^=t.tmp[1];var l=a.substitute(c,f),h=o;o=(u^a.permute(l))>>>0,u=h}a.rip(o,u,n,i)}},function(t,e,r){"use strict";var n=r(23),i=r(2),o={};function a(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}i(e,t);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];e.prototype[a]=o[a]}return e.create=function(t){return new e(t)},e},o._cbcInit=function(){var t=new a(this.options.iv);this._cbcState=t},o._update=function(t,e,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var u=0;u<this.blockSize;u++)a[u]^=t[e+u];o._update.call(this,a,0,r,n);for(u=0;u<this.blockSize;u++)a[u]=r[n+u]}else{o._update.call(this,t,e,r,n);for(u=0;u<this.blockSize;u++)r[n+u]^=a[u];for(u=0;u<this.blockSize;u++)a[u]=t[e+u]}}},function(t,e,r){"use strict";var n=r(23),i=r(2),o=r(132),a=o.Cipher,u=o.DES;function s(t,e){n.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),i=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[u.create({type:"encrypt",key:r}),u.create({type:"decrypt",key:i}),u.create({type:"encrypt",key:o})]:[u.create({type:"decrypt",key:o}),u.create({type:"encrypt",key:i}),u.create({type:"decrypt",key:r})]}function c(t){a.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}i(c,a),t.exports=c,c.create=function(t){return new c(t)},c.prototype._update=function(t,e,r,n){var i=this._edeState;i.ciphers[0]._update(t,e,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},c.prototype._pad=u.prototype._pad,c.prototype._unpad=u.prototype._unpad},function(t,e,r){var n=r(134),i=r(201),o=r(1).Buffer,a=r(202),u=r(40),s=r(92),c=r(93);function f(t,e,r){u.call(this),this._cache=new h,this._cipher=new s.AES(e),this._prev=o.from(r),this._mode=t,this._autopadding=!0}r(2)(f,u),f.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get();)r=this._mode.encrypt(this,e),n.push(r);return o.concat(n)};var l=o.alloc(16,16);function h(){this.cache=o.allocUnsafe(0)}function p(t,e,r){var u=n[t.toLowerCase()];if(!u)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=o.from(e)),e.length!==u.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==u.mode&&r.length!==u.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===u.type?new a(u.module,e,r):"auth"===u.type?new i(u.module,e,r):new f(u.module,e,r)}f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},h.prototype.add=function(t){this.cache=o.concat([this.cache,t])},h.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},h.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return o.concat([this.cache,e])},e.createCipheriv=p,e.createCipher=function(t,e){var r=n[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=c(e,!1,r.key,r.iv);return p(t,i.key,i.iv)}},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,r){var n=r(70);e.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return n(i,r)}},function(t,e,r){var n=r(1).Buffer,i=r(70);function o(t,e,r){var o=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=n.concat([t._prev,r?e:a]),a}e.encrypt=function(t,e,r){for(var i,a=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){a=n.concat([a,o(t,e,r)]);break}i=t._cache.length,a=n.concat([a,o(t,e.slice(0,i),r)]),e=e.slice(i)}return a}},function(t,e,r){var n=r(1).Buffer;function i(t,e,r){var i=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([r?e:i])]),i}e.encrypt=function(t,e,r){for(var o=e.length,a=n.allocUnsafe(o),u=-1;++u<o;)a[u]=i(t,e[u],r);return a}},function(t,e,r){var n=r(1).Buffer;function i(t,e,r){for(var n,i,a=-1,u=0;++a<8;)n=e&1<<7-a?128:0,u+=(128&(i=t._cipher.encryptBlock(t._prev)[0]^n))>>a%8,t._prev=o(t._prev,r?n:i);return u}function o(t,e){var r=t.length,i=-1,o=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++i<r;)o[i]=t[i]<<1|t[i+1]>>7;return o}e.encrypt=function(t,e,r){for(var o=e.length,a=n.allocUnsafe(o),u=-1;++u<o;)a[u]=i(t,e[u],r);return a}},function(t,e,r){(function(t){var n=r(70);function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,o)}}).call(this,r(16).Buffer)},function(t,e,r){var n=r(1).Buffer,i=n.alloc(16,0);function o(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){for(var t,e,r,n=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!=(1&n[3]),e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=a},function(t,e,r){var n=r(201),i=r(1).Buffer,o=r(134),a=r(202),u=r(40),s=r(92),c=r(93);function f(t,e,r){u.call(this),this._cache=new l,this._last=void 0,this._cipher=new s.AES(e),this._prev=i.from(r),this._mode=t,this._autopadding=!0}function l(){this.cache=i.allocUnsafe(0)}function h(t,e,r){var u=o[t.toLowerCase()];if(!u)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==u.mode&&r.length!==u.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof e&&(e=i.from(e)),e.length!==u.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===u.type?new a(u.module,e,r,!0):"auth"===u.type?new n(u.module,e,r,!0):new f(u.module,e,r)}r(2)(f,u),f.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),n.push(r);return i.concat(n)},f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var r=-1;for(;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},l.prototype.add=function(t){this.cache=i.concat([this.cache,t])},l.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var r=o[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(e,!1,r.key,r.iv);return h(t,n.key,n.iv)},e.createDecipheriv=h},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,r){(function(t){var n=r(203),i=r(488),o=r(489);var a={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var r=new t(i[e].prime,"hex"),n=new t(i[e].gen,"hex");return new o(r,n)},e.createDiffieHellman=e.DiffieHellman=function e(r,i,u,s){return t.isBuffer(i)||void 0===a[i]?e(r,"binary",i,u):(i=i||"binary",s=s||"binary",u=u||new t([2]),t.isBuffer(u)||(u=new t(u,s)),"number"==typeof r?new o(n(r,u),u,!0):(t.isBuffer(r)||(r=new t(r,i)),new o(r,u,!0)))}}).call(this,r(16).Buffer)},function(t,e){},function(t,e){},function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(t,e,r){(function(e){var n=r(13),i=new(r(204)),o=new n(24),a=new n(11),u=new n(10),s=new n(3),c=new n(7),f=r(203),l=r(60);function h(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._pub=new n(t),this}function p(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._priv=new n(t),this}t.exports=y;var d={};function y(t,e,r){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function v(t,r){var n=new e(t.toArray());return r?n.toString(r):n}Object.defineProperty(y.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in d)return d[n];var l,h=0;if(t.isEven()||!f.simpleSieve||!f.fermatTest(t)||!i.test(t))return h+=1,h+="02"===r||"05"===r?8:4,d[n]=h,h;switch(i.test(t.shrn(1))||(h+=2),r){case"02":t.mod(o).cmp(a)&&(h+=8);break;case"05":(l=t.mod(u)).cmp(s)&&l.cmp(c)&&(h+=8);break;default:h+=4}return d[n]=h,h}(this.__prime,this.__gen)),this._primeCode}}),y.prototype.generateKeys=function(){return this._priv||(this._priv=new n(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},y.prototype.computeSecret=function(t){var r=(t=(t=new n(t)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new e(r.toArray()),o=this.getPrime();if(i.length<o.length){var a=new e(o.length-i.length);a.fill(0),i=e.concat([a,i])}return i},y.prototype.getPublicKey=function(t){return v(this._pub,t)},y.prototype.getPrivateKey=function(t){return v(this._priv,t)},y.prototype.getPrime=function(t){return v(this.__prime,t)},y.prototype.getGenerator=function(t){return v(this._gen,t)},y.prototype.setGenerator=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.__gen=t,this._gen=new n(t),this}}).call(this,r(16).Buffer)},function(t,e,r){"use strict";var n=r(1).Buffer,i=r(66),o=r(87),a=r(2),u=r(491),s=r(526),c=r(185);function f(t){o.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function l(t){o.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function h(t){return new f(t)}function p(t){return new l(t)}Object.keys(c).forEach((function(t){c[t].id=n.from(c[t].id,"hex"),c[t.toLowerCase()]=c[t]})),a(f,o.Writable),f.prototype._write=function(t,e,r){this._hash.update(t),r()},f.prototype.update=function(t,e){return this._hash.update("string"==typeof t?n.from(t,e):t),this},f.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=u(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},a(l,o.Writable),l.prototype._write=function(t,e,r){this._hash.update(t),r()},l.prototype.update=function(t,e){return this._hash.update("string"==typeof t?n.from(t,e):t),this},l.prototype.verify=function(t,e,r){var i="string"==typeof e?n.from(e,r):e;this.end();var o=this._hash.digest();return s(i,o,t,this._signType,this._tag)},t.exports={Sign:h,Verify:p,createSign:h,createVerify:p}},function(t,e,r){"use strict";var n=r(1).Buffer,i=r(184),o=r(136),a=r(137).ec,u=r(210),s=r(95),c=r(215);function f(t,e,r,o){if((t=n.from(t.toArray())).length<e.byteLength()){var a=n.alloc(e.byteLength()-t.length);t=n.concat([a,t])}var u=r.length,s=function(t,e){t=(t=l(t,e)).mod(e);var r=n.from(t.toArray());if(r.length<e.byteLength()){var i=n.alloc(e.byteLength()-r.length);r=n.concat([i,r])}return r}(r,e),c=n.alloc(u);c.fill(1);var f=n.alloc(u);return f=i(o,f).update(c).update(n.from([0])).update(t).update(s).digest(),c=i(o,f).update(c).digest(),{k:f=i(o,f).update(c).update(n.from([1])).update(t).update(s).digest(),v:c=i(o,f).update(c).digest()}}function l(t,e){var r=new u(t),n=(t.length<<3)-e.bitLength();return n>0&&r.ishrn(n),r}function h(t,e,r){var o,a;do{for(o=n.alloc(0);8*o.length<t.bitLength();)e.v=i(r,e.k).update(e.v).digest(),o=n.concat([o,e.v]);a=l(o,t),e.k=i(r,e.k).update(e.v).update(n.from([0])).digest(),e.v=i(r,e.k).update(e.v).digest()}while(-1!==a.cmp(t));return a}function p(t,e,r,n){return t.toRed(u.mont(r)).redPow(e).fromRed().mod(n)}t.exports=function(t,e,r,i,d){var y=s(e);if(y.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(t,e){var r=c[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var i=new a(r).keyFromPrivate(e.privateKey).sign(t);return n.from(i.toDER())}(t,y)}if("dsa"===y.type){if("dsa"!==i)throw new Error("wrong private key type");return function(t,e,r){var i,o=e.params.priv_key,a=e.params.p,s=e.params.q,c=e.params.g,d=new u(0),y=l(t,s).mod(s),v=!1,g=f(o,s,t,r);for(;!1===v;)i=h(s,g,r),d=p(c,i,a,s),0===(v=i.invm(s).imul(y.add(o.mul(d))).mod(s)).cmpn(0)&&(v=!1,d=new u(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t));128&e[0]&&(e=[0].concat(e));var r=[48,t.length+e.length+4,2,t.length];return r=r.concat(t,[2,e.length],e),n.from(r)}(d,v)}(t,y,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");if(void 0!==e.padding&&1!==e.padding)throw new Error("illegal or unsupported padding mode");t=n.concat([d,t]);for(var v=y.modulus.byteLength(),g=[0,1];t.length+g.length+1<v;)g.push(255);g.push(0);for(var m=-1;++m<t.length;)g.push(t[m]);return o(g,y)},t.exports.getKey=f,t.exports.makeKey=h},function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(493).Buffer}catch(t){}function u(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,r){var n=u(t,r);return r-1>=e&&(n|=u(t,r-1)<<4),n}function c(t,e,r,i){for(var o=0,a=0,u=Math.min(t.length,r),s=e;s<u;s++){var c=t.charCodeAt(s)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function f(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,u=0;if("be"===r)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===r)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<u&67108863,this.words[o+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)i=s(t,e,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,u=Math.min(o,o-a)+r,s=0,f=r;f<u;f+=n)s=c(t,f,f+n,e),this.imuln(i),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==a){var l=1;for(s=c(t,f,t.length,e),f=0;f<a;f++)l*=e;this.imuln(l),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){f(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&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")]=l}catch(t){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[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];o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a<this.length;a++){var u=this.words[a],s=(16777215&(u<<i|o)).toString(16);o=u>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-s.length]+s+r:s+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=p[t],f=d[t];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var y=l.modrn(f).toString(t);r=(l=l.idivn(f)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function y(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,u=67108863&a,s=a/67108864|0;r.words[0]=u;for(var c=1;c<n;c++){for(var f=s>>>26,l=67108863&s,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=h;p++){var d=c-p|0;f+=(a=(i=0|t.words[d])*(o=0|e.words[p])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,s=0|f}return 0!==s?r.words[c]=0|s:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===o?(r<t.length&&(t[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a<n.length;a++)o=(e=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)o=(e=(0|r.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var v=function(t,e,r){var n,i,o,a=t.words,u=e.words,s=r.words,c=0,f=0|a[0],l=8191&f,h=f>>>13,p=0|a[1],d=8191&p,y=p>>>13,v=0|a[2],g=8191&v,m=v>>>13,b=0|a[3],w=8191&b,_=b>>>13,x=0|a[4],M=8191&x,E=x>>>13,S=0|a[5],O=8191&S,k=S>>>13,L=0|a[6],P=8191&L,j=L>>>13,A=0|a[7],R=8191&A,T=A>>>13,I=0|a[8],F=8191&I,N=I>>>13,C=0|a[9],D=8191&C,G=C>>>13,q=0|u[0],B=8191&q,U=q>>>13,z=0|u[1],V=8191&z,Y=z>>>13,W=0|u[2],H=8191&W,K=W>>>13,X=0|u[3],$=8191&X,Z=X>>>13,J=0|u[4],Q=8191&J,tt=J>>>13,et=0|u[5],rt=8191&et,nt=et>>>13,it=0|u[6],ot=8191&it,at=it>>>13,ut=0|u[7],st=8191&ut,ct=ut>>>13,ft=0|u[8],lt=8191&ft,ht=ft>>>13,pt=0|u[9],dt=8191&pt,yt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var vt=(c+(n=Math.imul(l,B))|0)+((8191&(i=(i=Math.imul(l,U))+Math.imul(h,B)|0))<<13)|0;c=((o=Math.imul(h,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(d,B),i=(i=Math.imul(d,U))+Math.imul(y,B)|0,o=Math.imul(y,U);var gt=(c+(n=n+Math.imul(l,V)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(h,V)|0))<<13)|0;c=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,B),i=(i=Math.imul(g,U))+Math.imul(m,B)|0,o=Math.imul(m,U),n=n+Math.imul(d,V)|0,i=(i=i+Math.imul(d,Y)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,Y)|0;var mt=(c+(n=n+Math.imul(l,H)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(h,H)|0))<<13)|0;c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(w,B),i=(i=Math.imul(w,U))+Math.imul(_,B)|0,o=Math.imul(_,U),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,Y)|0,n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,K)|0)+Math.imul(y,H)|0,o=o+Math.imul(y,K)|0;var bt=(c+(n=n+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,Z)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(M,B),i=(i=Math.imul(M,U))+Math.imul(E,B)|0,o=Math.imul(E,U),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,H)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,Z)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,Z)|0;var wt=(c+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(O,B),i=(i=Math.imul(O,U))+Math.imul(k,B)|0,o=Math.imul(k,U),n=n+Math.imul(M,V)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,Z)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Z)|0,n=n+Math.imul(d,Q)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0;var _t=(c+(n=n+Math.imul(l,rt)|0)|0)+((8191&(i=(i=i+Math.imul(l,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((o=o+Math.imul(h,nt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(P,B),i=(i=Math.imul(P,U))+Math.imul(j,B)|0,o=Math.imul(j,U),n=n+Math.imul(O,V)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,Y)|0,n=n+Math.imul(M,H)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(E,H)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(y,rt)|0,o=o+Math.imul(y,nt)|0;var xt=(c+(n=n+Math.imul(l,ot)|0)|0)+((8191&(i=(i=i+Math.imul(l,at)|0)+Math.imul(h,ot)|0))<<13)|0;c=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(R,B),i=(i=Math.imul(R,U))+Math.imul(T,B)|0,o=Math.imul(T,U),n=n+Math.imul(P,V)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(k,H)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,Z)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(m,rt)|0,o=o+Math.imul(m,nt)|0,n=n+Math.imul(d,ot)|0,i=(i=i+Math.imul(d,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var Mt=(c+(n=n+Math.imul(l,st)|0)|0)+((8191&(i=(i=i+Math.imul(l,ct)|0)+Math.imul(h,st)|0))<<13)|0;c=((o=o+Math.imul(h,ct)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(F,B),i=(i=Math.imul(F,U))+Math.imul(N,B)|0,o=Math.imul(N,U),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,Z)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(w,rt)|0,i=(i=i+Math.imul(w,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,n=n+Math.imul(d,st)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(y,st)|0,o=o+Math.imul(y,ct)|0;var Et=(c+(n=n+Math.imul(l,lt)|0)|0)+((8191&(i=(i=i+Math.imul(l,ht)|0)+Math.imul(h,lt)|0))<<13)|0;c=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(D,B),i=(i=Math.imul(D,U))+Math.imul(G,B)|0,o=Math.imul(G,U),n=n+Math.imul(F,V)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,Y)|0,n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,K)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(E,rt)|0,o=o+Math.imul(E,nt)|0,n=n+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(g,st)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,ct)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(y,lt)|0,o=o+Math.imul(y,ht)|0;var St=(c+(n=n+Math.imul(l,dt)|0)|0)+((8191&(i=(i=i+Math.imul(l,yt)|0)+Math.imul(h,dt)|0))<<13)|0;c=((o=o+Math.imul(h,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(D,V),i=(i=Math.imul(D,Y))+Math.imul(G,V)|0,o=Math.imul(G,Y),n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,K)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,K)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(O,rt)|0,i=(i=i+Math.imul(O,nt)|0)+Math.imul(k,rt)|0,o=o+Math.imul(k,nt)|0,n=n+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,at)|0,n=n+Math.imul(w,st)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,st)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(g,lt)|0,i=(i=i+Math.imul(g,ht)|0)+Math.imul(m,lt)|0,o=o+Math.imul(m,ht)|0;var Ot=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,yt)|0)+Math.imul(y,dt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(D,H),i=(i=Math.imul(D,K))+Math.imul(G,H)|0,o=Math.imul(G,K),n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(j,rt)|0,o=o+Math.imul(j,nt)|0,n=n+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(E,st)|0,o=o+Math.imul(E,ct)|0,n=n+Math.imul(w,lt)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(_,lt)|0,o=o+Math.imul(_,ht)|0;var kt=(c+(n=n+Math.imul(g,dt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(m,dt)|0))<<13)|0;c=((o=o+Math.imul(m,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(D,$),i=(i=Math.imul(D,Z))+Math.imul(G,$)|0,o=Math.imul(G,Z),n=n+Math.imul(F,Q)|0,i=(i=i+Math.imul(F,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,at)|0)+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,n=n+Math.imul(O,st)|0,i=(i=i+Math.imul(O,ct)|0)+Math.imul(k,st)|0,o=o+Math.imul(k,ct)|0,n=n+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(E,lt)|0,o=o+Math.imul(E,ht)|0;var Lt=(c+(n=n+Math.imul(w,dt)|0)|0)+((8191&(i=(i=i+Math.imul(w,yt)|0)+Math.imul(_,dt)|0))<<13)|0;c=((o=o+Math.imul(_,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(D,Q),i=(i=Math.imul(D,tt))+Math.imul(G,Q)|0,o=Math.imul(G,tt),n=n+Math.imul(F,rt)|0,i=(i=i+Math.imul(F,nt)|0)+Math.imul(N,rt)|0,o=o+Math.imul(N,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(P,st)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(j,st)|0,o=o+Math.imul(j,ct)|0,n=n+Math.imul(O,lt)|0,i=(i=i+Math.imul(O,ht)|0)+Math.imul(k,lt)|0,o=o+Math.imul(k,ht)|0;var Pt=(c+(n=n+Math.imul(M,dt)|0)|0)+((8191&(i=(i=i+Math.imul(M,yt)|0)+Math.imul(E,dt)|0))<<13)|0;c=((o=o+Math.imul(E,yt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(D,rt),i=(i=Math.imul(D,nt))+Math.imul(G,rt)|0,o=Math.imul(G,nt),n=n+Math.imul(F,ot)|0,i=(i=i+Math.imul(F,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,n=n+Math.imul(R,st)|0,i=(i=i+Math.imul(R,ct)|0)+Math.imul(T,st)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(j,lt)|0,o=o+Math.imul(j,ht)|0;var jt=(c+(n=n+Math.imul(O,dt)|0)|0)+((8191&(i=(i=i+Math.imul(O,yt)|0)+Math.imul(k,dt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(D,ot),i=(i=Math.imul(D,at))+Math.imul(G,ot)|0,o=Math.imul(G,at),n=n+Math.imul(F,st)|0,i=(i=i+Math.imul(F,ct)|0)+Math.imul(N,st)|0,o=o+Math.imul(N,ct)|0,n=n+Math.imul(R,lt)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(T,lt)|0,o=o+Math.imul(T,ht)|0;var At=(c+(n=n+Math.imul(P,dt)|0)|0)+((8191&(i=(i=i+Math.imul(P,yt)|0)+Math.imul(j,dt)|0))<<13)|0;c=((o=o+Math.imul(j,yt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(D,st),i=(i=Math.imul(D,ct))+Math.imul(G,st)|0,o=Math.imul(G,ct),n=n+Math.imul(F,lt)|0,i=(i=i+Math.imul(F,ht)|0)+Math.imul(N,lt)|0,o=o+Math.imul(N,ht)|0;var Rt=(c+(n=n+Math.imul(R,dt)|0)|0)+((8191&(i=(i=i+Math.imul(R,yt)|0)+Math.imul(T,dt)|0))<<13)|0;c=((o=o+Math.imul(T,yt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(D,lt),i=(i=Math.imul(D,ht))+Math.imul(G,lt)|0,o=Math.imul(G,ht);var Tt=(c+(n=n+Math.imul(F,dt)|0)|0)+((8191&(i=(i=i+Math.imul(F,yt)|0)+Math.imul(N,dt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var It=(c+(n=Math.imul(D,dt))|0)+((8191&(i=(i=Math.imul(D,yt))+Math.imul(G,dt)|0))<<13)|0;return c=((o=Math.imul(G,yt))+(i>>>13)|0)+(It>>>26)|0,It&=67108863,s[0]=vt,s[1]=gt,s[2]=mt,s[3]=bt,s[4]=wt,s[5]=_t,s[6]=xt,s[7]=Mt,s[8]=Et,s[9]=St,s[10]=Ot,s[11]=kt,s[12]=Lt,s[13]=Pt,s[14]=jt,s[15]=At,s[16]=Rt,s[17]=Tt,s[18]=It,0!==c&&(s[19]=c,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var u=67108863&n,s=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=s;c++){var f=o-c,l=(0|t.words[f])*(0|e.words[c]),h=67108863&l;u=67108863&(h=h+u|0),i+=(a=(a=a+(l/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=u,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function m(t,e,r){return g(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(v=y),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?v(this,t,e):r<63?y(this,t,e):r<1024?g(this,t,e):m(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},b.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},b.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a<o;a++)n[a]=e[t[a]],i[a]=r[t[a]]},b.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var a=1;a<i;a<<=1)for(var u=a<<1,s=Math.cos(2*Math.PI/u),c=Math.sin(2*Math.PI/u),f=0;f<i;f+=u)for(var l=s,h=c,p=0;p<a;p++){var d=r[f+p],y=n[f+p],v=r[f+p+a],g=n[f+p+a],m=l*v-h*g;g=l*g+h*v,v=m,r[f+p]=d+v,n[f+p]=y+g,r[f+p+a]=d-v,n[f+p+a]=y-g,p!==u&&(m=s*l-c*h,h=s*h+c*l,l=m)}},b.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},b.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,r,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},b.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),u=new Array(n),s=new Array(n),c=new Array(n),f=new Array(n),l=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,o,u,s,n,i),this.transform(c,o,f,l,n,i);for(var p=0;p<n;p++){var d=u[p]*f[p]-s[p]*l[p];s[p]=u[p]*l[p]+s[p]*f[p],u[p]=d}return this.conjugate(u,s,n),this.transform(u,s,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=t.words[n]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,s=(0|this.words[e])-u<<r;this.words[e]=s|a,a=u>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o,s=r;if(i-=a,i=Math.max(0,i),s){for(var c=0;c<a;c++)s.words[c]=this.words[c];s.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var l=0|this.words[c];this.words[c]=f<<26-o|l>>>o,f=l&u}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<<e;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,a=t.length+r;this._expand(a);var u=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+u;var s=(0|t.words[i])*e;u=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)u=(o=(0|this.words[i+r])+u)>>26,this.words[i+r]=67108863&o;if(0===u)return this._strip();for(n(-1===u),u=0,i=0;i<this.length;i++)u=(o=-(0|this.words[i])+u)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var u,s=n.length-i.length;if("mod"!==e){(u=new o(null)).length=s+1,u.words=new Array(u.length);for(var c=0;c<u.length;c++)u.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,s);0===f.negative&&(n=f,u&&(u.words[s]=1));for(var l=s-1;l>=0;l--){var h=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,l);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);u&&(u.words[l]=h)}return u&&u._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(i=u.div.neg()),"div"!==e&&(a=u.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(i=u.div.neg()),{div:i,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(a=u.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:u.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),u=new o(0),s=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),l=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var d=0,y=1;0==(r.words[0]&y)&&d<26;++d,y<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(u.isOdd()||s.isOdd())&&(u.iadd(f),s.isub(l)),u.iushrn(1),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(u),a.isub(s)):(r.isub(e),u.isub(i),s.isub(a))}return{a:u,b:s,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),u=new o(0),s=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0==(e.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var l=0,h=1;0==(r.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(r.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(u)):(r.isub(e),u.isub(a))}return(i=0===e.cmpn(1)?a:u).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var u=0|this.words[a];o=(u+=o)>>>26,u&=67108863,this.words[a]=u}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(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new O(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){O.call(this,t),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)}_.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},i(x,_),x.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,_),i(E,_),i(S,_),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new M;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return w[t]=e,e},O.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},O.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},O.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(f(t,t.umod(this.m)._forceRed(this)),t)},O.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},O.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},O.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},O.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},O.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},O.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},O.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},O.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},O.prototype.isqr=function(t){return this.imul(t,t.clone())},O.prototype.sqr=function(t){return this.mul(t,t)},O.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var u=new o(1).toRed(this),s=u.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(s);)f.redIAdd(s);for(var l=this.pow(f,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=a;0!==p.cmp(u);){for(var y=p,v=0;0!==y.cmp(u);v++)y=y.redSqr();n(v<d);var g=this.pow(l,new o(1).iushln(d-v-1));h=h.redMul(g),l=g.redSqr(),p=p.redMul(l),d=v}return h},O.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},O.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],a=0,u=0,s=e.bitLength()%26;for(0===s&&(s=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],f=s-1;f>=0;f--){var l=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,(4===++u||0===n&&0===f)&&(i=this.mul(i,r[a]),u=0,a=0)):u=0}s=26}return i},O.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},O.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},i(k,O),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).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(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).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(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r(71)(t))},function(t,e){},function(t){t.exports=JSON.parse('{"name":"elliptic","version":"6.6.1","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},function(t,e,r){"use strict";var n=r(24),i=r(13),o=r(2),a=r(94),u=n.assert;function s(t){a.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(t,e,r,n){a.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(r,16),n&&(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 f(t,e,r,n){a.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(r,16),this.z=new i(n,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(s,a),t.exports=s,s.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new i(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?r=o[0]:(r=o[1],u(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(r)}}},s.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),r=new i(2).toRed(e).redInvm(),n=r.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},s.prototype._getEndoBasis=function(t){for(var e,r,n,o,a,u,s,c,f,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,p=this.n.clone(),d=new i(1),y=new i(0),v=new i(0),g=new i(1),m=0;0!==h.cmpn(0);){var b=p.div(h);c=p.sub(b.mul(h)),f=v.sub(b.mul(d));var w=g.sub(b.mul(y));if(!n&&c.cmp(l)<0)e=s.neg(),r=d,n=c.neg(),o=f;else if(n&&2==++m)break;s=c,p=h,h=c,v=d,d=f,g=y,y=w}a=c.neg(),u=f;var _=n.sqr().add(o.sqr());return a.sqr().add(u.sqr()).cmp(_)>=0&&(a=e,u=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),u=u.neg()),[{a:n,b:o},{a:a,b:u}]},s.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),u=o.mul(n.a),s=i.mul(r.b),c=o.mul(n.b);return{k1:t.sub(a).sub(u),k2:s.add(c).neg()}},s.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},s.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},s.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),u=t[o],s=u._getBeta();a.k1.negative&&(a.k1.ineg(),u=u.neg(!0)),a.k2.negative&&(a.k2.ineg(),s=s.neg(!0)),n[2*o]=u,n[2*o+1]=s,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},o(c,a.BasePoint),s.prototype.point=function(t,e,r){return new c(this,t,e,r)},s.prototype.pointFromJSON=function(t,e){return c.fromJSON(this,t,e)},c.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),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(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},c.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,a.BasePoint),s.prototype.jpoint=function(t,e,r){return new f(this,t,e,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),u=n.redSub(i),s=o.redSub(a);if(0===u.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=u.redSqr(),f=c.redMul(u),l=n.redMul(c),h=s.redSqr().redIAdd(f).redISub(l).redISub(l),p=s.redMul(l.redISub(h)).redISub(o.redMul(f)),d=this.z.redMul(t.z).redMul(u);return this.curve.jpoint(h,p,d)},f.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=r.redSub(n),u=i.redSub(o);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=a.redSqr(),c=s.redMul(a),f=r.redMul(s),l=u.redSqr().redIAdd(c).redISub(f).redISub(f),h=u.redMul(f.redISub(l)).redISub(i.redMul(c)),p=this.z.redMul(a);return this.curve.jpoint(l,h,p)},f.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,u=this.z,s=u.redSqr().redSqr(),c=a.redAdd(a);for(e=0;e<t;e++){var f=o.redSqr(),l=c.redSqr(),h=l.redSqr(),p=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(s)),d=o.redMul(l),y=p.redSqr().redISub(d.redAdd(d)),v=d.redISub(y),g=p.redMul(v);g=g.redIAdd(g).redISub(h);var m=c.redMul(u);e+1<t&&(s=s.redMul(h)),o=y,u=m,c=g}return this.curve.jpoint(o,c.redMul(i),u)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var u=n.redAdd(n).redIAdd(n),s=u.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s,e=u.redMul(a.redISub(s)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),h=l.redSqr(),p=this.x.redAdd(l).redSqr().redISub(f).redISub(h);p=p.redIAdd(p);var d=f.redAdd(f).redIAdd(f),y=d.redSqr(),v=h.redIAdd(h);v=(v=v.redIAdd(v)).redIAdd(v),t=y.redISub(p).redISub(p),e=d.redMul(p.redISub(t)).redISub(v),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},f.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var u=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),s=u.redSqr().redISub(a).redISub(a);t=s;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u.redMul(a.redISub(s)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),h=this.x.redMul(l),p=this.x.redSub(f).redMul(this.x.redAdd(f));p=p.redAdd(p).redIAdd(p);var d=h.redIAdd(h),y=(d=d.redIAdd(d)).redAdd(d);t=p.redSqr().redISub(y),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var v=l.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),e=p.redMul(d.redISub(t)).redISub(v)}return this.curve.jpoint(t,e,r)},f.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),a=r.redSqr(),u=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),s=e.redAdd(e),c=(s=s.redIAdd(s)).redMul(a),f=u.redSqr().redISub(c.redAdd(c)),l=c.redISub(f),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var p=u.redMul(l).redISub(h),d=r.redAdd(r).redMul(n);return this.curve.jpoint(f,p,d)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(n),u=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),s=n.redIAdd(n);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var c=i.redIAdd(a).redSqr().redISub(o).redISub(u).redISub(s),f=e.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(u).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.y.redMul(c.redMul(s.redISub(c)).redISub(a.redMul(u)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var p=this.z.redAdd(a).redSqr().redISub(r).redISub(u);return this.curve.jpoint(l,h,p)},f.prototype.mul=function(t,e){return t=new i(t,e),this.curve._wnafMul(this,t)},f.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},f.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,r){"use strict";var n=r(13),i=r(2),o=r(94),a=r(24);function u(t){o.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(t,e,r){o.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(u,o),t.exports=u,u.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},i(s,o.BasePoint),u.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},u.prototype.point=function(t,e){return new s(this,t,e)},u.prototype.pointFromJSON=function(t){return s.fromJSON(this,t)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(t,e){return new s(t,e[0],e[1]||t.one)},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),i=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(r),a=i.redMul(n),u=e.z.redMul(o.redAdd(a).redSqr()),s=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(u,s)},s.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,r){"use strict";var n=r(24),i=r(13),o=r(2),a=r(94),u=n.assert;function s(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function c(t,e,r,n,o){a.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(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(e,16),this.y=new i(r,16),this.z=n?new i(n,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(s,a),t.exports=s,s.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},s.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},s.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},s.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),u=a.redSqrt();if(0!==u.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=u.fromRed().isOdd();return(e&&!s||!e&&s)&&(u=u.redNeg()),this.point(t,u)},s.prototype.pointFromY=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var u=a.redSqrt();if(0!==u.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return u.fromRed().isOdd()!==e&&(u=u.redNeg()),this.point(u,t)},s.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),s.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},s.prototype.point=function(t,e,r,n){return new c(this,t,e,r,n)},c.fromJSON=function(t,e){return new c(t,e[0],e[1],e[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),a=o.redSub(r),u=n.redSub(e),s=i.redMul(a),c=o.redMul(u),f=i.redMul(u),l=a.redMul(o);return this.curve.point(s,c,l,f)},c.prototype._projDbl=function(){var t,e,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),u=this.x.redSqr(),s=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(u)).redAdd(s);this.zOne?(t=a.redSub(u).redSub(s).redMul(c.redSub(this.curve.two)),e=c.redMul(n.redSub(s)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),t=a.redSub(u).redISub(s).redMul(o),e=c.redMul(n.redSub(s)),r=c.redMul(o))}else n=u.redAdd(s),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),t=this.curve._mulC(a.redISub(n)).redMul(o),e=this.curve._mulC(n).redMul(u.redISub(s)),r=n.redMul(o);return this.curve.point(t,e,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),a=i.redSub(n),u=i.redAdd(n),s=r.redAdd(e),c=o.redMul(a),f=u.redMul(s),l=o.redMul(s),h=a.redMul(u);return this.curve.point(c,f,h,l)},c.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),u=this.curve.d.redMul(o).redMul(a),s=i.redSub(u),c=i.redAdd(u),f=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),l=n.redMul(s).redMul(f);return this.curve.twisted?(e=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=s.redMul(c)):(e=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(s).redMul(c)),this.curve.point(l,e,r)},c.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},c.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},c.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),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(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},c.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(t,e,r){"use strict";e.sha1=r(499),e.sha224=r(500),e.sha256=r(208),e.sha384=r(501),e.sha512=r(209)},function(t,e,r){"use strict";var n=r(33),i=r(72),o=r(207),a=n.rotl32,u=n.sum32,s=n.sum32_5,c=o.ft_1,f=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,f),t.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],f=this.h[2],h=this.h[3],p=this.h[4];for(n=0;n<r.length;n++){var d=~~(n/20),y=s(a(i,5),c(d,o,f,h),p,r[n],l[d]);p=h,h=f,f=a(o,30),o=i,i=y}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],f),this.h[3]=u(this.h[3],h),this.h[4]=u(this.h[4],p)},h.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,r){"use strict";var n=r(33),i=r(208);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(t,e,r){"use strict";var n=r(33),i=r(209);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]}n.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(t,e,r){"use strict";var n=r(33),i=r(72),o=n.rotl32,a=n.sum32,u=n.sum32_3,s=n.sum32_4,c=i.BlockHash;function f(){if(!(this instanceof f))return new f;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function h(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function p(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(f,c),e.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],f=this.h[4],m=r,b=n,w=i,_=c,x=f,M=0;M<80;M++){var E=a(o(s(r,l(M,n,i,c),t[d[M]+e],h(M)),v[M]),f);r=f,f=c,c=o(i,10),i=n,n=E,E=a(o(s(m,l(79-M,b,w,_),t[y[M]+e],p(M)),g[M]),x),m=x,x=_,_=o(w,10),w=b,b=E}E=u(this.h[1],i,_),this.h[1]=u(this.h[2],c,x),this.h[2]=u(this.h[3],f,m),this.h[3]=u(this.h[4],r,b),this.h[4]=u(this.h[0],n,w),this.h[0]=E},f.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var d=[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],y=[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],v=[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],g=[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]},function(t,e,r){"use strict";var n=r(33),i=r(23);function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,r){"use strict";var n=r(13),i=r(506),o=r(24),a=r(138),u=r(135),s=o.assert,c=r(507),f=r(508);function l(t){if(!(this instanceof l))return new l(t);"string"==typeof t&&(s(Object.prototype.hasOwnProperty.call(a,t),"Unknown curve "+t),t=a[t]),t instanceof a.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=l,l.prototype.keyPair=function(t){return new c(this,t)},l.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},l.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},l.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||u(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(e.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},l.prototype._truncateToN=function(t,e,r){var i;if(n.isBN(t)||"number"==typeof t)i=(t=new n(t,16)).byteLength();else if("object"==typeof t)i=t.length,t=new n(t,16);else{var o=t.toString();i=o.length+1>>>1,t=new n(o,16)}"number"!=typeof r&&(r=8*i);var a=r-this.n.bitLength();return a>0&&(t=t.ushrn(a)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},l.prototype.sign=function(t,e,r,o){if("object"==typeof r&&(o=r,r=null),o||(o={}),"string"!=typeof t&&"number"!=typeof t&&!n.isBN(t)){s("object"==typeof t&&t&&"number"==typeof t.length,"Expected message to be an array-like, a hex string, or a BN instance"),s(t.length>>>0===t.length);for(var a=0;a<t.length;a++)s((255&t[a])===t[a])}e=this.keyFromPrivate(e,r),t=this._truncateToN(t,!1,o.msgBitLength),s(!t.isNeg(),"Can not sign a negative message");var u=this.n.byteLength(),c=e.getPrivate().toArray("be",u),l=t.toArray("be",u);s(new n(l).eq(t),"Can not sign message");for(var h=new i({hash:this.hash,entropy:c,nonce:l,pers:o.pers,persEnc:o.persEnc||"utf8"}),p=this.n.sub(new n(1)),d=0;;d++){var y=o.k?o.k(d):new n(h.generate(this.n.byteLength()));if(!((y=this._truncateToN(y,!0)).cmpn(1)<=0||y.cmp(p)>=0)){var v=this.g.mul(y);if(!v.isInfinity()){var g=v.getX(),m=g.umod(this.n);if(0!==m.cmpn(0)){var b=y.invm(this.n).mul(m.mul(e.getPrivate()).iadd(t));if(0!==(b=b.umod(this.n)).cmpn(0)){var w=(v.getY().isOdd()?1:0)|(0!==g.cmp(m)?2:0);return o.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),w^=1),new f({r:m,s:b,recoveryParam:w})}}}}}},l.prototype.verify=function(t,e,r,n,i){i||(i={}),t=this._truncateToN(t,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var o=(e=new f(e,"hex")).r,a=e.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 u,s=a.invm(this.n),c=s.mul(t).umod(this.n),l=s.mul(o).umod(this.n);return this.curve._maxwellTrick?!(u=this.g.jmulAdd(c,r.getPublic(),l)).isInfinity()&&u.eqXToP(o):!(u=this.g.mulAdd(c,r.getPublic(),l)).isInfinity()&&0===u.getX().umod(this.n).cmp(o)},l.prototype.recoverPubKey=function(t,e,r,i){s((3&r)===r,"The recovery param is more than two bits"),e=new f(e,i);var o=this.n,a=new n(t),u=e.r,c=e.s,l=1&r,h=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");u=h?this.curve.pointFromX(u.add(this.curve.n),l):this.curve.pointFromX(u,l);var p=e.r.invm(o),d=o.sub(a).mul(p).umod(o),y=c.mul(p).umod(o);return this.g.mulAdd(d,u,y)},l.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new f(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(t,e,r){"use strict";var n=r(139),i=r(205),o=r(23);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),r=i.toArray(t.nonce,t.nonceEnc||"hex"),n=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=a,a.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=i.toArray(t,e),r=i.toArray(r,n),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},a.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,t);return this._update(r),this._reseed++,i.encode(a,e)}},function(t,e,r){"use strict";var n=r(13),i=r(24).assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=o,o.fromPublic=function(t,e,r){return e instanceof o?e:new o(t,{pub:e,pubEnc:r})},o.fromPrivate=function(t,e,r){return e instanceof o?e:new o(t,{priv:e,privEnc:r})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.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(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.validate()||i(t.validate(),"public point not validated"),t.mul(this.priv).getX()},o.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},o.prototype.verify=function(t,e,r){return this.ec.verify(t,e,this,void 0,r)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,r){"use strict";var n=r(13),i=r(24),o=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function u(){this.place=0}function s(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;if(0===t[e.place])return!1;for(var i=0,o=0,a=e.place;o<n;o++,a++)i<<=8,i|=t[a],i>>>=0;return!(i<=127)&&(e.place=a,i)}function c(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function f(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var r=new u;if(48!==t[r.place++])return!1;var o=s(t,r);if(!1===o)return!1;if(o+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var a=s(t,r);if(!1===a)return!1;if(0!=(128&t[r.place]))return!1;var c=t.slice(r.place,a+r.place);if(r.place+=a,2!==t[r.place++])return!1;var f=s(t,r);if(!1===f)return!1;if(t.length!==f+r.place)return!1;if(0!=(128&t[r.place]))return!1;var l=t.slice(r.place,f+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new n(c),this.s=new n(l),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=c(e),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];f(n,e.length),(n=n.concat(e)).push(2),f(n,r.length);var o=n.concat(r),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,t)}},function(t,e,r){"use strict";var n=r(139),i=r(138),o=r(24),a=o.assert,u=o.parseBytes,s=r(510),c=r(511);function f(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof f))return new f(t);t=i[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=f,f.prototype.sign=function(t,e){t=u(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},f.prototype.verify=function(t,e,r){if(t=u(t),(e=this.makeSignature(e)).S().gte(e.eddsa.curve.n)||e.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(t){return s.fromPublic(this,t)},f.prototype.keyFromSecret=function(t){return s.fromSecret(this,t)},f.prototype.makeSignature=function(t){return t instanceof c?t:new c(this,t)},f.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},f.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!=(128&t[e]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(t){return o.intFromLE(t)},f.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,r){"use strict";var n=r(24),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function u(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}u.fromPublic=function(t,e){return e instanceof u?e:new u(t,{pub:e})},u.fromSecret=function(t,e){return e instanceof u?e:new u(t,{secret:e})},u.prototype.secret=function(){return this._secret},a(u,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(u,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(u,"privBytes",(function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(u,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(u,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(u,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),u.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},u.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},u.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},u.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=u},function(t,e,r){"use strict";var n=r(13),i=r(24),o=i.assert,a=i.cachedProperty,u=i.parseBytes;function s(t,e){this.eddsa=t,"object"!=typeof e&&(e=u(e)),Array.isArray(e)&&(o(e.length===2*t.encodingLength,"Signature has invalid size"),e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(s,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(s,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(s,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(s,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=s},function(t,e){},function(t,e,r){"use strict";var n=r(73);e.certificate=r(523);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=o;var a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));e.PublicKey=u;var s=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=s;var c=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=c;var f=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=f,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var l=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),h=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=h,e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(t,e,r){var n=r(73),i=r(2);function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(t){var e;try{e=r(515).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return i(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},o.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(n.decoders[t])),this.decoders[t]},o.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},o.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n.encoders[t])),this.encoders[t]},o.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},function(module,exports){var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r<t.length;r++)if(t[r]===e)return r;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)e.push(r);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,r){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(t){return function(t,e,r){t[e]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(t),(function(e){r[e]=t[e]})),forEach(globals,(function(e){t[e]&&(r[e]=t[e])}));var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),(function(e){(e in t||-1===indexOf(o,e))&&(t[e]=r[e])})),forEach(globals,(function(e){e in t||defineProp(t,e,r[e])})),document.body.removeChild(e),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),r=this.runInContext(e);return t&&forEach(Object_keys(e),(function(r){t[r]=e[r]})),r},forEach(Object_keys(Script.prototype),(function(t){exports[t]=Script[t]=function(e){var r=Script(e);return r[t].apply(r,[].slice.call(arguments,1))}})),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),(function(r){e[r]=t[r]})),e}},function(t,e,r){var n=r(2);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,r){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},i.prototype.error=function(t){var e,r=this._reporterState,n=t instanceof o;if(e=n?t:new o(r.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,r){var n=r(74).Reporter,i=r(74).EncoderBuffer,o=r(74).DecoderBuffer,a=r(23),u=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u);function c(t,e){var r={};this._baseState=r,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=c;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var t=this._baseState,e={};f.forEach((function(r){e[r]=t[r]}));var r=new this.constructor(e.parent);return r._baseState=e,r},c.prototype._wrap=function(){var t=this._baseState;s.forEach((function(e){this[e]=function(){var r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}}),this)},c.prototype._init=function(t){var e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(t){var e=this._baseState,r=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==r.length&&(a(null===e.children),e.children=r,r.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(r){r==(0|r)&&(r|=0);var n=t[r];e[n]=r})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){c.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),u.forEach((function(t){c.prototype[t]=function(){var e=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(r),this}})),c.prototype.use=function(t){a(t);var e=this._baseState;return a(null===e.use),e.use=t,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(t){var e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},c.prototype.explicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},c.prototype.implicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},c.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},c.prototype.key=function(t){var e=this._baseState;return a(null===e.key),e.key=t,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(t){var e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},c.prototype.contains=function(t){var e=this._baseState;return a(null===e.use),e.contains=t,this},c.prototype._decode=function(t,e){var r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));var n,i=r.default,a=!0,u=null;if(null!==r.key&&(u=t.enterKey(r.key)),r.optional){var s=null;if(null!==r.explicit?s=r.explicit:null!==r.implicit?s=r.implicit:null!==r.tag&&(s=r.tag),null!==s||r.any){if(a=this._peekTag(t,s,r.any),t.isError(a))return a}else{var c=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(c)}}if(r.obj&&a&&(n=t.enterObject()),a){if(null!==r.explicit){var f=this._decodeTag(t,r.explicit);if(t.isError(f))return f;t=f}var l=t.offset;if(null===r.use&&null===r.choice){if(r.any)c=t.save();var h=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(h))return h;r.any?i=t.raw(c):t=h}if(e&&e.track&&null!==r.tag&&e.track(t.path(),l,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),i=r.any?i:null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),t.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(t,e)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var p=new o(i);i=this._getUse(r.contains,t._reporterState.obj)._decode(p,e)}}return r.obj&&a&&(i=t.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==u&&t.exitKey(u):t.leaveKey(u,r.key,i),i},c.prototype._decodeGeneric=function(t,e,r){var n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},c.prototype._getUse=function(t,e){var r=this._baseState;return r.useDecoder=this._use(t,e),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(t,e){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var a=t.save(),u=r.choice[o];try{var s=u._decode(t,e);if(t.isError(s))return!1;n={type:o,value:s},i=!0}catch(e){return t.restore(a),!1}return!0}),this),i?n:t.error("Choice not matched")},c.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},c.prototype._encode=function(t,e,r){var n=this._baseState;if(null===n.default||n.default!==t){var i=this._encodeValue(t,e,r);if(void 0!==i&&!this._skipDefault(i,e,r))return i}},c.prototype._encodeValue=function(t,e,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new n);var o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}var a=null,u=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,r)._encode(t,e),u=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");var n=e.enterKey(r._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var i=r._encode(t[r._baseState.key],e,t);return e.leaveKey(n),i}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(r){var n=this._baseState;return this._getUse(n.args[0],t)._encode(r,e)}),s))}else null!==i.use?o=this._getUse(i.use,r)._encode(t,e):(a=this._encodePrimitive(i.tag,t),u=!0);if(!i.any&&null===i.choice){var c=null!==i.implicit?i.implicit:i.tag,f=null===i.implicit?"universal":"context";null===c?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(c,u,f,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(t,e){var r=this._baseState,n=r.choice[t.type];return n||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},c.prototype._encodePrimitive=function(t,e){var r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},c.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},c.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},function(t,e,r){var n=r(212);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n._reverse(e.tag)},function(t,e,r){var n=e;n.der=r(213),n.pem=r(520)},function(t,e,r){var n=r(2),i=r(16).Buffer,o=r(213);function a(t){o.call(this,t),this.enc="pem"}n(a,o),t.exports=a,a.prototype.decode=function(t,e){for(var r=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,u=-1,s=-1,c=0;c<r.length;c++){var f=r[c].match(a);if(null!==f&&f[2]===n){if(-1!==u){if("END"!==f[1])break;s=c;break}if("BEGIN"!==f[1])break;u=c}}if(-1===u||-1===s)throw new Error("PEM section not found for: "+n);var l=r.slice(u+1,s).join("");l.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new i(l,"base64");return o.prototype.decode.call(this,h,e)}},function(t,e,r){var n=e;n.der=r(214),n.pem=r(522)},function(t,e,r){var n=r(2),i=r(214);function o(t){i.call(this,t),this.enc="pem"}n(o,i),t.exports=o,o.prototype.encode=function(t,e){for(var r=i.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+e.label+"-----"),n.join("\n")}},function(t,e,r){"use strict";var n=r(73),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),u=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),s=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),c=n.define("RDNSequence",(function(){this.seqof(s)})),f=n.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),l=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),h=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),p=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(f),this.key("validity").use(l),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(u),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),d=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=d},function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(t,e,r){"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(93),u=r(133),s=r(1).Buffer;t.exports=function(t,e){var r,c=t.toString(),f=c.match(n);if(f){var l="aes"+f[1],h=s.from(f[2],"hex"),p=s.from(f[3].replace(/[\r\n]/g,""),"base64"),d=a(e,h.slice(0,8),parseInt(f[1],10)).key,y=[],v=u.createDecipheriv(l,d,h);y.push(v.update(p)),y.push(v.final()),r=s.concat(y)}else{var g=c.match(o);r=s.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:r}}},function(t,e,r){"use strict";var n=r(1).Buffer,i=r(210),o=r(137).ec,a=r(95),u=r(215);function s(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=0)throw new Error("invalid sig")}t.exports=function(t,e,r,c,f){var l=a(r);if("ec"===l.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(t,e,r){var n=u[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(e,t,a)}(t,e,l)}if("dsa"===l.type){if("dsa"!==c)throw new Error("wrong public key type");return function(t,e,r){var n=r.data.p,o=r.data.q,u=r.data.g,c=r.data.pub_key,f=a.signature.decode(t,"der"),l=f.s,h=f.r;s(l,o),s(h,o);var p=i.mont(n),d=l.invm(o);return 0===u.toRed(p).redPow(new i(e).mul(d).mod(o)).fromRed().mul(c.toRed(p).redPow(h.mul(d).mod(o)).fromRed()).mod(n).mod(o).cmp(h)}(t,e,l)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");e=n.concat([f,e]);for(var h=l.modulus.byteLength(),p=[1],d=0;e.length+p.length+2<h;)p.push(255),d+=1;p.push(0);for(var y=-1;++y<e.length;)p.push(e[y]);p=n.from(p);var v=i.mont(l.modulus);t=(t=new i(t).toRed(v)).redPow(new i(l.publicExponent)),t=n.from(t.fromRed().toArray());var g=d<8?1:0;for(h=Math.min(t.length,p.length),t.length!==p.length&&(g=1),y=-1;++y<h;)g|=t[y]^p[y];return 0===g}},function(t,e,r){(function(e){var n=r(137),i=r(13);t.exports=function(t){return new a(t)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(t){this.curveType=o[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function u(t,r,n){Array.isArray(t)||(t=t.toArray());var i=new e(t);if(n&&i.length<n){var o=new e(n-i.length);o.fill(0),i=e.concat([o,i])}return r?i.toString(r):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},a.prototype.computeSecret=function(t,r,n){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),u(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},a.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(r[r.length-1]%2?r[0]=7:r[0]=6),u(r,t)},a.prototype.getPrivateKey=function(t){return u(this.keys.getPrivate(),t)},a.prototype.setPublicKey=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.keys._importPublic(t),this},a.prototype.setPrivateKey=function(t,r){r=r||"utf8",e.isBuffer(t)||(t=new e(t,r));var n=new i(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(16).Buffer)},function(t,e,r){e.publicEncrypt=r(529),e.privateDecrypt=r(530),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},function(t,e,r){var n=r(95),i=r(60),o=r(66),a=r(216),u=r(217),s=r(13),c=r(218),f=r(136),l=r(1).Buffer;t.exports=function(t,e,r){var h;h=t.padding?t.padding:r?1:4;var p,d=n(t);if(4===h)p=function(t,e){var r=t.modulus.byteLength(),n=e.length,c=o("sha1").update(l.alloc(0)).digest(),f=c.length,h=2*f;if(n>r-h-2)throw new Error("message too long");var p=l.alloc(r-n-h-2),d=r-f-1,y=i(f),v=u(l.concat([c,p,l.alloc(1,1),e],d),a(y,d)),g=u(y,a(v,f));return new s(l.concat([l.alloc(1),g,v],r))}(d,e);else if(1===h)p=function(t,e,r){var n,o=e.length,a=t.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?l.alloc(a-o-3,255):function(t){var e,r=l.allocUnsafe(t),n=0,o=i(2*t),a=0;for(;n<t;)a===o.length&&(o=i(2*t),a=0),(e=o[a++])&&(r[n++]=e);return r}(a-o-3);return new s(l.concat([l.from([0,r?1:2]),n,l.alloc(1),e],a))}(d,e,r);else{if(3!==h)throw new Error("unknown padding");if((p=new s(e)).cmp(d.modulus)>=0)throw new Error("data too long for modulus")}return r?f(p,d):c(p,d)}},function(t,e,r){var n=r(95),i=r(216),o=r(217),a=r(13),u=r(136),s=r(66),c=r(218),f=r(1).Buffer;t.exports=function(t,e,r){var l;l=t.padding?t.padding:r?1:4;var h,p=n(t),d=p.modulus.byteLength();if(e.length>d||new a(e).cmp(p.modulus)>=0)throw new Error("decryption error");h=r?c(new a(e),p):u(e,p);var y=f.alloc(d-h.length);if(h=f.concat([y,h],d),4===l)return function(t,e){var r=t.modulus.byteLength(),n=s("sha1").update(f.alloc(0)).digest(),a=n.length;if(0!==e[0])throw new Error("decryption error");var u=e.slice(1,a+1),c=e.slice(a+1),l=o(u,i(c,a)),h=o(c,i(l,r-a-1));if(function(t,e){t=f.from(t),e=f.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));var i=-1;for(;++i<n;)r+=t[i]^e[i];return r}(n,h.slice(0,a)))throw new Error("decryption error");var p=a;for(;0===h[p];)p++;if(1!==h[p++])throw new Error("decryption error");return h.slice(p)}(p,h);if(1===l)return function(t,e,r){var n=e.slice(0,2),i=2,o=0;for(;0!==e[i++];)if(i>=e.length){o++;break}var a=e.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,h,r);if(3===l)return h;throw new Error("unknown padding")}},function(t,e,r){"use strict";(function(t,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(1),a=r(60),u=o.Buffer,s=o.kMaxLength,c=t.crypto||t.msCrypto,f=Math.pow(2,32)-1;function l(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>f||t<0)throw new TypeError("offset must be a uint32");if(t>s||t>e)throw new RangeError("offset out of range")}function h(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>f||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>s)throw new RangeError("buffer too small")}function p(t,e,r,i){if(n.browser){var o=t.buffer,u=new Uint8Array(o,e,r);return c.getRandomValues(u),i?void n.nextTick((function(){i(null,t)})):t}if(!i)return a(r).copy(t,e),t;a(r,(function(r,n){if(r)return i(r);n.copy(t,e),i(null,t)}))}c&&c.getRandomValues||!n.browser?(e.randomFill=function(e,r,n,i){if(!(u.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return l(r,e.length),h(n,r,e.length),p(e,r,n,i)},e.randomFillSync=function(e,r,n){void 0===r&&(r=0);if(!(u.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(r,e.length),void 0===n&&(n=e.length-r);return h(n,r,e.length),p(e,r,n)}):(e.randomFill=i,e.randomFillSync=i)}).call(this,r(15),r(32))},function(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),u=new A(n||[]);return i(a,"_invoke",{value:k(t,r,u)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,u,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&n.call(M,u)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,o,a,u){var c=p(t[i],t,o);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==s(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(s(e)+" is not iterable")}return b.prototype=w,i(E,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,u,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var c=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"===("undefined"==typeof Reflect?"undefined":s(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a},f=this&&this.__metadata||function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":s(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},h=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var p=r(14),d=r(219),y=r(220),v=h(r(536)),g=h(r(41)),m=h(r(140)),b=h(r(221)),w=h(r(7)),_=r(538),x="@signageos/front-applet:FrontApplet:Video",M=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.onceDeferredIndex={},this.eventEmitter=new p.EventEmitter}return e=t,(r=[{key:"play",value:function(t,e,r,n,i){return l(this,void 0,void 0,o().mark((function a(){var u,s,c,f;return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return this.checkParamsValidity(t,e,r,n,i),u=(0,y.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=u.x,r=u.y,n=u.width,i=u.height,this.removeAllVideoListeners(t,e,r,n,i),s=this.createOncePromise("ended",t,e,r,n,i),c=this.createOncePromise("stop",t,e,r,n,i),o.next=11,this.postMessage({type:this.getMessage("play"),uri:t,x:e,y:r,width:n,height:i});case 11:f=(0,_.stringifySrcArguments)(t,e,r,n,i),this.onceDeferredIndex[f]={ended:s,stop:c},this.createAndEmitEvent("play",t,e,r,n,i);case 14:case"end":return o.stop()}}),a,this)})))}},{key:"prepare",value:function(t,e,r,n,i){return l(this,arguments,void 0,(function(t,e,r,n,i){var a=this,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return o().mark((function s(){var c;return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a.checkParamsValidity(t,e,r,n,i),c=(0,y.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=c.x,r=c.y,n=c.width,i=c.height,o.next=8,a.postMessage({type:a.getMessage("prepare"),uri:t,x:e,y:r,width:n,height:i,options:u});case 8:a.createAndEmitEvent("prepare",t,e,r,n,i);case 9:case"end":return o.stop()}}),s)}))()}))}},{key:"stop",value:function(t,e,r,n,i){return l(this,void 0,void 0,o().mark((function a(){var u,s,c,f,l;return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return this.checkParamsValidity(t,e,r,n,i),f=(0,y.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=f.x,r=f.y,n=f.width,i=f.height,o.next=8,this.postMessage({type:this.getMessage("stop"),uri:t,x:e,y:r,width:n,height:i});case 8:this.createAndEmitEvent("stop",t,e,r,n,i),l=(0,_.stringifySrcArguments)(t,e,r,n,i),null===(c=null===(u=this.onceDeferredIndex[l])||void 0===u?void 0:(s=u.ended).reject)||void 0===c||c.call(s,new v.default({kind:"appletVideoError",message:"This video was stopped already. The arguments: ".concat(l),code:g.default.VIDEO_WAS_STOPPED_ALREADY,suggestion:m.default.VIDEO_WAS_STOPPED_ALREADY})),delete this.onceDeferredIndex[l];case 12:case"end":return o.stop()}}),a,this)})))}},{key:"pause",value:function(t,e,r,n,i){return l(this,void 0,void 0,o().mark((function a(){var u;return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return this.checkParamsValidity(t,e,r,n,i),u=(0,y.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=u.x,r=u.y,n=u.width,i=u.height,o.next=8,this.postMessage({type:this.getMessage("pause"),uri:t,x:e,y:r,width:n,height:i});case 8:this.createAndEmitEvent("pause",t,e,r,n,i);case 9:case"end":return o.stop()}}),a,this)})))}},{key:"resume",value:function(t,e,r,n,i){return l(this,void 0,void 0,o().mark((function a(){var u;return o().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return this.checkParamsValidity(t,e,r,n,i),u=(0,y.sanitizeCoordinations)({x:e,y:r,width:n,height:i}),e=u.x,r=u.y,n=u.width,i=u.height,o.next=8,this.postMessage({type:this.getMessage("resume"),uri:t,x:e,y:r,width:n,height:i});case 8:this.createAndEmitEvent("resume",t,e,r,n,i);case 9:case"end":return o.stop()}}),a,this)})))}},{key:"onceEnded",value:function(t,e,r,n,i){this.checkParamsValidity(t,e,r,n,i);var o=(0,y.sanitizeCoordinations)({x:e,y:r,width:n,height:i});e=o.x,r=o.y,n=o.width,i=o.height;var a=(0,_.stringifySrcArguments)(t,e,r,n,i),u=this.onceDeferredIndex[a];if(void 0===u)throw new v.default({kind:"appletVideoError",message:"This video was not played yet. The arguments: ".concat(a),code:g.default.VIDEO_WAS_NOT_PLAYED_YET,suggestion:m.default.VIDEO_WAS_NOT_PLAYED});return u.ended.oncePromise}},{key:"onceStop",value:function(t,e,r,n,i){this.checkParamsValidity(t,e,r,n,i);var o=(0,y.sanitizeCoordinations)({x:e,y:r,width:n,height:i});e=o.x,r=o.y,n=o.width,i=o.height;var a=(0,_.stringifySrcArguments)(t,e,r,n,i),u=this.onceDeferredIndex[a];if(void 0===u)throw new v.default({kind:"appletVideoError",message:"This video was not played yet. The arguments: ".concat(a),code:g.default.VIDEO_WAS_NOT_PLAYED_YET,suggestion:m.default.VIDEO_WAS_NOT_PLAYED});return u.stop.oncePromise}},{key:"onPlay",value:function(t){(0,w.default)({listener:t}).required().function(),this.eventEmitter.addListener("play",t)}},{key:"onPrepare",value:function(t){(0,w.default)({listener:t}).required().function(),this.eventEmitter.addListener("prepare",t)}},{key:"onStop",value:function(t){(0,w.default)({listener:t}).required().function(),this.eventEmitter.addListener("stop",t)}},{key:"onPause",value:function(t){(0,w.default)({listener:t}).required().function(),this.eventEmitter.addListener("pause",t)}},{key:"onResume",value:function(t){(0,w.default)({listener:t}).required().function(),this.eventEmitter.addListener("resume",t)}},{key:"onEnded",value:function(t){(0,w.default)({listener:t}).required().function(),this.eventEmitter.addListener("ended",t)}},{key:"onError",value:function(t){(0,w.default)({listener:t}).required().function(),this.eventEmitter.addListener("error",t)}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("ended"):case this.getMessage("error"):var e=t.type.substring(this.getMessage("").length);this.createAndEmitEvent(e,t.uri,t.x,t.y,t.width,t.height)}}},{key:"removeEventListeners",value:function(){this.eventEmitter.removeAllListeners()}},{key:"createOncePromise",value:function(t,e,r,n,i,o){var a=this,u={};return u.oncePromise=new Promise((function(s,c){u.reject=c;var f={uri:e,x:r,y:n,width:i,height:o},l=(0,_.getEventName)({type:t,srcArguments:f}),h=(0,_.getEventName)({type:"error",srcArguments:f}),p=function(u){JSON.stringify(u.srcArguments)===JSON.stringify({uri:e,x:r,y:n,width:i,height:o})&&(a.eventEmitter.removeListener(l,p),a.eventEmitter.removeListener(h,p),u.type===t?s():"error"===u.type&&c(new b.default({kind:"sosError",message:JSON.stringify(u.srcArguments),code:g.default.UNEXPECTED_EXCEPTION})))};a.eventEmitter.addListener(l,p),a.eventEmitter.addListener(h,p)})),u}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"removeAllVideoListeners",value:function(t,e,r,i,o){var a,u=n(_.VIDEO_EVENT_TYPES);try{for(u.s();!(a=u.n()).done;){var s=a.value,c=(0,_.getEventName)({type:s,srcArguments:{uri:t,x:e,y:r,width:i,height:o}});this.eventEmitter.removeAllListeners(c)}}catch(t){u.e(t)}finally{u.f()}}},{key:"createAndEmitEvent",value:function(t,e,r,n,i,o){var a={type:t,srcArguments:{uri:e,x:r,y:n,width:i,height:o}},u=(0,_.getEventName)(a);this.eventEmitter.emit(u,a),this.eventEmitter.emit(a.type,a)}},{key:"checkParamsValidity",value:function(t,e,r,n,i){(0,w.default)({uri:t}).required().uri(),(0,w.default)({x:e}).required().number(),(0,w.default)({y:r}).required().number(),(0,w.default)({width:n}).required().number(),(0,w.default)({height:i}).required().number()}}])&&a(e.prototype,r),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,i}();M.MESSAGE_PREFIX="video",e.default=M,c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[String,Number,Number,Number,Number]),f("design:returntype",Promise)],M.prototype,"play",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[String,Number,Number,Number,Number,Object]),f("design:returntype",Promise)],M.prototype,"prepare",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[String,Number,Number,Number,Number]),f("design:returntype",Promise)],M.prototype,"stop",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[String,Number,Number,Number,Number]),f("design:returntype",Promise)],M.prototype,"pause",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[String,Number,Number,Number,Number]),f("design:returntype",Promise)],M.prototype,"resume",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[String,Number,Number,Number,Number]),f("design:returntype",void 0)],M.prototype,"onceEnded",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[String,Number,Number,Number,Number]),f("design:returntype",void 0)],M.prototype,"onceStop",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[Function]),f("design:returntype",void 0)],M.prototype,"onPlay",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[Function]),f("design:returntype",void 0)],M.prototype,"onPrepare",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[Function]),f("design:returntype",void 0)],M.prototype,"onStop",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[Function]),f("design:returntype",void 0)],M.prototype,"onPause",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[Function]),f("design:returntype",void 0)],M.prototype,"onResume",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[Function]),f("design:returntype",void 0)],M.prototype,"onEnded",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[Function]),f("design:returntype",void 0)],M.prototype,"onError",null),c([(0,d.debug)(x),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],M.prototype,"removeEventListeners",null)},function(t,e,r){(function(n){var i;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(n++,"%c"===t&&(i=n))})),e.splice(i,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(t){}!t&&void 0!==n&&"env"in n&&(t=n.env.DEBUG);return t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(i=!1,function(){i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||function(){},t.exports=r(534)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,r(32))},function(t,e,r){function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){function e(t){var r,n,o,a=null;function u(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(u.enabled){var o=u,a=Number(new Date),s=a-(r||a);o.diff=s,o.prev=r,o.curr=a,r=a,n[0]=e.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");var c=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,(function(t,r){if("%%"===t)return"%";c++;var i=e.formatters[r];if("function"==typeof i){var a=n[c];t=i.call(o,a),n.splice(c,1),c--}return t})),e.formatArgs.call(o,n);var f=o.log||e.log;f.apply(o,n)}}return u.namespace=t,u.useColors=e.useColors(),u.color=e.selectColor(t),u.extend=i,u.destroy=e.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==e.namespaces&&(n=e.namespaces,o=e.enabled(t)),o)},set:function(t){a=t}}),"function"==typeof e.init&&e.init(u),u}function i(t,r){var n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){var t=[].concat(n(e.names.map(o)),n(e.skips.map(o).map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){var r;e.save(t),e.namespaces=t,e.names=[],e.skips=[];var n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(r=0;r<i;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.slice(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;var r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(535),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((function(r){e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},function(t,e){var r=1e3,n=6e4,i=60*n,o=24*i;function a(t,e,r,n){var i=e>=1.5*r;return Math.round(t/r)+" "+n+(i?"s":"")}t.exports=function(t,e){e=e||{};var u=typeof t;if("string"===u&&t.length>0)return function(t){if((t=String(t)).length>100)return;var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!e)return;var a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(t);if("number"===u&&isFinite(t))return e.long?function(t){var e=Math.abs(t);if(e>=o)return a(t,e,o,"day");if(e>=i)return a(t,e,i,"hour");if(e>=n)return a(t,e,n,"minute");if(e>=r)return a(t,e,r,"second");return t+" ms"}(t):function(t){var e=Math.abs(t);if(e>=o)return Math.round(t/o)+"d";if(e>=i)return Math.round(t/i)+"h";if(e>=n)return Math.round(t/n)+"m";if(e>=r)return Math.round(t/r)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{pathToDocs:e.PATH_TO_DOCS,kind:"appletError",type:t.type?t.type:"AppletVideoError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(c(r(53)).default);f.PATH_TO_DOCS="/sdk/content/js-video",e.default=f},function(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(7),f=s(r(223)),l=s(r(141)),h=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.error=void 0},(e=[{key:"validate",value:function(t,e,r){if("object"!==o(t))throw new Error("invalid object interface, needs to be object");var n=!0;for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];if("object"===o(a)){var u=this.validateTypingObject(a,i,e);!0!==u&&(n=!0===n?u:n+"\n"+u)}else{var s=this.validateType(a,i,e);!0!==s&&(n=!0===n?s:n+"\n"+s)}}return void 0===r&&void 0!==this.error&&!0!==n&&this.throwError(this.error,n),!0===n||"".concat(void 0!==r?"".concat(r,":\n"):""," {\n").concat(n,"\n}")}},{key:"validateType",value:function(t,e,r){var n=!t.startsWith("?");return t=n?t:t.substring(1),!n&&!r.hasOwnProperty(e)||(n&&!r.hasOwnProperty(e)?"".concat(e,": is required"):o(r[e])===t||"".concat(e,": needs to be type ").concat(t,". Got ").concat(o(r[e])))}},{key:"validateTypingObject",value:function(t,e,r){var n=void 0!==t.error?t.error:void 0;for(var i in t)if(t.hasOwnProperty(i)&&"error"!==i&&(c.validatableType.includes(i)||c.validatableType.includes(i.substr(1)))){var a=t[i],u=!i.startsWith("?");if(i=u?i:i.substring(1),!r.hasOwnProperty(e)){if(u){var s="".concat(e,": is required");return void 0===this.error&&void 0!==n&&(this.error=n),s}return!0}var f=r[e];if(o(f)!==("array"===i?"object":i)){var l="".concat(e,": needs to be type ").concat(i,". Got ").concat(o(f));return void 0===this.error&&void 0!==n&&(this.error=n),l}if(("string"===i||"number"===i)&&Array.isArray(a)&&!a.includes(f)){var h="".concat(e,": has to be one of ").concat(JSON.stringify(a));return void 0===this.error&&void 0!==n&&(this.error=n),h}if("array"===i){var p=this.validateArray(a,e,f);if(!0!==p)return void 0===this.error&&void 0!==n&&(this.error=n),p}if("object"===i)return this.validate(a,f,e)}return!0}},{key:"validateArray",value:function(t,e,r){var i;i="string"==typeof t?[t]:Array.isArray(t)?t:Object.keys(t).filter((function(t){return"error"!==t}));var a,u=n(r);try{for(u.s();!(a=u.n()).done;){var s=a.value,f=c.Validate.validateType(i,s);if(!0!==f)return"has to be array of types: ".concat(JSON.stringify(i),". ").concat(JSON.stringify(s)," is ").concat(f," instead");if("object"===o(s)&&void 0!==t.object){var l=this.validate(t.object,s,e);if(!0!==l)return l}}}catch(t){u.e(t)}finally{u.f()}return!0}},{key:"throwError",value:function(t,e){throw new f.default({kind:"appletResourcesError",message:"".concat(l.default[t.code],"\n\nValidation info:\n").concat(e,"\n"),code:t.code})}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=h},function(t,e,r){"use strict";function n(t,e,r,n,i){return"".concat(t,"$").concat(e,"_").concat(r,"_").concat(n,"_").concat(i)}Object.defineProperty(e,"__esModule",{value:!0}),e.VIDEO_EVENT_TYPES=void 0,e.getEventName=function(t){var e=n(t.srcArguments.uri,t.srcArguments.x,t.srcArguments.y,t.srcArguments.width,t.srcArguments.height);return"".concat(t.type,"_").concat(e)},e.stringifySrcArguments=n,e.VIDEO_EVENT_TYPES=["prepare","play","stop","pause","resume","ended","error"]},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new A(n||[]);return o(a,"_invoke",{value:k(t,r,u)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&i.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(n,o,u,s){var c=p(t[n],t,o);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==a(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var n;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,n){r(t,i,e,n)}))}return n=n?n.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function r(){for(;++n<e.length;)if(i.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(a(e)+" is not iterable")}return b.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,u=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"===("undefined"==typeof Reflect?"undefined":a(Reflect))&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(u=(o<3?i(u):o>3?i(e,r,u):i(e,r))||u);return o>3&&u&&Object.defineProperty(e,r,u),u},s=this&&this.__metadata||function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":a(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=r(14),h=r(219),p=r(220),d=f(r(540)),y=f(r(41)),v=f(r(7)),g="@signageos/front-applet:FrontApplet:Stream",m=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new l.EventEmitter}return e=t,(r=[{key:"prepare",value:function(t,e,r,i,o,a){return c(this,void 0,void 0,n().mark((function u(){var s,c;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c=void 0,(null==(s="string"==typeof a?{protocol:a}:a)?void 0:s.protocol)&&(c=s.protocol),!c||"string"==typeof c){n.next=5;break}throw new d.default({kind:"appletStreamError",message:"Invalid format of protocol, must be string.",code:y.default.STREAM_INVALID_PROTOCOL_TYPE});case 5:return this.checkParamsValidity(t,e,r,i,o),this.createAndEmitEvent("prepare",{type:"prepare",srcArguments:{uri:t,x:e,y:r,width:i,height:o,protocol:c}}),n.abrupt("return",this.postMessage({type:this.getMessage("prepare"),uri:t,x:e,y:r,width:i,height:o,protocol:c,options:s}));case 8:case"end":return n.stop()}}),u,this)})))}},{key:"play",value:function(t,e,r,i,o,a){return c(this,void 0,void 0,n().mark((function u(){var s,c,f;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c=void 0,(null==(s="string"==typeof a?{protocol:a}:a)?void 0:s.protocol)&&(c=s.protocol),this.checkParamsValidity(t,e,r,i,o),f=(0,p.sanitizeCoordinations)({x:e,y:r,width:i,height:o}),e=f.x,r=f.y,i=f.width,o=f.height,!c||"string"==typeof c){n.next=11;break}throw new d.default({kind:"appletStreamError",message:"Invalid format of protocol, must be string.",code:y.default.STREAM_INVALID_PROTOCOL_TYPE});case 11:return this.createAndEmitEvent("play",{type:"play",srcArguments:{uri:t,x:e,y:r,width:i,height:o,protocol:c}}),n.abrupt("return",this.postMessage({type:this.getMessage("play"),uri:t,x:e,y:r,width:i,height:o,protocol:c,options:s}));case 13:case"end":return n.stop()}}),u,this)})))}},{key:"stop",value:function(t,e,r,i,o){return c(this,void 0,void 0,n().mark((function a(){var u;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.checkParamsValidity(t,e,r,i,o),u=(0,p.sanitizeCoordinations)({x:e,y:r,width:i,height:o}),e=u.x,r=u.y,i=u.width,o=u.height,this.createAndEmitEvent("stop",{type:"stop",srcArguments:{uri:t,x:e,y:r,width:i,height:o}}),n.abrupt("return",this.postMessage({type:this.getMessage("stop"),uri:t,x:e,y:r,width:i,height:o}));case 8:case"end":return n.stop()}}),a,this)})))}},{key:"pause",value:function(t,e,r,n,i){this.checkParamsValidity(t,e,r,n,i);var o=(0,p.sanitizeCoordinations)({x:e,y:r,width:n,height:i});return e=o.x,r=o.y,n=o.width,i=o.height,this.createAndEmitEvent("pause",{type:"pause",srcArguments:{uri:t,x:e,y:r,width:n,height:i}}),this.postMessage({type:this.getMessage("pause"),uri:t,x:e,y:r,width:n,height:i})}},{key:"resume",value:function(t,e,r,n,i){this.checkParamsValidity(t,e,r,n,i);var o=(0,p.sanitizeCoordinations)({x:e,y:r,width:n,height:i});return e=o.x,r=o.y,n=o.width,i=o.height,this.createAndEmitEvent("resume",{type:"resume",srcArguments:{uri:t,x:e,y:r,width:n,height:i}}),this.postMessage({type:this.getMessage("resume"),uri:t,x:e,y:r,width:n,height:i})}},{key:"getTracks",value:function(t){return c(this,void 0,void 0,n().mark((function e(){var r,i;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,v.default)({videoId:t}).required().object(),e.next=3,this.postMessage({type:this.getMessage("get_tracks"),videoId:t});case 3:return r=e.sent,i=r.tracks,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"selectTrack",value:function(t,e,r,i){return c(this,void 0,void 0,n().mark((function o(){return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(0,v.default)({videoId:t}).required().object(),(0,v.default)({trackType:e}).required().string(),(0,v.default)({groupId:r}).required().string(),(0,v.default)({trackIndex:i}).required().number(),n.abrupt("return",this.postMessage({type:this.getMessage("select_track"),videoId:t,trackType:e,groupId:r,trackIndex:i}));case 5:case"end":return n.stop()}}),o,this)})))}},{key:"resetTrack",value:function(t,e,r){return c(this,void 0,void 0,n().mark((function i(){return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(0,v.default)({videoId:t}).required().object(),(0,v.default)({trackType:e}).required().string(),r&&(0,v.default)({groupId:r}).string(),n.abrupt("return",this.postMessage({type:this.getMessage("reset_track"),videoId:t,trackType:e,groupId:r}));case 4:case"end":return n.stop()}}),i,this)})))}},{key:"onTracksChanged",value:function(t){(0,v.default)({listener:t}).required().function(),this.eventEmitter.on("tracks_changed",t)}},{key:"onError",value:function(t){(0,v.default)({listener:t}).required().function(),this.eventEmitter.on("error",t)}},{key:"onConnected",value:function(t){(0,v.default)({listener:t}).required().function(),this.eventEmitter.on("connected",t)}},{key:"onDisconnected",value:function(t){(0,v.default)({listener:t}).required().function(),this.eventEmitter.on("disconnected",t)}},{key:"onPrepare",value:function(t){(0,v.default)({listener:t}).required().function(),this.eventEmitter.on("prepare",t)}},{key:"onPlay",value:function(t){(0,v.default)({listener:t}).required().function(),this.eventEmitter.on("play",t)}},{key:"onStop",value:function(t){(0,v.default)({listener:t}).required().function(),this.eventEmitter.on("stop",t)}},{key:"onPause",value:function(t){(0,v.default)({listener:t}).required().function(),this.eventEmitter.on("pause",t)}},{key:"onResume",value:function(t){(0,v.default)({listener:t}).required().function(),this.eventEmitter.on("resume",t)}},{key:"handleMessageData",value:function(t){var e,r,n,i,o,a;switch(t.type){case this.getMessage("error"):this.createAndEmitEvent("error",{type:"error",srcArguments:{uri:t.uri,x:t.x,y:t.y,width:t.width,height:t.height,protocol:null!==(r=null===(e=t.options)||void 0===e?void 0:e.protocol)&&void 0!==r?r:t.protocol},errorMessage:t.errorMessage});break;case this.getMessage("connected"):this.createAndEmitEvent("connected",{type:"connected",srcArguments:{uri:t.uri,x:t.x,y:t.y,width:t.width,height:t.height,protocol:null!==(i=null===(n=t.options)||void 0===n?void 0:n.protocol)&&void 0!==i?i:t.protocol}});break;case this.getMessage("disconnected"):this.createAndEmitEvent("disconnected",{type:"disconnected",srcArguments:{uri:t.uri,x:t.x,y:t.y,width:t.width,height:t.height,protocol:null!==(a=null===(o=t.options)||void 0===o?void 0:o.protocol)&&void 0!==a?a:t.protocol}});break;case this.getMessage("tracks_changed"):this.createAndEmitEvent("tracks_changed",{type:"tracks_changed",srcArguments:{uri:t.uri,x:t.x,y:t.y,width:t.width,height:t.height},tracks:t.tracks})}}},{key:"removeEventListeners",value:function(){this.eventEmitter.removeAllListeners()}},{key:"createAndEmitEvent",value:function(t,e){this.eventEmitter.emit(t,e)}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"checkParamsValidity",value:function(t,e,r,n,i){(0,v.default)({uri:t}).required().uri(),(0,v.default)({x:e}).required().number(),(0,v.default)({y:r}).required().number(),(0,v.default)({width:n}).required().number(),(0,v.default)({height:i}).required().number()}}])&&i(e.prototype,r),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,o}();m.MESSAGE_PREFIX="stream",e.default=m,u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[String,Number,Number,Number,Number,Object]),s("design:returntype",Promise)],m.prototype,"prepare",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[String,Number,Number,Number,Number,Object]),s("design:returntype",Promise)],m.prototype,"play",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[String,Number,Number,Number,Number]),s("design:returntype",Promise)],m.prototype,"stop",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[String,Number,Number,Number,Number]),s("design:returntype",Promise)],m.prototype,"pause",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[String,Number,Number,Number,Number]),s("design:returntype",Promise)],m.prototype,"resume",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",Promise)],m.prototype,"getTracks",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[Object,String,String,Number]),s("design:returntype",Promise)],m.prototype,"selectTrack",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[Object,String,String]),s("design:returntype",Promise)],m.prototype,"resetTrack",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],m.prototype,"onTracksChanged",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],m.prototype,"onError",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],m.prototype,"onConnected",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],m.prototype,"onDisconnected",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],m.prototype,"onPrepare",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],m.prototype,"onPlay",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],m.prototype,"onStop",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],m.prototype,"onPause",null),u([(0,h.debug)(g),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],m.prototype,"onResume",null)},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{kind:"appletError",type:t.type?t.type:"AppletStreamError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(c(r(53)).default);e.default=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,o=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=r(542),h=f(r(7)),p=f(r(543)),d=f(r(546)),y=r(547),v=r(548),g=f(r(552)),m=f(r(224)),b=f(r(553)),w=function(){function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.window=r,this.postMessage=n,this.FlagControllers=[d.default],this.LoadFileControllers=[m.default,g.default],this.cache=new p.default(this.getMessagePrefix(),this.postMessage),this.types=b.default,this.loadFile=this.LoadFileControllers.reduce((function(t,e){var r=new e(i.window);return t[r.name]=r,t}),{}),this.flagControllers=this.FlagControllers.reduce((function(t,e){var r=new e(i.loadFile);return t[r.name]=r,t}),{}),this.flags=Object.keys(this.flagControllers).reduce((function(t,e){var r=i.flagControllers[e];return t[r.name]=r.create.bind(r),t}),{append:null})}return e=t,(r=[{key:"addFiles",value:function(t){var e=this;(0,h.default)({addFiles:t}).required().array("object");var r=t.map((function(t){return e.addFile(t)}));return Promise.all(r)}},{key:"addFilesSync",value:function(t){return c(this,void 0,void 0,i().mark((function e(){var r,n,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,h.default)({addFiles:t}).required().array("object"),r=o(t),e.prev=2,r.s();case 4:if((n=r.n()).done){e.next=10;break}return a=n.value,e.next=8,this.addFile(a);case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,this,[[2,12,15,18]])})))}},{key:"addFile",value:function(t){return c(this,void 0,void 0,i().mark((function e(){var r,n,a,u,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,h.default)({addFile:t}).required().object(v.VISaveFile),e.next=3,this.cache.loadOrSaveFile(t.uid,t.uri,t.headers);case 3:r=e.sent,n=t.flags||[],a=o(n),e.prev=6,a.s();case 8:if((u=a.n()).done){e.next=14;break}return s=u.value,e.next=12,this.handleFileFlag(s,r,t.type);case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),a.e(e.t0);case 19:return e.prev=19,a.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])})))}},{key:"addFont",value:function(t){return c(this,void 0,void 0,i().mark((function e(){var r,n,o,a=this;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,h.default)({addFont:t}).required().object(y.VIAddFont),r=(0,l.fontFaceGenerator)(this.window,t),n=Object.keys(t.formats).map((function(e){return c(a,void 0,void 0,i().mark((function n(){var o;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.cache.loadOrSaveFile((0,l.generateFontUid)(t.uid,e),t.formats[e]);case 2:o=n.sent,r.setFormat(e,o.filePath);case 4:case"end":return n.stop()}}),n,this)})))})),e.next=5,Promise.all(n);case 5:o=r.generateStyleElement(),t.append.appendChild(o);case 7:case"end":return e.stop()}}),e,this)})))}},{key:"handleFileFlag",value:function(t,e,r){return c(this,void 0,void 0,i().mark((function n(){var o,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(void 0!==(o=this.flagControllers[t.type])){n.next=3;break}throw new Error("Not implemented apply flag "+t.type);case 3:return a=e.filePath,n.next=6,o.applyFlag(t,r,a);case 6:case"end":return n.stop()}}),n,this)})))}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&u(e.prototype,r),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();w.MESSAGE_PREFIX="offline",e.default=w},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontFaceGenerator=e.generateFontUid=void 0;e.generateFontUid=function(t,e){return t+"."+e};e.fontFaceGenerator=function(t,e){var r="font-family: '".concat(e.fontFamily,"';"),n=e.fontStretch?"font-stretch: ".concat(e.fontStretch,";"):"",i=e.fontStyle?"font-style: ".concat(e.fontStyle,";"):"",o=e.fontWeight?"font-weight: ".concat(e.fontWeight,";"):"",a=e.unicodeRange?"unicode-range: ".concat(e.unicodeRange,";"):"",u=[],s="";return{setFormat:function(t,e){switch(t){case"woff":u.push("url('".concat(e,"') format('woff')"));break;case"woff2":u.push("url('".concat(e,"') format('woff2')"));break;case"ttf":u.push("url('".concat(e,"') format('truetype')"));break;case"svg":u.push("url('".concat(e,"#svgFontName') format('svg')"));break;case"eot":s="src: url('".concat(e,"');"),u.push("url('".concat(e,"?#iefix') format('embedded-opentype')"));break;default:console.warn("Not supported font format: ".concat(t))}},generateStyleElement:function(){var e="src: "+u.join(", "),c="@font-face {".concat(r).concat(n).concat(i).concat(o).concat(a).concat(s).concat(e," }"),f=t.document.createElement("style");return f.innerHTML=c,f}}}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=s(r(544)),f=s(r(41)),l=s(r(545)),h=s(r(7)),p=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.savedFiles={},this.savedContents={}}return e=t,(r=[{key:"listFiles",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("list_files")});case 2:return e=t.sent,t.abrupt("return",e.fileUids);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"loadFile",value:function(t){return u(this,void 0,void 0,i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,h.default)({uid:t}).required().string(),e.next=3,this.postMessage({type:this.getMessage("load_file"),uid:t});case 3:return r=e.sent,this.savedFiles[t]=r.loadedFile,e.abrupt("return",r.loadedFile);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"saveFile",value:function(t,e,r){return u(this,void 0,void 0,i().mark((function n(){var o;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.checkUidValidity(t),!r||this.isHeaders(r)){n.next=3;break}throw new l.default({kind:"appletOfflineCacheError",message:"Invalid headers ".concat(r),code:f.default.OFFLINE_CACHE_HEADERS_NOT_VALID});case 3:return n.next=5,this.postMessage({type:this.getMessage("save_file"),uid:t,uri:e,headers:r});case 5:o=n.sent,this.savedFiles[t]=o.savedFile;case 7:case"end":return n.stop()}}),n,this)})))}},{key:"loadOrSaveFile",value:function(t,e,r){return u(this,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(0,h.default)({uid:t}).required().string(),(0,h.default)({uri:e}).required().uri(),n.prev=2,n.abrupt("return",this.getCachedFile(t));case 6:return n.prev=6,n.t0=n.catch(2),n.prev=8,n.next=11,this.loadFile(t);case 11:return n.abrupt("return",n.sent);case 14:return n.prev=14,n.t1=n.catch(8),n.next=18,this.saveFile(t,e,r);case 18:return n.abrupt("return",this.getCachedFile(t));case 19:case"end":return n.stop()}}),n,this,[[2,6],[8,14]])})))}},{key:"deleteFile",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.checkUidValidity(t),e.next=3,this.postMessage({type:this.getMessage("delete_file"),uid:t});case 3:delete this.savedFiles[t];case 4:case"end":return e.stop()}}),e,this)})))}},{key:"listContents",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("list_contents")});case 2:return e=t.sent,t.abrupt("return",e.contentUids);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"loadContent",value:function(t){return u(this,void 0,void 0,i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.postMessage({type:this.getMessage("load_content"),uid:t});case 2:return r=e.sent,this.savedContents[t]=r.loadedContent,e.abrupt("return",r.loadedContent);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"saveContent",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){var n;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this.checkUidValidity(t),(0,h.default)({content:e}).required().string(),r.next=4,this.postMessage({type:this.getMessage("save_content"),uid:t,content:""+e});case 4:n=r.sent,this.savedContents[t]=n.savedContent;case 6:case"end":return r.stop()}}),r,this)})))}},{key:"deleteContent",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.checkUidValidity(t),e.next=3,this.postMessage({type:this.getMessage("delete_content"),uid:t});case 3:delete this.savedContents[t];case 4:case"end":return e.stop()}}),e,this)})))}},{key:"validateChecksumFile",value:function(t,e,r){return u(this,void 0,void 0,i().mark((function n(){var o;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.checkUidValidity(t),(0,h.default)({hash:e}).required().string(),(0,h.default)({hashType:r}).required().string(),n.next=5,this.postMessage({type:this.getMessage("validate_checksum"),uid:t,hash:e,hashType:r});case 5:return o=n.sent,n.abrupt("return",o.validatedChecksum);case 7:case"end":return n.stop()}}),n,this)})))}},{key:"getChecksumFile",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){var n;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this.checkUidValidity(t),(0,h.default)({hashType:e}).required().string(),r.next=4,this.postMessage({type:this.getMessage("get_checksum"),uid:t,hashType:e});case 4:return n=r.sent,r.abrupt("return",n.checksum);case 6:case"end":return r.stop()}}),r,this)})))}},{key:"decompressFile",value:function(t,e,r){return u(this,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.checkUidValidity(t),(0,h.default)({destinationUid:e}).required().string(),n.next=4,this.postMessage({type:this.getMessage("decompress_file"),uid:t,destinationUid:e,method:r});case 4:case"end":return n.stop()}}),n,this)})))}},{key:"getCachedFile",value:function(t){if(void 0===this.savedFiles[t])throw new c.default({kind:"fileNotFoundError",message:"File was not found "+t,code:f.default.FILE_NOT_FOUND_IN_CACHE});return this.savedFiles[t]}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"checkUidValidity",value:function(t){return(0,h.default)({uid:t}).required().string().matchRegExp(/^[^\\:*"<>|]+$/g,f.default.OFFLINE_CACHE_UID_NOT_VALID),!0}},{key:"isHeaders",value:function(t){return"object"===n(t)&&(Object.getOwnPropertyNames(t).forEach((function(e){if("string"!=typeof e||"string"!=typeof t[e])return!1})),!0)}}])&&o(e.prototype,r),a&&o(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,a}();p.MESSAGE_PREFIX="cache",e.default=p},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{kind:"appletError",type:t.type?t.type:"FileNotFoundError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(c(r(53)).default);e.default=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{kind:"appletError",type:t.type?t.type:"AppletOfflineCacheError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(c(r(53)).default);e.default=f},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(n,a,u,s){var c=p(t[n],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==i(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var n;a(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,n){r(t,i,e,n)}))}return n=n?n.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(i(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=r(122),c=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.loadFile=e,this.name="append",this.elementCache={}},(e=[{key:"create",value:function(t){var e=(0,s.generateUniqueHash)();return this.elementCache[e]=t,{type:"append",element:{uid:e}}}},{key:"applyFlag",value:function(t,e,r){return u(this,void 0,void 0,n().mark((function o(){var a,u;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("object"===i(t.element)){n.next=2;break}throw new Error('File flag of type "append" needs to be object');case 2:if(void 0!==(a=this.elementCache[t.element.uid])){n.next=5;break}throw new Error('File flag element for "append" not found');case 5:if(void 0!==(u=this.loadFile[e])){n.next=8;break}throw new Error('File of type "'+e+'" cannot be appent');case 8:return n.next=10,u.load(r,a);case 10:case"end":return n.stop()}}),o,this)})))}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIAddFont=e.VIFontFaceProperties=e.VIFontFormats=void 0,e.VIFontFormats={woff2:"string",eot:"?string",woff:"?string",ttf:"?string",svg:"?string"},e.VIFontFaceProperties={fontFamily:"string",fontStretch:"?string",fontStyle:"?string",fontWeight:"?string",unicodeRange:"?string"},e.VIAddFont=Object.assign(e.VIFontFaceProperties,{uid:"string",append:"object",formats:e.VIFontFormats})},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.VISaveFile=void 0;var i=r(549),o=r(550),a=n(r(41)),u=n(r(141));e.VISaveFile={uid:{string:null,error:{code:a.default.FILE_DOES_NOT_HAVE_UID,message:u.default[a.default.FILE_DOES_NOT_HAVE_UID]}},uri:"string",type:{string:i.VIFileType,error:{code:a.default.FILE_FLAGS_ARE_NOT_IN_ARRAY,message:u.default[a.default.FILE_FLAGS_ARE_NOT_IN_ARRAY]}},headers:"?object",flags:{"?array":{object:o.VIFlag,error:{code:a.default.FILE_FLAG_IS_NOT_OBJECT,message:u.default[a.default.FILE_FLAG_IS_NOT_OBJECT]}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIFileType=void 0,e.VIFileType=["javascript","css","video"]},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIFlag=void 0;var n=r(551);e.VIFlag={type:{string:["append"]},element:{object:n.VIElement}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIElement=void 0,e.VIElement={uid:"string"}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.name="css"},(e=[{key:"load",value:function(t,e){var r=this;return new Promise((function(n,i){var o=r.window.document.createElement("link");o.setAttribute("type","text/css"),o.setAttribute("rel","stylesheet"),o.setAttribute("href",t),o.onerror=function(){i(new Error('File "'+t+'" cannot be loaded'))},o.onload=function(){console.info("File "+t.substring(0,100)+" was loaded"),n()},e.appendChild(o)}))}}])&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={javascript:"javascript",css:"css",video:"video"}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),f=s(r(555)),l=s(r(41)),h=s(r(140)),p=s(r(7)),d=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter}return e=t,(r=[{key:"dispatch",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.checkTypeValidity(t.type),e.next=3,this.postMessage({type:this.getMessage("dispatch"),command:t});case 3:case"end":return e.stop()}}),e,this)})))}},{key:"onCommand",value:function(t){(0,p.default)({listener:t}).required().function(),this.eventEmitter.addListener("command",t)}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("dispatch_to_applet"):var e={type:"command",command:t.command};this.eventEmitter.emit("command",e)}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"checkTypeValidity",value:function(t){(0,p.default)({type:t}).setError(new f.default({kind:"appletCommandError",message:"Type contains invalid characters.",code:l.default.COMMAND_TYPE_NOT_VALID,suggestion:h.default.COMMAND_TYPE_NOT_VALID})).required().string().matchRegExp(/^[a-zA-Z0-9\.\-_]+$/g),(0,p.default)({type:t}).setError(new f.default({kind:"appletCommandError",message:"Type is longer then 100 characters.",code:l.default.COMMAND_TYPE_IS_TOO_LONG})).lengthMax(100)}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();d.MESSAGE_PREFIX="command",e.default=d},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{type:t.type?t.type:"AppletCommandError",pathToDocs:e.PATH_TO_DOCS,kind:"appletError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(c(r(53)).default);f.PATH_TO_DOCS="/sdk/content/js-command",e.default=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),f=s(r(557)),l=s(r(558)),h=s(r(559)),p=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter,this.led=new f.default(this.getMessagePrefix(),this.postMessage),this.barcodeScanner=new h.default(this.getMessagePrefix(),this.postMessage)}return e=t,(r=[{key:"openSerialPort",value:function(t){return u(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.postMessage({type:this.getMessage("serial_port.open"),options:t});case 2:return r=e.sent,n=r.refid,e.abrupt("return",new l.default(n,this.eventEmitter,this.getMessagePrefix(),this.postMessage));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("serial_port.data"):this.eventEmitter.emit("serial_port.data."+t.refid,t.data);break;default:this.barcodeScanner.handleMessageData(t)}}},{key:"getMessage",value:function(t){return this.getMessagePrefix()+"."+t}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();p.MESSAGE_PREFIX="hardware",e.default=p},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=s(r(41)),f=s(r(7)),l=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"setColor",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.checkColorValidity(t),e.next=3,this.postMessage({type:this.getMessage("set_color"),color:t?t.toUpperCase():null});case 3:case"end":return e.stop()}}),e,this)})))}},{key:"checkColorValidity",value:function(t){(0,f.default)({color:t}).canBeNull().string(null,c.default.HARDWARE_LED_COLOR_IS_NOT_STRING),(0,f.default)({color:t}).canBeNull().matchRegExp(/^#[0-9A-Fa-f]{6,6}$/,c.default.HARDWARE_LED_COLOR_IS_NOT_VALID)}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();l.MESSAGE_PREFIX="led",e.default=l},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=function(){return t=function t(e,r,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.refid=e,this.eventEmitter=r,this.messagePrefix=n,this.postMessage=i},(e=[{key:"onData",value:function(t){this.eventEmitter.addListener("serial_port.data."+this.refid,t)}},{key:"write",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.postMessage({type:this.getMessage("serial_port.write"),refid:this.refid,data:t});case 2:case"end":return e.stop()}}),e,this)})))}},{key:"close",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("serial_port.close"),refid:this.refid});case 2:this.eventEmitter.removeAllListeners("serial_port.data."+this.refid);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_SCANNER_ID=void 0;var c=r(14);e.DEFAULT_SCANNER_ID=0;var f=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter}return r=t,(n=[{key:"getVersion",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_version")});case 2:return e=t.sent,r=e.version,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"start",value:function(t){return u(this,void 0,void 0,i().mark((function r(){var n,o,a,c,f,l,h,p=this;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={scannerId:e.DEFAULT_SCANNER_ID,timeout:1e4,cancelPrevious:!1},o=Object.assign(Object.assign({},n),t),a=o.scannerId,(c=s(o,["scannerId"])).cancelPrevious&&(this.eventEmitter.removeAllListeners("scanner_id_".concat(a,".data")),this.eventEmitter.removeAllListeners("scanner_id_".concat(a,".error"))),r.next=5,this.postMessage({type:this.getMessage("start"),scannerId:a,options:c});case 5:return f=function(t){p.eventEmitter.addListener("scanner_id_".concat(a,".data"),t)},l=function(t){p.eventEmitter.addListener("scanner_id_".concat(a,".error"),t)},h=function(){return u(p,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("stop"),scannerId:a});case 2:this.eventEmitter.removeAllListeners("scanner_id_".concat(a,".data")),this.eventEmitter.removeAllListeners("scanner_id_".concat(a,".error"));case 4:case"end":return t.stop()}}),t,this)})))},r.abrupt("return",{stop:h,onData:f,onError:l});case 9:case"end":return r.stop()}}),r,this)})))}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("data"):this.eventEmitter.emit("scanner_id_".concat(t.scannerId,".data"),t.data);break;case this.getMessage("error"):this.eventEmitter.emit("scanner_id_".concat(t.scannerId,".error"),t.data)}}},{key:"getMessage",value:function(e){return[this.messagePrefix,t.MESSAGE_PREFIX,e].join(".")}}])&&o(r.prototype,n),a&&o(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}();f.MESSAGE_PREFIX="barcode_scanner",e.default=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),f=s(r(7)),l=r(561),h=r(562),p=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.exchange=e,this.events=new c.EventEmitter},(e=[{key:"open",value:function(t){return u(this,arguments,void 0,(function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().mark((function n(){var o,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(0,f.default)({uri:t}).required().uri(),(0,f.default)({options:r}).required().object(h.VIOpenLinkOptions),a=null===(o=r.headlessMode)||void 0===o||o,n.next=5,e.exchange.postMessage(Object.assign(Object.assign({uri:t},r),{headlessMode:a,type:"open"}));case 5:case"end":return n.stop()}}),n)}))()}))}},{key:"close",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.exchange.postMessage({type:"close"});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"onClose",value:function(t){var e=this;return(0,f.default)({listener:t}).required().function(),this.events.addListener(l.EventType.CLOSE,t),function(){e.events.removeListener(l.EventType.CLOSE,t)}}},{key:"handleMessageData",value:function(t){switch(t.type){case this.exchange.messageNameToType("closed"):var e={type:l.EventType.CLOSE,reason:t.reason};this.events.emit(l.EventType.CLOSE,e)}}},{key:"openLink",value:function(t){return u(this,arguments,void 0,(function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.warn("sos.browser.openLink() is deprecated and will be removed in the future versions. Use sos.browser.open() instead."),(0,f.default)({uri:t}).required().uri(),(0,f.default)({options:r}).required().object(),n.next=5,e.exchange.postMessage(Object.assign(Object.assign({uri:t},r),{headlessMode:!1,type:"open_link"}));case 5:case"end":return n.stop()}}),n)}))()}))}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=p},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.CloseReason=e.VIEventType=e.EventType=void 0,function(t){t.CLOSE="close"}(n||(e.EventType=n={})),e.VIEventType=["close"],function(t){t.API="API",t.USER="USER",t.TIMEOUT="TIMEOUT"}(i||(e.CloseReason=i={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIOpenLinkOptions=e.VITheme=void 0,e.VITheme={base:{"?string":["light","dark"]},shape:{"?object":{cornerSize:"?number"}},colors:{"?object":{primary:"?string",background:"?string",control:"?string"}},widgets:{"?object":{editAddress:{"?object":{colors:{"?object":{background:"?string",text:"?string"}}}},buttonClose:{"?object":{colors:{"?object":{background:"?string",text:"?string",icon:"?string"}},icon:{"?string":["none","exit_to_app","close","cancel"]},text:"?string"}},progress:{"?object":{color:"?string"}}}}},e.VIOpenLinkOptions={aclDomains:{"?array":"string"},aclMode:{"?string":["blacklist","whitelist"]},readOnlyAddressBar:"?boolean",idleTimeout:"?number",coordinates:{"?object":{x:"number",y:"number",width:"number",height:"number"}},theme:{"?object":e.VITheme},headlessMode:"?boolean",clearData:"?boolean",canUserClose:"?boolean",method:{"?string":["native","iframe"]}}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){return t=function t(e,r,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.base=n,this.transformers=i,this.frontAppletWindows=[]},(e=[{key:"registerFrontAppletLoaderWindow",value:function(t){t.postMessage({type:this.getMessage("api_js_uri"),uri:this.base.apiJsUri},"*")}},{key:"registerBundledFrontAppletWindow",value:function(t){this.frontAppletWindows.push(t),t.postMessage({type:this.getMessage("config.update"),config:this.base.config},"*"),t.postMessage({type:this.getMessage("auth_hash.update"),authHash:this.base.authHash},"*"),t.postMessage({type:this.getMessage("front_display_version.update"),version:this.base.display.version},"*")}},{key:"forwardToFrontAppletWindows",value:function(t){var e,r=this,n=i(this.frontAppletWindows);try{var o=function(){var n=e.value,i=r.transformers.reduce((function(t,e){return t?e(t,n):t}),t);if(void 0===i)return 1;n.postMessage(i,"*")};for(n.s();!(e=n.n()).done;)o()}catch(t){n.e(t)}finally{n.f()}}},{key:"forwardFromFrontAppletWindows",value:function(t,e){-1!==this.frontAppletWindows.indexOf(t)&&this.window.parent.postMessage(e,"*")}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.postMessageToParent=n;var o=function(t){return i.handleTouch(t)};this.window.addEventListener("touchstart",o,!0),this.window.addEventListener("touchend",o,!0),this.window.addEventListener("touchcancel",o,!0),this.window.addEventListener("touchmove",o,!0)}return e=t,(r=[{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("propagate"):var e=this.window.document.elementFromPoint(t.x,t.y);e&&"click"in e&&e.click()}}},{key:"transformIframeData",value:function(t,e){if(t.type!==this.getMessage("propagate"))return t;var r=Array.from(this.window.document.getElementsByTagName("iframe")).find((function(t){return t.contentWindow===e}));return void 0===r||t.x<r.offsetLeft||t.x>r.offsetLeft+r.offsetWidth||t.y<r.offsetTop||t.y>r.offsetTop+r.offsetHeight?void 0:Object.assign(Object.assign({},t),{x:t.x-r.offsetLeft,y:t.y-r.offsetTop})}},{key:"handleTouch",value:function(t){this.postMessageToParent({type:this.getMessage("event"),eventType:t.type})}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();a.MESSAGE_PREFIX="touch",e.default=a},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=r(14),s=a(r(7)),c=function(){function t(e,r){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.eventEmitter=new u.EventEmitter,this.hasWindowEventListener=!1,this.alive=!0,this.dispatchEventToParent=function(t){try{n.window.parent.document.dispatchEvent(new KeyboardEvent("keyup",t))}catch(e){if(!(e instanceof ReferenceError))throw e;n.window.parent.document.dispatchEvent(t)}},!this.isTopLevelFrame()&&this.canAccessParentOrigin()&&(this.hasWindowEventListener=!0,this.window.addEventListener("keyup",this.dispatchEventToParent))}return e=t,(r=[{key:"destroy",value:function(){this.alive&&(this.alive=!1,this.removeEventListeners(),this.hasWindowEventListener&&this.window.removeEventListener("keyup",this.dispatchEventToParent))}},{key:"onKeyUp",value:function(t){this.checkAlive(),(0,s.default)({listener:t}).required().function(),this.eventEmitter.addListener("keyup",t)}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("keyup"):var e={type:"keyup",keyCode:t.keyCode,keyName:t.keyName};this.emitKeyUpEvent(e)}}},{key:"removeEventListeners",value:function(){this.eventEmitter.removeAllListeners()}},{key:"removeEventListener",value:function(t,e){this.eventEmitter.removeListener(t,e)}},{key:"emitKeyUpEvent",value:function(t){this.checkAlive(),this.eventEmitter.emit("keyup",t)}},{key:"isTopLevelFrame",value:function(){return this.window===this.window.parent}},{key:"canAccessParentOrigin",value:function(){var t,e;try{var r=!!(null===(e=null===(t=this.window)||void 0===t?void 0:t.parent)||void 0===e?void 0:e.document);return r||console.warn("Parent window or document is not defined"),r}catch(t){if(t instanceof DOMException)return console.warn("Parent document is not accessible"),!1;throw t}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}},{key:"checkAlive",value:function(){if(!this.alive)throw new Error("destroyed")}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();c.MESSAGE_PREFIX="input",e.default=c},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function u(t,e,r){return e=s(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],s(t).constructor):e.apply(t,r))}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var f=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var h=r(14),p=l(r(7)),d=function(t){function e(t,r,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=u(this,e)).window=t,i.messagePrefix=r,i.postMessage=n,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),r=e,(n=[{key:"isRemoteDebugEnabled",value:function(){return f(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("is_remote_enabled")});case 2:return e=t.sent,r=e.isEnabled,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"onRemoteDebugChanged",value:function(t){(0,p.default)({listener:t}).required().function(),this.addListener(e.DEBUG_CHANGED,(function(e){return t({enabled:e.enabled})}))}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("configure"):if(this.emit(e.DEBUG_CHANGED,{enabled:t.enabled}),t.enabled){if(this.window.WeinreServerURL=t.url,this.window.WeinreServerId=t.id,!this.window.__weinreLoaded){var r=this.window.document.createElement("script");r.src=t.url+"/target/target-script-min.js",this.window.document.body.appendChild(r),this.window.__weinreLoaded=!0}}else this.window.WeinreServerURL=void 0,this.window.WeinreServerId=void 0}}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+e.MESSAGE_PREFIX+"."+t}}])&&o(r.prototype,n),a&&o(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(h.EventEmitter);d.MESSAGE_PREFIX="debug",d.DEBUG_CHANGED="debug.changed",e.default=d},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"getLocation",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_location")});case 2:return e=t.sent,r=e.location,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getOrganizationTags",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_organization_tags")});case 2:return e=t.sent,r=e.tags,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getDeviceName",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.geDeviceNameFromTittle(),t.abrupt("return",e);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"getMessage",value:function(e){return[this.messagePrefix,t.MESSAGE_PREFIX,e].join(".")}},{key:"geDeviceNameFromTittle",value:function(){var t;return null!==(t=window.parent.document.head.getElementsByTagName("title")[0].parentElement.getElementsByTagName("title")[0].innerHTML)&&void 0!==t?t:""}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="device_info",e.default=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=s(r(7)),f=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.version=void 0}return e=t,(r=[{key:"supports",value:function(t){return u(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,c.default)({capability:t}).string(),e.next=3,this.postMessage({type:this.getMessage("supports"),capability:t});case 3:return r=e.sent,n=r.supports,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="display",e.default=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=a(r(570)),s=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.triggers=new u.default(this.getMessagePrefix(),this.postMessage)}return e=t,(r=[{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="timing",e.default=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"pause",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("pause")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"resume",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("resume")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="triggers",e.default=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SyncEngine=void 0;var c,f,l=r(14),h=r(572),p=s(r(7));!function(t){t.SyncServer="sync-server",t.P2PLocal="p2p-local",t.Udp="udp"}(c||(e.SyncEngine=c={})),function(t){t.Status="status",t.BroadcastedValue="broadcasted_value",t.Closed="closed"}(f||(f={}));var d=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new l.EventEmitter}return e=t,(r=[{key:"connect",value:function(t){return u(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={engine:c.SyncServer},(n="string"==typeof t?{engine:c.SyncServer,uri:t}:void 0===t?r:t).engine===c.SyncServer&&(0,p.default)({uri:n.uri}).uri(),e.next=5,this.postMessage({type:this.getMessage("connect"),engine:n.engine,serverUri:n.uri});case 5:case"end":return e.stop()}}),e,this)})))}},{key:"close",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("close")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"init",value:function(){return u(this,arguments,void 0,(function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_GROUP_NAME,n=arguments.length>1?arguments[1]:void 0;return i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.joinGroup({groupName:r,deviceIdentification:n});case 2:case"end":return t.stop()}}),t)}))()}))}},{key:"joinGroup",value:function(e){return u(this,void 0,void 0,i().mark((function r(){var n,o,a;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.groupName,o=void 0===n?t.DEFAULT_GROUP_NAME:n,a=e.deviceIdentification,(0,p.default)({groupName:o}).required().string(),(0,p.default)({deviceIdentification:a}).string(),r.next=5,this.postMessage({type:this.getMessage("init"),groupName:o,deviceIdentification:a});case 5:case"end":return r.stop()}}),r,this)})))}},{key:"leaveGroup",value:function(){return u(this,arguments,void 0,(function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_GROUP_NAME;return i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,p.default)({groupName:r}).required().string(),t.next=3,e.postMessage({type:e.getMessage("leave_group"),groupName:r});case 3:case"end":return t.stop()}}),t)}))()}))}},{key:"wait",value:function(e){return u(this,arguments,void 0,(function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.DEFAULT_GROUP_NAME,o=arguments.length>2?arguments[2]:void 0;return i().mark((function t(){var a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,p.default)({groupName:n}).required().string(),(0,p.default)({timeout:o}).number(),t.next=4,r.postMessage({type:r.getMessage("wait"),groupName:n,data:e,timeout:o});case 4:return a=t.sent,t.abrupt("return",a.responseData);case 6:case"end":return t.stop()}}),t)}))()}))}},{key:"cancelWait",value:function(){return u(this,arguments,void 0,(function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.DEFAULT_GROUP_NAME;return i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,p.default)({groupName:r}).required().string(),t.next=3,e.postMessage({type:e.getMessage("cancel_wait"),groupName:r});case 3:case"end":return t.stop()}}),t)}))()}))}},{key:"setValue",value:function(e,r){return u(this,arguments,void 0,(function(e,r){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.DEFAULT_GROUP_NAME;return i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.broadcastValue({key:e,value:r,groupName:o});case 2:case"end":return t.stop()}}),t)}))()}))}},{key:"broadcastValue",value:function(e){return u(this,arguments,void 0,(function(e){var r=this,n=e.groupName,o=e.key,a=e.value;return i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null!=n?n:t.DEFAULT_GROUP_NAME,(0,p.default)({key:o}).required().string(),(0,p.default)({groupName:n}).required().string(),e.next=5,r.postMessage({type:r.getMessage("request_set_value"),groupName:n,key:o,value:a});case 5:case"end":return e.stop()}}),e)}))()}))}},{key:"isMaster",value:function(e){return u(this,void 0,void 0,i().mark((function r(){var n,o;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.postMessage({type:this.getMessage("is_master"),groupName:null!=e?e:t.DEFAULT_GROUP_NAME});case 2:return n=r.sent,o=n.isMaster,r.abrupt("return",o);case 5:case"end":return r.stop()}}),r,this)})))}},{key:"onValue",value:function(e){(0,p.default)({listener:e}).required().function(),this.eventEmitter.addListener(f.BroadcastedValue,(function(r){e(r.key,r.value,r.groupName===t.DEFAULT_GROUP_NAME?void 0:r.groupName)}))}},{key:"onStatus",value:function(e){(0,p.default)({listener:e}).required().function(),this.eventEmitter.addListener(f.Status,(function(r){e({connectedPeers:r.connectedPeers,groupName:r.groupName===t.DEFAULT_GROUP_NAME?void 0:r.groupName,isMaster:r.isMaster})}))}},{key:"onClosed",value:function(t){(0,p.default)({listener:t}).required().function(),this.eventEmitter.addListener(f.Closed,t)}},{key:"removeEventListeners",value:function(){this.eventEmitter.removeAllListeners()}},{key:"handleMessageData",value:function(t){var e;switch(t.type){case this.getMessage(h.SyncMessageType.BroadcastedValue):var r=t,n={groupName:r.groupName,key:r.key,value:r.value};this.eventEmitter.emit(f.BroadcastedValue,n);break;case this.getMessage(h.SyncMessageType.Status):var i=t,o={connectedPeers:i.connectedPeers,groupName:i.groupName,isMaster:null!==(e=i.isMaster)&&void 0!==e&&e};this.eventEmitter.emit(f.Status,o);break;case this.getMessage(h.SyncMessageType.Closed):var a=t,u=a.error?new Error(a.error):void 0;this.eventEmitter.emit(f.Closed,u)}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();d.MESSAGE_PREFIX="sync",d.DEFAULT_GROUP_NAME="____default____",e.default=d},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SyncMessageType=void 0,function(t){t.BroadcastedValue="set_value",t.Status="device_status",t.Closed="closed"}(n||(e.SyncMessageType=n={}))},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),f=r(574),l=s(r(7)),h=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter}return e=t,(r=[{key:"listStorageUnits",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("list_storage_units")});case 2:return e=t.sent,r=e.storageUnits,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"listInternalStorageUnits",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.listStorageUnits();case 2:return e=t.sent,t.abrupt("return",e.filter((function(t){return!t.removable})));case 4:case"end":return t.stop()}}),t,this)})))}},{key:"onStorageUnitsChanged",value:function(t){(0,l.default)({listener:t}).required().function(),this.eventEmitter.addListener("storage_units_changed",t)}},{key:"removeStorageUnitsChangedListener",value:function(t){(0,l.default)({listener:t}).required().function(),this.eventEmitter.removeListener("storage_units_changed",t)}},{key:"removeAllListeners",value:function(){this.eventEmitter.removeAllListeners("storage_units_changed")}},{key:"listFiles",value:function(t){return u(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,l.default)({directoryPath:t}).required().object(f.VIFilePath),e.next=3,this.postMessage({type:this.getMessage("list_files"),directoryPath:t});case 3:return r=e.sent,n=r.files,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"exists",value:function(t){return u(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,l.default)({filePath:t}).required().object(f.VIFilePath),e.next=3,this.postMessage({type:this.getMessage("exists"),filePath:t});case 3:return r=e.sent,n=r.exists,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"getFile",value:function(t){return u(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,l.default)({filePath:t}).required().object(f.VIFilePath),e.next=3,this.postMessage({type:this.getMessage("get_file"),filePath:t});case 3:if(r=e.sent,n=r.file){e.next=7;break}return e.abrupt("return",null);case 7:return e.abrupt("return",Object.assign(Object.assign({},n),t));case 8:case"end":return e.stop()}}),e,this)})))}},{key:"writeFile",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(0,l.default)({filePath:t}).required().object(f.VIFilePath),r.next=3,this.postMessage({type:this.getMessage("write_file"),filePath:t,contents:e});case 3:case"end":return r.stop()}}),r,this)})))}},{key:"appendFile",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(0,l.default)({filePath:t}).required().object(f.VIFilePath),r.next=3,this.postMessage({type:this.getMessage("append_file"),filePath:t,contents:e});case 3:case"end":return r.stop()}}),r,this)})))}},{key:"readFile",value:function(t){return u(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,l.default)({filePath:t}).required().object(f.VIFilePath),e.next=3,this.postMessage({type:this.getMessage("read_file"),filePath:t});case 3:return r=e.sent,n=r.contents,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"copyFile",value:function(t,e){return u(this,arguments,void 0,(function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i().mark((function o(){return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return(0,l.default)({sourceFilePath:t}).required().object(f.VIFilePath),(0,l.default)({destinationFilePath:e}).required().object(f.VIFilePath),(0,l.default)({options:n}).required().object(f.VICopyFileOptions),i.next=5,r.postMessage({type:r.getMessage("copy_file"),sourceFilePath:t,destinationFilePath:e,options:n});case 5:case"end":return i.stop()}}),o)}))()}))}},{key:"moveFile",value:function(t,e){return u(this,arguments,void 0,(function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i().mark((function o(){return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return(0,l.default)({sourceFilePath:t}).required().object(f.VIFilePath),(0,l.default)({destinationFilePath:e}).required().object(f.VIFilePath),(0,l.default)({options:n}).required().object(f.VIMoveFileOptions),i.next=5,r.postMessage({type:r.getMessage("move_file"),sourceFilePath:t,destinationFilePath:e,options:n});case 5:case"end":return i.stop()}}),o)}))()}))}},{key:"deleteFile",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(0,l.default)({filePath:t}).required().object(f.VIFilePath),(0,l.default)({recursive:e}).required().boolean(),r.next=4,this.postMessage({type:this.getMessage("delete_file"),filePath:t,recursive:e});case 4:case"end":return r.stop()}}),r,this)})))}},{key:"downloadFile",value:function(t,e,r){return u(this,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(0,l.default)({filePath:t}).required().object(f.VIFilePath),(0,l.default)({sourceUri:e}).required().uri(),(0,l.default)({headers:r}).object(),n.next=5,this.postMessage({type:this.getMessage("download_file"),filePath:t,sourceUri:e,headers:r});case 5:case"end":return n.stop()}}),n,this)})))}},{key:"extractFile",value:function(t,e,r){return u(this,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(0,l.default)({archiveFilePath:t}).required().object(f.VIFilePath),(0,l.default)({destinationDirectoryPath:e}).object(f.VIFilePath),(0,l.default)({method:r}).required().string(),n.next=5,this.postMessage({type:this.getMessage("extract_file"),archiveFilePath:t,destinationDirectoryPath:e,method:r});case 5:case"end":return n.stop()}}),n,this)})))}},{key:"createArchive",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(0,l.default)({archiveFilePath:t}).required().object(f.VIFilePath),(0,l.default)({archiveEntries:e}).required().array("object"),r.next=4,this.postMessage({type:this.getMessage("create_archive_file"),archiveFilePath:t,archiveEntries:e});case 4:case"end":return r.stop()}}),r,this)})))}},{key:"getFileChecksum",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){var n,o;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(0,l.default)({filePath:t}).required().object(f.VIFilePath),(0,l.default)({hashType:e}).required().string(),r.next=4,this.postMessage({type:this.getMessage("get_file_checksum"),filePath:t,hashType:e});case 4:return n=r.sent,o=n.checksum,r.abrupt("return",o);case 7:case"end":return r.stop()}}),r,this)})))}},{key:"createDirectory",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,l.default)({directoryPath:t}).required().object(f.VIFilePath),e.next=3,this.postMessage({type:this.getMessage("create_directory"),directoryPath:t});case 3:case"end":return e.stop()}}),e,this)})))}},{key:"isDirectory",value:function(t){return u(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,l.default)({filePath:t}).required().object(f.VIFilePath),e.next=3,this.postMessage({type:this.getMessage("is_directory"),filePath:t});case 3:return r=e.sent,n=r.isDirectory,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"link",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(0,l.default)({sourceFilePath:t}).required().object(f.VIFilePath),(0,l.default)({destinationFilePath:e}).required().object(f.VIFilePath),r.next=4,this.postMessage({type:this.getMessage("link"),sourceFilePath:t,destinationFilePath:e});case 4:case"end":return r.stop()}}),r,this)})))}},{key:"wipeout",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("wipeout")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("storage_units_changed"):this.eventEmitter.emit("storage_units_changed")}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();h.MESSAGE_PREFIX="file_system",e.default=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIMoveFileOptions=e.VICopyFileOptions=e.VIFilePath=e.VIStorageUnit=void 0,e.VIStorageUnit={type:"string",capacity:"number",freeSpace:"number",usableSpace:"number",removable:"boolean"},e.VIFilePath={storageUnit:{object:e.VIStorageUnit},filePath:"string"},e.VICopyFileOptions={overwrite:"?boolean"},e.VIMoveFileOptions={overwrite:"?boolean"}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=s(r(7)),f=s(r(576)),l=s(r(586)),h=s(r(587)),p=s(r(589)),d=s(r(590)),y=s(r(591)),v=s(r(593)),g=s(r(594)),m=s(r(595)),b=s(r(597)),w=s(r(600)),_=s(r(601)),x=s(r(602)),M=s(r(605)),E=s(r(608)),S=s(r(610)),O=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.app=new f.default(this.getMessagePrefix(),this.postMessage),this.os=new v.default(this.getMessagePrefix(),this.postMessage),this.audio=new l.default(this.getMessagePrefix(),this.postMessage),this.debug=new p.default(this.getMessagePrefix(),this.postMessage),this.firmware=new d.default(this.getMessagePrefix(),this.postMessage),this.package=new g.default(this.getMessagePrefix(),this.postMessage),this.power=new b.default(this.getMessagePrefix(),this.postMessage),this.remoteControl=new _.default(this.getMessagePrefix(),this.postMessage),this.screen=new x.default(this.getMessagePrefix(),this.postMessage),this.time=new E.default(this.getMessagePrefix(),this.postMessage),this.network=new y.default(this.getMessagePrefix(),this.postMessage),this.wifi=new S.default(this.getMessagePrefix(),this.postMessage),this.security=new M.default(this.getMessagePrefix(),this.postMessage),this.proxy=new w.default(this.getMessagePrefix(),this.postMessage),this.autoRecovery=new h.default(this.getMessagePrefix(),this.postMessage),this.peerRecovery=new m.default(this.getMessagePrefix(),this.postMessage)}return e=t,(r=[{key:"supports",value:function(t){return u(this,void 0,void 0,i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,c.default)({capability:t}).required().string(),e.next=3,this.postMessage({type:this.getMessage("supports"),capability:t});case 3:return r=e.sent,n=r.supports,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)})))}},{key:"getModel",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_model")});case 2:return e=t.sent,r=e.model,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getSerialNumber",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_serial_number")});case 2:return e=t.sent,r=e.serialNumber,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getNetworkInfo",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.network.getActiveInfo();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getBatteryStatus",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_battery_status")});case 2:return e=t.sent,r=e.batteryStatus,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getTemperature",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_current_temperature")});case 2:return e=t.sent,r=e.currentTemperature,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getBrand",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_brand")});case 2:return e=t.sent,r=e.brand,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"resetSettings",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("reset_settings")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"factoryReset",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("factory_reset")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"getExtendedManagementUrl",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_extendedmanagement_url")});case 2:return e=t.sent,r=e.url,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setExtendedManagementUrl",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,c.default)({url:t}).string().canBeNull(),e.next=3,this.postMessage({type:this.getMessage("set_extendedmanagement_url"),url:t});case 3:case"end":return e.stop()}}),e,this)})))}},{key:"setHardwareAcceleration",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,c.default)({enabled:t}).required().boolean(),e.next=3,this.postMessage({type:this.getMessage("set_hardware_acceleration"),enabled:t});case 3:case"end":return e.stop()}}),e,this)})))}},{key:"isHardwareAccelerationEnabled",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("is_hardware_acceleration_enabled")});case 2:return e=t.sent,r=e.enabled,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getMessage",value:function(t){return this.getMessagePrefix()+"."+t}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();O.MESSAGE_PREFIX="management",e.default=O},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=r(225),c=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getType",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_application_type")});case 2:return e=t.sent,r=e.applicationType,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getVersion",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_application_version")});case 2:return e=t.sent,r=e.applicationVersion,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"upgrade",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){var n,o,a,u;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=(0,s.parseUpgradeArguments)(t,e),o=n.baseUrl,a=n.version,u=n.directUri,r.next=3,this.postMessage({type:this.getMessage("app_upgrade"),baseUrl:o,version:a,directUri:u});case 3:case"end":return r.stop()}}),r,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=c},function(t,e,r){"use strict";var n=r(578);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(s),f=["%","/","?",";","#"].concat(c),l=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(579);function m(t,e,r){if(t&&"object"==typeof t&&t instanceof i)return t;var n=new i;return n.parse(t,e,r),n}i.prototype.parse=function(t,e,r){if("string"!=typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i<t.indexOf("#")?"?":"#",s=t.split(a);s[0]=s[0].replace(/\\/g,"/");var m=t=s.join(a);if(m=m.trim(),!r&&1===t.split("#").length){var b=u.exec(m);if(b)return this.path=m,this.href=m,this.pathname=b[1],b[2]?(this.search=b[2],this.query=e?g.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var w=o.exec(m);if(w){var _=(w=w[0]).toLowerCase();this.protocol=_,m=m.substr(w.length)}if(r||w||m.match(/^\/\/[^@/]+@[^@/]+/)){var x="//"===m.substr(0,2);!x||w&&y[w]||(m=m.substr(2),this.slashes=!0)}if(!y[w]&&(x||w&&!v[w])){for(var M,E,S=-1,O=0;O<l.length;O++){-1!==(k=m.indexOf(l[O]))&&(-1===S||k<S)&&(S=k)}-1!==(E=-1===S?m.lastIndexOf("@"):m.lastIndexOf("@",S))&&(M=m.slice(0,E),m=m.slice(E+1),this.auth=decodeURIComponent(M)),S=-1;for(O=0;O<f.length;O++){var k;-1!==(k=m.indexOf(f[O]))&&(-1===S||k<S)&&(S=k)}-1===S&&(S=m.length),this.host=m.slice(0,S),m=m.slice(S),this.parseHost(),this.hostname=this.hostname||"";var L="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!L)for(var P=this.hostname.split(/\./),j=(O=0,P.length);O<j;O++){var A=P[O];if(A&&!A.match(h)){for(var R="",T=0,I=A.length;T<I;T++)A.charCodeAt(T)>127?R+="x":R+=A[T];if(!R.match(h)){var F=P.slice(0,O),N=P.slice(O+1),C=A.match(p);C&&(F.push(C[1]),N.unshift(C[2])),N.length&&(m="/"+N.join(".")+m),this.hostname=F.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),L||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",G=this.hostname||"";this.host=G+D,this.href+=this.host,L&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!d[_])for(O=0,j=c.length;O<j;O++){var q=c[O];if(-1!==m.indexOf(q)){var B=encodeURIComponent(q);B===q&&(B=escape(q)),m=m.split(q).join(B)}}var U=m.indexOf("#");-1!==U&&(this.hash=m.substr(U),m=m.slice(0,U));var z=m.indexOf("?");if(-1!==z?(this.search=m.substr(z),this.query=m.substr(z+1),e&&(this.query=g.parse(this.query)),m=m.slice(0,z)):e&&(this.search="",this.query={}),m&&(this.pathname=m),v[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var V=this.search||"";this.path=D+V}return this.href=this.format(),this},i.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(t){return this.resolveObject(m(t,!1,!0)).format()},i.prototype.resolveObject=function(t){if("string"==typeof t){var e=new i;e.parse(t,!1,!0),t=e}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),s=0;s<u.length;s++){var c=u[s];"protocol"!==c&&(r[c]=t[c])}return v[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!v[t.protocol]){for(var f=Object.keys(t),l=0;l<f.length;l++){var h=f[l];r[h]=t[h]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||y[t.protocol])r.pathname=t.pathname;else{for(var p=(t.pathname||"").split("/");p.length&&!(t.host=p.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var d=r.pathname||"",g=r.search||"";r.path=d+g}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),w=b||m||r.host&&t.pathname,_=w,x=r.pathname&&r.pathname.split("/")||[],M=(p=t.pathname&&t.pathname.split("/")||[],r.protocol&&!v[r.protocol]);if(M&&(r.hostname="",r.port=null,r.host&&(""===x[0]?x[0]=r.host:x.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),w=w&&(""===p[0]||""===x[0])),b)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,x=p;else if(p.length)x||(x=[]),x.pop(),x=x.concat(p),r.search=t.search,r.query=t.query;else if(null!=t.search){if(M)r.host=x.shift(),r.hostname=r.host,(L=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=L.shift(),r.hostname=L.shift(),r.host=r.hostname);return r.search=t.search,r.query=t.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=x.slice(-1)[0],S=(r.host||t.host||x.length>1)&&("."===E||".."===E)||""===E,O=0,k=x.length;k>=0;k--)"."===(E=x[k])?x.splice(k,1):".."===E?(x.splice(k,1),O++):O&&(x.splice(k,1),O--);if(!w&&!_)for(;O--;O)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),S&&"/"!==x.join("/").substr(-1)&&x.push("");var L,P=""===x[0]||x[0]&&"/"===x[0].charAt(0);M&&(r.hostname=P?"":x.length?x.shift():"",r.host=r.hostname,(L=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=L.shift(),r.hostname=L.shift(),r.host=r.hostname));return(w=w||r.host&&x.length)&&!P&&x.unshift(""),x.length>0?r.pathname=x.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.parse=m,e.resolve=function(t,e){return m(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?m(t,!1,!0).resolveObject(e):e},e.format=function(t){return"string"==typeof t&&(t=m(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i},function(t,e,r){(function(t,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var u,s=2147483647,c=/^xn--/,f=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,d=String.fromCharCode;function y(t){throw new RangeError(h[t])}function v(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function g(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+v((t=t.replace(l,".")).split("."),e).join(".")}function m(t){for(var e,r,n=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(r=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function b(t){return v(t,(function(t){var e="";return t>65535&&(e+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=d(t)})).join("")}function w(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function _(t,e,r){var n=0;for(t=r?p(t/700):t>>1,t+=p(t/e);t>455;n+=36)t=p(t/35);return p(n+36*t/(t+38))}function x(t){var e,r,n,i,o,a,u,c,f,l,h,d=[],v=t.length,g=0,m=128,w=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&y("not-basic"),d.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<v;){for(o=g,a=1,u=36;i>=v&&y("invalid-input"),((c=(h=t.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||c>p((s-g)/a))&&y("overflow"),g+=c*a,!(c<(f=u<=w?1:u>=w+26?26:u-w));u+=36)a>p(s/(l=36-f))&&y("overflow"),a*=l;w=_(g-o,e=d.length+1,0==o),p(g/e)>s-m&&y("overflow"),m+=p(g/e),g%=e,d.splice(g++,0,m)}return b(d)}function M(t){var e,r,n,i,o,a,u,c,f,l,h,v,g,b,x,M=[];for(v=(t=m(t)).length,e=128,r=0,o=72,a=0;a<v;++a)(h=t[a])<128&&M.push(d(h));for(n=i=M.length,i&&M.push("-");n<v;){for(u=s,a=0;a<v;++a)(h=t[a])>=e&&h<u&&(u=h);for(u-e>p((s-r)/(g=n+1))&&y("overflow"),r+=(u-e)*g,e=u,a=0;a<v;++a)if((h=t[a])<e&&++r>s&&y("overflow"),h==e){for(c=r,f=36;!(c<(l=f<=o?1:f>=o+26?26:f-o));f+=36)x=c-l,b=36-l,M.push(d(w(l+x%b,0))),c=p(x/b);M.push(d(w(c,0))),o=_(r,g,n==i),r=0,++n}++r,++e}return M.join("")}u={version:"1.4.1",ucs2:{decode:m,encode:b},decode:x,encode:M,toASCII:function(t){return g(t,(function(t){return f.test(t)?"xn--"+M(t):t}))},toUnicode:function(t){return g(t,(function(t){return c.test(t)?x(t.slice(4).toLowerCase()):t}))}},void 0===(i=function(){return u}.call(e,r,e,t))||(t.exports=i)}()}).call(this,r(71)(t),r(15))},function(t,e,r){"use strict";var n=r(580),i=r(585),o=r(142);t.exports={formats:o,parse:i,stringify:n}},function(t,e,r){"use strict";var n=r(581),i=r(227),o=r(142),a=Object.prototype.hasOwnProperty,u={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,c=Array.prototype.push,f=function(t,e){c.apply(t,s(e)?e:[e])},l=Date.prototype.toISOString,h=o.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d={},y=function t(e,r,o,a,u,c,l,h,y,v,g,m,b,w,_,x,M,E){for(var S,O=e,k=E,L=0,P=!1;void 0!==(k=k.get(d))&&!P;){var j=k.get(e);if(L+=1,void 0!==j){if(j===L)throw new RangeError("Cyclic object value");P=!0}void 0===k.get(d)&&(L=0)}if("function"==typeof v?O=v(r,O):O instanceof Date?O=b(O):"comma"===o&&s(O)&&(O=i.maybeMap(O,(function(t){return t instanceof Date?b(t):t}))),null===O){if(c)return y&&!x?y(r,p.encoder,M,"key",w):r;O=""}if("string"==typeof(S=O)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(O))return y?[_(x?r:y(r,p.encoder,M,"key",w))+"="+_(y(O,p.encoder,M,"value",w))]:[_(r)+"="+_(String(O))];var A,R=[];if(void 0===O)return R;if("comma"===o&&s(O))x&&y&&(O=i.maybeMap(O,y)),A=[{value:O.length>0?O.join(",")||null:void 0}];else if(s(v))A=v;else{var T=Object.keys(O);A=g?T.sort(g):T}var I=h?String(r).replace(/\./g,"%2E"):String(r),F=a&&s(O)&&1===O.length?I+"[]":I;if(u&&s(O)&&0===O.length)return F+"[]";for(var N=0;N<A.length;++N){var C=A[N],D="object"==typeof C&&C&&void 0!==C.value?C.value:O[C];if(!l||null!==D){var G=m&&h?String(C).replace(/\./g,"%2E"):String(C),q=s(O)?"function"==typeof o?o(F,G):F:F+(m?"."+G:"["+G+"]");E.set(e,L);var B=n();B.set(d,E),f(R,t(D,q,o,a,u,c,l,h,"comma"===o&&x&&s(O)?null:y,v,g,m,b,w,_,x,M,B))}}return R};t.exports=function(t,e){var r,i=t,c=function(t){if(!t)return p;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||p.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n,i=o.formatters[r],c=p.filter;if(("function"==typeof t.filter||s(t.filter))&&(c=t.filter),n=t.arrayFormat in u?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=void 0===t.allowDots?!0===t.encodeDotInKeys||p.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:p.addQueryPrefix,allowDots:f,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:n,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?p.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:p.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:p.encodeValuesOnly,filter:c,format:r,formatter:i,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:p.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:p.strictNullHandling}}(e);"function"==typeof c.filter?i=(0,c.filter)("",i):s(c.filter)&&(r=c.filter);var l=[];if("object"!=typeof i||null===i)return"";var h=u[c.arrayFormat],d="comma"===h&&c.commaRoundTrip;r||(r=Object.keys(i)),c.sort&&r.sort(c.sort);for(var v=n(),g=0;g<r.length;++g){var m=r[g],b=i[m];c.skipNulls&&null===b||f(l,y(b,m,h,d,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,v))}var w=l.join(c.delimiter),_=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),w.length>0?_+w:""}},function(t,e,r){"use strict";var n=r(37),i=r(96),o=r(583),a=r(226),u=r(584)||a||o;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+i(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=u()),t.set(e,r)}};return e}},function(t,e){},function(t,e,r){"use strict";var n=r(96),i=r(37),o=function(t,e,r){for(var n,i=t;null!=(n=i.next);i=n)if(n.key===e)return i.next=n.next,r||(n.next=t.next,t.next=n),n};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new i("Side channel does not contain "+n(t))},delete:function(e){var r=t&&t.next,n=function(t,e){if(t)return o(t,e,!0)}(t,e);return n&&r&&r===n&&(t=void 0),!!n},get:function(e){return function(t,e){if(t){var r=o(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!o(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var n=o(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},function(t,e,r){"use strict";var n=r(90),i=r(89),o=r(96),a=r(226),u=r(37),s=n("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),f=i("WeakMap.prototype.set",!0),l=i("WeakMap.prototype.has",!0),h=i("WeakMap.prototype.delete",!0);t.exports=s?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new u("Side channel does not contain "+o(t))},delete:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return h(t,r)}else if(a&&e)return e.delete(r);return!1},get:function(r){return s&&r&&("object"==typeof r||"function"==typeof r)&&t?c(t,r):e&&e.get(r)},has:function(r){return s&&r&&("object"==typeof r||"function"==typeof r)&&t?l(t,r):!!e&&e.has(r)},set:function(r,n){s&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new s),f(t,r,n)):a&&(e||(e=a()),e.set(r,n))}};return r}:a},function(t,e,r){"use strict";var n=r(227),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},u=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},s=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},c=function(t,e,r,o){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,u=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(a),f=c?a.slice(0,c.index):a,l=[];if(f){if(!r.plainObjects&&i.call(Object.prototype,f)&&!r.allowPrototypes)return;l.push(f)}for(var h=0;r.depth>0&&null!==(c=u.exec(a))&&h<r.depth;){if(h+=1,!r.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(c[1])}if(c){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l.push("["+a.slice(c.index)+"]")}return function(t,e,r,i){var o=0;if(t.length>0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");o=Array.isArray(e)&&e[a]?e[a].length:0}for(var u=i?e:s(e,r,o),c=t.length-1;c>=0;--c){var f,l=t[c];if("[]"===l&&r.parseArrays)f=r.allowEmptyArrays&&(""===u||r.strictNullHandling&&null===u)?[]:n.combine([],u);else{f=r.plainObjects?{__proto__:null}:{};var h="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,p=r.decodeDotInKeys?h.replace(/%2E/g,"."):h,d=parseInt(p,10);r.parseArrays||""!==p?!isNaN(d)&&l!==p&&String(d)===p&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(f=[])[d]=u:"__proto__"!==p&&(f[p]=u):f={0:u}}u=f}return u}(l,e,r,o)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?a.charset:t.charset,r=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var f="string"==typeof t?function(t,e){var r={__proto__:null},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var f=e.parameterLimit===1/0?void 0:e.parameterLimit,l=c.split(e.delimiter,e.throwOnLimitExceeded?f+1:f);if(e.throwOnLimitExceeded&&l.length>f)throw new RangeError("Parameter limit exceeded. Only "+f+" parameter"+(1===f?"":"s")+" allowed.");var h,p=-1,d=e.charset;if(e.charsetSentinel)for(h=0;h<l.length;++h)0===l[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[h]?d="utf-8":"utf8=%26%2310003%3B"===l[h]&&(d="iso-8859-1"),p=h,h=l.length);for(h=0;h<l.length;++h)if(h!==p){var y,v,g=l[h],m=g.indexOf("]="),b=-1===m?g.indexOf("="):m+1;-1===b?(y=e.decoder(g,a.decoder,d,"key"),v=e.strictNullHandling?null:""):(y=e.decoder(g.slice(0,b),a.decoder,d,"key"),v=n.maybeMap(s(g.slice(b+1),e,o(r[y])?r[y].length:0),(function(t){return e.decoder(t,a.decoder,d,"value")}))),v&&e.interpretNumericEntities&&"iso-8859-1"===d&&(v=u(String(v))),g.indexOf("[]=")>-1&&(v=o(v)?[v]:v);var w=i.call(r,y);w&&"combine"===e.duplicates?r[y]=n.combine(r[y],v):w&&"last"!==e.duplicates||(r[y]=v)}return r}(t,r):t,l=r.plainObjects?{__proto__:null}:{},h=Object.keys(f),p=0;p<h.length;++p){var d=h[p],y=c(d,f[d],r,"string"==typeof t);l=n.merge(l,y,r)}return!0===r.allowSparse?l:n.compact(l)}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=s(r(7)),f=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getVolume",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_volume")});case 2:return e=t.sent,r=e.volume,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setVolume",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,c.default)({volume:t}).required().number().min(0).max(100),e.next=3,this.postMessage({type:this.getMessage("set_volume"),volume:t});case 3:case"end":return e.stop()}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=r(228),c=r(588),f=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"get",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_auto_recovery")});case 2:if((e=t.sent).enabled){t.next=5;break}return t.abrupt("return",(0,s.pick)(e,["enabled","autoEnableTimeoutMs"]));case 5:return t.abrupt("return",(0,s.pick)(e,["enabled","healthcheckIntervalMs"]));case 6:case"end":return t.stop()}}),t,this)})))}},{key:"set",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,c.validateAutoRecoveryConfiguration)(t),e.next=3,this.postMessage(Object.assign({type:this.getMessage("set_auto_recovery")},t));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.validateAutoRecoveryConfiguration=void 0;var i=n(r(7));e.validateAutoRecoveryConfiguration=function(t){var e=(0,i.default)({configuration:t}).setError(new Error("Invalid auto recovery configuration")).required();t.enabled?e.object({enabled:"boolean",healthcheckIntervalMs:"number"}):e.object({enabled:"boolean",autoEnableTimeoutMs:"?number"})}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=s(r(7)),f=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"enable",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setDebug(!0);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"disable",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setDebug(!1);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"isEnabled",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("is_enabled")});case 2:return e=t.sent,r=e.isEnabled,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setDebug",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,c.default)({enabled:t}).required().boolean(),e.next=3,this.postMessage({type:this.getMessage("set_debug"),enabled:t});case 3:case"end":return e.stop()}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=r(225),c=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"upgrade",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){var n,o,a,u;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=(0,s.parseUpgradeArguments)(t,e),o=n.baseUrl,a=n.version,u=n.directUri,r.next=3,this.postMessage({type:this.getMessage("firmware_upgrade"),baseUrl:o,version:a,directUri:u});case 3:case"end":return r.stop()}}),r,this)})))}},{key:"getVersion",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_firmware_version")});case 2:return e=t.sent,r=e.firmwareVersion,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getType",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_firmware_type")});case 2:return e=t.sent,r=e.firmwareType,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=c},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(592),f=s(r(7)),l=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getActiveInfo",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_network_info")});case 2:return e=t.sent,r=e.networkInfo,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"listInterfaces",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_network_interfaces")});case 2:return e=t.sent,r=e.interfaces,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setManual",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return u(this,void 0,void 0,i().mark((function t(){var r,n,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof e[0]){t.next=8;break}return r=e[0],n=e[1],(0,f.default)({interfaceName:r}).required().string(),(0,f.default)({options:n}).required().object(c.VINetworkOptions),t.next=6,this.postMessage({type:this.getMessage("set_network_manual_v2"),interfaceName:r,options:n});case 6:t.next=12;break;case 8:return o=e[0],(0,f.default)({options:o}).required().object(c.VINetworkOptionsLegacy),t.next=12,this.postMessage({type:this.getMessage("set_network_manual"),options:o});case 12:case"end":return t.stop()}}),t,this)})))}},{key:"setDHCP",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return u(this,void 0,void 0,i().mark((function t(){var r,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("ethernet"!==e[0]&&"wifi"!==e[0]){t.next=7;break}return r=e[0],(0,f.default)({networkInterface:r}).required().string(c.VNetworkInterface),t.next=5,this.postMessage({type:this.getMessage("set_network_dhcp"),networkInterface:r});case 5:t.next=11;break;case 7:return n=e[0],(0,f.default)({interfaceName:n}).required().string(),t.next=11,this.postMessage({type:this.getMessage("set_network_dhcp_v2"),interfaceName:n});case 11:case"end":return t.stop()}}),t,this)})))}},{key:"disableInterface",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,f.default)({interfaceName:t}).required().string(),e.next=3,this.postMessage({type:this.getMessage("disable_network_interface"),interfaceName:t});case 3:case"end":return e.stop()}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VINetworkOptions=e.VINetworkOptionsLegacy=e.VNetworkInterface=void 0,e.VNetworkInterface=["wifi","ethernet"],e.VINetworkOptionsLegacy={interface:{string:e.VNetworkInterface},localAddress:"string",gateway:"string",netmask:"string",dns:{array:"string"}},e.VINetworkOptions={localAddress:"string",gateway:"string",netmask:"string",dns:{array:"string"}}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getInfo",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_os_info")});case 2:return e=t.sent,r=e.osInfo,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getCpuUsage",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_cpu_usage")});case 2:return e=t.sent,r=e.cpuUsage,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getMemoryUsage",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_memory_usage")});case 2:return e=t.sent,r=e.memoryUsage,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=s(r(7)),f=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"install",value:function(t,e,r,n){return u(this,void 0,void 0,i().mark((function o(){return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return(0,c.default)({baseUrl:t}).required().uri(),(0,c.default)({packageName:e}).required().string(),(0,c.default)({version:r}).required().string(),(0,c.default)({build:n}).canBeNull().required().string(),i.next=6,this.postMessage({type:this.getMessage("install_package"),baseUrl:t,packageName:e,version:r,build:n});case 6:case"end":return i.stop()}}),o,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=r(228),c=r(596),f=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"get",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_peer_recovery")});case 2:if((e=t.sent).enabled){t.next=5;break}return t.abrupt("return",(0,s.pick)(e,["enabled","autoEnableTimeoutMs"]));case 5:return t.abrupt("return",(0,s.pick)(e,["enabled","urlLauncherAddress"]));case 6:case"end":return t.stop()}}),t,this)})))}},{key:"set",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,c.validatePeerRecoveryConfiguration)(t),e.next=3,this.postMessage(Object.assign({type:this.getMessage("set_peer_recovery")},t));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=f},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.validatePeerRecoveryConfiguration=void 0;var i=n(r(7));e.validatePeerRecoveryConfiguration=function(t){var e=(0,i.default)({configuration:t}).setError(new Error("Invalid peer recovery configuration")).required();t.enabled?e.object({enabled:"boolean",urlLauncherAddress:"string"}):e.object({enabled:"boolean",autoEnableTimeoutMs:"?number"})}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return e};var t,e={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new A(n||[]);return o(a,"_invoke",{value:k(t,r,u)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&i.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,u,s){var c=p(t[o],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var a;o(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=r(598),h=f(r(7)),p=r(229),d=r(599),y=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"systemReboot",value:function(){return c(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("reboot_system")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"appRestart",value:function(){return c(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("restart_app")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"getTimers",value:function(){return c(this,void 0,void 0,a().mark((function t(){var e,r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_timers")});case 2:return e=t.sent,r=e.timers,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setTimer",value:function(t,e,r,n,o){return c(this,void 0,void 0,a().mark((function u(){var s,c,f;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(void 0!==l.TimerType[t]){a.next=2;break}throw new Error("Invalid timer type");case 2:(0,h.default)({timeOn:e}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),(0,h.default)({timeOff:r}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),(0,h.default)({weekdays:n}).required().array("string"),(0,h.default)({volume:o}).required().number().min(0).max(100),s=i(n),a.prev=7,s.s();case 9:if((c=s.n()).done){a.next=15;break}if(f=c.value,void 0!==l.TimerWeekday[f]){a.next=13;break}throw new Error("Invalid timer weekday");case 13:a.next=9;break;case 15:a.next=20;break;case 17:a.prev=17,a.t0=a.catch(7),s.e(a.t0);case 20:return a.prev=20,s.f(),a.finish(20);case 23:return a.next=25,this.postMessage({type:this.getMessage("set_timer"),timerType:t,timeOn:e,timeOff:r,weekdays:n,volume:o});case 25:case"end":return a.stop()}}),u,this,[[7,17,20,23]])})))}},{key:"unsetTimer",value:function(t){return c(this,void 0,void 0,a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===l.TimerType[t]&&console.warn("Invalid timer type"),e.next=3,this.setTimer(t,null,null,[],0);case 3:case"end":return e.stop()}}),e,this)})))}},{key:"getProprietaryTimers",value:function(){return c(this,void 0,void 0,a().mark((function t(){var e,r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_proprietary_timers")});case 2:return e=t.sent,r=e.timers,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setProprietaryTimer",value:function(t,e,r,n){return c(this,arguments,void 0,(function(t,e,r,n){var o=this,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return a().mark((function s(){var c,f,p;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:(0,h.default)({type:t}).required().string().matchRegExp(/^TIMER_\d+$/),(0,h.default)({timeOn:e}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),(0,h.default)({timeOff:r}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),(0,h.default)({weekdays:n}).required().array("string"),(0,h.default)({keepAppletRunning:u}).required().boolean(),c=i(n),a.prev=6,c.s();case 8:if((f=c.n()).done){a.next=14;break}if(p=f.value,void 0!==l.TimerWeekday[p]){a.next=12;break}throw new Error("Invalid timer weekday");case 12:a.next=8;break;case 14:a.next=19;break;case 16:a.prev=16,a.t0=a.catch(6),c.e(a.t0);case 19:return a.prev=19,c.f(),a.finish(19);case 22:return a.next=24,o.postMessage({type:o.getMessage("set_proprietary_timer"),timerType:t,timeOn:e,timeOff:r,weekdays:n,keepAppletRunning:u});case 24:case"end":return a.stop()}}),s,null,[[6,16,19,22]])}))()}))}},{key:"unsetProprietaryTimer",value:function(t){return c(this,void 0,void 0,a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.postMessage({type:this.getMessage("delete_proprietary_timer"),timerType:t});case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),e.next=9,this.setProprietaryTimer(t,null,null,[]);case 9:case"end":return e.stop()}}),e,this,[[0,5]])})))}},{key:"clearScheduledReboots",value:function(){return c(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("clear_scheduled_reboots")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"getScheduledReboots",value:function(){return c(this,void 0,void 0,a().mark((function t(){var e,r,n,o,u;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_scheduled_reboots")});case 2:e=t.sent,r=e.actions,n=i(r);try{for(n.s();!(o=n.n()).done;)(u=o.value).rule.weekdays=u.rule.weekdays.map((function(t){return(0,d.convertNumberToWeekday)(t)}))}catch(t){n.e(t)}finally{n.f()}return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"removeScheduledReboot",value:function(t){return c(this,void 0,void 0,a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,h.default)({id:t}).required().string(),e.next=3,this.postMessage({type:this.getMessage("remove_scheduled_reboot"),id:t});case 3:case"end":return e.stop()}}),e,this)})))}},{key:"setScheduledReboot",value:function(t,e){return c(this,void 0,void 0,a().mark((function r(){var n,o,u,s,c;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:(0,h.default)({weekdays:t}).required().array("string"),n=i(t),r.prev=2,n.s();case 4:if((o=n.n()).done){r.next=10;break}if(u=o.value,void 0!==p.WeekdayNamed[u]){r.next=8;break}throw new Error("Invalid weekday");case 8:r.next=4;break;case 10:r.next=15;break;case 12:r.prev=12,r.t0=r.catch(2),n.e(r.t0);case 15:return r.prev=15,n.f(),r.finish(15);case 18:return s=t.map(d.convertWeekdayToNumber),(0,h.default)({time:e}).required().string().matchRegExp(/\d{2}:\d{2}:\d{2}/).timerTime(),c={weekdays:s,time:e},r.next=23,this.postMessage({type:this.getMessage("set_scheduled_reboot"),rule:c});case 23:case"end":return r.stop()}}),r,this,[[2,12,15,18]])})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=y},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.TimerWeekday=e.TimerType=void 0,function(t){t[t.TIMER_1=0]="TIMER_1",t[t.TIMER_2=1]="TIMER_2",t[t.TIMER_3=2]="TIMER_3",t[t.TIMER_4=3]="TIMER_4",t[t.TIMER_5=4]="TIMER_5",t[t.TIMER_6=5]="TIMER_6",t[t.TIMER_7=6]="TIMER_7"}(n||(e.TimerType=n={})),function(t){t[t.sun=0]="sun",t[t.mon=1]="mon",t[t.tue=2]="tue",t[t.wed=3]="wed",t[t.thu=4]="thu",t[t.fri=5]="fri",t[t.sat=6]="sat"}(i||(e.TimerWeekday=i={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertWeekdayToNumber=function(t){return n.WeekdayNumbered[t]},e.convertNumberToWeekday=function(t){return n.WeekdayNumbered[t]};var n=r(229)},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"isEnabled",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("proxy_is_enabled")});case 2:return e=t.sent,r=e.isEnabled,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setManual",value:function(t,e,r,n){return u(this,void 0,void 0,i().mark((function o(){return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.postMessage({type:this.getMessage("proxy_set_manual"),uri:t,port:e,username:r,password:n});case 2:case"end":return i.stop()}}),o,this)})))}},{key:"disable",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("proxy_disable")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"getConnectedTo",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("proxy_get_connected_to")});case 2:return e=t.sent,r=e.connectedTo,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"enable",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setEnabled(!0);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"disable",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setEnabled(!1);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"isEnabled",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_is_remote_control_enabled")});case 2:return e=t.sent,r=e.isRemoteControlEnabled,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"lock",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.disable();case 2:case"end":return t.stop()}}),t,this)})))}},{key:"unlock",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.enable();case 2:case"end":return t.stop()}}),t,this)})))}},{key:"isLocked",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.isEnabled();case 2:return t.abrupt("return",!t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"setEnabled",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.postMessage({type:this.getMessage("set_remote_control_enabled"),enabled:t});case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(603),f=r(604),l=s(r(7)),h=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"resize",value:function(t,e,r,n,o){return u(this,void 0,void 0,i().mark((function a(){return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if((0,l.default)({baseUrl:t}).required().uri(),(0,l.default)({currentVersion:n}).required().string(),void 0!==c.Orientation[e]){i.next=4;break}throw new Error("Invalid orientation");case 4:if(void 0!==c.Resolution[r]){i.next=6;break}throw new Error("Invalid resolution");case 6:if(!o||void 0!==f.Orientation[o]){i.next=8;break}throw new Error("Invalid video orientation");case 8:return i.next=10,this.postMessage({type:this.getMessage("resize_screen"),baseUrl:t,orientation:e,resolution:r,currentVersion:n,videoOrientation:o});case 10:case"end":return i.stop()}}),a,this)})))}},{key:"getOrientation",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_screen_orientation")});case 2:return e=t.sent,r=e.screenOrientation,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setBrightness",value:function(t,e,r,n){return u(this,void 0,void 0,i().mark((function o(){return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return(0,l.default)({brightness1:e}).required().number().min(0).max(100),(0,l.default)({brightness2:n}).required().number().min(0).max(100),(0,l.default)({timeFrom1:t}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}/).timerTime(),(0,l.default)({timeFrom2:r}).canBeNull().required().string().matchRegExp(/\d{2}:\d{2}/).timerTime(),i.next=6,this.postMessage({type:this.getMessage("set_screen_brightness"),timeFrom1:t,brightness1:e,timeFrom2:r,brightness2:n});case 6:case"end":return i.stop()}}),o,this)})))}},{key:"getBrightness",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_screen_brightness")});case 2:return e=t.sent,r=e.screenBrightness,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"takeAndUploadScreenshot",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return u(this,void 0,void 0,i().mark((function t(){var r,o,a,u,s,c,f,h;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof e[0]||void 0!==e[1]){t.next=15;break}return r=e[0],(0,l.default)({uploadBaseUrl:r}).required().uri(),t.next=5,this.postMessage({type:this.getMessage("upload_screenshot"),uploadBaseUrl:r});case 5:if("string"!=typeof(o=t.sent)){t.next=10;break}return t.abrupt("return",o);case 10:if("object"!==n(o)||!("screenshotUrl"in o)){t.next=13;break}return a=o.screenshotUrl,t.abrupt("return",a);case 13:t.next=24;break;case 15:return u=e[0],s=e[1],(0,l.default)({uploadBaseUrl:u}).required().uri(),(0,l.default)({computeHash:s}).boolean(),t.next=20,this.postMessage({type:this.getMessage("upload_screenshot"),uploadBaseUrl:u,computeHash:s});case 20:return c=t.sent,f=c.screenshotUrl,h=c.aHash,t.abrupt("return",{screenshotUrl:f,aHash:h});case 24:case"end":return t.stop()}}),t,this)})))}},{key:"powerOn",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("power_on_display")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"powerOff",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("power_off_display")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"isPoweredOn",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_is_display_power_on")});case 2:return e=t.sent,r=e.isDisplayPowerOn,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getMessage",value:function(t){return this.getMessagePrefix()+"."+t}},{key:"getMessagePrefix",value:function(){return this.messagePrefix}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=h},function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.Orientation=e.Resolution=void 0,function(t){t[t.FULL_HD=0]="FULL_HD",t[t.HD_READY=1]="HD_READY"}(n||(e.Resolution=n={})),function(t){t[t.LANDSCAPE=0]="LANDSCAPE",t[t.PORTRAIT=1]="PORTRAIT",t[t.LANDSCAPE_FLIPPED=2]="LANDSCAPE_FLIPPED",t[t.PORTRAIT_FLIPPED=3]="PORTRAIT_FLIPPED",t[t.AUTO=4]="AUTO"}(i||(e.Orientation=i={}))},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.Orientation=void 0,function(t){t[t.LANDSCAPE=0]="LANDSCAPE",t[t.LANDSCAPE_FLIPPED=1]="LANDSCAPE_FLIPPED"}(n||(e.Orientation=n={}))},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=r(606),c=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"getPinCode",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_pin_code")});case 2:return e=t.sent,r=e.pinCode,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setPinCode",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,s.validatePinCode)(t),e.next=3,this.postMessage({type:this.getMessage("set_pin_code"),pinCode:t});case 3:case"end":return e.stop()}}),e,this)})))}},{key:"generateRandomPinCode",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setPinCode((0,s.generateRandomPin)());case 2:case"end":return t.stop()}}),t,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=c},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.generateRandomPin=function(){return Math.floor(1e4*Math.random()).toString().padStart(4,"0")},e.validatePinCode=function(t){if(!t.match(/^\d{4}$/))throw new i.default({kind:"appletSecurityError",message:"Invalid PIN code: ".concat(t),code:o.default.SECURITY_PIN_CODE_INVALID,suggestion:a.default.SECURITY_PIN_CODE_FORMAT})};var i=n(r(607)),o=n(r(41)),a=n(r(140))},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}function a(t,e,r){return e=u(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,[Object.assign(Object.assign({},t),{pathToDocs:e.PATH_TO_DOCS,kind:"appletError",type:t.type?t.type:"AppletSecurityError"})])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(e,t),r=e,n&&i(r.prototype,n),o&&i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(c(r(53)).default);f.PATH_TO_DOCS="/sdk/management/js-management-security",e.default=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=s(r(7)),f=r(609),l=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r},(e=[{key:"get",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_current_time_with_timezone")});case 2:return e=t.sent,r=e.currentTimeWithTimezone,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"set",value:function(t,e){return this.setManual(t,e)}},{key:"setManual",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return u(this,void 0,void 0,i().mark((function t(){var r,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e[0],n=e[1],r instanceof Date?(0,c.default)({currentDate:r}).required().date():(0,c.default)({currentDate:r}).required().object(f.VDateTime),(0,c.default)({timezone:n}).required().string(),t.next=5,this.postMessage({type:this.getMessage("set_current_time_with_timezone"),currentDate:r,timezone:n});case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setNTP",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(0,c.default)({ntpServer:t}).required().string(),(0,c.default)({timezone:e}).required().string(),r.next=4,this.postMessage({type:this.getMessage("set_ntp_time_with_timezone"),ntpServer:t,timezone:e});case 4:case"end":return r.stop()}}),r,this)})))}},{key:"getMessage",value:function(t){return this.messagePrefix+"."+t}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VDateTime=void 0,e.VDateTime={year:"number",month:"number",day:"number",hour:"number",minute:"number",second:"number"}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=r(14),f=r(611),l=s(r(7)),h=r(612),p=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.eventEmitter=new c.EventEmitter}return e=t,(r=[{key:"isClientEnabled",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("is_enabled")});case 2:return e=t.sent,r=e.isWifiEnabled,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"enableClient",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("enable")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"isAPEnabled",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("is_ap_enabled")});case 2:return e=t.sent,r=e.isWifiAPEnabled,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"enableAP",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(0,l.default)({ssid:t}).required().string(),(0,l.default)({password:e}).required().string(),r.next=4,this.postMessage({type:this.getMessage("enable_ap"),ssid:t,password:e});case 4:case"end":return r.stop()}}),r,this)})))}},{key:"disable",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("disable")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"getConnectedTo",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_connected_to")});case 2:return e=t.sent,t.abrupt("return",e||null);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"connect",value:function(t,e){return u(this,arguments,void 0,(function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i().mark((function o(){return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return(0,l.default)({ssid:t}).required().string(),void 0!==e&&(0,l.default)({password:e}).string(),(0,l.default)({options:n}).object(h.VIWifiConnectOptions),i.next=5,r.postMessage({type:r.getMessage("connect"),ssid:t,password:e,options:n});case 5:case"end":return i.stop()}}),o)}))()}))}},{key:"disconnect",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("disconnect")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"getCountry",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_country")});case 2:return e=t.sent,r=e.countryCode,t.abrupt("return",r||null);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setCountry",value:function(t){return u(this,void 0,void 0,i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,l.default)({countryCode:t}).required().string(),e.next=3,this.postMessage({type:this.getMessage("set_country"),countryCode:t});case 3:case"end":return e.stop()}}),e,this)})))}},{key:"scanDevices",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("scan")});case 2:return e=t.sent,r=e.devices,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"on",value:function(t,e){this.eventEmitter.on(t,e)}},{key:"once",value:function(t,e){this.eventEmitter.once(t,e)}},{key:"removeListener",value:function(t,e){this.eventEmitter.removeListener(t,e)}},{key:"removeAllListeners",value:function(t){t?this.eventEmitter.removeAllListeners(t):this.eventEmitter.removeAllListeners()}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("event_"+f.WifiEvent.CLIENT_ENABLED):case this.getMessage("event_"+f.WifiEvent.CLIENT_CONNECTED):case this.getMessage("event_"+f.WifiEvent.CLIENT_CONNECT_REJECTED):case this.getMessage("event_"+f.WifiEvent.CLIENT_DISCONNECTED):case this.getMessage("event_"+f.WifiEvent.AP_ENABLED):case this.getMessage("event_"+f.WifiEvent.DISABLED):var e=this.getMessage("event_"),r=t.type.substring(e.length);this.eventEmitter.emit(r)}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();p.MESSAGE_PREFIX="wifi",e.default=p},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.WifiEvent=void 0,function(t){t.CLIENT_ENABLED="client_enabled",t.CLIENT_CONNECTED="client_connected",t.CLIENT_CONNECT_REJECTED="client_connect_rejected",t.CLIENT_DISCONNECTED="client_disconnected",t.AP_ENABLED="ap_enabled",t.DISABLED="disabled"}(n||(e.WifiEvent=n={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VIWifiConnectOptions=void 0,e.VIWifiConnectOptions={hidden:"?boolean",securityType:"?string"}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"getList",value:function(){return u(this,void 0,void 0,i().mark((function t(){var e,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("get_list")});case 2:return e=t.sent,r=e.monitors,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="monitors",e.default=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=a(r(615)),s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.proximity=new u.default(this.getMessagePrefix())}return e=t,(r=[{key:"handleMessageData",value:function(t){this.proximity.handleMessageData(t)}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="sensors",e.default=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=r(14),s=a(r(7)),c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.lastDetected=!1,this.eventEmitter=new u.EventEmitter}return e=t,(r=[{key:"onStateChange",value:function(t){var e=this;return(0,s.default)({callback:t}).required().function(),this.lastDetected&&t(this.lastDetected),this.eventEmitter.addListener("change",t),function(){e.eventEmitter.removeListener("change",t)}}},{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("change"):t.detected!==this.lastDetected&&(this.lastDetected=t.detected,this.eventEmitter.emit("change",t.detected))}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();c.MESSAGE_PREFIX="proximity",e.default=c},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.createExchange=function t(e,r){var n=this,a=function(t){return[e,t].join(".")};return{messageNameToType:a,postMessage:function(t){return o(n,void 0,void 0,i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a(t.type),t=Object.assign(Object.assign({},t),{type:n}),e.abrupt("return",r(t));case 3:case"end":return e.stop()}}),e)})))},createNamespaced:function(e){return t(a(e),r)}}}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"showOSD",value:function(){return u(this,void 0,void 0,i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.postMessage({type:this.getMessage("show_osd")});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="osd",e.default=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=s(r(7)),f=s(r(619)),l=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.commandApi=e},(e=[{key:"recordItemPlayed",value:function(t){return u(this,void 0,void 0,i().mark((function e(){var r,n,o,a,u,s,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.name,n=t.customId,o=t.type,a=t.tags,u=t.fileName,s=t.playbackSuccess,l=t.errorMessage,(0,c.default)({name:r}).required().string(),(0,c.default)({customId:n}).string(),(0,c.default)({type:o}).string(["video","image","html","custom"]),(0,c.default)({tags:a}).array("string"),(0,c.default)({fileName:u}).string(),(0,c.default)({playbackSuccess:s}).boolean(),(0,c.default)({errorMessage:l}).string(),e.next=10,this.commandApi.dispatch({type:f.default.ItemPlayed,itemName:r,customId:n,itemType:o,itemTags:a,fileName:u,playbackSuccess:s,errorMessage:l});case 10:case"end":return e.stop()}}),e,this)})))}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=l},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.ItemPlayed="PoP.ItemPlayed"}(n||(n={})),e.default=n},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=a(r(621)),s=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r,this.mdc=new u.default(this.getMessagePrefix(),this.postMessage)}return e=t,(r=[{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();s.MESSAGE_PREFIX="native_commands",e.default=s},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=s(r(7)),f=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messagePrefix=e,this.postMessage=r}return e=t,(r=[{key:"sendOne",value:function(t,e,r){return u(this,void 0,void 0,i().mark((function n(){var o,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(0,c.default)({ipAddress:t}).required().string(),(0,c.default)({command:e}).required().number(),void 0!==r&&(0,c.default)({data:r}).required().array("number"),void 0===r&&(r=[]),n.next=6,this.postMessage({type:this.getMessage("send_one"),ipAddress:t,command:e,data:r});case 6:return o=n.sent,a=o.commandResponse,n.abrupt("return",a);case 9:case"end":return n.stop()}}),n,this)})))}},{key:"sendOneRaw",value:function(t,e){return u(this,void 0,void 0,i().mark((function r(){var n,o;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(0,c.default)({ipAddress:t}).required().string(),(0,c.default)({data:e}).required().array("number"),r.next=4,this.postMessage({type:this.getMessage("send_one_raw"),ipAddress:t,data:e});case 4:return n=r.sent,o=n.commandResponse,r.abrupt("return",o);case 7:case"end":return r.stop()}}),r,this)})))}},{key:"getMessage",value:function(t){return this.getMessagePrefix()+"."+t}},{key:"getMessagePrefix",value:function(){return this.messagePrefix+"."+t.MESSAGE_PREFIX}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();f.MESSAGE_PREFIX="mdc",e.default=f},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var a,u=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),c=this&&this.__importStar||(a=function(t){return(a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=a(t),n=0;n<r.length;n++)"default"!==r[n]&&u(e,t,r[n]);return s(e,t),e});Object.defineProperty(e,"__esModule",{value:!0});var f=r(230),l=c(r(623)),h=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.window=e,this.messagePrefix=r,this.connectedBaseUrl=null,this.errorsMap={},this.polyfillErrorWithStack(),this.polyfillErrorEvent(),this.interceptConsoleLogging(),this.bindErrorHandling()}return e=t,(r=[{key:"handleMessageData",value:function(t){switch(t.type){case this.getMessage("update"):this.updateConnectedBaseUrl(t.connectedBaseUrl)}}},{key:"updateConnectedBaseUrl",value:function(t){this.connectedBaseUrl=t}},{key:"interceptConsoleLogging",value:function(){var t=this;(0,f.enhanceStandardConsoleLogging)((function(e){if(t.connectedBaseUrl){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=n.map((function(t){return l.inspect(t,!0,5,!1)}));fetch("".concat(t.connectedBaseUrl,"/log"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:e,args:o})})}}))}},{key:"bindErrorHandling",value:function(){var t=this;this.window.addEventListener("error",(function(e){t.connectedBaseUrl&&fetch("".concat(t.connectedBaseUrl,"/error"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e.message,filename:e.filename,lineno:e.lineno,colno:e.colno,error:l.inspect(e.error,!0,5,!1)})})}))}},{key:"polyfillErrorWithStack",value:function(){if(void 0===new Error("test").stack){var t=this,e=Error,r=function(n){if(!(this instanceof r))return new r(n);var i;this.name="Error";try{throw new e}catch(t){i=t.stack}this.constructor=r,this.message=n,this.stack=i,t.pushError(this)};r.prototype=e.prototype,this.window.Error=r}}},{key:"polyfillErrorEvent",value:function(){var t=this;this.window.addEventListener("error",(function(e){if(void 0===e.error){var r=Object.keys(t.errorsMap).find((function(t){return-1!==e.message.indexOf(t)}));if(r){var n=t.errorsMap[r];delete t.errorsMap[r],e.error=n,console.warn("Error was polyfilled with not exact algorithm and may not be accurate",n)}}}))}},{key:"pushError",value:function(t){this.errorsMap[t.message]=t;var e=Object.keys(this.errorsMap);if(e.length>50){var r=e[0];delete this.errorsMap[r]}}},{key:"getMessage",value:function(e){return this.messagePrefix+"."+t.MESSAGE_PREFIX+"."+e}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();h.MESSAGE_PREFIX="connect",e.default=h},function(t,e,r){(function(t){var n=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},i=/%[sdj%]/g;e.format=function(t){if(!g(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(t).replace(i,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<o;s=n[++r])y(s)||!w(s)?a+=" "+s:a+=" "+u(s);return a},e.deprecate=function(r,n){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation?console.trace(n):console.error(n),i=!0}return r.apply(this,arguments)}};var o,a={};function u(t,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&e._extend(n,r),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),f(n,t,n.depth)}function s(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function c(t,e){return t}function f(t,r,n){if(t.customInspect&&r&&M(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return g(i)||(i=f(t,i,n)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(g(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(v(e))return t.stylize(""+e,"number");if(d(e))return t.stylize(""+e,"boolean");if(y(e))return t.stylize("null","null")}(t,r);if(o)return o;var a=Object.keys(r),u=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),x(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(r);if(0===a.length){if(M(r)){var s=r.name?": "+r.name:"";return t.stylize("[Function"+s+"]","special")}if(b(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return t.stylize(Date.prototype.toString.call(r),"date");if(x(r))return l(r)}var c,w="",E=!1,S=["{","}"];(p(r)&&(E=!0,S=["[","]"]),M(r))&&(w=" [Function"+(r.name?": "+r.name:"")+"]");return b(r)&&(w=" "+RegExp.prototype.toString.call(r)),_(r)&&(w=" "+Date.prototype.toUTCString.call(r)),x(r)&&(w=" "+l(r)),0!==a.length||E&&0!=r.length?n<0?b(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=E?function(t,e,r,n,i){for(var o=[],a=0,u=e.length;a<u;++a)L(e,String(a))?o.push(h(t,e,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(t,e,r,n,i,!0))})),o}(t,r,n,u,a):a.map((function(e){return h(t,r,n,u,e,E)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(c,w,S)):S[0]+w+S[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,i,o){var a,u,s;if((s=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?u=s.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):s.set&&(u=t.stylize("[Setter]","special")),L(n,i)||(a="["+i+"]"),u||(t.seen.indexOf(s.value)<0?(u=y(r)?f(t,s.value,null):f(t,s.value,r-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+u.split("\n").map((function(t){return" "+t})).join("\n")):u=t.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\d+$/))return u;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function p(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function y(t){return null===t}function v(t){return"number"==typeof t}function g(t){return"string"==typeof t}function m(t){return void 0===t}function b(t){return w(t)&&"[object RegExp]"===E(t)}function w(t){return"object"==typeof t&&null!==t}function _(t){return w(t)&&"[object Date]"===E(t)}function x(t){return w(t)&&("[object Error]"===E(t)||t instanceof Error)}function M(t){return"function"==typeof t}function E(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(r){if(m(o)&&(o=t.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=t.pid;a[r]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",r,n,t)}}else a[r]=function(){};return a[r]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=d,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=g,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=b,e.isObject=w,e.isDate=_,e.isError=x,e.isFunction=M,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(624);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var t=new Date,e=[S(t.getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":");return[t.getDate(),O[t.getMonth()],e].join(" ")}function L(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",k(),e.format.apply(e,arguments))},e.inherits=r(176),e._extend=function(t,e){if(!e||!w(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(P&&t[P]){var e;if("function"!=typeof(e=t[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,P,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),P&&Object.defineProperty(e,P,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,n(t))},e.promisify.custom=P,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,r).then((function(e){t.nextTick(a,null,e)}),(function(e){t.nextTick(j,e,a)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,n(e)),r}}).call(this,r(32))},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e,r){"use strict";function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(n,a,u,s){var c=p(t[n],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==i(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var n;a(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,n){r(t,i,e,n)}))}return n=n?n.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(i(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var u=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});var s=r(626),c=r(627),f=r(629),l=r(631),h=r(633),p=r(635),d=r(637),y=r(639),v=r(641),g=r(643),m=r(644),b=r(646),w=r(648),_=r(650),x=r(652),M=r(654),E=r(656),S=r(658),O=r(660),k=r(662),L=r(664),P=r(666),j=r(668),A=r(230),R=r(670),T=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.frontApplet=e,this.interceptConsoleLogging(),this.handleTimingLoaded(),(0,S.handleMonitoringRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,f.handleHtmlSnapshotTakingRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,l.handleOfflineCacheRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,h.handleVideoRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,c.handleFileSystemRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,p.handleOSDRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,d.handleManagementApplicationRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,y.handleManagementPowerRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,v.handleDisplayRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,m.handleManagementRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,b.handleManagementScreenRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,w.handleManagementSecurityRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,_.handleManagementAudioRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,x.handleManagementRemoteControlRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,M.handleManagementDebugRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,E.handleManagementOsRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,O.handleManagementTimeCommands)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,k.handleManagementNativeCommandsMdcRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,L.handleManagementNetworkRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,P.handleManagementPeerRecoveryRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,j.handleManagementAutoRecoveryRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet),(0,R.handleDeviceInfoRequests)(this.onCommand.bind(this),this.dispatch.bind(this),this.frontApplet)},(e=[{key:"onCommand",value:function(t){var e=this;this.frontApplet.command.onCommand((function(r){"object"===i(e.frontApplet.config)&&e.frontApplet.config.sosMonitoring&&t(r)}))}},{key:"dispatch",value:function(t){return u(this,void 0,void 0,n().mark((function e(){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("object"!==i(this.frontApplet.config)||!this.frontApplet.config.sosMonitoring){e.next=3;break}return e.next=3,this.frontApplet.command.dispatch(t);case 3:case"end":return e.stop()}}),e,this)})))}},{key:"handleTimingLoaded",value:function(){return u(this,void 0,void 0,n().mark((function t(){return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.frontApplet.onReady();case 2:return t.next=4,this.dispatch({type:s.TimingLoaded});case 4:case"end":return t.stop()}}),t,this)})))}},{key:"interceptConsoleLogging",value:function(){var t=this;(0,A.enhanceStandardConsoleLogging)((function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];t.dispatch({type:g.ConsoleLogged,level:e,messages:n})}))}}])&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();e.default=T},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimingLoaded=void 0,e.TimingLoaded="sos.Monitoring.Timing.TimingLoaded"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleFileSystemRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.FileSystemListOfStorageUnitsRequest?3:n.t0===a.FileSystemListOfInternalStorageUnitsRequest?12:n.t0===a.FileSystemListFilesRequest?21:n.t0===a.FileSystemGetFileRequest?30:n.t0===a.FileSystemExistsRequest?39:n.t0===a.FileSystemDownloadFileRequest?48:n.t0===a.FileSystemDeleteFileRequest?53:n.t0===a.FileSystemMoveFileRequest?58:n.t0===a.FileSystemGetFileChecksumRequest?63:n.t0===a.FileSystemExtractFileRequest?72:n.t0===a.FileSystemCreateDirectoryRequest?77:n.t0===a.FileSystemCreateArchiveFileRequest?82:n.t0===a.FileSystemIsDirectoryRequest?87:n.t0===a.FileSystemCopyFileRequest?96:n.t0===a.FileSystemWriteFileRequest?101:n.t0===a.FileSystemAppendFileRequest?106:n.t0===a.FileSystemReadFileRequest?111:n.t0===a.FileSystemWipeoutRequest?120:n.t0===a.FileSystemLinkRequest?125:130;break;case 3:return n.t1=e,n.t2=a.FileSystemListOfStorageUnitsResult,n.next=7,r.fileSystem.listStorageUnits();case 7:return n.t3=n.sent,n.t4={type:n.t2,storageUnits:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",130);case 12:return n.t5=e,n.t6=a.FileSystemListOfInternalStorageUnitsResult,n.next=16,r.fileSystem.listInternalStorageUnits();case 16:return n.t7=n.sent,n.t8={type:n.t6,storageUnits:n.t7},n.next=20,(0,n.t5)(n.t8);case 20:return n.abrupt("break",130);case 21:return n.t9=e,n.t10=a.FileSystemListFilesResult,n.next=25,r.fileSystem.listFiles(t.command.filePath);case 25:return n.t11=n.sent,n.t12={type:n.t10,pathList:n.t11},n.next=29,(0,n.t9)(n.t12);case 29:return n.abrupt("break",130);case 30:return n.t13=e,n.t14=a.FileSystemGetFileResult,n.next=34,r.fileSystem.getFile(t.command.filePath);case 34:return n.t15=n.sent,n.t16={type:n.t14,file:n.t15},n.next=38,(0,n.t13)(n.t16);case 38:return n.abrupt("break",130);case 39:return n.t17=e,n.t18=a.FileSystemExistsResult,n.next=43,r.fileSystem.exists(t.command.filePath);case 43:return n.t19=n.sent,n.t20={type:n.t18,result:n.t19},n.next=47,(0,n.t17)(n.t20);case 47:return n.abrupt("break",130);case 48:return n.next=50,r.fileSystem.downloadFile(t.command.filePath,t.command.sourceUri,t.command.headers);case 50:return n.next=52,e({type:a.FileSystemDownloadFileResult,result:{}});case 52:return n.abrupt("break",130);case 53:return n.next=55,r.fileSystem.deleteFile(t.command.filePath,t.command.recursive);case 55:return n.next=57,e({type:a.FileSystemDeleteFileResult,result:{}});case 57:return n.abrupt("break",130);case 58:return n.next=60,r.fileSystem.moveFile(t.command.sourceFilePath,t.command.destinationFilePath,t.command.options);case 60:return n.next=62,e({type:a.FileSystemMoveFileResult,result:{}});case 62:return n.abrupt("break",130);case 63:return n.t21=e,n.t22=a.FileSystemGetFileChecksumResult,n.next=67,r.fileSystem.getFileChecksum(t.command.filePath,t.command.hashType);case 67:return n.t23=n.sent,n.t24={type:n.t22,result:n.t23},n.next=71,(0,n.t21)(n.t24);case 71:return n.abrupt("break",130);case 72:return n.next=74,r.fileSystem.extractFile(t.command.archiveFilePath,t.command.destinationDirectionPath,t.command.method);case 74:return n.next=76,e({type:a.FileSystemExtractFileResult,result:{}});case 76:return n.abrupt("break",130);case 77:return n.next=79,r.fileSystem.createDirectory(t.command.directoryPath);case 79:return n.next=81,e({type:a.FileSystemCreateDirectoryResult,result:{}});case 81:return n.abrupt("break",130);case 82:return n.next=84,r.fileSystem.createArchive(t.command.archiveFilePath,t.command.archiveEntries);case 84:return n.next=86,e({type:a.FileSystemCreateArchiveFileResult,result:{}});case 86:return n.abrupt("break",130);case 87:return n.t25=e,n.t26=a.FileSystemIsDirectoryResult,n.next=91,r.fileSystem.isDirectory(t.command.filePath);case 91:return n.t27=n.sent,n.t28={type:n.t26,result:n.t27},n.next=95,(0,n.t25)(n.t28);case 95:return n.abrupt("break",130);case 96:return n.next=98,r.fileSystem.copyFile(t.command.sourceFilePath,t.command.destinationFilePath,t.command.options);case 98:return n.next=100,e({type:a.FileSystemCopyFileResult,result:{}});case 100:return n.abrupt("break",130);case 101:return n.next=103,r.fileSystem.writeFile(t.command.filePath,t.command.content);case 103:return n.next=105,e({type:a.FileSystemWriteFileResult,result:{}});case 105:return n.abrupt("break",130);case 106:return n.next=108,r.fileSystem.appendFile(t.command.filePath,t.command.content);case 108:return n.next=110,e({type:a.FileSystemAppendFileResult,result:{}});case 110:return n.abrupt("break",130);case 111:return n.t29=e,n.t30=a.FileSystemReadFileResult,n.next=115,r.fileSystem.readFile(t.command.filePath);case 115:return n.t31=n.sent,n.t32={type:n.t30,data:n.t31},n.next=119,(0,n.t29)(n.t32);case 119:return n.abrupt("break",130);case 120:return n.next=122,r.fileSystem.wipeout();case 122:return n.next=124,e({type:a.FileSystemWipeoutResult,result:{}});case 124:return n.abrupt("break",130);case 125:return n.next=127,r.fileSystem.link(t.command.sourceFilePath,t.command.destinationFilePath);case 127:return n.next=129,e({type:a.FileSystemLinkResult,result:{}});case 129:return n.abrupt("break",130);case 130:case"end":return n.stop()}}),n)})))}))};var a=r(628)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileSystemLinkResult=e.FileSystemLinkRequest=e.FileSystemWipeoutResult=e.FileSystemWipeoutRequest=e.FileSystemAppendFileResult=e.FileSystemAppendFileRequest=e.FileSystemGetFileResult=e.FileSystemGetFileRequest=e.FileSystemExtractFileResult=e.FileSystemCreateArchiveFileResult=e.FileSystemCreateArchiveFileRequest=e.FileSystemExtractFileRequest=e.FileSystemGetFileChecksumResult=e.FileSystemGetFileChecksumRequest=e.FileSystemCopyFileResult=e.FileSystemCopyFileRequest=e.FileSystemMoveFileResult=e.FileSystemMoveFileRequest=e.FileSystemReadFileResult=e.FileSystemReadFileRequest=e.FileSystemWriteFileResult=e.FileSystemWriteFileRequest=e.FileSystemDownloadFileResult=e.FileSystemDownloadFileRequest=e.FileSystemCreateDirectoryResult=e.FileSystemCreateDirectoryRequest=e.FileSystemDeleteFileResult=e.FileSystemDeleteFileRequest=e.FileSystemExistsResult=e.FileSystemExistsRequest=e.FileSystemIsDirectoryResult=e.FileSystemIsDirectoryRequest=e.FileSystemListFilesResult=e.FileSystemListFilesRequest=e.FileSystemListOfInternalStorageUnitsResult=e.FileSystemListOfInternalStorageUnitsRequest=e.FileSystemListOfStorageUnitsResult=e.FileSystemListOfStorageUnitsRequest=void 0,e.FileSystemListOfStorageUnitsRequest="sos.Monitoring.FileSystem.FileSystemListOfStorageUnitsRequest",e.FileSystemListOfStorageUnitsResult="sos.Monitoring.FileSystem.FileSystemListOfStorageUnitsResult",e.FileSystemListOfInternalStorageUnitsRequest="sos.Monitoring.FileSystem.FileSystemListOfInternalStorageUnitsRequest",e.FileSystemListOfInternalStorageUnitsResult="sos.Monitoring.FileSystem.FileSystemListOfInternalStorageUnitsResult",e.FileSystemListFilesRequest="sos.Monitoring.FileSystem.FileSystemListFilesRequest",e.FileSystemListFilesResult="sos.Monitoring.FileSystem.FileSystemListFilesResult",e.FileSystemIsDirectoryRequest="sos.Monitoring.FileSystem.FileSystemIsDirectoryRequest",e.FileSystemIsDirectoryResult="sos.Monitoring.FileSystem.FileSystemIsDirectoryResult",e.FileSystemExistsRequest="sos.Monitoring.FileSystem.FileSystemExistsRequest",e.FileSystemExistsResult="sos.Monitoring.FileSystem.FileSystemExistsResult",e.FileSystemDeleteFileRequest="sos.Monitoring.FileSystem.FileSystemDeleteFileRequest",e.FileSystemDeleteFileResult="sos.Monitoring.FileSystem.FileSystemDeleteFileResult",e.FileSystemCreateDirectoryRequest="sos.Monitoring.FileSystem.FileSystemCreateDirectoryRequest",e.FileSystemCreateDirectoryResult="sos.Monitoring.FileSystem.FileSystemCreateDirectoryResult",e.FileSystemDownloadFileRequest="sos.Monitoring.FileSystem.FileSystemDownloadFileRequest",e.FileSystemDownloadFileResult="sos.Monitoring.FileSystem.FileSystemDownloadFileResult",e.FileSystemWriteFileRequest="sos.Monitoring.FileSystem.FileSystemWriteFileRequest",e.FileSystemWriteFileResult="sos.Monitoring.FileSystem.FileSystemWriteFileResult",e.FileSystemReadFileRequest="sos.Monitoring.FileSystem.FileSystemReadFileRequest",e.FileSystemReadFileResult="sos.Monitoring.FileSystem.FileSystemReadFileResult",e.FileSystemMoveFileRequest="sos.Monitoring.FileSystem.FileSystemMoveFileRequest",e.FileSystemMoveFileResult="sos.Monitoring.FileSystem.FileSystemMoveFileResult",e.FileSystemCopyFileRequest="sos.Monitoring.FileSystem.FileSystemCopyFileRequest",e.FileSystemCopyFileResult="sos.Monitoring.FileSystem.FileSystemCopyFileResult",e.FileSystemGetFileChecksumRequest="sos.Monitoring.FileSystem.FileSystemGetFileChecksumRequest",e.FileSystemGetFileChecksumResult="sos.Monitoring.FileSystem.FileSystemGetFileChecksumResult",e.FileSystemExtractFileRequest="sos.Monitoring.FileSystem.FileSystemExtractFileRequest",e.FileSystemCreateArchiveFileRequest="sos.Monitoring.FileSystem.FileSystemCreateArchiveFileRequest",e.FileSystemCreateArchiveFileResult="sos.Monitoring.FileSystem.FileSystemCreateArchiveFileResult",e.FileSystemExtractFileResult="sos.Monitoring.FileSystem.FileSystemExtractFileResult",e.FileSystemGetFileRequest="sos.Monitoring.FileSystem.FileSystemGetFileRequest",e.FileSystemGetFileResult="sos.Monitoring.FileSystem.FileSystemGetFileResult",e.FileSystemAppendFileRequest="sos.Monitoring.FileSystem.FileSystemAppendFileRequest",e.FileSystemAppendFileResult="sos.Monitoring.FileSystem.FileSystemAppendFileResult",e.FileSystemWipeoutRequest="sos.Monitoring.FileSystem.FileSystemWipeoutRequest",e.FileSystemWipeoutResult="sos.Monitoring.FileSystem.FileSystemWipeoutResult",e.FileSystemLinkRequest="sos.Monitoring.FileSystem.FileSystemLinkRequest",e.FileSystemLinkResult="sos.Monitoring.FileSystem.FileSystemLinkResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleHtmlSnapshotTakingRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.TakeHtmlSnapshot?3:6;break;case 3:return n.next=5,e({type:a.HtmlSnapshotTaken,html:r.window.document.documentElement.outerHTML});case 5:return n.abrupt("break",6);case 6:case"end":return n.stop()}}),n)})))}))};var a=r(630)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HtmlSnapshotTaken=e.TakeHtmlSnapshot=void 0,e.TakeHtmlSnapshot="sos.Html.TakeHtmlSnapshot",e.HtmlSnapshotTaken="sos.Monitoring.Html.HtmlSnapshotTaken"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleOfflineCacheRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.OfflineCacheListFiles?3:n.t0===a.OfflineCacheLoadFile?12:n.t0===a.OfflineCacheGetChecksumRequest?21:n.t0===a.OfflineCacheValidateChecksumRequest?30:n.t0===a.OfflineCacheLoadOrSaveFileRequest?39:n.t0===a.OfflineCacheDeleteFileRequest?48:n.t0===a.OfflineCacheListContentRequest?53:n.t0===a.OfflineCacheLoadContentRequest?62:n.t0===a.OfflineCacheSaveContentRequest?71:n.t0===a.OfflineCacheDeleteContentRequest?76:81;break;case 3:return n.t1=e,n.t2=a.OfflineCacheFilesListed,n.next=7,r.offline.cache.listFiles();case 7:return n.t3=n.sent,n.t4={type:n.t2,fileUids:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",81);case 12:return n.t5=e,n.t6=a.OfflineCacheFileLoaded,n.next=16,r.offline.cache.loadFile(t.command.uid);case 16:return n.t7=n.sent,n.t8={type:n.t6,file:n.t7},n.next=20,(0,n.t5)(n.t8);case 20:return n.abrupt("break",81);case 21:return n.t9=e,n.t10=a.OfflineCacheGetChecksumResult,n.next=25,r.offline.cache.getChecksumFile(t.command.uid,t.command.hashType);case 25:return n.t11=n.sent,n.t12={type:n.t10,result:n.t11},n.next=29,(0,n.t9)(n.t12);case 29:return n.abrupt("break",81);case 30:return n.t13=e,n.t14=a.OfflineCacheValidateChecksumResult,n.next=34,r.offline.cache.validateChecksumFile(t.command.uid,t.command.hash,t.command.hashType);case 34:return n.t15=n.sent,n.t16={type:n.t14,result:n.t15},n.next=38,(0,n.t13)(n.t16);case 38:return n.abrupt("break",81);case 39:return n.t17=e,n.t18=a.OfflineCacheLoadOrSaveFileResult,n.next=43,r.offline.cache.loadOrSaveFile(t.command.uid,t.command.uri,t.command.headers);case 43:return n.t19=n.sent,n.t20={type:n.t18,file:n.t19},n.next=47,(0,n.t17)(n.t20);case 47:return n.abrupt("break",81);case 48:return n.next=50,r.offline.cache.deleteFile(t.command.uid);case 50:return n.next=52,e({type:a.OfflineCacheDeleteFileResult,result:{}});case 52:return n.abrupt("break",81);case 53:return n.t21=e,n.t22=a.OfflineCacheListContentResult,n.next=57,r.offline.cache.listContents();case 57:return n.t23=n.sent,n.t24={type:n.t22,result:n.t23},n.next=61,(0,n.t21)(n.t24);case 61:return n.abrupt("break",81);case 62:return n.t25=e,n.t26=a.OfflineCacheLoadContentResult,n.next=66,r.offline.cache.loadContent(t.command.uid);case 66:return n.t27=n.sent,n.t28={type:n.t26,result:n.t27},n.next=70,(0,n.t25)(n.t28);case 70:return n.abrupt("break",81);case 71:return n.next=73,r.offline.cache.saveContent(t.command.uid,t.command.content);case 73:return n.next=75,e({type:a.OfflineCacheSaveContentResult,result:{}});case 75:return n.abrupt("break",81);case 76:return n.next=78,r.offline.cache.deleteContent(t.command.uid);case 78:return n.next=80,e({type:a.OfflineCacheDeleteContentResult,result:{}});case 80:return n.abrupt("break",81);case 81:case"end":return n.stop()}}),n)})))}))};var a=r(632)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OfflineCacheDeleteContentResult=e.OfflineCacheDeleteContentRequest=e.OfflineCacheSaveContentResult=e.OfflineCacheSaveContentRequest=e.OfflineCacheLoadContentResult=e.OfflineCacheLoadContentRequest=e.OfflineCacheListContentResult=e.OfflineCacheListContentRequest=e.OfflineCacheDeleteFileResult=e.OfflineCacheDeleteFileRequest=e.OfflineCacheLoadOrSaveFileResult=e.OfflineCacheLoadOrSaveFileRequest=e.OfflineCacheValidateChecksumResult=e.OfflineCacheValidateChecksumRequest=e.OfflineCacheGetChecksumResult=e.OfflineCacheGetChecksumRequest=e.OfflineCacheFileLoaded=e.OfflineCacheLoadFile=e.OfflineCacheFilesListed=e.OfflineCacheListFiles=void 0,e.OfflineCacheListFiles="sos.Monitoring.Offline.Cache.OfflineCacheListFiles",e.OfflineCacheFilesListed="sos.Monitoring.Offline.Cache.OfflineCacheFilesListed",e.OfflineCacheLoadFile="sos.Monitoring.Offline.Cache.OfflineCacheLoadFile",e.OfflineCacheFileLoaded="sos.Monitoring.Offline.Cache.OfflineCacheFileLoaded",e.OfflineCacheGetChecksumRequest="sos.Monitoring.Offline.Cache.OfflineCacheGetChecksumRequest",e.OfflineCacheGetChecksumResult="sos.Monitoring.Offline.Cache.OfflineCacheGetChecksumResult",e.OfflineCacheValidateChecksumRequest="sos.Monitoring.Offline.Cache.OfflineCacheValidateChecksumRequest",e.OfflineCacheValidateChecksumResult="sos.Monitoring.Offline.Cache.OfflineCacheValidateChecksumResult",e.OfflineCacheLoadOrSaveFileRequest="sos.Monitoring.Offline.Cache.OfflineCacheLoadOrSaveFileRequest",e.OfflineCacheLoadOrSaveFileResult="sos.Monitoring.Offline.Cache.OfflineCacheLoadOrSaveFileResult",e.OfflineCacheDeleteFileRequest="sos.Monitoring.Offline.Cache.OfflineCacheDeleteFileRequest",e.OfflineCacheDeleteFileResult="sos.Monitoring.Offline.Cache.OfflineCacheDeleteFileResult",e.OfflineCacheListContentRequest="sos.Monitoring.Offline.Cache.OfflineCacheListContentRequest",e.OfflineCacheListContentResult="sos.Monitoring.Offline.Cache.OfflineCacheListContentResult",e.OfflineCacheLoadContentRequest="sos.Monitoring.Offline.Cache.OfflineCacheLoadContentRequest",e.OfflineCacheLoadContentResult="sos.Monitoring.Offline.Cache.OfflineCacheLoadContentResult",e.OfflineCacheSaveContentRequest="sos.Monitoring.Offline.Cache.OfflineCacheSaveContentRequest",e.OfflineCacheSaveContentResult="sos.Monitoring.Offline.Cache.OfflineCacheSaveContentResult",e.OfflineCacheDeleteContentRequest="sos.Monitoring.Offline.Cache.OfflineCacheDeleteContentRequest",e.OfflineCacheDeleteContentResult="sos.Monitoring.Offline.Cache.OfflineCacheDeleteContentResult"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.handleVideoRequests=function(t,e,r){r.video.onPlay((function(t){e(Object.assign({type:n.VideoStateChanged,state:"play"},t.srcArguments))})),r.video.onPrepare((function(t){e(Object.assign({type:n.VideoStateChanged,state:"prepare"},t.srcArguments))})),r.video.onStop((function(t){e(Object.assign({type:n.VideoStateChanged,state:"stop"},t.srcArguments))})),r.video.onPause((function(t){e(Object.assign({type:n.VideoStateChanged,state:"pause"},t.srcArguments))})),r.video.onResume((function(t){e(Object.assign({type:n.VideoStateChanged,state:"resume"},t.srcArguments))})),r.video.onEnded((function(t){e(Object.assign({type:n.VideoStateChanged,state:"ended"},t.srcArguments))})),r.video.onError((function(t){e(Object.assign({type:n.VideoStateChanged,state:"error"},t.srcArguments))}))};var n=r(634)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VideoStateChanged=void 0,e.VideoStateChanged="sos.Monitoring.Video.VideoStateChanged"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleOSDRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ShowOSDRequest?3:8;break;case 3:return n.next=5,r.osd.showOSD();case 5:return n.next=7,e({type:a.ShowOSDResult,result:{}});case 7:return n.abrupt("break",8);case 8:case"end":return n.stop()}}),n)})))}))};var a=r(636)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShowOSDResult=e.ShowOSDRequest=void 0,e.ShowOSDRequest="sos.Monitoring.OSD.ShowOSDRequest",e.ShowOSDResult="sos.Monitoring.OSD.ShowOSDResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementApplicationRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ApplicationGetTypeRequest?3:n.t0===a.ApplicationGetVersionRequest?12:n.t0===a.ApplicationUpgradeRequest?21:26;break;case 3:return n.t1=e,n.t2=a.ApplicationGetTypeResult,n.next=7,r.management.app.getType();case 7:return n.t3=n.sent,n.t4={type:n.t2,applicationType:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",26);case 12:return n.t5=e,n.t6=a.ApplicationGetVersionResult,n.next=16,r.management.app.getVersion();case 16:return n.t7=n.sent,n.t8={type:n.t6,version:n.t7},n.next=20,(0,n.t5)(n.t8);case 20:return n.abrupt("break",26);case 21:return n.next=23,e({type:a.ApplicationUpgradeResult,result:{}});case 23:return n.next=25,r.management.app.upgrade(t.command.version,t.command.baseUrl);case 25:return n.abrupt("break",26);case 26:case"end":return n.stop()}}),n)})))}))};var a=r(638)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApplicationUpgradeResult=e.ApplicationUpgradeRequest=e.ApplicationGetVersionResult=e.ApplicationGetVersionRequest=e.ApplicationGetTypeResult=e.ApplicationGetTypeRequest=void 0,e.ApplicationGetTypeRequest="sos.Monitoring.App.ApplicationGetTypeRequest",e.ApplicationGetTypeResult="sos.Monitoring.App.ApplicationGetTypeResult",e.ApplicationGetVersionRequest="sos.Monitoring.App.ApplicationGetVersionRequest",e.ApplicationGetVersionResult="sos.Monitoring.App.ApplicationGetVersionResult",e.ApplicationUpgradeRequest="sos.Monitoring.App.ApplicationUpgradeRequest",e.ApplicationUpgradeResult="sos.Monitoring.App.ApplicationUpgradeResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementPowerRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.PowerSystemRebootRequest?3:n.t0===a.PowerAppRestartRequest?8:n.t0===a.ManagementPowerGetTimersRequest?13:n.t0===a.ManagementPowerSetTimerRequest?22:n.t0===a.ManagementPowerUnsetTimerRequest?27:n.t0===a.ManagementPowerGetProprietaryTimersRequest?32:n.t0===a.ManagementPowerSetProprietaryTimerRequest?41:n.t0===a.ManagementPowerUnsetProprietaryTimerRequest?46:n.t0===a.ManagementPowerClearScheduledRebootsRequest?51:n.t0===a.ManagementPowerGetScheduledRebootsRequest?56:n.t0===a.ManagementPowerRemoveScheduledRebootRequest?65:n.t0===a.ManagementPowerSetScheduledRebootRequest?70:75;break;case 3:return n.next=5,e({type:a.PowerSystemRebootResult,result:{}});case 5:return n.next=7,r.management.power.systemReboot();case 7:return n.abrupt("break",75);case 8:return n.next=10,e({type:a.PowerAppRestartResult,result:{}});case 10:return n.next=12,r.management.power.appRestart();case 12:return n.abrupt("break",75);case 13:return n.t1=e,n.t2=a.ManagementPowerGetTimersResult,n.next=17,r.management.power.getTimers();case 17:return n.t3=n.sent,n.t4={type:n.t2,timers:n.t3},n.next=21,(0,n.t1)(n.t4);case 21:return n.abrupt("break",75);case 22:return n.next=24,r.management.power.setTimer(t.command.timerType,t.command.timeOn,t.command.timeOff,t.command.weekdays,t.command.volume);case 24:return n.next=26,e({type:a.ManagementPowerSetTimerResult,result:{}});case 26:return n.abrupt("break",75);case 27:return n.next=29,r.management.power.unsetTimer(t.command.timerType);case 29:return n.next=31,e({type:a.ManagementPowerUnsetTimerResult,result:{}});case 31:return n.abrupt("break",75);case 32:return n.t5=e,n.t6=a.ManagementPowerGetProprietaryTimersResult,n.next=36,r.management.power.getProprietaryTimers();case 36:return n.t7=n.sent,n.t8={type:n.t6,result:n.t7},n.next=40,(0,n.t5)(n.t8);case 40:return n.abrupt("break",75);case 41:return n.next=43,r.management.power.setProprietaryTimer(t.command.timerType,t.command.timeOn,t.command.timeOff,t.command.weekdays,t.command.keepAppletRunning);case 43:return n.next=45,e({type:a.ManagementPowerSetProprietaryTimerResult,result:{}});case 45:return n.abrupt("break",75);case 46:return n.next=48,r.management.power.unsetProprietaryTimer(t.command.timerType);case 48:return n.next=50,e({type:a.ManagementPowerUnsetProprietaryTimerResult,result:{}});case 50:return n.abrupt("break",75);case 51:return n.next=53,r.management.power.clearScheduledReboots();case 53:return n.next=55,e({type:a.ManagementPowerClearScheduledRebootsResult,result:{}});case 55:return n.abrupt("break",75);case 56:return n.t9=e,n.t10=a.ManagementPowerGetScheduledRebootsResult,n.next=60,r.management.power.getScheduledReboots();case 60:return n.t11=n.sent,n.t12={type:n.t10,result:n.t11},n.next=64,(0,n.t9)(n.t12);case 64:return n.abrupt("break",75);case 65:return n.next=67,r.management.power.removeScheduledReboot(t.command.id);case 67:return n.next=69,e({type:a.ManagementPowerRemoveScheduledRebootResult,result:{}});case 69:return n.abrupt("break",75);case 70:return n.next=72,r.management.power.setScheduledReboot(t.command.weekdays,t.command.time);case 72:return n.next=74,e({type:a.ManagementPowerSetScheduledRebootResult,result:{}});case 74:return n.abrupt("break",75);case 75:case"end":return n.stop()}}),n)})))}))};var a=r(640)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementPowerSetScheduledRebootResult=e.ManagementPowerSetScheduledRebootRequest=e.ManagementPowerRemoveScheduledRebootResult=e.ManagementPowerRemoveScheduledRebootRequest=e.ManagementPowerGetScheduledRebootsResult=e.ManagementPowerGetScheduledRebootsRequest=e.ManagementPowerClearScheduledRebootsResult=e.ManagementPowerClearScheduledRebootsRequest=e.ManagementPowerUnsetProprietaryTimerResult=e.ManagementPowerUnsetProprietaryTimerRequest=e.ManagementPowerSetProprietaryTimerResult=e.ManagementPowerSetProprietaryTimerRequest=e.ManagementPowerGetProprietaryTimersResult=e.ManagementPowerGetProprietaryTimersRequest=e.ManagementPowerUnsetTimerResult=e.ManagementPowerUnsetTimerRequest=e.ManagementPowerSetTimerResult=e.ManagementPowerSetTimerRequest=e.ManagementPowerGetTimersResult=e.ManagementPowerGetTimersRequest=e.PowerAppRestartResult=e.PowerAppRestartRequest=e.PowerSystemRebootResult=e.PowerSystemRebootRequest=void 0,e.PowerSystemRebootRequest="sos.Monitoring.Management.Power.PowerSystemRebootRequest",e.PowerSystemRebootResult="sos.Monitoring.Management.Power.PowerSystemRebootResult",e.PowerAppRestartRequest="sos.Monitoring.Management.Power.PowerAppRestartRequest",e.PowerAppRestartResult="sos.Monitoring.Management.Power.PowerAppRestartResult",e.ManagementPowerGetTimersRequest="sos.Monitoring.Management.Power.ManagementPowerGetTimersRequest",e.ManagementPowerGetTimersResult="sos.Monitoring.Management.Power.ManagementPowerGetTimersResult",e.ManagementPowerSetTimerRequest="sos.Monitoring.Management.Power.ManagementPowerSetTimerRequest",e.ManagementPowerSetTimerResult="sos.Monitoring.Management.Power.ManagementPowerSetTimerResult",e.ManagementPowerUnsetTimerRequest="sos.Monitoring.Management.Power.ManagementPowerUnsetTimerRequest",e.ManagementPowerUnsetTimerResult="sos.Monitoring.Management.Power.ManagementPowerUnsetTimerResult",e.ManagementPowerGetProprietaryTimersRequest="sos.Monitoring.Management.Power.ManagementPowerGetProprietaryTimersRequest",e.ManagementPowerGetProprietaryTimersResult="sos.Monitoring.Management.Power.ManagementPowerGetProprietaryTimersResult",e.ManagementPowerSetProprietaryTimerRequest="sos.Monitoring.Management.Power.ManagementPowerSetProprietaryTimerRequest",e.ManagementPowerSetProprietaryTimerResult="sos.Monitoring.Management.Power.ManagementPowerSetProprietaryTimerResult",e.ManagementPowerUnsetProprietaryTimerRequest="sos.Monitoring.Management.Power.ManagementPowerUnsetProprietaryTimerRequest",e.ManagementPowerUnsetProprietaryTimerResult="sos.Monitoring.Management.Power.ManagementPowerUnsetProprietaryTimerResult",e.ManagementPowerClearScheduledRebootsRequest="sos.Monitoring.Management.Power.ManagementPowerClearScheduledRebootsRequest",e.ManagementPowerClearScheduledRebootsResult="sos.Monitoring.Management.Power.ManagementPowerClearScheduledRebootsResult",e.ManagementPowerGetScheduledRebootsRequest="sos.Monitoring.Management.Power.ManagementPowerGetScheduledRebootsRequest",e.ManagementPowerGetScheduledRebootsResult="sos.Monitoring.Management.Power.ManagementPowerGetScheduledRebootsResult",e.ManagementPowerRemoveScheduledRebootRequest="sos.Monitoring.Management.Power.ManagementPowerRemoveScheduledRebootRequest",e.ManagementPowerRemoveScheduledRebootResult="sos.Monitoring.Management.Power.ManagementPowerRemoveScheduledRebootResult",e.ManagementPowerSetScheduledRebootRequest="sos.Monitoring.Management.Power.ManagementPowerSetScheduledRebootRequest",e.ManagementPowerSetScheduledRebootResult="sos.Monitoring.Management.Power.ManagementPowerSetScheduledRebootResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleDisplayRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.DisplaySupportsRequest?3:12;break;case 3:return n.t1=e,n.t2=a.DisplaySupportsResult,n.next=7,r.display.supports(t.command.capability);case 7:return n.t3=n.sent,n.t4={type:n.t2,supports:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",12);case 12:case"end":return n.stop()}}),n)})))}))};var a=r(642)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DisplaySupportsResult=e.DisplaySupportsRequest=void 0,e.DisplaySupportsRequest="sos.Monitoring.Display.DisplaySupportsRequest",e.DisplaySupportsResult="sos.Monitoring.Display.DisplaySupportsResult"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleLogged=void 0,e.ConsoleLogged="sos.Monitoring.Console.ConsoleLogged"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ManagementSupportsRequest?3:n.t0===a.ManagementGetModelRequest?12:n.t0===a.ManagementGetSerialNumberRequest?21:n.t0===a.ManagementGetTemperatureRequest?30:n.t0===a.ManagementGetBrandRequest?39:n.t0===a.ManagementGetBatteryStatusRequest?48:n.t0===a.ManagementResetSettingsRequest?57:n.t0===a.ManagementFactoryResetRequest?62:n.t0===a.ManagementGetExtendedManagementUrlRequest?67:n.t0===a.ManagementSetExtendedManagementUrlRequest?76:81;break;case 3:return n.t1=e,n.t2=a.ManagementSupportsResult,n.next=7,r.management.supports(t.command.capability);case 7:return n.t3=n.sent,n.t4={type:n.t2,supports:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",81);case 12:return n.t5=e,n.t6=a.ManagementGetModelResult,n.next=16,r.management.getModel();case 16:return n.t7=n.sent,n.t8={type:n.t6,model:n.t7},n.next=20,(0,n.t5)(n.t8);case 20:return n.abrupt("break",81);case 21:return n.t9=e,n.t10=a.ManagementGetSerialNumberResult,n.next=25,r.management.getSerialNumber();case 25:return n.t11=n.sent,n.t12={type:n.t10,serialNumber:n.t11},n.next=29,(0,n.t9)(n.t12);case 29:return n.abrupt("break",81);case 30:return n.t13=e,n.t14=a.ManagementGetTemperatureResult,n.next=34,r.management.getTemperature();case 34:return n.t15=n.sent,n.t16={type:n.t14,temperature:n.t15},n.next=38,(0,n.t13)(n.t16);case 38:return n.abrupt("break",81);case 39:return n.t17=e,n.t18=a.ManagementGetBrandResult,n.next=43,r.management.getBrand();case 43:return n.t19=n.sent,n.t20={type:n.t18,brand:n.t19},n.next=47,(0,n.t17)(n.t20);case 47:return n.abrupt("break",81);case 48:return n.t21=e,n.t22=a.ManagementGetBatteryStatusResult,n.next=52,r.management.getBatteryStatus();case 52:return n.t23=n.sent,n.t24={type:n.t22,status:n.t23},n.next=56,(0,n.t21)(n.t24);case 56:return n.abrupt("break",81);case 57:return n.next=59,r.management.resetSettings();case 59:return n.next=61,e({type:a.ManagementResetSettingsResult,result:{}});case 61:return n.abrupt("break",81);case 62:return n.next=64,r.management.factoryReset();case 64:return n.next=66,e({type:a.ManagementFactoryResetResult,result:{}});case 66:return n.abrupt("break",81);case 67:return n.t25=e,n.t26=a.ManagementGetExtendedManagementUrlResult,n.next=71,r.management.getExtendedManagementUrl();case 71:return n.t27=n.sent,n.t28={type:n.t26,result:n.t27},n.next=75,(0,n.t25)(n.t28);case 75:return n.abrupt("break",81);case 76:return n.next=78,r.management.setExtendedManagementUrl(t.command.url);case 78:return n.next=80,e({type:a.ManagementSetExtendedManagementUrlResult,result:{}});case 80:return n.abrupt("break",81);case 81:case"end":return n.stop()}}),n)})))}))};var a=r(645)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementSetExtendedManagementUrlResult=e.ManagementSetExtendedManagementUrlRequest=e.ManagementGetExtendedManagementUrlResult=e.ManagementGetExtendedManagementUrlRequest=e.ManagementFactoryResetResult=e.ManagementFactoryResetRequest=e.ManagementResetSettingsResult=e.ManagementResetSettingsRequest=e.ManagementGetBatteryStatusResult=e.ManagementGetBatteryStatusRequest=e.ManagementGetBrandResult=e.ManagementGetBrandRequest=e.ManagementGetTemperatureResult=e.ManagementGetTemperatureRequest=e.ManagementGetSerialNumberResult=e.ManagementGetSerialNumberRequest=e.ManagementGetModelResult=e.ManagementGetModelRequest=e.ManagementSupportsResult=e.ManagementSupportsRequest=void 0,e.ManagementSupportsRequest="sos.Monitoring.App.ManagementSupportsRequest",e.ManagementSupportsResult="sos.Monitoring.App.ManagementSupportsResult",e.ManagementGetModelRequest="sos.Monitoring.App.ManagementGetModelRequest",e.ManagementGetModelResult="sos.Monitoring.App.ManagementGetModelResult",e.ManagementGetSerialNumberRequest="sos.Monitoring.App.ManagementGetSerialNumberRequest",e.ManagementGetSerialNumberResult="sos.Monitoring.App.ManagementGetSerialNumberResult",e.ManagementGetTemperatureRequest="sos.Monitoring.App.ManagementGetTemperatureRequest",e.ManagementGetTemperatureResult="sos.Monitoring.App.ManagementGetTemperatureResult",e.ManagementGetBrandRequest="sos.Monitoring.App.ManagementGetBrandRequest",e.ManagementGetBrandResult="sos.Monitoring.App.ManagementGetBrandResult",e.ManagementGetBatteryStatusRequest="sos.Monitoring.App.ManagementGetBatteryStatusRequest",e.ManagementGetBatteryStatusResult="sos.Monitoring.App.ManagementGetBatteryStatusResult",e.ManagementResetSettingsRequest="sos.Monitoring.App.ManagementResetSettingsRequest",e.ManagementResetSettingsResult="sos.Monitoring.App.ManagementRessetSettingsResult",e.ManagementFactoryResetRequest="sos.Monitoring.App.ManagementFactoryResetRequest",e.ManagementFactoryResetResult="sos.Monitoring.App.ManagementFactoryResetResult",e.ManagementGetExtendedManagementUrlRequest="sos.Monitoring.App.ManagementGetExtendedManagementUrlRequest",e.ManagementGetExtendedManagementUrlResult="sos.Monitoring.App.ManagementGetExtendedManagementUrlResult",e.ManagementSetExtendedManagementUrlRequest="sos.Monitoring.App.ManagementSetExtendedManagementUrlRequest",e.ManagementSetExtendedManagementUrlResult="sos.Monitoring.App.ManagementSetExtendedManagementUrlResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementScreenRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){var o;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ManagementScreenResizeRequest?3:n.t0===a.ManagementScreenGetOrientationRequest?8:n.t0===a.ManagementScreenSetBrightnessRequest?17:n.t0===a.ManagementScreenGetBrightnessRequest?22:n.t0===a.ManagementScreenTakeScreenshotRequest?31:n.t0===a.ManagementScreenPowerOnRequest?37:n.t0===a.ManagementScreenPowerOffRequest?42:n.t0===a.ManagementScreenIsPoweredOnRequest?47:56;break;case 3:return n.next=5,r.management.screen.resize(t.command.baseUrl,t.command.orientation,t.command.resolution,t.command.currentVersion,t.command.videoOrientation);case 5:return n.next=7,e({type:a.ManagementScreenResizeResult,result:{}});case 7:return n.abrupt("break",56);case 8:return n.t1=e,n.t2=a.ManagementScreenGetOrientationResult,n.next=12,r.management.screen.getOrientation();case 12:return n.t3=n.sent,n.t4={type:n.t2,result:n.t3},n.next=16,(0,n.t1)(n.t4);case 16:return n.abrupt("break",56);case 17:return n.next=19,r.management.screen.setBrightness(t.command.timeFrom1,t.command.brightness1,t.command.timeFrom2,t.command.brightness2);case 19:return n.next=21,e({type:a.ManagementScreenSetBrightnessResult,result:{}});case 21:return n.abrupt("break",56);case 22:return n.t5=e,n.t6=a.ManagementScreenGetBrightnessResult,n.next=26,r.management.screen.getBrightness();case 26:return n.t7=n.sent,n.t8={type:n.t6,result:n.t7},n.next=30,(0,n.t5)(n.t8);case 30:return n.abrupt("break",56);case 31:return n.next=33,r.management.screen.takeAndUploadScreenshot(t.command.uploadBaseUrl,t.command.computeHash);case 33:return o=n.sent,n.next=36,e({type:a.ManagementScreenTakeScreenshotResult,screenshotUrl:o.screenshotUrl,aHash:o.aHash});case 36:return n.abrupt("break",56);case 37:return n.next=39,r.management.screen.powerOn();case 39:return n.next=41,e({type:a.ManagementScreenPowerOnResult,result:{}});case 41:return n.abrupt("break",56);case 42:return n.next=44,r.management.screen.powerOff();case 44:return n.next=46,e({type:a.ManagementScreenPowerOffResult,result:{}});case 46:return n.abrupt("break",56);case 47:return n.t9=e,n.t10=a.ManagementScreenIsPoweredOnResult,n.next=51,r.management.screen.isPoweredOn();case 51:return n.t11=n.sent,n.t12={type:n.t10,result:n.t11},n.next=55,(0,n.t9)(n.t12);case 55:return n.abrupt("break",56);case 56:case"end":return n.stop()}}),n)})))}))};var a=r(647)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementScreenIsPoweredOnResult=e.ManagementScreenIsPoweredOnRequest=e.ManagementScreenPowerOffResult=e.ManagementScreenPowerOffRequest=e.ManagementScreenPowerOnResult=e.ManagementScreenPowerOnRequest=e.ManagementScreenTakeScreenshotResult=e.ManagementScreenTakeScreenshotRequest=e.ManagementScreenGetBrightnessResult=e.ManagementScreenGetBrightnessRequest=e.ManagementScreenSetBrightnessResult=e.ManagementScreenSetBrightnessRequest=e.ManagementScreenGetOrientationResult=e.ManagementScreenGetOrientationRequest=e.ManagementScreenResizeResult=e.ManagementScreenResizeRequest=void 0,e.ManagementScreenResizeRequest="sos.Monitoring.Management.ManagementScreenResizeRequest",e.ManagementScreenResizeResult="sos.Monitoring.Management.ManagementScreenResizeResult",e.ManagementScreenGetOrientationRequest="sos.Monitoring.Management.ManagementScreenGetOrientationRequest",e.ManagementScreenGetOrientationResult="sos.Monitoring.Management.ManagementScreenGetOrientationResult",e.ManagementScreenSetBrightnessRequest="sos.Monitoring.Management.ManagementScreenSetBrightnessRequest",e.ManagementScreenSetBrightnessResult="sos.Monitoring.Management.ManagementScreenSetBrightnessResult",e.ManagementScreenGetBrightnessRequest="sos.Monitoring.Management.ManagementScreenGetBrightnessRequest",e.ManagementScreenGetBrightnessResult="sos.Monitoring.Management.ManagementScreenGetBrightnessResult",e.ManagementScreenTakeScreenshotRequest="sos.Monitoring.Management.ManagementScreenTakeScreenshotRequest",e.ManagementScreenTakeScreenshotResult="sos.Monitoring.Management.ManagementScreenTakeScreenshotResult",e.ManagementScreenPowerOnRequest="sos.Monitoring.Management.ManagementScreenPowerOnRequest",e.ManagementScreenPowerOnResult="sos.Monitoring.Management.ManagementScreenPowerOnResult",e.ManagementScreenPowerOffRequest="sos.Monitoring.Management.ManagementScreenPowerOffRequest",e.ManagementScreenPowerOffResult="sos.Monitoring.Management.ManagementScreenPowerOffResult",e.ManagementScreenIsPoweredOnRequest="sos.Monitoring.Management.ManagementScreenIsPoweredOnRequest",e.ManagementScreenIsPoweredOnResult="sos.Monitoring.Management.ManagementScreenIsPoweredOnResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementSecurityRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ManagementSecurityGetPinCodeRequest?3:n.t0===a.ManagementSecuritySetPinCodeRequest?12:n.t0===a.ManagementSecurityGenerateRandomPinCodeRequest?17:22;break;case 3:return n.t1=e,n.t2=a.ManagementSecurityGetPinCodeResult,n.next=7,r.management.security.getPinCode();case 7:return n.t3=n.sent,n.t4={type:n.t2,pinCode:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",22);case 12:return n.next=14,r.management.security.setPinCode(t.command.pinCode);case 14:return n.next=16,e({type:a.ManagementSecuritySetPinCodeResult,result:{}});case 16:return n.abrupt("break",22);case 17:return n.next=19,r.management.security.generateRandomPinCode();case 19:return n.next=21,e({type:a.ManagementSecurityGenerateRandomPinCodeResult,result:{}});case 21:return n.abrupt("break",22);case 22:case"end":return n.stop()}}),n)})))}))};var a=r(649)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementSecurityGenerateRandomPinCodeResult=e.ManagementSecurityGenerateRandomPinCodeRequest=e.ManagementSecuritySetPinCodeResult=e.ManagementSecuritySetPinCodeRequest=e.ManagementSecurityGetPinCodeResult=e.ManagementSecurityGetPinCodeRequest=void 0,e.ManagementSecurityGetPinCodeRequest="sos.Monitoring.Management.ManagementSecurityGetPinCodeRequest",e.ManagementSecurityGetPinCodeResult="sos.Monitoring.Management.ManagementSecurityGetPinCodeResult",e.ManagementSecuritySetPinCodeRequest="sos.Monitoring.Management.ManagementSecuritySetPinCodeRequest",e.ManagementSecuritySetPinCodeResult="sos.Monitoring.Management.ManagementSecuritySetPinCodeResult",e.ManagementSecurityGenerateRandomPinCodeRequest="sos.Monitoring.Management.ManagementSecurityGenerateRandomPinCodeRequest",e.ManagementSecurityGenerateRandomPinCodeResult="sos.Monitoring.Management.ManagementSecurityGenerateRandomPinCodeResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementAudioRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ManagementAudioGetVolumeRequest?3:n.t0===a.ManagementAudioSetVolumeRequest?12:17;break;case 3:return n.t1=e,n.t2=a.ManagementAudioGetVolumeResult,n.next=7,r.management.audio.getVolume();case 7:return n.t3=n.sent,n.t4={type:n.t2,volume:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",17);case 12:return n.next=14,r.management.audio.setVolume(t.command.volume);case 14:return n.next=16,e({type:a.ManagementAudioSetVolumeResult,result:{}});case 16:return n.abrupt("break",17);case 17:case"end":return n.stop()}}),n)})))}))};var a=r(651)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementAudioSetVolumeResult=e.ManagementAudioSetVolumeRequest=e.ManagementAudioGetVolumeResult=e.ManagementAudioGetVolumeRequest=void 0,e.ManagementAudioGetVolumeRequest="sos.Monitoring.Management.Audio.ManagementAudioGetVolumeRequest",e.ManagementAudioGetVolumeResult="sos.Monitoring.Management.Audio.ManagementAudioGetVolumeResult",e.ManagementAudioSetVolumeRequest="sos.Monitoring.Management.Audio.ManagementAudioSetVolumeRequest",e.ManagementAudioSetVolumeResult="sos.Monitoring.Management.Audio.ManagementAudioSetVolumeResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementRemoteControlRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ManagementRemoteControlEnableRequest?3:n.t0===a.ManagementRemoteControlDisableRequest?8:n.t0===a.ManagementRemoteControlIsEnabledRequest?13:n.t0===a.ManagementRemoteControlLockRequest?22:n.t0===a.ManagementRemoteControlUnlockRequest?27:n.t0===a.ManagementRemoteControlIsLockedRequest?32:41;break;case 3:return n.next=5,r.management.remoteControl.enable();case 5:return n.next=7,e({type:a.ManagementRemoteControlEnableResult,result:{}});case 7:return n.abrupt("break",41);case 8:return n.next=10,r.management.remoteControl.disable();case 10:return n.next=12,e({type:a.ManagementRemoteControlDisableResult,result:{}});case 12:return n.abrupt("break",41);case 13:return n.t1=e,n.t2=a.ManagementRemoteControlIsEnabledResult,n.next=17,r.management.remoteControl.isEnabled();case 17:return n.t3=n.sent,n.t4={type:n.t2,result:n.t3},n.next=21,(0,n.t1)(n.t4);case 21:return n.abrupt("break",41);case 22:return n.next=24,r.management.remoteControl.lock();case 24:return n.next=26,e({type:a.ManagementRemoteControlLockResult,result:{}});case 26:return n.abrupt("break",41);case 27:return n.next=29,r.management.remoteControl.unlock();case 29:return n.next=31,e({type:a.ManagementRemoteControlUnlockResult,result:{}});case 31:return n.abrupt("break",41);case 32:return n.t5=e,n.t6=a.ManagementRemoteControlIsLockedResult,n.next=36,r.management.remoteControl.isLocked();case 36:return n.t7=n.sent,n.t8={type:n.t6,result:n.t7},n.next=40,(0,n.t5)(n.t8);case 40:return n.abrupt("break",41);case 41:case"end":return n.stop()}}),n)})))}))};var a=r(653)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementRemoteControlIsLockedResult=e.ManagementRemoteControlIsLockedRequest=e.ManagementRemoteControlUnlockResult=e.ManagementRemoteControlUnlockRequest=e.ManagementRemoteControlLockResult=e.ManagementRemoteControlLockRequest=e.ManagementRemoteControlIsEnabledResult=e.ManagementRemoteControlIsEnabledRequest=e.ManagementRemoteControlDisableResult=e.ManagementRemoteControlDisableRequest=e.ManagementRemoteControlEnableResult=e.ManagementRemoteControlEnableRequest=void 0,e.ManagementRemoteControlEnableRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlEnableRequest",e.ManagementRemoteControlEnableResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlEnableResult",e.ManagementRemoteControlDisableRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlDisableRequest",e.ManagementRemoteControlDisableResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlDisableResult",e.ManagementRemoteControlIsEnabledRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlIsEnabledRequest",e.ManagementRemoteControlIsEnabledResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlIsEnabledResult",e.ManagementRemoteControlLockRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlLockRequest",e.ManagementRemoteControlLockResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlLockResult",e.ManagementRemoteControlUnlockRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlUnlockRequest",e.ManagementRemoteControlUnlockResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlUnlockResult",e.ManagementRemoteControlIsLockedRequest="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlIsLockedRequest",e.ManagementRemoteControlIsLockedResult="sos.Monitoring.Management.RemoteControl.ManagementRemoteControlIsLockedResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementDebugRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ManagementDebugEnableRequest?3:n.t0===a.ManagementDebugDisableRequest?8:n.t0===a.ManagementDebugIsEnabledRequest?13:22;break;case 3:return n.next=5,r.management.debug.enable();case 5:return n.next=7,e({type:a.ManagementDebugEnableResult,result:{}});case 7:return n.abrupt("break",22);case 8:return n.next=10,r.management.debug.disable();case 10:return n.next=12,e({type:a.ManagementDebugDisableResult,result:{}});case 12:return n.abrupt("break",22);case 13:return n.t1=e,n.t2=a.ManagementDebugIsEnabledResult,n.next=17,r.management.debug.isEnabled();case 17:return n.t3=n.sent,n.t4={type:n.t2,result:n.t3},n.next=21,(0,n.t1)(n.t4);case 21:return n.abrupt("break",22);case 22:case"end":return n.stop()}}),n)})))}))};var a=r(655)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementDebugIsEnabledResult=e.ManagementDebugIsEnabledRequest=e.ManagementDebugDisableResult=e.ManagementDebugDisableRequest=e.ManagementDebugEnableResult=e.ManagementDebugEnableRequest=void 0,e.ManagementDebugEnableRequest="sos.Monitoring.Management.Debug.ManagementDebugEnableRequest",e.ManagementDebugEnableResult="sos.Monitoring.Management.Debug.ManagementDebugEnableResult",e.ManagementDebugDisableRequest="sos.Monitoring.Management.Debug.ManagementDebugDisableRequest",e.ManagementDebugDisableResult="sos.Monitoring.Management.Debug.ManagementDebugDisableResult",e.ManagementDebugIsEnabledRequest="sos.Monitoring.Management.Debug.ManagementDebugIsEnabledRequest",e.ManagementDebugIsEnabledResult="sos.Monitoring.Management.Debug.ManagementDebugIsEnabledResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementOsRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ManagementOsGetInfoRequest?3:n.t0===a.ManagementOsGetCpuUsageRequest?12:n.t0===a.ManagementOsGetMemoryUsageRequest?21:30;break;case 3:return n.t1=e,n.t2=a.ManagementOsGetInfoResult,n.next=7,r.management.os.getInfo();case 7:return n.t3=n.sent,n.t4={type:n.t2,result:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",30);case 12:return n.t5=e,n.t6=a.ManagementOsGetCpuUsageResult,n.next=16,r.management.os.getCpuUsage();case 16:return n.t7=n.sent,n.t8={type:n.t6,result:n.t7},n.next=20,(0,n.t5)(n.t8);case 20:return n.abrupt("break",30);case 21:return n.t9=e,n.t10=a.ManagementOsGetMemoryUsageResult,n.next=25,r.management.os.getMemoryUsage();case 25:return n.t11=n.sent,n.t12={type:n.t10,result:n.t11},n.next=29,(0,n.t9)(n.t12);case 29:return n.abrupt("break",30);case 30:case"end":return n.stop()}}),n)})))}))};var a=r(657)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementOsGetMemoryUsageResult=e.ManagementOsGetMemoryUsageRequest=e.ManagementOsGetCpuUsageResult=e.ManagementOsGetCpuUsageRequest=e.ManagementOsGetInfoResult=e.ManagementOsGetInfoRequest=void 0,e.ManagementOsGetInfoRequest="sos.Monitoring.Management.Os.ManagementOsGetInfoRequest",e.ManagementOsGetInfoResult="sos.Monitoring.Management.Os.ManagementOsGetInfoResult",e.ManagementOsGetCpuUsageRequest="sos.Monitoring.Management.Os.ManagementOsGetCpuUsageRequest",e.ManagementOsGetCpuUsageResult="sos.Monitoring.Management.Os.ManagementOsGetCpuUsageResult",e.ManagementOsGetMemoryUsageRequest="sos.Monitoring.Management.Os.ManagementOsGetMemoryUsageRequest",e.ManagementOsGetMemoryUsageResult="sos.Monitoring.Management.Os.ManagementOsGetMemoryUsageResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleMonitoringRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.EnableMonitoring?3:n.t0===a.DisableMonitoring?5:n.t0===a.AppletRefreshRequest?7:n.t0===a.AppletRestoreRequest?12:16;break;case 3:return r.config.sosMonitoring=!0,n.abrupt("break",16);case 5:return r.config.sosMonitoring=!1,n.abrupt("break",16);case 7:return n.next=9,r.refresh();case 9:return n.next=11,e({type:a.AppletRefreshResult,result:{}});case 11:return n.abrupt("break",16);case 12:return n.next=14,e({type:a.AppletRestoreResult,result:{}});case 14:return r.restore(),n.abrupt("break",16);case 16:case"end":return n.stop()}}),n)})))}))};var a=r(659)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AppletRestoreResult=e.AppletRestoreRequest=e.AppletRefreshResult=e.AppletRefreshRequest=e.DisableMonitoring=e.EnableMonitoring=void 0,e.EnableMonitoring="sos.Monitoring.EnableMonitoring",e.DisableMonitoring="sos.Monitoring.DisableMonitoring",e.AppletRefreshRequest="sos.Monitoring.AppletRefreshRequest",e.AppletRefreshResult="sos.Monitoring.AppletRefreshResult",e.AppletRestoreRequest="sos.Monitoring.AppletRestoreRequest",e.AppletRestoreResult="sos.Monitoring.AppletRestoreResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementTimeCommands=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ManagementTimeGetTimeRequest?3:n.t0===a.ManagementTimeSetManualRequest?12:n.t0===a.ManagementTimeSetNTPRequest?17:22;break;case 3:return n.t1=e,n.t2=a.ManagementTimeGetTimeResult,n.next=7,r.management.time.get();case 7:return n.t3=n.sent,n.t4={type:n.t2,result:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",22);case 12:return n.next=14,e({type:a.ManagementTimeSetManualResult,result:{}});case 14:return n.next=16,r.management.time.setManual(t.command.dateTime,t.command.timezone);case 16:return n.abrupt("break",22);case 17:return n.next=19,e({type:a.ManagementTimeSetNTPResult,result:{}});case 19:return n.next=21,r.management.time.setNTP(t.command.ntpServer,t.command.timezone);case 21:return n.abrupt("break",22);case 22:case"end":return n.stop()}}),n)})))}))};var a=r(661)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementTimeSetNTPResult=e.ManagementTimeSetNTPRequest=e.ManagementTimeSetManualResult=e.ManagementTimeSetManualRequest=e.ManagementTimeGetTimeResult=e.ManagementTimeGetTimeRequest=void 0,e.ManagementTimeGetTimeRequest="sos.Monitoring.Management.ManagementTimeGetTimeRequest",e.ManagementTimeGetTimeResult="sos.Monitoring.Management.ManagementTimeGetTimeResult",e.ManagementTimeSetManualRequest="sos.Monitoring.Management.ManagementTimeSetManualRequest",e.ManagementTimeSetManualResult="sos.Monitoring.Management.ManagementTimeSetManualResult",e.ManagementTimeSetNTPRequest="sos.Monitoring.Management.ManagementTimeSetNTPRequest",e.ManagementTimeSetNTPResult="sos.Monitoring.Management.ManagementTimeSetNTPResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementNativeCommandsMdcRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ManagementNativeCommandsMdcSendOneRequest?3:12;break;case 3:return n.t1=e,n.t2=a.ManagementNativeCommandsMdcSendOneResult,n.next=7,r.native.mdc.sendOne(t.command.ipAddress,t.command.codes,t.command.data);case 7:return n.t3=n.sent,n.t4={type:n.t2,result:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",12);case 12:case"end":return n.stop()}}),n)})))}))};var a=r(663)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementNativeCommandsMdcSendOneResult=e.ManagementNativeCommandsMdcSendOneRequest=void 0,e.ManagementNativeCommandsMdcSendOneRequest="sos.Monitoring.ManagementNativeCommandsMdcSendOneRequest",e.ManagementNativeCommandsMdcSendOneResult="sos.Monitoring.ManagementNativeCommandsMdcSendOneResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementNetworkRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ManagementNetworkListInterfacesRequest?3:n.t0===a.ManagementNetworkSetManualRequest?12:n.t0===a.ManagementNetworkSetDHCPServerRequest?17:n.t0===a.ManagementNetworkDisableInterfaceRequest?22:27;break;case 3:return n.t1=e,n.t2=a.ManagementNetworkListInterfacesResult,n.next=7,r.management.network.listInterfaces();case 7:return n.t3=n.sent,n.t4={type:n.t2,result:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",27);case 12:return n.next=14,r.management.network.setManual(t.command.interfaceName,t.command.options);case 14:return n.next=16,e({type:a.ManagementNetworkSetManualResult,result:{}});case 16:return n.abrupt("break",27);case 17:return n.next=19,r.management.network.setDHCP(t.command.interfaceName);case 19:return n.next=21,e({type:a.ManagementNetworkSetDHCPServerResult,result:{}});case 21:return n.abrupt("break",27);case 22:return n.next=24,r.management.network.disableInterface(t.command.interfaceName);case 24:return n.next=26,e({type:a.ManagementNetworkDisableInterfaceResult,result:{}});case 26:return n.abrupt("break",27);case 27:case"end":return n.stop()}}),n)})))}))};var a=r(665)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementNetworkDisableInterfaceResult=e.ManagementNetworkDisableInterfaceRequest=e.ManagementNetworkSetDHCPServerResult=e.ManagementNetworkSetDHCPServerRequest=e.ManagementNetworkSetManualResult=e.ManagementNetworkSetManualRequest=e.ManagementNetworkListInterfacesResult=e.ManagementNetworkListInterfacesRequest=void 0,e.ManagementNetworkListInterfacesRequest="sos.Monitoring.Management.Network.ListInterfacesRequest",e.ManagementNetworkListInterfacesResult="sos.Monitoring.Management.Network.ListInterfacesResult",e.ManagementNetworkSetManualRequest="sos.Monitoring.Management.Network.SetManualRequest",e.ManagementNetworkSetManualResult="sos.Monitoring.Management.Network.SetManualResult",e.ManagementNetworkSetDHCPServerRequest="sos.Monitoring.Management.Network.SetDHCPServerRequest",e.ManagementNetworkSetDHCPServerResult="sos.Monitoring.Management.Network.SetDHCPServerResult",e.ManagementNetworkDisableInterfaceRequest="sos.Monitoring.Management.Network.DisableInterfaceRequest",e.ManagementNetworkDisableInterfaceResult="sos.Monitoring.Management.Network.DisableInterfaceResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementPeerRecoveryRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ManagementPeerRecoveryGetRequest?3:n.t0===a.ManagementPeerRecoverySetRequest?12:17;break;case 3:return n.t1=e,n.t2=a.ManagementPeerRecoveryGetResult,n.next=7,r.management.peerRecovery.get();case 7:return n.t3=n.sent,n.t4={type:n.t2,result:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",17);case 12:return n.next=14,r.management.peerRecovery.set(t.command.configuration);case 14:return n.next=16,e({type:a.ManagementPeerRecoverySetResult,result:{}});case 16:return n.abrupt("break",17);case 17:case"end":return n.stop()}}),n)})))}))};var a=r(667)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementPeerRecoveryGetResult=e.ManagementPeerRecoveryGetRequest=e.ManagementPeerRecoverySetResult=e.ManagementPeerRecoverySetRequest=void 0,e.ManagementPeerRecoverySetRequest="sos.Monitoring.Management.ManagementPeerRecoverySetRequest",e.ManagementPeerRecoverySetResult="sos.Monitoring.Management.ManagementPeerRecoverySetResult",e.ManagementPeerRecoveryGetRequest="sos.Monitoring.Management.ManagementPeerRecoveryGetRequest",e.ManagementPeerRecoveryGetResult="sos.Monitoring.Management.ManagementPeerRecoveryGetResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleManagementAutoRecoveryRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.ManagementAutoRecoveryGetRequest?3:n.t0===a.ManagementAutoRecoverySetRequest?12:17;break;case 3:return n.t1=e,n.t2=a.ManagementAutoRecoveryGetResult,n.next=7,r.management.autoRecovery.get();case 7:return n.t3=n.sent,n.t4={type:n.t2,result:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",17);case 12:return n.next=14,r.management.autoRecovery.set(t.command.configuration);case 14:return n.next=16,e({type:a.ManagementAutoRecoverySetResult,result:{}});case 16:return n.abrupt("break",17);case 17:case"end":return n.stop()}}),n)})))}))};var a=r(669)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementAutoRecoverySetResult=e.ManagementAutoRecoverySetRequest=e.ManagementAutoRecoveryGetResult=e.ManagementAutoRecoveryGetRequest=void 0,e.ManagementAutoRecoveryGetRequest="sos.Monitoring.Management.ManagementAutoRecoveryGetRequest",e.ManagementAutoRecoveryGetResult="sos.Monitoring.Management.ManagementAutoRecoveryGetResult",e.ManagementAutoRecoverySetRequest="sos.Monitoring.Management.ManagementAutoRecoverySetRequest",e.ManagementAutoRecoverySetResult="sos.Monitoring.Management.ManagementAutoRecoverySetResult"},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:k(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",g={};function m(){}function b(){}function w(){}var _={};l(_,s,(function(){return this}));var x=Object.getPrototypeOf,M=x&&x(x(R([])));M&&M!==r&&o.call(M,s)&&(_=M);var E=w.prototype=m.prototype=Object.create(_);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,a,u,s){var c=p(t[i],t,a);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var i=d;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var u=n.delegate;if(u){var s=L(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(o.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=w,a(E,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,f,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},S(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,f,"Generator"),l(E,s,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return u.type="throw",u.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;j(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.handleDeviceInfoRequests=function(t,e,r){var n=this;t((function(t){return o(n,void 0,void 0,i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=t.command.type,n.next=n.t0===a.DeviceInfoGetLocationRequest?3:n.t0===a.DeviceInfoGetOrganizationTagsRequest?12:n.t0===a.DeviceInfoGetDeviceNameRequest?21:30;break;case 3:return n.t1=e,n.t2=a.DeviceInfoGetLocationResult,n.next=7,r.deviceInfo.getLocation();case 7:return n.t3=n.sent,n.t4={type:n.t2,result:n.t3},n.next=11,(0,n.t1)(n.t4);case 11:return n.abrupt("break",30);case 12:return n.t5=e,n.t6=a.DeviceInfoGetOrganizationTagsResult,n.next=16,r.deviceInfo.getOrganizationTags();case 16:return n.t7=n.sent,n.t8={type:n.t6,result:n.t7},n.next=20,(0,n.t5)(n.t8);case 20:return n.abrupt("break",30);case 21:return n.t9=e,n.t10=a.DeviceInfoGetDeviceNameResult,n.next=25,r.deviceInfo.getDeviceName();case 25:return n.t11=n.sent,n.t12={type:n.t10,result:n.t11},n.next=29,(0,n.t9)(n.t12);case 29:return n.abrupt("break",30);case 30:case"end":return n.stop()}}),n)})))}))};var a=r(671)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DeviceInfoGetDeviceNameResult=e.DeviceInfoGetDeviceNameRequest=e.DeviceInfoGetOrganizationTagsResult=e.DeviceInfoGetOrganizationTagsRequest=e.DeviceInfoGetLocationResult=e.DeviceInfoGetLocationRequest=void 0,e.DeviceInfoGetLocationRequest="sos.Monitoring.DeviceInfo.GetLocationRequest",e.DeviceInfoGetLocationResult="sos.Monitoring.DeviceInfo.GetLocationResult",e.DeviceInfoGetOrganizationTagsRequest="sos.Monitoring.DeviceInfo.GetOrganizationTagsRequest",e.DeviceInfoGetOrganizationTagsResult="sos.Monitoring.DeviceInfo.GetOrganizationTagsResult",e.DeviceInfoGetDeviceNameRequest="sos.Monitoring.DeviceInfo.GetNameRequest",e.DeviceInfoGetDeviceNameResult="sos.Monitoring.DeviceInfo.GetNameResult"},function(t,e,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||(n=function(t){return(n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e})(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),a=0;a<r.length;a++)"default"!==r[a]&&i(e,t,r[a]);return o(e,t),e});Object.defineProperty(e,"__esModule",{value:!0}),e.fpath=void 0;var u=a(r(673));e.fpath={basename:function(t,e){return u.basename(t.filePath,e)},dirname:function(t){var e=u.dirname(t.filePath);return"."===e&&(e=""),{filePath:e,storageUnit:t.storageUnit}},extname:function(t){return u.extname(t.filePath)},isAbsolute:function(t){return!0},join:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return{filePath:u.join.apply(u,[t.filePath].concat(r)),storageUnit:t.storageUnit}},safeJoin:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return{filePath:t.filePath+u.resolve.apply(u,["/"].concat(r)),storageUnit:t.storageUnit}},normalize:function(t){return{filePath:u.normalize(t.filePath),storageUnit:t.storageUnit}},resolve:function(t){for(var r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return(r=e.fpath).join.apply(r,[t].concat(i))},sep:u.sep,concat:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return{filePath:(e=t.filePath).concat.apply(e,n),storageUnit:t.storageUnit}},stringify:function(t){return u.join("[".concat(t.storageUnit.type,"]"),t.filePath)},path:u}},function(t,e,r){"use strict";(function(e){function r(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,e){for(var r,n="",i=0,o=-1,a=0,u=0;u<=t.length;++u){if(u<t.length)r=t.charCodeAt(u);else{if(47===r)break;r=47}if(47===r){if(o===u-1||1===a);else if(o!==u-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",i=0):i=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),o=u,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=u,a=0;continue}e&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+t.slice(o+1,u):n=t.slice(o+1,u),i=u-o-1;o=u,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var i={resolve:function(){for(var t,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var u;a>=0?u=arguments[a]:(void 0===t&&(t=e.cwd()),u=t),r(u),0!==u.length&&(i=u+"/"+i,o=47===u.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(t){if(r(t),0===t.length)return".";var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!e)).length||e||(t="."),t.length>0&&i&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return r(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];r(n),n.length>0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":i.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e)return"";if((t=i.resolve(t))===(e=i.resolve(e)))return"";for(var n=1;n<t.length&&47===t.charCodeAt(n);++n);for(var o=t.length,a=o-n,u=1;u<e.length&&47===e.charCodeAt(u);++u);for(var s=e.length-u,c=a<s?a:s,f=-1,l=0;l<=c;++l){if(l===c){if(s>c){if(47===e.charCodeAt(u+l))return e.slice(u+l+1);if(0===l)return e.slice(u+l)}else a>c&&(47===t.charCodeAt(n+l)?f=l:0===l&&(f=0));break}var h=t.charCodeAt(n+l);if(h!==e.charCodeAt(u+l))break;47===h&&(f=l)}var p="";for(l=n+f+1;l<=o;++l)l!==o&&47!==t.charCodeAt(l)||(0===p.length?p+="..":p+="/..");return p.length>0?p+e.slice(u+f):(u+=f,47===e.charCodeAt(u)&&++u,e.slice(u))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":t.slice(0,i)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');r(t);var n,i=0,o=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var u=e.length-1,s=-1;for(n=t.length-1;n>=0;--n){var c=t.charCodeAt(n);if(47===c){if(!a){i=n+1;break}}else-1===s&&(a=!1,s=n+1),u>=0&&(c===e.charCodeAt(u)?-1==--u&&(o=n):(u=-1,o=s))}return i===o?o=s:-1===o&&(o=t.length),t.slice(i,o)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":t.slice(i,o)},extname:function(t){r(t);for(var e=-1,n=0,i=-1,o=!0,a=0,u=t.length-1;u>=0;--u){var s=t.charCodeAt(u);if(47!==s)-1===i&&(o=!1,i=u+1),46===s?-1===e?e=u:1!==a&&(a=1):-1!==e&&(a=-1);else if(!o){n=u+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===n+1?"":t.slice(e,i)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}("/",t)},parse:function(t){r(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,i=t.charCodeAt(0),o=47===i;o?(e.root="/",n=1):n=0;for(var a=-1,u=0,s=-1,c=!0,f=t.length-1,l=0;f>=n;--f)if(47!==(i=t.charCodeAt(f)))-1===s&&(c=!1,s=f+1),46===i?-1===a?a=f:1!==l&&(l=1):-1!==a&&(l=-1);else if(!c){u=f+1;break}return-1===a||-1===s||0===l||1===l&&a===s-1&&a===u+1?-1!==s&&(e.base=e.name=0===u&&o?t.slice(1,s):t.slice(u,s)):(0===u&&o?(e.name=t.slice(1,a),e.base=t.slice(1,s)):(e.name=t.slice(u,a),e.base=t.slice(u,s)),e.ext=t.slice(a,s)),u>0?e.dir=t.slice(0,u-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i}).call(this,r(32))}])}));
21
21
  //# sourceMappingURL=bundle.js.map