(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92888],{8417:function(t,e,n){"use strict";function r(t){if(t.sheet)return t.sheet;for(var e=0;e0?p(k,--E):0,w--,10===A&&(w=1,_--),A}function C(){return A=E2||L(A)>3?"":" "}function V(t,e){for(;--e&&C()&&!(A<48)&&!(A>102)&&(!(A>57)||!(A<65))&&(!(A>70)||!(A<97)););return I(t,P()+(e<6&&32==R()&&32==C()))}function U(t){for(;C();)switch(A){case t:return E;case 34:case 39:34!==t&&39!==t&&U(A);break;case 40:41===t&&U(t);break;case 92:C()}return E}function G(t,e){for(;C();)if(t+A===57)break;else if(t+A===84&&47===R())break;return"/*"+I(e,E-1)+"*"+u(47===t?t:C())}function F(t){for(;!L(R());)C();return I(t,E)}var q="-ms-",z="-moz-",H="-webkit-",W="comm",K="rule",Z="decl",Y="@import",J="@keyframes",$="@layer";function X(t,e){for(var n="",r=m(t),i=0;i0&&b(I)-v&&y(g>32?ta(I+";",r,n,v-1):ta(d(I," ","")+";",r,n,v-2),c);break;case 59:I+=";";default:if(y(M=ti(I,e,n,f,l,i,s,k,x=[],O=[],v),o),123===A){if(0===l)tr(I,e,M,M,x,o,v,s,O);else switch(99===m&&110===p(I,3)?100:m){case 100:case 108:case 109:case 115:tr(t,M,M,r&&y(ti(t,M,M,0,0,i,s,k,i,x=[],v),O),i,O,v,s,r?x:O);break;default:tr(I,M,M,M,[""],O,0,s,O)}}}f=l=g=0,w=E=1,k=I="",v=a;break;case 58:v=1+b(I),g=_;default:if(w<1){if(123==A)--w;else if(125==A&&0==w++&&125==T())continue}switch(I+=u(A),A*w){case 38:E=l>0?1:(I+="\f",-1);break;case 44:s[f++]=(b(I)-1)*E,E=1;break;case 64:45===R()&&(I+=D(C())),m=R(),l=v=b(k=I+=F(P())),A++;break;case 45:45===_&&2==b(I)&&(w=0)}}return o}function ti(t,e,n,r,i,o,u,s,c,l,h){for(var p=i-1,b=0===i?o:[""],y=m(b),g=0,_=0,w=0;g0?b[S]+" "+E:d(E,/&\f/g,b[S])))&&(c[w++]=A);return x(t,e,n,0===i?K:s,c,l,h)}function to(t,e,n){return x(t,e,n,W,u(M()),v(t,2,-2),0)}function ta(t,e,n,r){return x(t,e,n,Z,v(t,0,r),v(t,r+1,-1),r)}var tu=function(t,e,n){for(var r=0,i=0;r=i,i=R(),38===r&&12===i&&(e[n]=1),!L(i);)C();return I(t,E)},ts=function(t,e){var n=-1,r=44;do switch(L(r)){case 0:38===r&&12===R()&&(e[n]=1),t[n]+=tu(E-1,e,n);break;case 2:t[n]+=D(r);break;case 4:if(44===r){t[++n]=58===R()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=u(r)}while(r=C());return t},tc=function(t,e){return N(ts(j(t),e))},tf=new WeakMap,tl=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,r=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||tf.get(n))&&!r){tf.set(t,!0);for(var i=[],o=tc(e,i),a=n.props,u=0,s=0;u6)switch(p(t,e+1)){case 109:if(45!==p(t,e+4))break;case 102:return d(t,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+z+(108==p(t,e+3)?"$3":"$2-$3"))+t;case 115:return~h(t,"stretch")?th(d(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==p(t,e+1))break;case 6444:switch(p(t,b(t)-3-(~h(t,"!important")&&10))){case 107:return d(t,":",":"+H)+t;case 101:return d(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(45===p(t,14)?"inline-":"")+"box$3$1"+H+"$2$3$1"+q+"$2box$3")+t}break;case 5936:switch(p(t,e+11)){case 114:return H+t+q+d(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return H+t+q+d(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return H+t+q+d(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return H+t+q+t+t}return t}var tp=[function(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case Z:t.return=th(t.value,t.length);break;case J:return X([O(t,{value:d(t.value,"@","@"+H)})],r);case K:if(t.length)return g(t.props,function(e){switch(l(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return X([O(t,{props:[d(e,/:(read-\w+)/,":"+z+"$1")]})],r);case"::placeholder":return X([O(t,{props:[d(e,/:(plac\w+)/,":"+H+"input-$1")]}),O(t,{props:[d(e,/:(plac\w+)/,":"+z+"$1")]}),O(t,{props:[d(e,/:(plac\w+)/,q+"input-$1")]})],r)}return""})}}],tv=function(t){var e,n,r,i=t.key;if("css"===i){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))})}var u=t.stylisPlugins||tp,s={},c=[];e=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;nt.charCodeAt(2)})},45042:function(t,e,n){"use strict";function r(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}n.d(e,{Z:function(){return r}})},76330:function(t,e,n){"use strict";n.d(e,{E:function(){return S},T:function(){return p},a:function(){return y},c:function(){return _},h:function(){return l},i:function(){return f},u:function(){return v},w:function(){return h}});var r=n(67294),i=n(8417),o=n(87462),a=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}},u=n(70444),s=n(48137),c=n(27278),f=!0,l={}.hasOwnProperty,d=r.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);d.Provider;var h=function(t){return(0,r.forwardRef)(function(e,n){return t(e,(0,r.useContext)(d),n)})};f||(h=function(t){return function(e){var n=(0,r.useContext)(d);return null===n?(n=(0,i.Z)({key:"css"}),r.createElement(d.Provider,{value:n},t(e,n))):t(e,n)}});var p=r.createContext({}),v=function(){return r.useContext(p)},b=function(t,e){return"function"==typeof e?e(t):(0,o.Z)({},t,e)},m=a(function(t){return a(function(e){return b(t,e)})}),y=function(t){var e=r.useContext(p);return t.theme!==e&&(e=m(e)(t.theme)),r.createElement(p.Provider,{value:e},t.children)},g="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_=function(t,e){var n={};for(var r in e)l.call(e,r)&&(n[r]=e[r]);return n[g]=t,n},w=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return(0,u.hC)(e,n,r),(0,c.L)(function(){return(0,u.My)(e,n,r)}),null},S=h(function(t,e,n){var i=t.css;"string"==typeof i&&void 0!==e.registered[i]&&(i=e.registered[i]);var o=t[g],a=[i],c="";"string"==typeof t.className?c=(0,u.fp)(e.registered,a,t.className):null!=t.className&&(c=t.className+" ");var f=(0,s.O)(a,void 0,r.useContext(p));c+=e.key+"-"+f.name;var d={};for(var h in t)l.call(t,h)&&"css"!==h&&h!==g&&(d[h]=t[h]);return d.ref=n,d.className=c,r.createElement(r.Fragment,null,r.createElement(w,{cache:e,serialized:f,isStringTag:"string"==typeof o}),r.createElement(o,d))})},70917:function(t,e,n){"use strict";n.d(e,{F4:function(){return l},az:function(){return s},iv:function(){return f},xB:function(){return c}});var r=n(76330),i=n(67294),o=n(70444),a=n(27278),u=n(48137);n(8417),n(8679);var s=function(t,e){var n=arguments;if(null==e||!r.h.call(e,"css"))return i.createElement.apply(void 0,n);var o=n.length,a=Array(o);a[0]=r.E,a[1]=(0,r.c)(t,e);for(var u=2;u=4;++r,i-=4)e=(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))*1540483477+((e>>>16)*59797<<16),e^=e>>>24,n=(65535&e)*1540483477+((e>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n^=255&t.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}n.d(e,{O:function(){return b}});var i,o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=n(45042),u=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(t){return 45===t.charCodeAt(1)},f=function(t){return null!=t&&"boolean"!=typeof t},l=(0,a.Z)(function(t){return c(t)?t:t.replace(u,"-$&").toLowerCase()}),d=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(s,function(t,e,n){return i={name:e,styles:n,next:i},e})}return 1===o[t]||c(t)||"number"!=typeof e||0===e?e:e+"px"};function h(t,e,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return i={name:n.name,styles:n.styles,next:i},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)i={name:r.name,styles:r.styles,next:i},r=r.next;return n.styles+";"}return p(t,e,n);case"function":if(void 0!==t){var o=i,a=n(t);return i=o,h(t,e,a)}}if(null==e)return n;var u=e[n];return void 0!==u?u:n}function p(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i96?f:l},h=function(t,e,n){var r;if(e){var i=e.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(e){return t.__emotion_forwardProp(e)&&i(e)}:i}return"function"!=typeof r&&n&&(r=t.__emotion_forwardProp),r},p=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return(0,u.hC)(e,n,r),(0,c.L)(function(){return(0,u.My)(e,n,r)}),null},v=function t(e,n){var o,c,f=e.__emotion_real===e,l=f&&e.__emotion_base||e;void 0!==n&&(o=n.label,c=n.target);var v=h(e,n,f),b=v||d(l),m=!b("as");return function(){var y=arguments,g=f&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==o&&g.push("label:"+o+";"),null==y[0]||void 0===y[0].raw)g.push.apply(g,y);else{g.push(y[0][0]);for(var _=y.length,w=1;w<_;w++)g.push(y[w],y[0][w])}var S=(0,a.w)(function(t,e,n){var r=m&&t.as||l,o="",f=[],h=t;if(null==t.theme){for(var y in h={},t)h[y]=t[y];h.theme=i.useContext(a.T)}"string"==typeof t.className?o=(0,u.fp)(e.registered,f,t.className):null!=t.className&&(o=t.className+" ");var _=(0,s.O)(g.concat(f),e.registered,h);o+=e.key+"-"+_.name,void 0!==c&&(o+=" "+c);var w=m&&void 0===v?d(r):b,S={};for(var E in t)(!m||"as"!==E)&&w(E)&&(S[E]=t[E]);return S.className=o,S.ref=n,i.createElement(i.Fragment,null,i.createElement(p,{cache:e,serialized:_,isStringTag:"string"==typeof r}),i.createElement(r,S))});return S.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",S.defaultProps=e.defaultProps,S.__emotion_real=S,S.__emotion_base=l,S.__emotion_styles=g,S.__emotion_forwardProp=v,Object.defineProperty(S,"toString",{value:function(){return"."+c}}),S.withComponent=function(e,i){return t(e,(0,r.Z)({},n,i,{shouldForwardProp:h(S,i,!0)})).apply(void 0,g)},S}}},27278:function(t,e,n){"use strict";n.d(e,{L:function(){return u},j:function(){return s}});var r,i=n(67294),o=function(t){return t()},a=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,u=a||o,s=a||i.useLayoutEffect},70444:function(t,e,n){"use strict";n.d(e,{My:function(){return a},fp:function(){return i},hC:function(){return o}});var r=!0;function i(t,e,n){var r="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]+";"):r+=n+" "}),r}var o=function(t,e,n){var i=t.key+"-"+e.name;(!1===n||!1===r)&&void 0===t.registered[i]&&(t.registered[i]=e.styles)},a=function(t,e,n){o(t,e,n);var r=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var i=e;do t.insert(e===i?"."+r:"",i,t.sheet,!0),i=i.next;while(void 0!==i)}}},4591:function(t,e,n){"use strict";function r(t,e){return new Promise(function(n,r){var i=setTimeout(function(){r(Error("Promise timed out"))},e);t.then(function(t){return clearTimeout(i),n(t)}).catch(r)})}function i(t){return new Promise(function(e){return setTimeout(e,t)})}function o(t,e,n){var o=function(){try{return Promise.resolve(e(t))}catch(t){return Promise.reject(t)}};return i(n).then(function(){return r(o(),1e3)}).catch(function(e){null==t||t.log("warn","Callback Error",{error:e}),null==t||t.stats.increment("callback_error")}).then(function(){return t})}n.d(e,{FJ:function(){return r},UI:function(){return o}})},98191:function(t,e,n){"use strict";n.d(e,{Y:function(){return s},_:function(){return c}});var r=n(59108),i=n(96475),o=n(97582),a=function(){function t(){this._logs=[]}return t.prototype.log=function(t,e,n){var r=new Date;this._logs.push({level:t,message:e,time:r,extras:n})},Object.defineProperty(t.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),t.prototype.flush=function(){if(this.logs.length>1){var t=this._logs.reduce(function(t,e){var n,r,i,a=(0,o.pi)((0,o.pi)({},e),{json:JSON.stringify(e.extras,null," "),extras:e.extras});delete a.time;var u=null!==(i=null===(r=e.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return t[u]&&(u="".concat(u,"-").concat(Math.random())),(0,o.pi)((0,o.pi)({},t),((n={})[u]=a,n))},{});console.table?console.table(t):console.log(t)}else this.logs.forEach(function(t){var e=t.level,n=t.message,r=t.extras;"info"===e||"debug"===e?console.log(n,null!=r?r:""):console[e](n,null!=r?r:"")});this._logs=[]},t}(),u=n(50732),s=function(){return function(t){var e,n,r;this.retry=null===(e=t.retry)||void 0===e||e,this.type=null!==(n=t.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=t.reason)&&void 0!==r?r:""}}(),c=function(){function t(t,e,n,i){void 0===e&&(e=(0,r.v4)()),void 0===n&&(n=new u.i),void 0===i&&(i=new a),this.attempts=0,this.event=t,this._id=e,this.logger=i,this.stats=n}return t.system=function(){},t.prototype.isSame=function(t){return t.id===this.id},t.prototype.cancel=function(t){if(t)throw t;throw new s({reason:"Context Cancel"})},t.prototype.log=function(t,e,n){this.logger.log(t,e,n)},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t.prototype.updateEvent=function(t,e){var n;if("integrations"===t.split(".")[0]){var r=t.split(".")[1];if((null===(n=this.event.integrations)||void 0===n?void 0:n[r])===!1)return this.event}return(0,i.N)(this.event,t,e),this.event},t.prototype.failedDelivery=function(){return this._failedDelivery},t.prototype.setFailedDelivery=function(t){this._failedDelivery=t},t.prototype.logs=function(){return this.logger.logs},t.prototype.flush=function(){this.logger.flush(),this.stats.flush()},t.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},t}()},51181:function(t,e,n){"use strict";n.d(e,{M:function(){return a},Z:function(){return u}});var r=n(97582),i=n(38714);function o(t){var e=Math.random()+1,n=t.minTimeout,r=void 0===n?500:n,i=t.factor,o=void 0===i?2:i,a=t.attempt,u=t.maxTimeout;return Math.min(e*r*Math.pow(o,a),void 0===u?1/0:u)}var a="onRemoveFromFuture",u=function(t){function e(e,n,r){var i=t.call(this)||this;return i.future=[],i.maxAttempts=e,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.ZT)(e,t),e.prototype.push=function(){for(var t=this,e=[],n=0;nt.maxAttempts||t.includes(e))&&(t.queue.push(e),!0)});return this.queue=this.queue.sort(function(e,n){return t.getAttempts(e)-t.getAttempts(n)}),r},e.prototype.pushWithBackoff=function(t){var e=this;if(0===this.getAttempts(t))return this.push(t)[0];var n=this.updateAttempts(t);return!(n>this.maxAttempts||this.includes(t))&&(setTimeout(function(){e.queue.push(t),e.future=e.future.filter(function(e){return e.id!==t.id}),e.emit(a)},o({attempt:n-1})),this.future.push(t),!0)},e.prototype.getAttempts=function(t){var e;return null!==(e=this.seen[t.id])&&void 0!==e?e:0},e.prototype.updateAttempts=function(t){return this.seen[t.id]=this.getAttempts(t)+1,this.getAttempts(t)},e.prototype.includes=function(t){return this.queue.includes(t)||this.future.includes(t)||!!this.queue.find(function(e){return e.id===t.id})||!!this.future.find(function(e){return e.id===t.id})},e.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(e.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),e}(i.Q)},69147:function(t,e,n){"use strict";n.d(e,{a:function(){return a},z:function(){return u}});var r=n(97582),i=n(98191);function o(t){return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t()];case 1:return[2,e.sent()];case 2:return[2,Promise.reject(e.sent())];case 3:return[2]}})})}function a(t,e){t.log("debug","plugin",{plugin:e.name});var n=new Date().getTime(),r=e[t.event.type];return void 0===r?Promise.resolve(t):o(function(){return r.apply(e,[t])}).then(function(t){var r=new Date().getTime()-n;return t.stats.gauge("plugin_time",r,["plugin:".concat(e.name)]),t}).catch(function(n){if(n instanceof i.Y&&"middleware_cancellation"===n.type)throw n;return n instanceof i.Y?t.log("warn",n.type,{plugin:e.name,error:n}):(t.log("error","plugin Error",{plugin:e.name,error:n}),t.stats.increment("plugin_error",1,["plugin:".concat(e.name)])),n})}function u(t,e){return a(t,e).then(function(e){if(e instanceof i._)return e;t.log("debug","Context canceled"),t.stats.increment("context_canceled"),t.cancel(e)})}},50732:function(t,e,n){"use strict";n.d(e,{i:function(){return a},s:function(){return o}});var r=n(97582),i=function(t){return({gauge:"g",counter:"c"})[t]},o=function(){function t(){this.metrics=[]}return t.prototype.increment=function(t,e,n){void 0===e&&(e=1),this.metrics.push({metric:t,value:e,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},t.prototype.gauge=function(t,e,n){this.metrics.push({metric:t,value:e,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},t.prototype.flush=function(){var t=this.metrics.map(function(t){return(0,r.pi)((0,r.pi)({},t),{tags:t.tags.join(",")})});console.table?console.table(t):console.log(t),this.metrics=[]},t.prototype.serialize=function(){return this.metrics.map(function(t){return{m:t.metric,v:t.value,t:t.tags,k:i(t.type),e:t.timestamp}})},t}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.gauge=function(){for(var t=[],e=0;ethis.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(t)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},t.prototype.on=function(t,e){return this.callbacks[t]?(this.callbacks[t].push(e),this.warnIfPossibleMemoryLeak(t)):this.callbacks[t]=[e],this},t.prototype.once=function(t,e){var n=this,r=function(){for(var i=[],o=0;o0){var u=!1,s=function(){u||(u=!0,a.flush().catch(l),u=!1,setTimeout(s,a.flushTimer))};s()}}return t.prototype.increment=function(t,e){if(!(!t.includes("analytics_js.")||0===e.length||Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=f(t,e,(0,s.B)());this.queue.push(n),t.includes("error")&&this.flush().catch(l)}},t.prototype.flush=function(){return(0,i.mG)(this,void 0,void 0,function(){var t=this;return(0,i.Jh)(this,function(e){switch(e.label){case 0:if(this.queue.length<=0)return[2];return[4,this.send().catch(function(e){l(e),t.sampleRate=0})];case 1:return e.sent(),[2]}})})},t.prototype.send=function(){return(0,i.mG)(this,void 0,void 0,function(){var t,e,n;return(0,i.Jh)(this,function(r){return t={series:this.queue},this.queue=[],e={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,a.h)(n,{headers:e,body:JSON.stringify(t),method:"POST"})]})})},t}(),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.initRemoteMetrics=function(t){r=new d(t)},e.prototype.increment=function(e,n,i){t.prototype.increment.call(this,e,n,i),null==r||r.increment(e,null!=i?i:[])},e}(o.s)},92311:function(t,e,n){"use strict";function r(t,e){var n=e.methodName,r=e.integrationName,i=e.type,o=e.didError,a=void 0!==o&&o;t.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(i)])}n.d(e,{z:function(){return r}})},39821:function(t,e,n){"use strict";n.d(e,{i:function(){return r}});var r="1.70.0"},55609:function(t,e,n){"use strict";n.d(e,{h:function(){return a}});var r=n(63144),i=n.n(r),o=n(44083),a=function(){for(var t=[],e=0;et},a=u.getItem(i),s=a?JSON.parse(a):null,c=null===s||o(s);if(c){u.setItem(i,JSON.stringify(h()+r)),e(),u.removeItem(i);return}!c&&n<3?setTimeout(function(){p(t,e,n+1)},r):console.error("Unable to retrieve lock")}var v=function(t){function e(e,n){var i=t.call(this,e,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),u=[],h={};return p(n,function(){try{u=s(o),h=f(a),d(o),d(a),i.queue=(0,r.ev)((0,r.ev)([],u,!0),i.queue,!0),i.seen=(0,r.pi)((0,r.pi)({},h),i.seen)}catch(t){console.error(t)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var t=(0,r.ev)((0,r.ev)([],i.queue,!0),i.future,!0);try{p(n,function(){c(o,t),l(a,i.seen)})}catch(t){console.error(t)}}}),i}return(0,r.ZT)(e,t),e}(i.Z)},23888:function(t,e,n){"use strict";n.d(e,{D:function(){return i}});var r=n(49969);function i(t,e){var n=new r.Facade(t,e);return"track"===t.type&&(n=new r.Track(t,e)),"identify"===t.type&&(n=new r.Identify(t,e)),"page"===t.type&&(n=new r.Page(t,e)),"alias"===t.type&&(n=new r.Alias(t,e)),"group"===t.type&&(n=new r.Group(t,e)),"screen"===t.type&&(n=new r.Screen(t,e)),Object.defineProperty(n,"obj",{value:t,writable:!0}),n}},7227:function(t,e,n){"use strict";n.d(e,{B:function(){return i}});var r="npm";function i(){return r}},66170:function(t,e,n){"use strict";n.r(e),n.d(e,{applyDestinationMiddleware:function(){return a},sourceMiddlewarePlugin:function(){return u}});var r=n(97582),i=n(98191),o=n(23888);function a(t,e,n){return(0,r.mG)(this,void 0,void 0,function(){var i,a,u,s,c;function f(e,n){return(0,r.mG)(this,void 0,void 0,function(){var i,a,u;return(0,r.Jh)(this,function(s){switch(s.label){case 0:return i=!1,a=null,[4,n({payload:(0,o.D)(e,{clone:!0,traverse:!1}),integration:t,next:function(t){i=!0,null===t&&(a=null),t&&(a=t.obj)}})];case 1:return s.sent(),i||null===a||(a.integrations=(0,r.pi)((0,r.pi)({},e.integrations),((u={})[t]=!1,u))),[2,a]}})})}return(0,r.Jh)(this,function(t){switch(t.label){case 0:i=(0,o.D)(e,{clone:!0,traverse:!1}).rawEvent(),a=0,u=n,t.label=1;case 1:if(!(a-1&&(t.type="ios"),e.indexOf("android")>-1&&(t.type="android")),t},l.userAgent=f.proxy("context.userAgent"),l.timezone=f.proxy("context.timezone"),l.timestamp=f.field("timestamp"),l.channel=f.field("channel"),l.ip=f.proxy("context.ip"),l.userId=f.field("userId"),i.default(l)},63789:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Group=void 0;var i=r(n(35717)),o=r(n(66243)),a=r(n(18013)),u=n(40747);function s(t,e){u.Facade.call(this,t,e)}e.Group=s,i.default(s,u.Facade);var c=s.prototype;c.action=function(){return"group"},c.type=c.action,c.groupId=u.Facade.field("groupId"),c.created=function(){var t=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(t)return a.default(t)},c.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.groupId();if(o.default(e))return e},c.traits=function(t){var e=this.properties(),n=this.groupId();for(var r in t=t||{},n&&(e.id=n),t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=null==this[r]?this.proxy("traits."+r):this[r]();if(null==i)continue;e[t[r]]=i,delete e[r]}return e},c.name=u.Facade.proxy("traits.name"),c.industry=u.Facade.proxy("traits.industry"),c.employees=u.Facade.proxy("traits.employees"),c.properties=function(){return this.field("traits")||this.field("properties")||{}}},98649:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Identify=void 0;var i=n(40747),o=r(n(53410)),a=r(n(35717)),u=r(n(66243)),s=r(n(18013)),c=function(t){return t.trim()};function f(t,e){i.Facade.call(this,t,e)}e.Identify=f,a.default(f,i.Facade);var l=f.prototype;l.action=function(){return"identify"},l.type=l.action,l.traits=function(t){var e=this.field("traits")||{},n=this.userId();for(var r in t=t||{},n&&(e.id=n),t){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(e[t[r]]=i,r!==t[r]&&delete e[r])}return e},l.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.userId();if(u.default(e))return e},l.created=function(){var t=this.proxy("traits.created")||this.proxy("traits.createdAt");if(t)return s.default(t)},l.companyCreated=function(){var t=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(t)return s.default(t)},l.companyName=function(){return this.proxy("traits.company.name")},l.name=function(){var t=this.proxy("traits.name");if("string"==typeof t)return c(t);var e=this.firstName(),n=this.lastName();if(e&&n)return c(e+" "+n)},l.firstName=function(){var t=this.proxy("traits.firstName");if("string"==typeof t)return c(t);var e=this.proxy("traits.name");if("string"==typeof e)return c(e).split(" ")[0]},l.lastName=function(){var t=this.proxy("traits.lastName");if("string"==typeof t)return c(t);var e=this.proxy("traits.name");if("string"==typeof e){var n=c(e).indexOf(" ");if(-1!==n)return c(e.substr(n+1))}},l.uid=function(){return this.userId()||this.username()||this.email()},l.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},l.age=function(){var t=this.birthday(),e=o.default(this.traits(),"age");if(null!=e)return e;if(t instanceof Date){var n=new Date;return n.getFullYear()-t.getFullYear()}},l.avatar=function(){var t=this.traits();return o.default(t,"avatar")||o.default(t,"photoUrl")||o.default(t,"avatarUrl")},l.position=function(){var t=this.traits();return o.default(t,"position")||o.default(t,"jobTitle")},l.username=i.Facade.proxy("traits.username"),l.website=i.Facade.one("traits.website"),l.websites=i.Facade.multi("traits.website"),l.phone=i.Facade.one("traits.phone"),l.phones=i.Facade.multi("traits.phone"),l.address=i.Facade.proxy("traits.address"),l.gender=i.Facade.proxy("traits.gender"),l.birthday=i.Facade.proxy("traits.birthday")},49969:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(u&&s){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function a(t,e,n,r,i,o,a){try{var u=t[o](a),s=u.value}catch(t){n(t);return}u.done?e(s):Promise.resolve(s).then(r,i)}function u(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function u(t){a(o,r,i,u,s,"next",t)}function s(t){a(o,r,i,u,s,"throw",t)}u(void 0)})}}function s(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.id,n=t.url,r=e||n;if(!r)throw Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(O(r))return"https://vimeo.com/".concat(r);if(M(r))return r.replace("http:","https:");if(e)throw TypeError("“".concat(e,"” is not a valid video id."));throw TypeError("“".concat(r,"” is not a vimeo.com url."))}var P=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",o="string"==typeof e?[e]:e;return o.forEach(function(e){t[r](e,n)}),{cancel:function(){return o.forEach(function(e){return t[i](e,n)})}}},I=void 0!==Array.prototype.indexOf,L="undefined"!=typeof window&&void 0!==window.postMessage;if(!A&&(!I||!L))throw Error("Sorry, the Vimeo Player API is not available in this browser.");var j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function N(t,e){return t(e={exports:{}},e.exports),e.exports}!/*! * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill * https://github.com/polygonplanet/weakmap-polyfill * Copyright (c) 2015-2021 polygonplanet * @license MIT */function(t){if(!t.WeakMap){var e=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(t){}}(),r=function(t,e,r){n?Object.defineProperty(t,e,{configurable:!0,writable:!0,value:r}):t[e]=r};t.WeakMap=function(){function t(){if(void 0===this)throw TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id",o("_WeakMap")),arguments.length>0)throw TypeError("WeakMap iterable is not supported")}function n(t,n){if(!i(t)||!e.call(t,"_id"))throw TypeError(n+" method called on incompatible receiver "+typeof t)}function o(t){return t+"_"+a()+"."+a()}function a(){return Math.random().toString().substring(2)}return r(t.prototype,"delete",function(t){if(n(this,"delete"),!i(t))return!1;var e=t[this._id];return!!e&&e[0]===t&&(delete t[this._id],!0)}),r(t.prototype,"get",function(t){if(n(this,"get"),i(t)){var e=t[this._id];if(e&&e[0]===t)return e[1]}}),r(t.prototype,"has",function(t){if(n(this,"has"),!i(t))return!1;var e=t[this._id];return!!e&&e[0]===t}),r(t.prototype,"set",function(t,e){if(n(this,"set"),!i(t))throw TypeError("Invalid value used as weak map key");var o=t[this._id];return o&&o[0]===t?o[1]=e:r(t,this._id,[t,e]),this}),r(t,"_polyfill",!0),t}()}function i(t){return Object(t)===t}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:j);var D=N(function(t){!/*! Native Promise Only v0.8.1 (c) Kyle Simpson MIT License: http://getify.mit-license.org */function(e,n,r){n[e]=n[e]||r(),t.exports&&(t.exports=n[e])}("Promise",j,function(){var t,e,n,r=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(t){return setImmediate(t)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(t,e,n,r){return Object.defineProperty(t,e,{value:n,writable:!0,configurable:!1!==r})}}catch(e){t=function(t,e,n){return t[e]=n,t}}function o(t,r){n.add(t,r),e||(e=i(n.drain))}function a(t){var e,n=typeof t;return null!=t&&("object"==n||"function"==n)&&(e=t.then),"function"==typeof e&&e}function u(){for(var t=0;t0&&o(u,n))}catch(t){f.call(new d(n),t)}}}function f(t){var e=this;!e.triggered&&(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&o(u,e))}function l(t,e,n,r){for(var i=0;i=8&&i<10&&(r=JSON.stringify(r)),t.element.contentWindow.postMessage(r,t.origin)}}function W(t,e){e=z(e);var n,r=[];if(e.event)"error"===e.event&&U(t,e.data.method).forEach(function(n){var r=Error(e.data.message);r.name=e.data.name,n.reject(r),G(t,e.data.method,n)}),r=U(t,"event:".concat(e.event)),n=e.data;else if(e.method){var i=F(t,e.method);i&&(r.push(i),n=e.value)}r.forEach(function(e){try{if("function"==typeof e){e.call(t,n);return}e.resolve(n)}catch(t){}})}var K=["airplay","audio_tracks","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","play_button_position","playsinline","portrait","progress_bar","quality_selector","responsive","speed","start_time","texttrack","title","transcript","transparent","url","vimeo_logo","volume","watch_full_video","width"];function Z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return K.reduce(function(e,n){var r=t.getAttribute("data-vimeo-".concat(n));return(r||""===r)&&(e[n]=""===r?1:r),e},e)}function Y(t,e){var n=t.html;if(!e)throw TypeError("An element must be provided");if(null!==e.getAttribute("data-vimeo-initialized"))return e.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=n,e.appendChild(r.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function J(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise(function(r,i){if(!M(t))throw TypeError("“".concat(t,"” is not a vimeo.com url."));var o=C(t),a="https://".concat(o,"/api/oembed.json?url=").concat(encodeURIComponent(t));for(var u in e)e.hasOwnProperty(u)&&(a+="&".concat(u,"=").concat(encodeURIComponent(e[u])));var s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",a,!0),s.onload=function(){if(404===s.status){i(Error("“".concat(t,"” was not found.")));return}if(403===s.status){i(Error("“".concat(t,"” is not embeddable.")));return}try{var e=JSON.parse(s.responseText);if(403===e.domain_status_code){Y(e,n),i(Error("“".concat(t,"” is not embeddable.")));return}r(e)}catch(t){i(t)}},s.onerror=function(){var t=s.status?" (".concat(s.status,")"):"";i(Error("There was an error fetching the embed code from Vimeo".concat(t,".")))},s.send()})}function $(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(t){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(t))};e.forEach(function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var e=Z(t),r=R(e);J(r,e,t).then(function(e){return Y(e,t)}).catch(n)}catch(t){n(t)}})}function X(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(e){if(M(e.origin)&&e.data&&"spacechange"===e.data.event){for(var n=t.querySelectorAll("iframe"),r=0;r0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var e=function(e){if(M(e.origin)){var n=z(e.data);if(n&&"ready"===n.event)for(var r=t.querySelectorAll("iframe"),i=0;i0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var e=function(t){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(t))},n=function(n){if(M(n.origin)){var r=z(n.data);if(r&&"ready"===r.event)for(var i=t.querySelectorAll("iframe"),o=function(){var t=i[a],r=t.contentWindow===n.source;if(T(t.src)&&r){var o=new tu(t);o.getVideoId().then(function(t){var e=new RegExp("[?&]vimeo_t_".concat(t,"=([^&#]*)")).exec(window.location.href);if(e&&e[1]){var n=decodeURI(e[1]);o.setCurrentTime(n)}}).catch(e)}},a=0;a2&&void 0!==arguments[2]?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;return s(this,n),l(g(a=e.call(this)),"logger",void 0),l(g(a),"speedAdjustment",0),l(g(a),"adjustSpeed",function(){var t=u(o().mark(function t(e,n){var r;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a.speedAdjustment!==n){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.getPlaybackRate();case 4:return t.t0=t.sent,t.t1=a.speedAdjustment,t.t2=t.t0-t.t1,t.t3=n,r=t.t2+t.t3,a.log("New playbackRate: ".concat(r)),t.next=12,e.setPlaybackRate(r);case 12:a.speedAdjustment=n;case 13:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()),a.logger=f,a.init(r,t,i(i({},tn),c)),a}return f(n,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:function(){var t=u(o().mark(function t(e,n,r){var i,a,u,s=this;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.waitForTOReadyState(e,"open");case 2:if("viewer"!==r.role){t.next=10;break}return t.next=5,this.updatePlayer(e,n,r);case 5:i=P(e,"change",function(){return s.updatePlayer(e,n,r)}),a=this.maintainPlaybackPosition(e,n,r),this.addEventListener("disconnect",function(){a.cancel(),i.cancel()}),t.next=14;break;case 10:return t.next=12,this.updateTimingObject(e,n);case 12:u=P(n,["seeked","play","pause","ratechange"],function(){return s.updateTimingObject(e,n)},"on","off"),this.addEventListener("disconnect",function(){return u.cancel()});case 14:case"end":return t.stop()}},t,this)}));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"updateTimingObject",value:function(){var t=u(o().mark(function t(e,n){return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=3,n.getCurrentTime();case 3:return t.t1=t.sent,t.next=6,n.getPaused();case 6:if(!t.sent){t.next=10;break}t.t2=0,t.next=13;break;case 10:return t.next=12,n.getPlaybackRate();case 12:t.t2=t.sent;case 13:t.t3=t.t2,t.t4={position:t.t1,velocity:t.t3},t.t0.update.call(t.t0,t.t4);case 16:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()},{key:"updatePlayer",value:function(){var t=u(o().mark(function t(e,n,r){var i,a,s;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a=(i=e.query()).position,s=i.velocity,"number"==typeof a&&n.setCurrentTime(a),"number"!=typeof s){t.next=25;break}if(0!==s){t.next=11;break}return t.next=6,n.getPaused();case 6:if(t.t0=t.sent,!1!==t.t0){t.next=9;break}n.pause();case 9:t.next=25;break;case 11:if(!(s>0)){t.next=25;break}return t.next=14,n.getPaused();case 14:if(t.t1=t.sent,!0!==t.t1){t.next=19;break}return t.next=18,n.play().catch(function(){var t=u(o().mark(function t(e){return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!("NotAllowedError"===e.name&&r.autoPlayMuted)){t.next=5;break}return t.next=3,n.setMuted(!0);case 3:return t.next=5,n.play().catch(function(t){return console.error("Couldn't play the video from TimingSrcConnector. Error:",t)});case 5:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}());case 18:this.updatePlayer(e,n,r);case 19:return t.next=21,n.getPlaybackRate();case 21:if(t.t2=t.sent,t.t3=s,!(t.t2!==t.t3)){t.next=25;break}n.setPlaybackRate(s);case 25:case"end":return t.stop()}},t,this)}));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"maintainPlaybackPosition",value:function(t,e,n){var r=this,i=n.allowedDrift,a=n.maxAllowedDrift,s=n.minCheckInterval,c=n.maxRateAdjustment,f=n.maxTimeToCatchUp,l=1e3*Math.min(f,Math.max(s,a)),d=function(){var n=u(o().mark(function n(){var u,s,l,d,h;return o().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=0===t.query().velocity,n.t0){n.next=6;break}return n.next=4,e.getPaused();case 4:n.t1=n.sent,n.t0=!0===n.t1;case 6:if(!n.t0){n.next=8;break}return n.abrupt("return");case 8:return n.t2=t.query().position,n.next=11,e.getCurrentTime();case 11:if(n.t3=n.sent,s=Math.abs(u=n.t2-n.t3),r.log("Drift: ".concat(u)),!(s>a)){n.next=22;break}return n.next=18,r.adjustSpeed(e,0);case 18:e.setCurrentTime(t.query().position),r.log("Resync by currentTime"),n.next=29;break;case 22:if(!(s>i)){n.next=29;break}return h=(l=s/f)<(d=c)?(d-l)/2:d,n.next=28,r.adjustSpeed(e,h*Math.sign(u));case 28:r.log("Resync by playbackRate");case 29:case"end":return n.stop()}},n)}));return function(){return n.apply(this,arguments)}}(),h=setInterval(function(){return d()},l);return{cancel:function(){return clearInterval(h)}}}},{key:"log",value:function(t){var e;null===(e=this.logger)||void 0===e||e.call(this,"TimingSrcConnector: ".concat(t))}},{key:"waitForTOReadyState",value:function(t,e){return new Promise(function(n){(function r(){t.readyState===e?n():t.addEventListener("readystatechange",r,{once:!0})})()})}}]),n}(y(EventTarget)),ti=new WeakMap,to=new WeakMap,ta={},tu=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s(this,t),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!x(e))throw TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==e.nodeName){var i=e.querySelector("iframe");i&&(e=i)}if("IFRAME"===e.nodeName&&!M(e.getAttribute("src")||""))throw Error("The player element passed isn’t a Vimeo embed.");if(ti.has(e))return ti.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var o=new D(function(t,i){if(n._onMessage=function(e){if(M(e.origin)&&n.element.contentWindow===e.source){"*"===n.origin&&(n.origin=e.origin);var r=z(e.data);if(r&&"error"===r.event&&r.data&&"ready"===r.data.method){var o=Error(r.data.message);o.name=r.data.name,i(o);return}var a=r&&"ready"===r.event,u=r&&"ping"===r.method;if(a||u){n.element.setAttribute("data-ready","true"),t();return}W(n,r)}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var o=Z(e,r);J(R(o),o,e).then(function(t){var r=Y(t,e);return n.element=r,n._originalElement=e,q(e,r),ti.set(n.element,n),t}).catch(i)}});if(to.set(this,o),ti.set(this.element,this),"IFRAME"===this.element.nodeName&&H(this,"ping"),ta.isEnabled){var a=function(){return ta.exit()};this.fullscreenchangeHandler=function(){ta.isFullscreen?V(n,"event:exitFullscreen",a):G(n,"event:exitFullscreen",a),n.ready().then(function(){H(n,"fullscreenchange",ta.isFullscreen)})},ta.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return f(t,[{key:"callMethod",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new D(function(r,i){return e.ready().then(function(){V(e,t,{resolve:r,reject:i}),H(e,t,n)}).catch(i)})}},{key:"get",value:function(t){var e=this;return new D(function(n,r){return t=k(t,"get"),e.ready().then(function(){V(e,t,{resolve:n,reject:r}),H(e,t)}).catch(r)})}},{key:"set",value:function(t,e){var n=this;return new D(function(r,i){if(t=k(t,"set"),null==e)throw TypeError("There must be a value to set.");return n.ready().then(function(){V(n,t,{resolve:r,reject:i}),H(n,t,e)}).catch(i)})}},{key:"on",value:function(t,e){if(!t)throw TypeError("You must pass an event name.");if(!e)throw TypeError("You must pass a callback function.");if("function"!=typeof e)throw TypeError("The callback must be a function.");0===U(this,"event:".concat(t)).length&&this.callMethod("addEventListener",t).catch(function(){}),V(this,"event:".concat(t),e)}},{key:"off",value:function(t,e){if(!t)throw TypeError("You must pass an event name.");if(e&&"function"!=typeof e)throw TypeError("The callback must be a function.");G(this,"event:".concat(t),e)&&this.callMethod("removeEventListener",t).catch(function(t){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=to.get(this)||new D(function(t,e){e(Error("Unknown player. Probably unloaded."))});return D.resolve(t)}},{key:"addCuePoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:e})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,e){if(!t)throw TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:e})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return ta.isEnabled?ta.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return ta.isEnabled?ta.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return ta.isEnabled?D.resolve(ta.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new D(function(e){if(to.delete(t),ti.delete(t.element),t._originalElement&&(ti.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&"IFRAME"===t.element.nodeName&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&"DIV"===t.element.nodeName&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var n=t.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&t._originalElement&&t._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}t._window.removeEventListener("message",t._onMessage),ta.isEnabled&&ta.off("fullscreenchange",t.fullscreenchangeHandler),e()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return D.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new D(function(t,e){return e(TypeError("Argument must be an array."))});var e=new D(function(t){return t(null)}),n=[t[0]?this.set("colorOne",t[0]):e,t[1]?this.set("colorTwo",t[1]):e,t[2]?this.set("colorThree",t[2]):e,t[3]?this.set("colorFour",t[3]):e];return D.all(n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:function(){var t=u(o().mark(function t(e,n){var r,i=this;return o().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}throw TypeError("A Timing Object must be provided.");case 2:return t.next=4,this.ready();case 4:return r=new tr(this,e,n),H(this,"notifyTimingObjectConnect"),r.addEventListener("disconnect",function(){return H(i,"notifyTimingObjectDisconnect")}),t.abrupt("return",r);case 8:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}()}]),t}();A||(ta=te(),$(),X(),Q(),tt()),e.default=tu},79742:function(t,e){"use strict";e.byteLength=c,e.toByteArray=l,e.fromByteArray=p;for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function c(t){var e=s(t),n=e[0],r=e[1];return(n+r)*3/4-r}function f(t,e,n){return(e+n)*3/4-n}function l(t){var e,n,o=s(t),a=o[0],u=o[1],c=new i(f(t,a,u)),l=0,d=u>0?a-4:a;for(n=0;n>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===u&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[l++]=255&e),1===u&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c}function d(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function h(t,e,n){for(var r=[],i=e;is?s:u+a));return 1===i?o.push(n[(e=t[r-1])>>2]+n[e<<4&63]+"=="):2===i&&o.push(n[(e=(t[r-2]<<8)+t[r-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48764:function(t,e,n){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var r=n(79742),i=n(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;var a=2147483647;function u(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}function s(t){if(t>a)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return h(t)}return f(t,e,n)}function f(t,e,n){if("string"==typeof t)return p(t,e);if(ArrayBuffer.isView(t))return b(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if($(t,ArrayBuffer)||t&&$(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&($(t,SharedArrayBuffer)||t&&$(t.buffer,SharedArrayBuffer)))return m(t,e,n);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);var i=y(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function d(t,e,n){return(l(t),t<=0)?s(t):void 0!==e?"string"==typeof n?s(t).fill(e,n):s(t).fill(e):s(t)}function h(t){return l(t),s(t<0?0:0|g(t))}function p(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!c.isEncoding(e))throw TypeError("Unknown encoding: "+e);var n=0|w(t,e),r=s(n),i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}function v(t){for(var e=t.length<0?0:0|g(t.length),n=s(e),r=0;r=a)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),c.alloc(+t)}function w(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||$(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(t).length;default:if(i)return r?-1:W(t).length;e=(""+e).toLowerCase(),i=!0}}function S(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return D(this,e,n);case"utf8":case"utf-8":return P(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return R(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function E(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function A(t,e,n,r,i){if(0===t.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return -1;n=t.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:k(t,e,n,r,i);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):k(t,[e],n,r,i);throw TypeError("val must be string, number or Buffer")}function k(t,e,n,r,i){var o,a=1,u=t.length,s=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return -1;a=2,u/=2,s/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var f=-1;for(o=n;ou&&(n=u-s),o=n;o>=0;o--){for(var l=!0,d=0;di&&(r=i):r=i;var o=e.length;r>o/2&&(r=o/2);for(var a=0;a239?4:c>223?3:c>191?2:1;if(i+l<=n)switch(l){case 1:c<128&&(f=c);break;case 2:(192&(o=t[i+1]))==128&&(s=(31&c)<<6|63&o)>127&&(f=s);break;case 3:o=t[i+1],a=t[i+2],(192&o)==128&&(192&a)==128&&(s=(15&c)<<12|(63&o)<<6|63&a)>2047&&(s<55296||s>57343)&&(f=s);break;case 4:o=t[i+1],a=t[i+2],u=t[i+3],(192&o)==128&&(192&a)==128&&(192&u)==128&&(s=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(f=s)}null===f?(f=65533,l=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=l}return L(r)}e.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=u(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return f(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return d(t,e,n)},c.allocUnsafe=function(t){return h(t)},c.allocUnsafeSlow=function(t){return h(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if($(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),$(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);ir.length?c.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(c.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},c.byteLength=w,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;en&&(t+=" ... "),""},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,i){if($(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return -1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,u=Math.min(o,a),s=this.slice(r,i),f=t.slice(e,n),l=0;l>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return x(this,t,e,n);case"utf8":case"utf-8":return O(this,t,e,n);case"ascii":case"latin1":case"binary":return M(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function L(t){var e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw RangeError("Trying to access beyond buffer length")}function U(t,e,n,r,i,o){if(!c.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw RangeError("Index out of range")}function G(t,e,n,r,i,o){if(n+r>t.length||n<0)throw RangeError("Index out of range")}function F(t,e,n,r,o){return e=+e,n>>>=0,o||G(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function q(t,e,n,r,o){return e=+e,n>>>=0,o||G(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||V(t,e,this.length);for(var r=this[t],i=1,o=0;++o>>=0,e>>>=0,n||V(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||V(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||V(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||V(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||V(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||V(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||V(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||V(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return(t>>>=0,e||V(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||V(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||V(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||V(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||V(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return t>>>=0,e||V(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||V(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||V(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||V(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;U(this,t,e,n,i,0)}var o=1,a=0;for(this[e]=255&t;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;U(this,t,e,n,i,0)}var o=n-1,a=1;for(this[e+o]=255&t;--o>=0&&(a*=256);)this[e+o]=t/a&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);U(this,t,e,n,i-1,-i)}var o=0,a=1,u=0;for(this[e]=255&t;++o>0)-u&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);U(this,t,e,n,i-1,-i)}var o=n-1,a=1,u=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===u&&0!==this[e+o+1]&&(u=1),this[e+o]=(t/a>>0)-u&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return q(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return q(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function K(t){for(var e=[],n=0;n>8,i.push(n%256),i.push(r);return i}function Y(t){return r.toByteArray(H(t))}function J(t,e,n,r){for(var i=0;i=e.length)&&!(i>=t.length);++i)e[i+n]=t[i];return i}function $(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}var Q=function(){for(var t="0123456789abcdef",e=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)e[r+i]=t[n]+t[i];return e}()},25730:function(t,e,n){"use strict";var r=n(58612),i=n(1768),o=n(68928),a=n(59770);t.exports=a||r.call(o,i)},1768:function(t){"use strict";t.exports=Function.prototype.apply},68928:function(t){"use strict";t.exports=Function.prototype.call},40319:function(t,e,n){"use strict";var r=n(58612),i=n(14453),o=n(68928),a=n(25730);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return a(r,o,t)}},59770:function(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},21924:function(t,e,n){"use strict";var r=n(40210),i=n(55559),o=i(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&o(t,".prototype.")>-1?i(n):n}},55559:function(t,e,n){"use strict";var r=n(58612),i=n(40210),o=n(67771),a=n(14453),u=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||r.call(s,u),f=n(24429),l=i("%Math.max%");t.exports=function(t){if("function"!=typeof t)throw new a("a function is required");var e=c(r,s,arguments);return o(e,1+l(0,t.length-(arguments.length-1)),!0)};var d=function(){return c(r,u,arguments)};f?f(t.exports,"apply",{value:d}):t.exports.apply=d},12296:function(t,e,n){"use strict";var r=n(24429),i=n(33464),o=n(14453),a=n(27296);t.exports=function(t,e,n){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(r)r(t,e,{configurable:null===c&&l?l.configurable:!c,enumerable:null===u&&l?l.enumerable:!u,value:n,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.");else t[e]=n}},96504:function(t,e,n){"use strict";var r,i=n(40319),o=n(27296);try{r=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!r&&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))}},24429:function(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},53981:function(t){"use strict";t.exports=EvalError},81648:function(t){"use strict";t.exports=Error},24726:function(t){"use strict";t.exports=RangeError},26712:function(t){"use strict";t.exports=ReferenceError},33464:function(t){"use strict";t.exports=SyntaxError},14453:function(t){"use strict";t.exports=TypeError},43915:function(t){"use strict";t.exports=URIError},68892:function(t){"use strict";t.exports=Object},17187:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};function i(t){console&&console.warn&&console.warn(t)}e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,t.exports.once=y,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function s(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function f(t,e,n,r){if(s(n),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),a=t._events),u=a[e]),void 0===u)u=a[e]=n,++t._eventsCount;else if("function"==typeof u?u=a[e]=r?[n,u]:[u,n]:r?u.unshift(n):u.push(n),(o=c(t))>0&&u.length>o&&!u.warned){u.warned=!0;var o,a,u,f=Error("Possible EventEmitter memory leak detected. "+u.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=u.length,i(f)}return t}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function h(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?m(i):v(i,i.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(t,e){for(var n=Array(e),r=0;r0&&(a=e[0]),a instanceof Error)throw a;var a,u=Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=o[t];if(void 0===s)return!1;if("function"==typeof s)r(s,this,e);else for(var c=s.length,f=v(s,c),n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():b(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0==arguments.length){var i,o=Object.keys(n);for(r=0;r=0;r--)this.removeListener(t,e[r]);return this},a.prototype.listeners=function(t){return h(this,t,!0)},a.prototype.rawListeners=function(t){return h(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},94029:function(t,e,n){"use strict";var r=n(95320),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(t,e,n){for(var r=0,i=t.length;r=3&&(o=n),"[object Array]"===i.call(t)?a(t,e,o):"string"==typeof t?u(t,e,o):s(t,e,o)};t.exports=c},17648:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,i="[object Function]",o=function(t,e){for(var n=[],r=0;r1&&"boolean"!=typeof e)throw new f('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=W(t),r=n.length>0?n[0]:"",i=K("%"+r+"%",e),o=i.name,a=i.value,u=!1,s=i.alias;s&&(r=s[0],U(n,V([0,1],s)));for(var l=1,d=!0;l=n.length){var b=w(a,h);a=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:a[h]}else d=B(a,h),a=a[h];d&&!u&&(I[o]=a)}}return a}},68899:function(t,e,n){"use strict";var r=n(68892);t.exports=r.getPrototypeOf||null},10443:function(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},81618:function(t,e,n){"use strict";var r=n(10443),i=n(68899),o=n(96504);t.exports=r?function(t){return r(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},40690:function(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},27296:function(t,e,n){"use strict";var r=n(40690);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},31044:function(t,e,n){"use strict";var r=n(24429),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},41405:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(55419);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},55419:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(var i in t[e]=r,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(t,e);if(a.value!==r||!0!==a.enumerable)return!1}return!0}},96410:function(t,e,n){"use strict";var r=n(55419);t.exports=function(){return r()&&!!Symbol.toStringTag}},48824:function(t,e,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(58612);t.exports=o.call(r,i)},8679:function(t,e,n){"use strict";var r=n(59864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(t){return r.isMemo(t)?u:s[t.$$typeof]||i}s[r.ForwardRef]=a,s[r.Memo]=u;var f=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,v=Object.prototype;function b(t,e,n){if("string"!=typeof e){if(v){var r=p(e);r&&r!==v&&b(t,r,n)}var i=l(e);d&&(i=i.concat(d(e)));for(var a=c(t),u=c(e),s=0;s */e.read=function(t,e,n,r,i){var o,a,u=8*i-r-1,s=(1<>1,f=-7,l=n?i-1:0,d=n?-1:1,h=t[e+l];for(l+=d,o=h&(1<<-f)-1,h>>=-f,f+=u;f>0;o=256*o+t[e+l],l+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+t[e+l],l+=d,f-=8);if(0===o)o=1-c;else{if(o===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,u,s,c=8*o-i-1,f=(1<>1,d=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(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),a+l>=1?e+=d/s:e+=d*Math.pow(2,1-l),e*s>=2&&(a++,s/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*s-1)*Math.pow(2,i),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&u,h+=p,u/=256,i-=8);for(a=a<0;t[n+h]=255&a,h+=p,a/=256,c-=8);t[n+h-p]|=128*v}},35717:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},82584:function(t,e,n){"use strict";var r=n(96410)(),i=n(21924)("Object.prototype.toString"),o=function(t){return(!r||!t||"object"!=typeof t||!(Symbol.toStringTag in t))&&"[object Arguments]"===i(t)},a=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},u=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=u?o:a},95320:function(t){"use strict";var e,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i(function(){throw 42},null,e)}catch(t){t!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(t){try{var e=r.call(t);return o.test(e)}catch(t){return!1}},u=function(t){try{if(a(t))return!1;return r.call(t),!0}catch(t){return!1}},s=Object.prototype.toString,c="[object Object]",f="[object Function]",l="[object GeneratorFunction]",d="[object HTMLAllCollection]",h="[object HTML document.all class]",p="[object HTMLCollection]",v="function"==typeof Symbol&&!!Symbol.toStringTag,b=!(0 in[,]),m=function(){return!1};if("object"==typeof document){var y=document.all;s.call(y)===s.call(document.all)&&(m=function(t){if((b||!t)&&(void 0===t||"object"==typeof t))try{var e=s.call(t);return(e===d||e===h||e===p||e===c)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(m(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==n)return!1}return!a(t)&&u(t)}:function(t){if(m(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;if(v)return u(t);if(a(t))return!1;var e=s.call(t);return!!(e===f||e===l||/^\[object HTML/.test(e))&&u(t)}},48662:function(t,e,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,u=n(96410)(),s=Object.getPrototypeOf,c=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch(t){}};t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(o.call(t)))return!0;if(!u)return"[object GeneratorFunction]"===i.call(t);if(!s)return!1;if(void 0===r){var e=c();r=!!e&&s(e)}return s(t)===r}},85692:function(t,e,n){"use strict";var r=n(86430);t.exports=function(t){return!!r(t)}},18552:function(t,e,n){var r=n(10852)(n(55639),"DataView");t.exports=r},1989:function(t,e,n){var r=n(51789),i=n(80401),o=n(57667),a=n(21327),u=n(81866);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++ei?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=i?t:r(t,e,n)}t.exports=i},74318:function(t,e,n){var r=n(11149);function i(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}t.exports=i},64626:function(t,e,n){t=n.nmd(t);var r=n(55639),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,u=a?a.allocUnsafe:void 0;function s(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}t.exports=s},77133:function(t,e,n){var r=n(74318);function i(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}t.exports=i},278:function(t){function e(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,u&&i(n[0],n[1],u)&&(a=o<3?void 0:a,o=1),e=Object(e);++rd))return!1;var p=f.get(t),v=f.get(e);if(p&&v)return p==e&&v==t;var b=-1,m=!0,y=n&u?new r:void 0;for(f.set(t,e),f.set(e,t);++b-1&&t%1==0&&t-1}t.exports=i},54705:function(t,e,n){var r=n(18470);function i(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}t.exports=i},24785:function(t,e,n){var r=n(1989),i=n(38407),o=n(57071);function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}t.exports=a},11285:function(t,e,n){var r=n(45050);function i(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}t.exports=i},96e3:function(t,e,n){var r=n(45050);function i(t){return r(this,t).get(t)}t.exports=i},49916:function(t,e,n){var r=n(45050);function i(t){return r(this,t).has(t)}t.exports=i},95265:function(t,e,n){var r=n(45050);function i(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}t.exports=i},68776:function(t){function e(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}t.exports=e},42634:function(t){function e(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}t.exports=e},24523:function(t,e,n){var r=n(88306),i=500;function o(t){var e=r(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}t.exports=o},94536:function(t,e,n){var r=n(10852)(Object,"create");t.exports=r},86916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},33498:function(t){function e(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=e},31167:function(t,e,n){t=n.nmd(t);var r=n(31957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},2333:function(t){var e=Object.prototype.toString;function n(t){return e.call(t)}t.exports=n},5569:function(t){function e(t,e){return function(n){return t(e(n))}}t.exports=e},45357:function(t,e,n){var r=n(96874),i=Math.max;function o(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,u=i(o.length-e,0),s=Array(u);++a0){if(++i>=e)return arguments[0]}else i=0;return t.apply(void 0,arguments)}}t.exports=i},37465:function(t,e,n){var r=n(38407);function i(){this.__data__=new r,this.size=0}t.exports=i},63779:function(t){function e(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=e},67599:function(t){function e(t){return this.__data__.get(t)}t.exports=e},44758:function(t){function e(t){return this.__data__.has(t)}t.exports=e},34309:function(t,e,n){var r=n(38407),i=n(57071),o=n(83369),a=200;function u(t,e){var n=this.__data__;if(n instanceof r){var u=n.__data__;if(!i||u.length-1&&t%1==0&&t<=e}t.exports=n},13218:function(t){function e(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=e},37005:function(t){function e(t){return null!=t&&"object"==typeof t}t.exports=e},68630:function(t,e,n){var r=n(44239),i=n(85924),o=n(37005),a="[object Object]",u=Object.prototype,s=Function.prototype.toString,c=u.hasOwnProperty,f=s.call(Object);function l(t){if(!o(t)||r(t)!=a)return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==f}t.exports=l},33448:function(t,e,n){var r=n(44239),i=n(37005),o="[object Symbol]";function a(t){return"symbol"==typeof t||i(t)&&r(t)==o}t.exports=a},36719:function(t,e,n){var r=n(38749),i=n(7518),o=n(31167),a=o&&o.isTypedArray,u=a?i(a):r;t.exports=u},3674:function(t,e,n){var r=n(14636),i=n(280),o=n(98612);function a(t){return o(t)?r(t):i(t)}t.exports=a},81704:function(t,e,n){var r=n(14636),i=n(10313),o=n(98612);function a(t){return o(t)?r(t,!0):i(t)}t.exports=a},66604:function(t,e,n){var r=n(89465),i=n(47816),o=n(67206);function a(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}t.exports=a},88306:function(t,e,n){var r=n(83369),i="Expected a function";function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},82492:function(t,e,n){var r=n(42980),i=n(21463)(function(t,e,n){r(t,e,n)});t.exports=i},39601:function(t,e,n){var r=n(40371),i=n(79152),o=n(15403),a=n(40327);function u(t){return o(t)?r(a(t)):i(t)}t.exports=u},18029:function(t,e,n){var r=n(35393),i=n(11700),o=r(function(t,e,n){return t+(n?" ":"")+i(e)});t.exports=o},70479:function(t){function e(){return[]}t.exports=e},95062:function(t){function e(){return!1}t.exports=e},59881:function(t,e,n){var r=n(98363),i=n(81704);function o(t){return r(t,i(t))}t.exports=o},79833:function(t,e,n){var r=n(80531);function i(t){return null==t?"":r(t)}t.exports=i},11700:function(t,e,n){var r=n(98805)("toUpperCase");t.exports=r},58748:function(t,e,n){var r=n(49029),i=n(93157),o=n(79833),a=n(2757);function u(t,e,n){return(t=o(t),void 0===(e=n?void 0:e))?i(t)?a(t):r(t):t.match(e)||[]}t.exports=u},59738:function(t){"use strict";t.exports=Math.abs},76329:function(t){"use strict";t.exports=Math.floor},43678:function(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},52264:function(t){"use strict";t.exports=Math.max},55730:function(t){"use strict";t.exports=Math.min},20707:function(t){"use strict";t.exports=Math.pow},63862:function(t){"use strict";t.exports=Math.round},29550:function(t,e,n){"use strict";var r=n(43678);t.exports=function(t){return r(t)||0===t?t:t<0?-1:1}},18013:function(t,e,n){"use strict";var r=n(28336),i=n(18040),o=n(24085),a=Object.prototype.toString;function u(t){return"[object Date]"===a.call(t)}function s(t){return"[object Number]"===a.call(t)}function c(t){return t<315576e5?1e3*t:t}t.exports=function(t){return u(t)?t:s(t)?new Date(c(t)):r.is(t)?r.parse(t):i.is(t)?i.parse(t):o.is(t)?o.parse(t):new Date(t)}},18040:function(t,e){"use strict";var n=/\d{13}/;e.is=function(t){return n.test(t)},e.parse=function(t){return new Date(t=parseInt(t,10))}},24085:function(t,e){"use strict";var n=/\d{10}/;e.is=function(t){return n.test(t)},e.parse=function(t){return new Date(1e3*parseInt(t,10))}},37157:function(t,e,n){"use strict";n.d(e,{Ze:function(){return u},u8:function(){return y},n:function(){return d}});var r=n(59499),i={"Sample Experiment":{numVariants:2,variantLabels:["Control","Variation"]},"What's New Top Nav Feature Flag":{numVariants:2,variantLabels:["Off","On"]},suf_003_product_ui_behind_signup_form:{numVariants:3,variantLabels:["Control","Timeline Background","Timeline Background with Bullet Points"]},nav_004_aa_test:{numVariants:2,variantLabels:["Control","Variant"]},dev_only_experiment:{numVariants:2,variantLabels:["Control","Variation 1"]},kevin_testing_experiment_creation:{numVariants:2,variantLabels:["Control","Variation 1"]},kevin_testing_experiment_v2:{numVariants:2,variantLabels:["Control","Variation 1"]},sd_032_pricing_page_redirect:{numVariants:2,variantLabels:["Control","Variant"]},"Experiment Rule":{numVariants:2,variantLabels:["Control - Unsubscribe from all","Show link to email preference center"]},sd_031_hc_nav_monetization_ctas:{numVariants:2,variantLabels:["control","Show Upgrade CTA by Asana Home CTA"]},hp_004_hero_layout_redesign:{numVariants:4,variantLabels:["Control","Variant 1","Variant 2","Variant 3"]},zendesk_hc_aa_exp:{numVariants:2,variantLabels:["control","variant"]},misconfigured_experiment_testing:{numVariants:2,variantLabels:["Control","Variation 1"]},duplicate_experiment_testing:{numVariants:2,variantLabels:["Control","Variation 1"]},sd_028_li_nav_dropdown:{numVariants:2,variantLabels:["Control","Variant"]},suf_006_security_copy:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},hp_005_homepage_full_redesign:{numVariants:4,variantLabels:["Control","Variant 0","Variant 1","Variant 2"]},cam_011_dual_cta_slg:{numVariants:2,variantLabels:["Control","Variant"]},hp_005_ooh_and_corporate_narrative_alignment:{numVariants:4,variantLabels:["Control","Variant 1","Variant 2","Variant 3"]},sd_035_improve_email_verification:{numVariants:2,variantLabels:["Email Verification Improvement Control","Email Verification Improvement Exp"]},nav_004_tier_one_markets:{numVariants:2,variantLabels:["Control","Variant 1"]},"perf_001_lazyload_lower_page_sections-all_locales":{numVariants:2,variantLabels:["Control - SSR all sections","Lazy-load below the fold"]},"perf_001_lazyload_lower_page_sections-ja_homepage":{numVariants:2,variantLabels:["Control - SSR all sections","Lazy-load below the fold"]},go_001_email_google_signup:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},nav_004_mobile_nav:{numVariants:2,variantLabels:["Control","Variant"]},sd_038_li_home_invite_focus_v2_5:{numVariants:2,variantLabels:["Control","Variant - enhance invite and v2.5 design"]},kevin_test_exp_webhook_format:{numVariants:2,variantLabels:["Control","Variation 1"]},kevin_test_experiment_conditional_rules:{numVariants:2,variantLabels:["Control","Variation 1"]},sd_032_pricing_page_redirect_v3:{numVariants:2,variantLabels:["control - stay on /pricing","variant - redirect to billing interstitial"]},tem_003_icon_link_removal:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},hp_006_direct_path_to_demo:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},pln_005_social_proof_iteration:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},sd_040_li_nav_dropdown_v2:{numVariants:2,variantLabels:["Control","Variant"]},sd_041_download_page_v3:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},sd_045_prominent_product_engagement:{numVariants:2,variantLabels:["Control","Variation 1"]},fc_001_hero_content:{numVariants:2,variantLabels:["Control","Variant"]},suf_011_corporate_narrative_headline:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},fd_001_remove_hero_image:{numVariants:2,variantLabels:["Control","Variant"]},tem_002_subcopy_removal:{numVariants:2,variantLabels:["Control","Variant"]},tea_001_dual_ctas:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},tem_007_sidebar_reorganization:{numVariants:2,variantLabels:["Control","Variant"]},suf_012_google_sso_copy:{numVariants:4,variantLabels:["Control","Variant 1","Variant 2","Variant 3"]},pnp_012_rearrange_plans:{numVariants:2,variantLabels:["Control","Variant"]},sd_046_apps_search:{numVariants:2,variantLabels:["Control","Variation 1"]},cam_014_hero_image:{numVariants:2,variantLabels:["Control","Variant"]},sd_042_m10n_optimization:{numVariants:3,variantLabels:["Control","Variation 1","Variation 2"]},slg_014_video_background:{numVariants:2,variantLabels:["Control","Variant"]},tem_008_google_sso:{numVariants:2,variantLabels:["Control","Variant"]},ver_001_nonprofit_redesign:{numVariants:2,variantLabels:["Control","Variant 1"]},res_011_sidebar_anchor:{numVariants:2,variantLabels:["Control","Variant"]},fd_002_values_above_hero:{numVariants:2,variantLabels:["Control","Variant"]},homepage_redirect_test_ja:{numVariants:2,variantLabels:["Control","Variation 1"]},hp_007_updated_product_ui_colors:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},ver_001_nonprofit_hero:{numVariants:2,variantLabels:["Control","Variant"]},slg_016_submission_cta:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},pnp_010_starter_plan_emphasized:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},res_013_cta_vs_banner:{numVariants:2,variantLabels:["Control","Variant"]},fc_002_emphasize_customer_quotes:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},tea_002_hero_cta_iteration:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},suf_014_en_gb_copy:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},chex_002_li_hp_desktop_app:{numVariants:3,variantLabels:["redirect to app.asana.com","redirect to asana.com/logged-In, show hero with desktop promo","redirect to asana.com/logged-In show new desktop app hero-v2"]},chex_010_template_search:{numVariants:2,variantLabels:["Control","Variation 1"]},fc_003_colored_background:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},nav_005_header_cta_reordering:{numVariants:3,variantLabels:["Control","Log In to the Left","Log In to the Left and Secondary contact sales"]},hp_008_hero_video:{numVariants:2,variantLabels:["Control","Variant 1"]},use_001_cta_redesign:{numVariants:2,variantLabels:["Control","Variant 1"]},de_001_homepage_redirect:{numVariants:2,variantLabels:["Control","Variant 1"]},res_015_webinar_offer:{numVariants:2,variantLabels:["Control","Variant 1"]},res_016_cta_banner_v2:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},ja_001_homepage_redirect:{numVariants:2,variantLabels:["Control","Variant 1"]},pln_006_secondary_trust_cta:{numVariants:2,variantLabels:["Control","Variant 1"]},slg_021_security_visual:{numVariants:2,variantLabels:["Control","Variant 1"]},ver_002_nonprofit_redirect:{numVariants:2,variantLabels:["Control","Variant"]},slg_022_remove_image_mobile_header:{numVariants:2,variantLabels:["Control","Variant"]},slg_015_form_context_iteration:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},res_017_ai_demo_offer:{numVariants:2,variantLabels:["Control","Variant 1"]},pro_004_card_style_footer_cta:{numVariants:2,variantLabels:["Control","Variant 1"]},plad_apps_slack_redesign:{numVariants:2,variantLabels:["Control","Variant 1"]},use_002_invert_hero_ctas:{numVariants:2,variantLabels:["Control","Variation 1"]},nav_006_updated_plans_list:{numVariants:2,variantLabels:["Control","Variation 1"]},res_014_demo_offer:{numVariants:2,variantLabels:["Control","Variant 1"]},res_012_operations_offer:{numVariants:2,variantLabels:["Control","Variant 1"]},res_018_workflows_offer:{numVariants:2,variantLabels:["Control","Variant 1"]},res_019_report_cta_banner:{numVariants:2,variantLabels:["Control","Variant 1"]},rm_001_landing_layout_test:{numVariants:2,variantLabels:["Control","Variant 1"]},hp_009_product_secondary_cta:{numVariants:2,variantLabels:["Control","Variant 1"]},cam_005_hero_ai_video:{numVariants:2,variantLabels:["Control","Variant 1"]},ja_001_home_update:{numVariants:2,variantLabels:["Control","Variant"]},ja_002_navigation_native_copy:{numVariants:2,variantLabels:["Control","Variant 1"]},fd_004_media_alignment:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},hp_010_secondary_cta_cards:{numVariants:4,variantLabels:["Control","Variant 1","Variant 2","Variant 3"]},"chex-024-toggle":{numVariants:2,variantLabels:["Control","Variation 1"]},plad_apps_slack_redesign_v2:{numVariants:2,variantLabels:["Control","Variant 1"]},pln_007_anchor_contact_sales:{numVariants:2,variantLabels:["Control","Variation 1"]},tem_011_create_account_template:{numVariants:2,variantLabels:["Control","Variant 1"]},tea_004_demo_sales_form:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},pnp_014_south_east_asia_discount:{numVariants:2,variantLabels:["Control","Variation 1"]},pnp_014_south_east_asia_discount_redirect:{numVariants:2,variantLabels:["Control","Variation 1"]},use_003_emphasize_customer_quote:{numVariants:2,variantLabels:["Control","Variant 1"]},de_002_homepage:{numVariants:2,variantLabels:["Control","Variation 1"]},hp_011_hero_video:{numVariants:2,variantLabels:["Control","Variant"]},qualified_chat_delay:{numVariants:2,variantLabels:["Control","Variation 1"]},fr_001_homepage:{numVariants:2,variantLabels:["Control","Variant 1"]},slg_023_demo_form_copy:{numVariants:2,variantLabels:["Control","Variant 1"]},nav_007_features_category_only:{numVariants:2,variantLabels:["Control","Variant 1"]},tem_012_create_account:{numVariants:2,variantLabels:["Control","Variation 1"]},ja_003_home_rebrand:{numVariants:2,variantLabels:["Control","Variant"]},app_001_lead_form_cta:{numVariants:2,variantLabels:["Control","Variant 1"]},app_002_lead_form_cta:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},tea_005_repositioned_roi:{numVariants:2,variantLabels:["Control","Variant 1"]},tem_013_templates_hero:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},skilljar_academy_aa_exp:{numVariants:2,variantLabels:["control","variant"]},fd_003_image_feature_cards:{numVariants:2,variantLabels:["Control","Variant 1"]},slg_025_form_position:{numVariants:2,variantLabels:["Control","Variant 1"]},pln_008_hero_video:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},aca_001_academy_home_hero_paths:{numVariants:3,variantLabels:["Control","Variation 1","Variation 2"]},nav_001_product_cta:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},use_004_email_field_hero:{numVariants:2,variantLabels:["Control","Variant 1"]},pro_001_hero_cta:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},slg_026_full_width_cta:{numVariants:2,variantLabels:["Control","Variant 1"]},pnp_001_remove_innecesary:{numVariants:3,variantLabels:["Control","Variation 1","Variation 2"]},nav_008_remove_enterprise:{numVariants:3,variantLabels:["Control","Variation 1","Variation 2"]},int_001_homepage_video:{numVariants:2,variantLabels:["Control","Variation 1"]},ja_004_homepage_video:{numVariants:3,variantLabels:["Control","Variation 1","Variation 2"]},use_005_elevated_apps:{numVariants:2,variantLabels:["Control","Variant 1"]},use_001_hero_cta_interaction:{numVariants:3,variantLabels:["Control","Variation 1","Variation 2"]},tea_006_repositioned_roi:{numVariants:3,variantLabels:["Unused","Control","Variant"]},res_001_sidebar_cta_copy:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},pro_008_footer_ctas:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},slg_027_remove_placeholders:{numVariants:2,variantLabels:["Control","Variation 1"]},tem_015_templates_sidebar_cta:{numVariants:2,variantLabels:["Control","Variant 1"]},tem_014_rounded_colored_try_for_free:{numVariants:4,variantLabels:["Control","Variation 1 (Green)","Variation 2 (Red)","Variation 3 (Blue)"]},suf_016_google_sso_cta:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},slg_001_social_proof:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},fd_001_features_hero_cta:{numVariants:2,variantLabels:["Control","Variant 1"]},fd_002_cta_to_academy:{numVariants:3,variantLabels:["Control","Variation 1","Variation 2"]},cam_003_sales_modal:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},res_002_sidebar_cta_copy:{numVariants:2,variantLabels:["Control","Variant 1"]},suf_017_region_specific_logos:{numVariants:2,variantLabels:["Control","Variant 1"]},use_006_two_column_hero:{numVariants:2,variantLabels:["Control","Variant 1"]},slg_029_remove_logos:{numVariants:3,variantLabels:["Control","Variation 1","Variation 2"]},tem_001_product_gallery_cta:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},tem_016_footer_dual_cta:{numVariants:2,variantLabels:["Control","Variant 1"]},suf_018_headline_change:{numVariants:3,variantLabels:["Control","Variation 1","Variation 2"]},pnp_015_logged_out_modified_features:{numVariants:2,variantLabels:["Control","Variant 1"]},pnp_015_logged_in_modified_features:{numVariants:2,variantLabels:["Control","Variant 1"]},slg_028_two_step_marketo_form:{numVariants:4,variantLabels:["Control","Variation 1","Variation 2","Variation 3"]},tem_017_regional_logos:{numVariants:2,variantLabels:["Control","Variant 1"]},res_003_ncaa_offer:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},tea_007_marketing_teams_offer:{numVariants:4,variantLabels:["Control","Variant 1","Variant 2","Variant 3"]},res_005_remove_hero_image:{numVariants:2,variantLabels:["Control","Variation 1"]},suf_019_roi_stats:{numVariants:2,variantLabels:["Control","Variant 1"]},salesforce_hc_aa_exp:{numVariants:2,variantLabels:["Control","Variant"]},suf_020_headline_copy:{numVariants:4,variantLabels:["Control","Variant 1","Variant 2","Variant 3"]},hp_011_homepage_uses_cases:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},li_hp_001_card_footer:{numVariants:4,variantLabels:["Control","Variant 1","Variant 2","Variant 3"]},pro_009_two_column_slideshow:{numVariants:2,variantLabels:["Control","Variant 1"]},aca_002_customer_portal_links_in_nav_bar:{numVariants:3,variantLabels:["Control","Variation 1","Variation 2"]},cam_003_split_2:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},slg_031_form_cta_copy:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},li_slg_002_descriptive_cta:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},li_pnp_002_pricing_social_proof:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},var_001_academy_cta:{numVariants:3,variantLabels:["Control","Variation 1","Variation 2"]},use_007_timeline_refresh:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},product_ai_hero_rive:{numVariants:2,variantLabels:["Control","Variant 1"]},int_002_campaign_hero_video:{numVariants:2,variantLabels:["Control","Variant 1"]},slg_030_sales_roi_quote:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},hp_012_dark_background:{numVariants:2,variantLabels:["Control","Variant 1"]},tea_008_teams_offer_highlight:{numVariants:2,variantLabels:["Control","Variant 1"]},pro_010_coordination_headline:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},pnp_016_remove_toggle:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},tem_020_cta_iteration_and_hero:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},res_020_youtube_article_feature:{numVariants:2,variantLabels:["Control","Variant 1"]},pro_011_5ws_and_work_graph:{numVariants:3,variantLabels:["Control","Variation 1","Variation 2"]},suf_021_create_account_roi:{numVariants:2,variantLabels:["Control","Variant 1"]},res_021_resources_header:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},dvo_001_ai_video_messaging:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},cal_001_footer_sales_cta:{numVariants:2,variantLabels:["Control","Variant 1"]},ja_005_featured_suzuki_video:{numVariants:2,variantLabels:["Control","Variant 1"]},aca_003_persona_based_learning_path:{numVariants:2,variantLabels:["Control","Variant 1"]},nav_002_product_cta:{numVariants:3,variantLabels:["Control","Go to Asana","Go to app"]},slg_034_anz_phone_number:{numVariants:2,variantLabels:["Control","Variation 1"]},slg_033_refresh_background_image:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},pnp_017_streamline_hero_copy:{numVariants:4,variantLabels:["Control","Variation 1","Variation 2","Variation 3"]},tem_021_templates_search_bar:{numVariants:2,variantLabels:["Control","Variant 1"]},pro_012_product_ai_resources:{numVariants:2,variantLabels:["Control","Variant 1"]},int_003_resources_sidebar_cta:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},hp_013_logo_bar_copy:{numVariants:4,variantLabels:["Control","Variant 1","Variant 2","Variant 3"]},cam_009_google_sso_demo_module:{numVariants:2,variantLabels:["Control","Variant 1"]},cam_015_google_sso_button:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},ind_001_use_cases_cta:{numVariants:2,variantLabels:["Control","Variant 1"]},tea_010_webinar_promo:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]},tea_011_webinar_vs_ebook:{numVariants:2,variantLabels:["Control","Variant 1"]},hp_014_int_logo_bar_copy:{numVariants:4,variantLabels:["Control","Variant 1","Variant 2","Variant 3"]},tem_022_templates_tiles:{numVariants:2,variantLabels:["Control","Variant 1"]},pnp_018_social_proof_logos:{numVariants:2,variantLabels:["Control","Variant 1"]},cam_016_try_asana_today_cta:{numVariants:2,variantLabels:["Control","Variant 1"]},int_004_resources_demo_banner:{numVariants:2,variantLabels:["Control","Variant 1"]},hp_015_banner_positioning:{numVariants:3,variantLabels:["Control","Variant 1","Variant 2"]}};function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function a(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:v(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b(),r=e[t],i=n[t];return r?i?a(a(a({},r),i),{},{variantInfoSource:d.GROWTHBOOK}):a(a({},r),{},{numVariants:4,variantLabels:["Control","Variant 1","Variant 2","Variant 3"],variantInfoSource:d.DEFAULT}):null},y={REDIRECT_TESTS:h,ENROLLMENT_TYPES:s,DEVICE_TYPE_FILTER:c,getExperiments:v,getExperimentWithVariantsInfoOrNull:m}},83556:function(t,e,n){"use strict";n.d(e,{Mv:function(){return r},QC:function(){return i},jV:function(){return o}});var r={IS_LOGGED_IN:"is_logged_in",LAST_DOMAIN:"last_domain",BUCKETING_ID:"logged_out_uuid",GOOGLE_CLIENT_ID:"_ga",CAN_VIEW_BILLING_INTERSTITIAL_UPGRADE_FLOW:"can_view_upgrade_flow",LOGGED_IN_HOME_ENABLED:"enable_asanadotcom_homepage",LOGGED_IN_HOME_DOMAIN_TEST_SHOULD_SHOW_MODAL:"lihp_domain_test_should_show_modal",IS_ORG_PAYING_BILLING_OWNER:"is_org_paying_billing_owner",USER_GEO:"user_geo",USER_IS_FREE_OR_TRIALING:"is_free_or_trialing",LANGUAGE_PREFERENCE:"lang_pref"},i="asanadotcomLoggedOutExperimentEnrollment",o="expSplitPoint"},19380:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});var r=(0,n(53050).createAsyncLocalStorage)();("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},96807:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"actionAsyncStorage",{enumerable:!0,get:function(){return r.actionAsyncStorage}});var r=n(19380);("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},53050:function(t,e,n){"use strict";var r=n(23322),i=n(16089);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createAsyncLocalStorage",{enumerable:!0,get:function(){return s}});var o=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),a=function(){function t(){r(this,t)}return i(t,[{key:"disable",value:function(){throw o}},{key:"getStore",value:function(){}},{key:"run",value:function(){throw o}},{key:"exit",value:function(){throw o}},{key:"enterWith",value:function(){throw o}}]),t}(),u=globalThis.AsyncLocalStorage;function s(){return u?new u:new a}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},31892:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{ReadonlyURLSearchParams:function(){return s.ReadonlyURLSearchParams},RedirectType:function(){return s.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return s.notFound},permanentRedirect:function(){return s.permanentRedirect},redirect:function(){return s.redirect},useParams:function(){return h},usePathname:function(){return l},useRouter:function(){return d},useSearchParams:function(){return f},useSelectedLayoutSegment:function(){return b},useSelectedLayoutSegments:function(){return v},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});var r=n(67294),i=n(4302),o=n(69034),a=n(85629),u=n(27937),s=n(43413),c=n(71645);function f(){var t=(0,r.useContext)(o.SearchParamsContext);return(0,r.useMemo)(function(){return t?new s.ReadonlyURLSearchParams(t):null},[t])}function l(){return(0,r.useContext)(o.PathnameContext)}function d(){var t=(0,r.useContext)(i.AppRouterContext);if(null===t)throw Error("invariant expected app router to be mounted");return t}function h(){return(0,r.useContext)(o.PathParamsContext)}function p(t,e,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=[]),n)i=t[1][e];else{var i,o,s=t[1];i=null!=(o=s.children)?o:Object.values(s)[0]}if(!i)return r;var c=i[0],f=(0,a.getSegmentValue)(c);return!f||f.startsWith(u.PAGE_SEGMENT_KEY)?r:(r.push(f),p(i,e,!1,r))}function v(t){void 0===t&&(t="children");var e=(0,r.useContext)(i.LayoutRouterContext);return e?p(e.tree,t):null}function b(t){void 0===t&&(t="children");var e=v(t);if(!e||0===e.length)return null;var n="children"===t?e[0]:e[e.length-1];return n===u.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},43413:function(t,e,n){"use strict";var r=n(16089),i=n(23322),o=n(55667),a=n(81961),u=n(67731),s=n(27033);function c(t){var e=f();return function(){var n,r=u(t);return n=e?Reflect.construct(r,arguments,u(this).constructor):r.apply(this,arguments),a(this,n)}}function f(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{ReadonlyURLSearchParams:function(){return p},RedirectType:function(){return l.RedirectType},notFound:function(){return d.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect}});var l=n(1751),d=n(71124),h=function(t){o(n,t);var e=c(n);function n(){return i(this,n),e.call(this,"Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}return r(n)}(s(Error)),p=function(t){o(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return r(n,[{key:"append",value:function(){throw new h}},{key:"delete",value:function(){throw new h}},{key:"set",value:function(){throw new h}},{key:"sort",value:function(){throw new h}}]),n}(s(URLSearchParams));("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},71124:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{isNotFoundError:function(){return i},notFound:function(){return r}});var n="NEXT_NOT_FOUND";function r(){var t=Error(n);throw t.digest=n,t}function i(t){return"object"==typeof t&&null!==t&&"digest"in t&&t.digest===n}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},44980:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),function(t){t[t.SeeOther=303]="SeeOther",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect"}(n||(n={})),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},1751:function(t,e,n){"use strict";var r,i=n(43171);Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return v},getRedirectTypeFromError:function(){return p},getURLFromRedirectError:function(){return h},isRedirectError:function(){return d},permanentRedirect:function(){return l},redirect:function(){return f}});var o=n(73495),a=n(96807),u=n(44980),s="NEXT_REDIRECT";function c(t,e,n){void 0===n&&(n=u.RedirectStatusCode.TemporaryRedirect);var r=Error(s);r.digest=s+";"+e+";"+t+";"+n+";";var i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function f(t,e){void 0===e&&(e="replace");var n=a.actionAsyncStorage.getStore();throw c(t,e,(null==n?void 0:n.isAction)?u.RedirectStatusCode.SeeOther:u.RedirectStatusCode.TemporaryRedirect)}function l(t,e){void 0===e&&(e="replace");var n=a.actionAsyncStorage.getStore();throw c(t,e,(null==n?void 0:n.isAction)?u.RedirectStatusCode.SeeOther:u.RedirectStatusCode.PermanentRedirect)}function d(t){if("object"!=typeof t||null===t||!("digest"in t)||"string"!=typeof t.digest)return!1;var e=i(t.digest.split(";",4),4),n=e[0],r=e[1],o=e[2],a=Number(e[3]);return n===s&&("replace"===r||"push"===r)&&"string"==typeof o&&!isNaN(a)&&a in u.RedirectStatusCode}function h(t){return d(t)?t.digest.split(";",3)[2]:null}function p(t){if(!d(t))throw Error("Not a redirect error");return t.digest.split(";",2)[1]}function v(t){if(!d(t))throw Error("Not a redirect error");return Number(t.digest.split(";",4)[3])}!function(t){t.push="push",t.replace="replace"}(r||(r={})),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},50904:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});var r=(0,n(53050).createAsyncLocalStorage)();("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},73495:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{getExpectedRequestStore:function(){return i},requestAsyncStorage:function(){return r.requestAsyncStorage}});var r=n(50904);function i(t){var e=r.requestAsyncStorage.getStore();if(e)return e;throw Error("`"+t+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},85629:function(t,e){"use strict";function n(t){return Array.isArray(t)?t[1]:t}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},41293:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return r}});var r=n(38754)._(n(67294)).default.createContext({})},19017:function(t,e){"use strict";function n(t){var e=void 0===t?{}:t,n=e.ampFirst,r=void 0!==n&&n,i=e.hybrid,o=void 0!==i&&i,a=e.hasQuery,u=void 0!==a&&a;return r||o&&u}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return n}})},76985:function(t,e,n){"use strict";var r=n(20968);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e0){a=!0;var u=i.key.slice(i.key.indexOf("$")+1);t.has(u)?o=!1:t.add(u)}switch(i.type){case"title":case"base":e.has(i.type)?o=!1:e.add(i.type);break;case"meta":for(var s=0,c=b.length;s MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE */var r=n(20968),i=n(23322),o=n(16089);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function c(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&(e.className="".concat(e.className," ").concat(r.join(" ")).trim())}}},[t])};e.Z=i},56429:function(t,e,n){"use strict";n.d(e,{w:function(){return c}});var r=n(59499),i=n(97248),o=n(67294),a=n(35944);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function f(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n6&&void 0!==arguments[6]?arguments[6]:"Lax";if(n!==i.En.NECESSARY&&!m(n)){window.AsanaStorage.pendingCookies.push({name:t,value:e,groupId:n,expires_in_days:r,cross_domain:o,path:a});return}r=r||30,o=void 0===o||o;var s=new Date;s.setTime(s.getTime()+864e5*r);var c="expires="+s.toUTCString(),f=a||"/";document.cookie=t+"="+e+";"+c+";path="+f+y(o)+";SameSite=".concat(u)+";secure"}function m(t){var e=window.OptanonActiveGroups;return e&&e.includes(t)}function y(t){var e=/netlify\.app/.test(window.location.hostname);return t&&!e?";domain=.asana.com":""}},14991:function(t){t.exports={isSandbox:!1,isDevelopment:!1,isTest:!1,isStaging:!1,isProduction:!0,isQaEnv:!1,isPreview:!1,isDeployPreview:!1,env:"production"}},42601:function(t,e,n){var r=n(23322),i=n(16089),o=function(){"use strict";function t(){r(this,t)}return i(t,[{key:"info",value:function(t){console.info("INFO:",t)}},{key:"warn",value:function(t){console.warn("WARN",t)}},{key:"error",value:function(t){console.error("ERROR",t)}}]),t}();t.exports=o},29326:function(t,e,n){"use strict";n.d(e,{ts:function(){return o}});var r=n(37157);n(83556);var i=n(29793);function o(t){var e=r.u8.getExperiments()[t];if(void 0===e)return r.Ze.CONTROL;var n=(0,i.dz)();return void 0!==e.minWidth&&ne.maxWidth?r.Ze.CONTROL:window.experimentVariants&&window.experimentVariants[t]||r.Ze.CONTROL}},54401:function(t,e,n){"use strict";var r=n(67294).createContext({global_CTAgoToAppDesktop:"",global_CTAlaunchAsana:"",global_CtaTrialHref:"",global_CTAsignupEmail:"",global_CtaFreeSignupHref:"",preview:!1,microcopy:{}});r.displayName="GlobalsContext",e.Z=r},67925:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(67294);function i(t){var e=(0,r.useState)(function(){return o(t)}),n=e[0],i=e[1];return(0,r.useEffect)(function(){i(o(t))},[t]),(0,r.useDebugValue)(n),{cookieValue:n,setCookieValue:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.expiresInDays,o=void 0===r?30:r,a=n.groupId,u=n.crossDomain,s=void 0===u||u,c=n.path,f=void 0===c?"/":c;window.AsanaStorage.setCookie(t,e,a,o,s,f),i(e)}}}function o(t){if(!(null!==(e=window)&&void 0!==e&&null!==(e=e.AsanaStorage)&&void 0!==e&&e.getCookie))return null;var e,n=window.AsanaStorage.getCookie(t);return"null"===n?null:n}},29793:function(t,e,n){"use strict";n.d(e,{ZP:function(){return d},dz:function(){return f}});var r=n(67294),i=n(91225),o=i.u3[i.Uo.MOBILE_480].width,a=i.u3[i.Uo.TABLET_960].width,u=function(t){return t>a},s=function(t){return o0&&void 0!==arguments[0]?arguments[0]:{},e=t.defaultViewportWidth,n=(0,r.useState)(e||0),i=n[0],o=n[1],a=(0,r.useState)(0),d=a[0],h=a[1],p=(0,r.useState)(0),v=p[0],b=p[1],m=(0,r.useState)(0),y=m[0],g=m[1],_=(0,r.useState)(0),w=_[0],S=_[1],E=(0,r.useState)(null),A=E[0],k=E[1],x=(0,r.useState)(""),O=x[0],M=x[1],T=(0,r.useState)(""),C=T[0],R=T[1];function P(){var t,e,n=navigator.userAgent;if(!n)return"";var r=n.match(/\(Mac[^)]*/)&&(null===(t=n.match(/\(Mac[^)]*/))||void 0===t?void 0:t[0])+")",i=n.match(/\(Win[^)]*/)&&(null===(e=n.match(/\(Win[^)]*/))||void 0===e?void 0:e[0])+")";return r||i||""}function I(){var t,e,n=navigator.userAgent;if(!n)return"";var r=null===(t=n.match(/Firefox[^\s]*/))||void 0===t?void 0:t[0],i=null===(e=n.match(/Chrome[^\s]*/))||void 0===e?void 0:e[0],o=n.match(/Version\/[^\s]*/)&&"Safari "+n.match(/Version\/[^\s]*/);return r||i||o||""}function L(){return document?Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight):0}function j(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;return n==r&&(r=e.clientWidth),document.body.removeChild(e),n-r}return(0,r.useDebugValue)(i),(0,r.useDebugValue)(A),(0,r.useEffect)(function(){if(document)return h(L()),o(f()),b(window.innerWidth),g(window.innerHeight),k(l(navigator.userAgent,document)),M(P()),R(I()),S(j()),window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)};function t(){o(f()),h(L()),b(window.innerWidth),g(window.innerHeight)}},[]),{isMobile:c(i),isTablet:s(i),isDesktop:u(i),isMobilePlatform:"ios"===A||"android"===A,platform:A,browser:C,os:O,viewportWidth:i,viewportHeight:d,scrollbarWidth:w,windowInnerWidth:v,windowInnerHeight:y}}},47794:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(39332),i=n(67294),o=n(67925),a=n(50145);function u(){var t=(0,o.Z)("is_logged_in").cookieValue,e=(0,i.useState)(null),n=e[0],u=e[1],s=(0,r.useSearchParams)();(0,i.useDebugValue)(n),(0,i.useEffect)(function(){u("true"===t)},[]);var c=s.get(a.g.AUTH_STATUS);return c?[c===a.m.LOGGED_IN]:[n]}},53230:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(67294);function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100,o=(0,r.useState)(!1),a=o[0],u=o[1],s=(0,r.useState)(new Date().getTime())[0];return(0,r.useEffect)(function(){var r=window.setInterval(function(){if(new Date().getTime()-s>e)return n&&u(!0),clearInterval(r);var i=t();if(u(i),i)return clearInterval(r)},i);return function(){return clearInterval(r)}},[]),a}},27001:function(t,e,n){var r=n(43171),i=n(20968);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function a(t){for(var e=1;e-1?e:f}function k(t){return A(t)===f}function x(t){var e=(t=s(t)).split("/"),n=e[0];return g.indexOf(n)>-1&&e.shift(),c(e.join("/"))}function O(t,e){return"string"!=typeof t||"string"!=typeof e?null:"".concat(t.toLowerCase(),"-").concat(e.toLowerCase())}var M=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"];t.exports={getPageLanguage:A,getContentfulLocale:E,getLanguageGeoCode:O,isPageLanguageDefault:k,removeLanguageFromPath:x,DEFAULT_LANGUAGE:f,DEFAULT_LOCALE:_,LANGUAGES:l,LANGUAGES_NO_FALLBACKS:d,ALL_LANGUAGE_CODES_WITH_FALLBACKS:b,LANGUAGE_CODES_WITH_FALLBACKS:m,LANGUAGE_MAP:y,LANGUAGE_CODES:g,LANGUAGE_CODES_NO_FALLBACKS:h,ALL_ISO_3166_COUNTRY_CODES:M,ALL_LANGUAGE_CODES:w,CONTENTFUL_DEFAULT_LOCALE:S,ACADEMY_LANGUAGES:p,ACADEMY_LANGUAGE_CODES:v}},86791:function(t,e,n){"use strict";n.d(e,{Iy:function(){return F},iE:function(){return D}});var r=n(59499),i=n(50029),o=n(64687),a=n.n(o),u=n(90116),s=n(17674),c=n(82262),f=n(92777),l=n(81531),d=n(72179),h=n(37247),p=n(90607);function v(t){return -1!==Function.toString.call(t).indexOf("[native code]")}function b(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function m(t,e,n){return(m=b()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&(0,p.Z)(i,n.prototype),i}).apply(null,arguments)}function y(t){var e="function"==typeof Map?new Map:void 0;return(y=function(t){if(null===t||!v(t))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return m(t,arguments,(0,h.Z)(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,p.Z)(n,t)})(t)}function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _(t){for(var e=1;e1&&void 0!==b[1]?b[1]:{},e.startsWith("/")){t.next=3;break}throw Error("Path must start with /");case 3:if(!((s=null===(n=window.AsanaStorage)||void 0===n?void 0:n.getFromLocalStorage(E))&&x.includes(s)&&0!=s.length)){t.next=20;break}return t.prev=5,c=M(s,e,r.queryParams),t.next=9,fetch(c,_({credentials:"include"},r));case 9:o=t.sent,t.next=15;break;case 12:t.prev=12,t.t0=t.catch(5),console.warn("LocalStorage cluster fetch failed:",t.t0,s);case 15:if(!o){t.next=20;break}if(!(!o.ok&&303!==o.status)){t.next=18;break}throw Error("Received error response from stored datacenter: ".concat(o.status));case 18:if(!o.ok){t.next=20;break}return t.abrupt("return",o);case 20:return f=M(A.prefix,e,r.queryParams),t.prev=21,t.next=24,fetch(f,_({credentials:"include"},r));case 24:o=t.sent,t.next=30;break;case 27:t.prev=27,t.t1=t.catch(21),console.warn("Prod cluster fetch failed:",t.t1);case 30:if(!o){t.next=36;break}if(!(!o.ok&&303!==o.status)){t.next=33;break}throw Error("Received error response: ".concat(o.status));case 33:if(!o.ok){t.next=36;break}return null===(l=window.AsanaStorage)||void 0===l||l.setToLocalStorage(E,A.prefix),t.abrupt("return",o);case 36:return d=[],p=(h=k.map(function(t){return(0,i.Z)(a().mark(function n(){var i,o,u;return a().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,i=M(t.prefix,e,r.queryParams),n.next=4,fetch(i,_({credentials:"include"},r));case 4:if(o=n.sent,d.push(o),!o.ok){n.next=9;break}return null===(u=window.AsanaStorage)||void 0===u||u.setToLocalStorage(E,t.prefix),n.abrupt("return",o);case 9:if(!(303!==o.status)){n.next=11;break}throw Error("Received error response: ".concat(o.status));case 11:return n.abrupt("return",null);case 14:return n.prev=14,n.t0=n.catch(0),d.push(n.t0 instanceof Error?n.t0:Error(String(n.t0))),n.abrupt("return",null);case 18:case"end":return n.stop()}},n,null,[[0,14]])}))()})).map(function(t){return t.then(function(t){return t instanceof Response&&t.ok?t:new Promise(function(){})})}),v=Promise.all(h).then(function(){if(d.some(function(t){return t instanceof Error||t instanceof Response&&!t.ok&&303!==t.status}))throw new O("Error fetching from clusters",d.filter(function(t){return t instanceof Response}));throw new O("Data not found in any cluster",d.filter(function(t){return t instanceof Response}))}),t.abrupt("return",Promise.race([].concat((0,u.Z)(p),[v])));case 41:case"end":return t.stop()}},t,null,[[5,12],[21,27]])}));return function(e){return t.apply(this,arguments)}}(),C=n(21102);function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function P(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function L(t,e){if(t){if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1?n[1].split("&"):[];if(1===r.length&&""===r[0])return"";for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:u,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{defaultLanguage:u,overrideExistingLanguage:!1};if(/(^http)/.test(n))return n;var o=!_(n),a=i.defaultLanguage||u;if(i.overrideExistingLanguage&&h.test(n)){var c=new RegExp("^\\/?(".concat(s.map(function(t){return t+"\\/"}).join("|"),")+"));n=n.replace(c,"")}return t=h.test(n)||e===a||!/(^[^:]*$)/.test(n)||/(^(#).+)/.test(n)||d.test(_(n))?n:o?r.join(e+f(n)):r.join(e,n),"/"+f(t)}function S(t){return d.test(t)||h.test(t)}function E(t,e){var n=t.includes(p.production),r=new RegExp("(\\/(".concat(s.join("|"),")(?:\\/?))"));return!n||"en"==e|r.test(t)?t:l(t.replace(p.production,"".concat(p.production,"/").concat(e)))}t.exports={englishPath:y,cleanPath:_,removeTrailingHashFromPath:g,useCurrentUrl:v,getCurrentDomain:b,getAllUrlParams:m,prependLanguagePath:w,domains:p,pathContainsLanguage:S,addLanguageToAbsoluteUrl:E}},88769:function(t,e,n){"use strict";n.d(e,{FP:function(){return eH},dv:function(){return eJ},ZP:function(){return eK},Nt:function(){return eW},jU:function(){return eX}});var r,i,o,a=n(50029),u=n(64687),s=n.n(u),c=n(67294),f=n(39332),l=n(97582),d=n(34155);function h(){return void 0!==d&&d.env?d.env:{}}var p=n(99382),v=n(55609),b=n(55469);function m(t,e,n,r){var i,o=[t,e,n,r],a=(0,b.PO)(t)?t.event:t;if(!a||!(0,b.HD)(a))throw Error("Event missing");var u=(0,b.PO)(t)?null!==(i=t.properties)&&void 0!==i?i:{}:(0,b.PO)(e)?e:{},s={};return(0,b.mf)(n)||(s=null!=n?n:{}),(0,b.PO)(t)&&!(0,b.mf)(e)&&(s=null!=e?e:{}),[a,u,s,o.find(b.mf)]}function y(t,e,n,r,i){var o,a,u=null,s=null,c=[t,e,n,r,i],f=c.filter(b.HD);void 0!==f[0]&&void 0!==f[1]&&(u=f[0],s=f[1]),1===f.length&&(u=null,s=f[0]);var l=c.find(b.mf),d=c.filter(function(t){return null===s?(0,b.PO)(t):(0,b.PO)(t)||null===t}),h=null!==(o=d[0])&&void 0!==o?o:{},p=null!==(a=d[1])&&void 0!==a?a:{};return[u,s,h,p,l]}var g=function(t){return function(){for(var e,n,r,i=[],o=0;o-1?t:t+e},L=function(t){var e=t.indexOf("#");return -1===e?t:t.slice(0,e)},j=function(t){try{return new URL(t).pathname}catch(e){return"/"===t[0]?t:"/"+t}},N=function(t){var e=t.c,n=t.p,r=t.s,i=t.u,o=t.r,a=t.t,u=e?j(e):n,s=e?I(e,r):L(i);return{path:u,referrer:o,search:r,title:a,url:s}},D=function(){var t=document.querySelector("link[rel='canonical']");return C(location.href,t&&t.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},B=function(){return N(D())},V=function(t,e){void 0===e&&(e=B());var n,r=t.context;"page"===t.type&&(n=t.properties&&M(t.properties,Object.keys(e)),t.properties=(0,l.pi)((0,l.pi)((0,l.pi)({},e),t.properties),t.name?{name:t.name}:{})),r.page=(0,l.pi)((0,l.pi)((0,l.pi)({},e),n),r.page)},U=n(96475),G=function(t,e){return Object.keys(t).filter(function(n){return e(n,t[n])}).reduce(function(e,n){return e[n]=t[n],e},{})},F=function(t){function e(e,n){var r=t.call(this,"".concat(e," ").concat(n))||this;return r.field=e,r}return(0,l.ZT)(e,t),e}(Error),q="is not a string",z="is not an object",H="is nil";function W(t){if(!(0,b.Gg)(t))throw new F("Event",H);if("object"!=typeof t)throw new F("Event",z)}function K(t){if(!(0,b.HD)(t.type))throw new F(".type",q)}function Z(t){if(!(0,b.HD)(t.event))throw new F(".event",q)}function Y(t){if(!(0,b.PO)(t.properties))throw new F(".properties",z)}function J(t){if(!(0,b.PO)(t.traits))throw new F(".traits",z)}function $(t){if(!(0,b.HD)(t.messageId))throw new F(".messageId",q)}function X(t){W(t),K(t),$(t),"track"===t.type&&(Z(t),Y(t)),["group","identify"].includes(t.type)&&J(t)}var Q=function(){return function(t){var e,n;this.settings=t,this.createMessageId=t.createMessageId,this.onEventMethodCall=null!==(e=t.onEventMethodCall)&&void 0!==e?e:function(){},this.onFinishedEvent=null!==(n=t.onFinishedEvent)&&void 0!==n?n:function(){}}}(),tt=function(t){function e(e){var n=t.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,O.v4)())},onEventMethodCall:function(t){var e=t.options;n.maybeUpdateAnonId(e)},onFinishedEvent:function(t){return n.addIdentity(t),t}})||this;return n.user=e,n}return(0,l.ZT)(e,t),e.prototype.maybeUpdateAnonId=function(t){(null==t?void 0:t.anonymousId)&&this.user.anonymousId(t.anonymousId)},e.prototype.addIdentity=function(t){this.user.id()&&(t.userId=this.user.id()),this.user.anonymousId()&&(t.anonymousId=this.user.anonymousId())},e.prototype.track=function(e,n,r,i,o){var a=t.prototype.track.call(this,e,n,r,i);return V(a,o),a},e.prototype.page=function(e,n,r,i,o,a){var u=t.prototype.page.call(this,e,n,r,i,o);return V(u,a),u},e.prototype.screen=function(e,n,r,i,o,a){var u=t.prototype.screen.call(this,e,n,r,i,o);return V(u,a),u},e.prototype.identify=function(e,n,r,i,o){var a=t.prototype.identify.call(this,e,n,r,i);return V(a,o),a},e.prototype.group=function(e,n,r,i,o){var a=t.prototype.group.call(this,e,n,r,i);return V(a,o),a},e.prototype.alias=function(e,n,r,i,o){var a=t.prototype.alias.call(this,e,n,r,i);return V(a,o),a},e}(function(){function t(t){this.settings=new Q(t)}return t.prototype.track=function(t,e,n,r){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,l.pi)((0,l.pi)({},this.baseEvent()),{event:t,type:"track",properties:null!=e?e:{},options:(0,l.pi)({},n),integrations:(0,l.pi)({},r)}))},t.prototype.page=function(t,e,n,r,i){this.settings.onEventMethodCall({type:"page",options:r});var o,a={type:"page",properties:(0,l.pi)({},n),options:(0,l.pi)({},r),integrations:(0,l.pi)({},i)};return null!==t&&(a.category=t,a.properties=null!==(o=a.properties)&&void 0!==o?o:{},a.properties.category=t),null!==e&&(a.name=e),this.normalize((0,l.pi)((0,l.pi)({},this.baseEvent()),a))},t.prototype.screen=function(t,e,n,r,i){this.settings.onEventMethodCall({type:"screen",options:r});var o={type:"screen",properties:(0,l.pi)({},n),options:(0,l.pi)({},r),integrations:(0,l.pi)({},i)};return null!==t&&(o.category=t),null!==e&&(o.name=e),this.normalize((0,l.pi)((0,l.pi)({},this.baseEvent()),o))},t.prototype.identify=function(t,e,n,r){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,l.pi)((0,l.pi)({},this.baseEvent()),{type:"identify",userId:t,traits:null!=e?e:{},options:(0,l.pi)({},n),integrations:r}))},t.prototype.group=function(t,e,n,r){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,l.pi)((0,l.pi)({},this.baseEvent()),{type:"group",traits:null!=e?e:{},options:(0,l.pi)({},n),integrations:(0,l.pi)({},r),groupId:t}))},t.prototype.alias=function(t,e,n,r){this.settings.onEventMethodCall({type:"alias",options:n});var i={userId:t,type:"alias",options:(0,l.pi)({},n),integrations:(0,l.pi)({},r)};return(null!==e&&(i.previousId=e),void 0===t)?this.normalize((0,l.pi)((0,l.pi)({},i),this.baseEvent())):this.normalize((0,l.pi)((0,l.pi)({},this.baseEvent()),i))},t.prototype.baseEvent=function(){return{integrations:{},options:{}}},t.prototype.context=function(t){var e,n=["userId","anonymousId","timestamp","messageId"];delete t.integrations;var r=Object.keys(t),i=null!==(e=t.context)&&void 0!==e?e:{},o={};return r.forEach(function(e){"context"!==e&&(n.includes(e)?(0,U.N)(o,e,t[e]):(0,U.N)(i,e,t[e]))}),[i,o]},t.prototype.normalize=function(t){var e,n,r=Object.keys(null!==(e=t.integrations)&&void 0!==e?e:{}).reduce(function(e,n){var r,i;return(0,l.pi)((0,l.pi)({},e),((r={})[n]=!!(null===(i=t.integrations)||void 0===i?void 0:i[n]),r))},{});t.options=G(t.options||{},function(t,e){return void 0!==e});var i=(0,l.pi)((0,l.pi)({},r),null===(n=t.options)||void 0===n?void 0:n.integrations),o=t.options?this.context(t.options):[],a=o[0],u=o[1],s=t.options,c=(0,l._T)(t,["options"]),f=(0,l.pi)((0,l.pi)((0,l.pi)((0,l.pi)({timestamp:new Date},c),{context:a,integrations:i}),u),{messageId:s.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(f),X(f),f},t}()),te=function(t){return"addMiddleware"in t&&"destination"===t.type},tn=n(65976);function tr(t,e){var n={};return t.forEach(function(t){var r,i=void 0;if("string"==typeof e){var o=t[e];i="string"!=typeof o?JSON.stringify(o):o}else e instanceof Function&&(i=e(t));void 0!==i&&(n[i]=(0,l.ev)((0,l.ev)([],null!==(r=n[i])&&void 0!==r?r:[],!0),[t],!1))}),n}var ti=n(51181),to=n(98191),ta=function(t){return"object"==typeof t&&null!==t&&"then"in t&&"function"==typeof t.then},tu=function(){var t,e,n=0;return{done:function(){return t},run:function(r){var i=r();return ta(i)&&(1==++n&&(t=new Promise(function(t){return e=t})),i.finally(function(){return 0==--n&&e()})),i}}},ts=n(69147),tc=function(t){function e(e){return t.call(this,"string"==typeof e?new tn.$(4,e):e)||this}return(0,l.ZT)(e,t),e.prototype.flush=function(){return(0,l.mG)(this,void 0,void 0,function(){return(0,l.Jh)(this,function(e){return(0,w.s)()?[2,[]]:[2,t.prototype.flush.call(this)]})})},e}(function(t){function e(e){var n=t.call(this)||this;return n.criticalTasks=tu(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=e,n.queue.on(ti.M,function(){n.scheduleFlush(0)}),n}return(0,l.ZT)(e,t),e.prototype.register=function(t,e,n){return(0,l.mG)(this,void 0,void 0,function(){var r,i,o=this;return(0,l.Jh)(this,function(a){switch(a.label){case 0:if(this.plugins.push(e),r=function(n){o.failedInitializations.push(e.name),o.emit("initialization_failure",e),console.warn(e.name,n),t.log("warn","Failed to load destination",{plugin:e.name,error:n}),o.plugins=o.plugins.filter(function(t){return t!==e})},!("destination"===e.type&&"Segment.io"!==e.name))return[3,1];return e.load(t,n).catch(r),[3,4];case 1:return a.trys.push([1,3,,4]),[4,e.load(t,n)];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),r(i),[3,4];case 4:return[2]}})})},e.prototype.deregister=function(t,e,n){return(0,l.mG)(this,void 0,void 0,function(){var r;return(0,l.Jh)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!e.unload)return[3,2];return[4,Promise.resolve(e.unload(t,n))];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(t){return t.name!==e.name}),[3,4];case 3:return r=i.sent(),t.log("warn","Failed to unload destination",{plugin:e.name,error:r}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(t){return(0,l.mG)(this,void 0,void 0,function(){var e;return(0,l.Jh)(this,function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.push(t),e=this.subscribeToDelivery(t),this.scheduleFlush(0),[2,e]})})},e.prototype.subscribeToDelivery=function(t){return(0,l.mG)(this,void 0,void 0,function(){var e=this;return(0,l.Jh)(this,function(n){return[2,new Promise(function(n){var r=function(i,o){i.isSame(t)&&(e.off("flush",r),n(i))};e.on("flush",r)})]})})},e.prototype.dispatchSingle=function(t){return(0,l.mG)(this,void 0,void 0,function(){var e=this;return(0,l.Jh)(this,function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.updateAttempts(t),t.attempts=1,[2,this.deliver(t).catch(function(n){return e.enqueuRetry(n,t)?e.subscribeToDelivery(t):(t.setFailedDelivery({reason:n}),t)})]})})},e.prototype.isEmpty=function(){return 0===this.queue.length},e.prototype.scheduleFlush=function(t){var e=this;void 0===t&&(t=500),this.flushing||(this.flushing=!0,setTimeout(function(){e.flush().then(function(){setTimeout(function(){e.flushing=!1,e.queue.length&&e.scheduleFlush(0)},0)})},t))},e.prototype.deliver=function(t){return(0,l.mG)(this,void 0,void 0,function(){var e,n,r,i;return(0,l.Jh)(this,function(o){switch(o.label){case 0:return[4,this.criticalTasks.done()];case 1:o.sent(),e=Date.now(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.flushOne(t)];case 3:return t=o.sent(),n=Date.now()-e,this.emit("delivery_success",t),t.stats.gauge("delivered",n),t.log("debug","Delivered",t.event),[2,t];case 4:throw i=r=o.sent(),t.log("error","Failed to deliver",i),this.emit("delivery_failure",t,i),t.stats.increment("delivery_failed"),r;case 5:return[2]}})})},e.prototype.enqueuRetry=function(t,e){return(!(t instanceof to.Y)||!!t.retry)&&this.queue.pushWithBackoff(e)},e.prototype.flush=function(){return(0,l.mG)(this,void 0,void 0,function(){var t,e;return(0,l.Jh)(this,function(n){switch(n.label){case 0:if(0===this.queue.length||!(t=this.queue.pop()))return[2,[]];t.attempts=this.queue.getAttempts(t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(t)];case 2:return t=n.sent(),this.emit("flush",t,!0),[3,4];case 3:return e=n.sent(),this.enqueuRetry(e,t)||(t.setFailedDelivery({reason:e}),this.emit("flush",t,!1)),[2,[]];case 4:return[2,[t]]}})})},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(t){var e=tr(this.plugins.filter(function(e){if("destination"!==e.type&&"Segment.io"!==e.name)return!0;var n,r,i,o=void 0;return null===(n=e.alternativeNames)||void 0===n||n.forEach(function(e){void 0!==t[e]&&(o=t[e])}),null!==(i=null!==(r=t[e.name])&&void 0!==r?r:o)&&void 0!==i?i:!1!==("Segment.io"===e.name||t.All)}),"type"),n=e.before,r=void 0===n?[]:n,i=e.enrichment,o=void 0===i?[]:i,a=e.destination,u=void 0===a?[]:a,s=e.after;return{before:r,enrichment:o,destinations:u,after:void 0===s?[]:s}},e.prototype.flushOne=function(t){var e,n;return(0,l.mG)(this,void 0,void 0,function(){var r,i,o,a,u,s,c,f,d,h,p,v,b;return(0,l.Jh)(this,function(l){switch(l.label){case 0:if(!this.isReady())throw Error("Not ready");t.attempts>1&&this.emit("delivery_retry",t),i=(r=this.availableExtensions(null!==(e=t.event.integrations)&&void 0!==e?e:{})).before,o=r.enrichment,a=0,u=i,l.label=1;case 1:if(!(a0||e.length<=1)return r;for(var i=e.length-2;i>=0;--i)r.push(e.slice(i).join("."));return r}function tw(t){try{return new URL(t)}catch(t){return}}function tS(t){var e=tw(t);if(e)for(var n=t_(e),r=0;r4){var a=r.slice(4);"campaign"===a&&(a="name"),t[a]=(0,t6.a)(o)}return t},{})}function t9(){var t=tg.get("_ga");if(t&&t.startsWith("amp"))return t}function et(t,e,n){var r,i=new th(n?[]:[new tA(t8())]),o=i.get("s:context.referrer"),a=null!==(r=t5(t))&&void 0!==r?r:o;a&&(e&&(e.referrer=(0,l.pi)((0,l.pi)({},e.referrer),a)),i.set("s:context.referrer",a))}var ee=function(t){try{var e=new URLSearchParams;return Object.entries(t).forEach(function(t){var n=t[0],r=t[1];Array.isArray(r)?r.forEach(function(t){return e.append(n,t)}):e.append(n,r)}),e.toString()}catch(t){return""}},en=new(function(){return function(){var t=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(e,n){return(0,l.mG)(t,void 0,void 0,function(){var t,e;return(0,l.Jh)(this,function(r){switch(r.label){case 0:this.instance=n,r.label=1;case 1:return r.trys.push([1,3,,4]),t=this,[4,t4(this.instance.options.highEntropyValuesClientHints)];case 2:return t.userAgentData=r.sent(),[3,4];case 3:return e=r.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(e){var n,r,i=e.event.context,o=i.page.search||"",a="object"==typeof o?ee(o):o;i.userAgent=navigator.userAgent,i.userAgentData=t.userAgentData;var u=navigator.userLanguage||navigator.language;void 0===i.locale&&void 0!==u&&(i.locale=u),null!==(n=i.library)&&void 0!==n||(i.library={name:"analytics.js",version:"".concat("web"===(0,t3.B)()?"next":"npm:next","-").concat(tP.i)}),a&&!i.campaign&&(i.campaign=t7(a));var s=t9();s&&(i.amp={id:s}),et(a,i,null!==(r=t.instance.options.disableClientPersistence)&&void 0!==r&&r);try{i.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){}return e},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich}}()),er=n(66548),ei=n(66170),eo=n(92311),ea=function(){function t(t,e){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,t2.d)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=e,this.name=t,this.type=e.type,this.alternativeNames.push(e.name)}return t.prototype.addMiddleware=function(){for(var t,e=[],n=0;n=eh-50}function eb(t){var e=[],n=0;return t.forEach(function(t){ep(e[n])>=64&&n++,e[n]?e[n].push(t):e[n]=[t]}),e}function em(t,e){var n,r,i,o=[],a=!1,u=null!==(n=null==e?void 0:e.size)&&void 0!==n?n:10,s=null!==(r=null==e?void 0:e.timeout)&&void 0!==r?r:5e3;function c(e){if(0!==e.length){var n,r=null===(n=e[0])||void 0===n?void 0:n.writeKey,i=e.map(function(t){var e=t;return e.sentAt,(0,l._T)(e,["sentAt"])});return(0,v.h)("https://".concat(t,"/b"),{keepalive:a,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({writeKey:r,batch:i,sentAt:new Date().toISOString()})})}}function f(){return(0,l.mG)(this,void 0,void 0,function(){var t;return(0,l.Jh)(this,function(e){return o.length?(t=o,o=[],[2,c(t)]):[2]})})}function d(){i||(i=setTimeout(function(){i=void 0,f().catch(console.error)},s))}return ed(function(t){(a=t)&&o.length&&Promise.all(eb(o).map(c)).catch(console.error)}),{dispatch:function(t,e){return(0,l.mG)(this,void 0,void 0,function(){return(0,l.Jh)(this,function(t){return o.push(e),[2,o.length>=u||ev(o)||a?f():d()]})})}}}function ey(t){return{dispatch:function(e,n){return(0,v.h)(e,{keepalive:null==t?void 0:t.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(n)})}}}function eg(t,e,n,r){var i,o=t.user();delete e.options,e.writeKey=null==n?void 0:n.apiKey,e.userId=e.userId||o.id(),e.anonymousId=e.anonymousId||o.anonymousId(),e.sentAt=new Date;var a=t.queue.failedInitializations||[];a.length>0&&(e._metadata={failedInitializations:a});var u=[],s=[];for(var c in r){var f=r[c];"Segment.io"===c&&u.push(c),"bundled"===f.bundlingStatus&&u.push(c),"unbundled"===f.bundlingStatus&&s.push(c)}for(var d=0,h=(null==n?void 0:n.unbundledIntegrations)||[];d0&&!(0,w.s)()},function(){return(0,l.mG)(r,void 0,void 0,function(){var r;return(0,l.Jh)(this,function(i){switch(i.label){case 0:if(!(r=e.pop()))return[2];return[4,(0,ts.a)(r,t)];case 1:return i.sent() instanceof S._||n.push(r),[2]}})})})];case 1:return i.sent(),n.map(function(t){return e.pushWithBackoff(t)}),[2,e]}})})}function eS(t,e,n,r){var i=this;t||setTimeout(function(){return(0,l.mG)(i,void 0,void 0,function(){var t,i;return(0,l.Jh)(this,function(o){switch(o.label){case 0:return t=!0,[4,ew(n,e)];case 1:return i=o.sent(),t=!1,e.todo>0&&r(t,i,n,r),[2]}})})},5e3*Math.random())}var eE=n(36514);function eA(t,e){var n,r,i,o,a=t.user();return e.previousId=null!==(i=null!==(r=null!==(n=e.previousId)&&void 0!==n?n:e.from)&&void 0!==r?r:a.id())&&void 0!==i?i:a.anonymousId(),e.userId=null!==(o=e.userId)&&void 0!==o?o:e.to,delete e.from,delete e.to,e}function ek(t,e,n){window.addEventListener("pagehide",function(){u.push.apply(u,Array.from(s)),s.clear()});var r,i,o,a=null!==(r=null==e?void 0:e.apiKey)&&void 0!==r?r:"",u=t.options.disableClientPersistence?new ti.Z(t.queue.queue.maxAttempts,[]):new tn.$(t.queue.queue.maxAttempts,"".concat(a,":dest-Segment.io")),s=new Set,c=!1,f=null!==(i=null==e?void 0:e.apiHost)&&void 0!==i?i:eE.U,d=null!==(o=null==e?void 0:e.protocol)&&void 0!==o?o:"https",h="".concat(d,"://").concat(f),p=null==e?void 0:e.deliveryStrategy,v=(null==p?void 0:p.strategy)==="batching"?em(f,p.config):ey(null==p?void 0:p.config);function b(r){return(0,l.mG)(this,void 0,void 0,function(){var i,o;return(0,l.Jh)(this,function(a){return(0,w.s)()?(u.push(r),eS(c,u,m,eS),[2,r]):(s.add(r),i=r.event.type.charAt(0),o=(0,el.D)(r.event).json(),"track"===r.event.type&&delete o.traits,"alias"===r.event.type&&(o=eA(t,o)),[2,v.dispatch("".concat(h,"/").concat(i),eg(t,o,e,n)).then(function(){return r}).catch(function(){return u.pushWithBackoff(r),eS(c,u,m,eS),r}).finally(function(){s.delete(r)})])})})}var m={name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:b,identify:b,page:b,alias:b,group:b,screen:b};return u.todo&&eS(c,u,m,eS),m}var ex=null!==(i=(o=(0,tI.R)()).__SEGMENT_INSPECTOR__)&&void 0!==i?i:o.__SEGMENT_INSPECTOR__={},eO=function(t){var e;return null===(e=ex.attach)||void 0===e?void 0:e.call(ex,t)},eM=n(42718);function eT(t,e){var n=null!=e?e:(0,p.Vl)();return(0,v.h)("".concat(n,"/v1/projects/").concat(t,"/settings")).then(function(t){return t.ok?t.json():t.text().then(function(t){throw Error(t)})}).catch(function(t){throw console.error(t.message),t})}function eC(t){return"test"!==h().NODE_ENV&&Object.keys(t.integrations).length>1}function eR(t){var e,n,r;return"test"!==h().NODE_ENV&&(null!==(r=null===(n=null===(e=t.middlewareSettings)||void 0===e?void 0:e.routingRules)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0}function eP(t,e){tV(t,e),tB(t,e)}function eI(t,e){return(0,l.mG)(this,void 0,void 0,function(){return(0,l.Jh)(this,function(n){switch(n.label){case 0:return[4,tD(t,e)];case 1:return n.sent(),tU(t,e),e.clear(),[2]}})})}function eL(t,e,r,i,o,a){var u,s,c;return void 0===o&&(o=[]),(0,l.mG)(this,void 0,void 0,function(){var f,d,h,p,v,b,m,y,g,_,w,S,E,A,k=this;return(0,l.Jh)(this,function(x){switch(x.label){case 0:if(f=null==o?void 0:o.filter(function(t){return"object"==typeof t}),d=null==o?void 0:o.filter(function(t){return"function"==typeof t&&"string"==typeof t.pluginName}),!eR(e))return[3,2];return[4,n.e(4604).then(n.bind(n,37122)).then(function(t){return t.tsubMiddleware(e.middlewareSettings.routingRules)})];case 1:return p=x.sent(),[3,3];case 2:p=void 0,x.label=3;case 3:if(h=p,!(eC(e)||a.length>0))return[3,5];return[4,n.e(39464).then(n.bind(n,92631)).then(function(n){return n.ajsDestinations(t,e,r.integrations,i,h,a)})];case 4:return b=x.sent(),[3,6];case 5:b=[],x.label=6;case 6:if(v=b,!e.legacyVideoPluginsEnabled)return[3,8];return[4,n.e(48150).then(n.bind(n,66352)).then(function(t){return t.loadLegacyVideoPlugins(r)})];case 7:x.sent(),x.label=8;case 8:if(!(null===(u=i.plan)||void 0===u?void 0:u.track))return[3,10];return[4,n.e(37493).then(n.bind(n,70527)).then(function(t){var n;return t.schemaFilter(null===(n=i.plan)||void 0===n?void 0:n.track,e)})];case 9:return y=x.sent(),[3,11];case 10:y=void 0,x.label=11;case 11:return m=y,g=(0,t1.o)(e,i),[4,ef(e,r.integrations,g,i,h,d).catch(function(){return[]})];case 12:if(_=x.sent(),w=(0,l.ev)((0,l.ev)((0,l.ev)([en],f,!0),v,!0),_,!0),m&&w.push(m),(null===(s=i.integrations)||void 0===s?void 0:s.All)===!1&&!i.integrations["Segment.io"]||i.integrations&&!1===i.integrations["Segment.io"])return[3,14];return E=(S=w).push,[4,ek(r,g["Segment.io"],e.integrations)];case 13:E.apply(S,[x.sent()]),x.label=14;case 14:return[4,r.register.apply(r,w)];case 15:if(A=x.sent(),!Object.entries(null!==(c=e.enabledMiddleware)&&void 0!==c?c:{}).some(function(t){return t[1]}))return[3,17];return[4,n.e(39214).then(n.bind(n,14783)).then(function(t){var n=t.remoteMiddlewares;return(0,l.mG)(k,void 0,void 0,function(){return(0,l.Jh)(this,function(t){switch(t.label){case 0:return[4,n(A,e,i.obfuscate)];case 1:return[2,Promise.all(t.sent().map(function(t){return r.addSourceMiddleware(t)}))]}})})})];case 16:x.sent(),x.label=17;case 17:return[2,A]}})})}function ej(t,e,n){var r,i,o,a,u,s,c,f,d,h;return void 0===e&&(e={}),(0,l.mG)(this,void 0,void 0,function(){var v,b,m,y,g,_,w,E,A,k,x;return(0,l.Jh)(this,function(O){switch(O.label){case 0:if(!0===e.disable)return[2,[new t0,S._.system()]];if(e.globalAnalyticsKey&&(0,tL.jV)(e.globalAnalyticsKey),t.cdnURL&&(0,p.UH)(t.cdnURL),e.initialPageview&&n.push(new tq("page",[])),!(null!==(r=t.cdnSettings)&&void 0!==r))return[3,1];return b=r,[3,3];case 1:return[4,eT(t.writeKey,t.cdnURL)];case 2:b=O.sent(),O.label=3;case 3:if(v=b,e.updateCDNSettings&&(v=e.updateCDNSettings(v)),"function"!=typeof e.disable)return[3,5];return[4,e.disable(v)];case 4:if(O.sent())return[2,[new t0,S._.system()]];O.label=5;case 5:return m=null===(o=null===(i=v.integrations["Segment.io"])||void 0===i?void 0:i.retryQueue)||void 0===o||o,e=(0,l.pi)({retryQueue:m},e),eO(y=new tQ((0,l.pi)((0,l.pi)({},t),{cdnSettings:v}),e)),g=null!==(a=t.plugins)&&void 0!==a?a:[],_=null!==(u=t.classicIntegrations)&&void 0!==u?u:[],w=null===(s=e.integrations)||void 0===s?void 0:s["Segment.io"],eM.j.initRemoteMetrics((0,l.pi)((0,l.pi)({},v.metrics),{host:null!==(c=null==w?void 0:w.apiHost)&&void 0!==c?c:null===(f=v.metrics)||void 0===f?void 0:f.host,protocol:null==w?void 0:w.protocol})),eP(y,n),[4,eL(t.writeKey,v,y,e,g,_)];case 6:if(E=O.sent(),A=null!==(d=window.location.search)&&void 0!==d?d:"",k=null!==(h=window.location.hash)&&void 0!==h?h:"",!(x=A.length?A:k.replace(/(?=#).*(?=\?)/,"")).includes("ajs_"))return[3,8];return[4,y.queryString(x).catch(console.error)];case 7:O.sent(),O.label=8;case 8:return y.initialized=!0,y.emit("initialize",t,e),[4,eI(y,n)];case 9:return O.sent(),[2,[y,E]]}})})}var eN=function(t){function e(){var e=this,n=(0,t2.d)(),r=n.promise,i=n.resolve;return(e=t.call(this,function(t){return r.then(function(e){return ej(e[0],e[1],t)})})||this)._resolveLoadStart=function(t,e){return i([t,e])},e}return(0,l.ZT)(e,t),e.prototype.load=function(t,e){return void 0===e&&(e={}),this._resolveLoadStart(t,e),this},e.load=function(t,n){return void 0===n&&(n={}),new e().load(t,n)},e.standalone=function(t,n){return e.load({writeKey:t},n).then(function(t){return t[0]})},e}(tW),eD=n(46700),eB=n(14991),eV=n(4181),eU=n(83016),eG=n(50145),eF=n(53230),eq=n(16397),ez=["/-/tracking","/-/cache"],eH={SIGNUP:"User Signed Up",ASSET_DOWNLOAD:"Asset Download Requested",MARKETO_FORM_SUBMIT:"Marketo Form Submitted"},eW=new eN;function eK(){var t=(0,f.usePathname)(),e=(0,f.useSearchParams)(),n=(0,c.useContext)(eD.lX).targeting,r=(0,c.useState)(!1),i=r[0],o=r[1],u=(0,eF.Z)(function(){var t;return!!(null!==(t=window)&&void 0!==t&&null!==(t=t.AsanaStorage)&&void 0!==t&&t.getCookie("_ga"))},5e3,!0);return(0,c.useEffect)(function(){var t;null!==(t=window.AsanaAnalytics)&&void 0!==t&&t.SegmentAnalytics&&(window.AsanaAnalytics.SegmentAnalytics.api=eW,window.AsanaAnalytics.SegmentAnalytics.events=eH)},[]),(0,c.useEffect)(function(){("asana.com"===window.location.hostname||e.has(eG.g.SEGMENT,"true"))&&!i&&n&&(eW.load({writeKey:"0L3wyNgRX9DyxJxrAMErLXGEHKFUbnWe",cdnURL:"https://cdp-cdn.asana.com"},{integrations:{"Segment.io":{apiHost:"cdp-api.asana.com/v1",protocol:"https"}}}),o(!0))},[n,i]),(0,c.useEffect)(function(){var t=function(){var t=(0,a.Z)(s().mark(function t(){var e,n,r,i,o,a,u,c,f,l,d,h;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=window.AsanaStorage.getCookie("_ga"),i=window.AsanaStorage.getCookie("user_asana_dot_com"),o=window.AsanaStorage.getCookie("logged_out_uuid"),t.next=5,eW.user();case 5:u=null===(e=(a=t.sent).traits())||void 0===e?void 0:e.ga_id,c=null===(n=a.traits())||void 0===n?void 0:n.logged_out_uuid,f=a.id(),l=r&&r.replace(/GA1.\d./,""),i&&i!==f?(eB.isDevelopment||eB.isTest||window.navigator.sendBeacon("/api/update-metric?"+new URLSearchParams({type:"increment",metric:"production.segment.identify.userIdMismatch",value:"1"})),l||o?(d={},l&&(d.ga_id=l),o&&(d.logged_out_uuid=o),eW.identify(i,d)):eW.identify(i)):(l&&u!==l||o&&c!==o)&&(h={},l&&u!==l&&(h.ga_id=l),o&&c!==o&&(h.logged_out_uuid=o),eW.identify(h));case 11:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}();i&&u&&t()},[i,u]),(0,c.useEffect)(function(){var e=t.toLowerCase();if(!ez.includes(e)){var n="/"===e?"homepage":(0,eq.stripLeadingSlash)(e);eW.page(n)}},[]),null}function eZ(t){var e=(0,eV.cleanPath)(t).match(/([^/]+?\.(pdf|jpg|png|jpeg))$/i);return e?e[1]:null}function eY(t){return!!t&&/\.(pdf|jpg|png|jpeg)$/i.test((0,eV.cleanPath)(t))}function eJ(){return e$.apply(this,arguments)}function e$(){return(e$=(0,a.Z)(s().mark(function t(){var e,n,r,i=arguments;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:"",n=i.length>1&&void 0!==i[1]?i[1]:null,eY(e)){t.next=4;break}return t.abrupt("return");case 4:if(!((r=eZ(e))&&eW&&null!=eW&&eW.track)){t.next=13;break}return n&&n.preventDefault(),eW.track(eH.ASSET_DOWNLOAD,{asset_name:r}),t.next=10,(0,eU.delay)(500);case 10:if(!eB.isTest){t.next=12;break}return t.abrupt("return");case 12:window.location.href=e;case 13:case"end":return t.stop()}},t)}))).apply(this,arguments)}function eX(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(eY(t)){var e=eZ(t);e&&eW&&null!=eW&&eW.track&&eW.track(eH.ASSET_DOWNLOAD,{asset_name:e})}}eW.addSourceMiddleware(function(t){var e,n=t.payload,r=t.next;n&&null!=n&&null!==(e=n.obj)&&void 0!==e&&e.context&&(n.obj.context.ip="REDACTED"),r(n)})},16397:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw 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(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:"-";if(!t)return"";var n=RegExp("[^\\p{L}\\d\\s\\/".concat(e,"]"),"gu");return t.replace(n,"").trim().toLowerCase().replace(/\s+/g,e)}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return b(t.split(e).join(" "))}function c(t){return t&&t.startsWith("/")?t.substring(1):t}function f(t){return t.split(" ").join("")}function l(t){return t.startsWith("/")?t:"/"+t}function d(t){return t&&t.endsWith("/")?t.slice(0,-1):t}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ...";if(t.length<=e)return t;var r=t.slice(0,e),i=r.search(/^.*(\s)\S*$/)||r.length-1;return r.slice(0,i)+n}function p(t){return t.replace(/(<([^>]+)>)/gi,"")}function v(t){if(!t)return null;"string"==typeof t&&(t=[t]);var e,n=[],i=r(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;if("string"==typeof o){var a,u=o.split(";").filter(function(t){return t}),s=r(u);try{for(s.s();!(a=s.n()).done;){var c=a.value;n.push(c)}}catch(t){s.e(t)}finally{s.f()}}}}catch(t){i.e(t)}finally{i.f()}return 0===n.length?null:Function(n.join(";"))}function b(t){return t&&"string"==typeof t?t.split(" ").reduce(function(t,e){return t+" "+e.charAt(0).toUpperCase()+e.substring(1)},"").trim():null}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250;return Math.floor(t.split(" ").length/e)}var y=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if("string"!=typeof t||"string"!=typeof e||"string"!=typeof n)return"";var r=n?t.lastIndexOf(n):t.length;return r>=0?"".concat(t.slice(0,r)).concat(e).concat(t.slice(r)):t},g=function(t,e){var n="<".concat(e,">"),r=""),i=t.slice(0,n.length),o=t.slice(-r.length);return n===i&&r===o?t.slice(n.length,-r.length):t};function _(t){return t?a("sha1").update(t).digest("hex").slice(0,10):""}t.exports={readTime:m,stripHtml:p,slugify:u,unslugify:s,stripLeadingSlash:c,addLeadingSlash:l,stripTrailingSlash:d,stripWhiteSpace:f,truncate:h,stringsToFunction:v,toTitle:b,insertCharBeforeLastInstance:y,stripWrappingTags:g,generateTenDigitId:_}},35234:function(t,e,n){"use strict";n.d(e,{Y_:function(){return f},Hk:function(){return l}});var r=n(67294),i={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};function o(t){return new Promise(function(e,n){var r=new Image;r.onload=function(){e(r.width>0&&r.height>0)},r.onerror=function(t){n(t)},r.src="data:image/webp;base64,"+i[t]})}var a=n(35944),u=["svg","ico"],s="png",c=(0,r.createContext)(null);function f(t){var e=t.children,n=(0,r.useState)(!0),i=n[0],u=n[1];return(0,r.useEffect)(function(){o("lossless").then(function(t){t||u(!1)})},[]),(0,a.tZ)(c.Provider,{value:i,children:e})}function l(t){return!(0,r.useContext)(c)||u.includes(t)?""===t?s:t:"webp"}},18684:function(t,e,n){"use strict";n.d(e,{f:function(){return h}});var r=n(59499),i=n(41609),o=n.n(i),a=n(67294),u=n(76330),s=n(38841),c=n(35944);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function l(t){for(var e=1;e div[name=vimeo-video-container] > iframe")||n>=e)&&(c({type:_.START_VIDEO,payload:y({theme:N||"dark"},t)}),clearInterval(r)),n++},200)},V=function(){d.pause(),d.setCurrentTime(0),c({type:_.UPDATE,payload:{isActive:!1,onClose:null,onVideoEnd:null}}),E(!1)};(0,i.useEffect)(function(){!d&&k&&s.shouldInitialize&&p(new(n(48333))(k,O))},[k,s.shouldInitialize]),(0,i.useEffect)(function(){if(d&&M)return I?d.unload().then(function(){d.loadVideo(L).then(function(){d.play().then(function(){return E(!0)})})}):d.play().then(function(){return E(!0)}),R&&d.on("ended",function(){return R()}),d.on("error",function(t){return c({type:_.UPDATE,payload:{isActive:!1}})}),function(){return d.off("ended")}},[M]),(0,i.useEffect)(function(){var t=function(t){"Escape"===t.key&&V()};return d&&M?window.addEventListener("keydown",t):window.removeEventListener("keydown",t),function(){return window.removeEventListener("keydown",t)}},[d,M]);var U={initializePlayer:D,player:d,id:L,startVideo:B,stopVideo:V,isActive:M,isPlaying:S,theme:T,onClose:C,dispatch:c,setVideoContainerRef:x};return(0,l.BX)(w.Provider,{value:U,children:[j,P&&(0,l.tZ)(h,{})]})},E=w},34100:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return fl}});var r=n(59499),i=n(27305),o=n(67294),a=n(11163),u=n(9008),s=n.n(u),c='!function(){try{function t(r){window.AsanaErrors.dataDogInitialized&&window.DD_RUM?window.DD_RUM.addError(r):window.AsanaErrors.errorQueue.push(r)}void 0===window.AsanaErrors&&(window.AsanaErrors={dataDogInitialized:!1,errorQueue:[]},window.AsanaErrors.notifyException=function(){for(var r=Array.from(arguments),o=0;o=0;n-=1){var r=t[n];if(e(r,n,t))return r}}function tc(t){return Object.keys(t).map(function(e){return t[e]})}function tf(t){return Object.keys(t).map(function(e){return[e,t[e]]})}function tl(t,e){return t.slice(0,e.length)===e}function td(t,e){return t.slice(-e.length)===e}function th(t,e){return t.matches?t.matches(e):!!t.msMatchesSelector&&t.msMatchesSelector(e)}function tp(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)})}function tv(t){for(var e=[],n=1;n=0;return n||e.push(t),n}}}function tO(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);var r=tM(Object.prototype),i=tM(Array.prototype),o=tM(Object.getPrototypeOf(t)),a=tM(t);try{return JSON.stringify(t,e,n)}catch(t){return""}finally{r(),i(),o(),a()}}function tM(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):tr}var tT=225280,tC="$",tR=3;function tP(t,e){void 0===e&&(e=tT);var n,r=tM(Object.prototype),i=tM(Array.prototype),o=[],a=new WeakMap,u=tI(t,tC,void 0,o,a),s=(null===(n=JSON.stringify(u))||void 0===n?void 0:n.length)||0;if(s>e){tD(e,"discarded",t);return}for(;o.length>0&&se){tD(e,"truncated",t);break}c.target[l]=d}else for(var l in c.source)if(Object.prototype.hasOwnProperty.call(c.source,l)){var d=tI(c.source[l],c.path,l,o,a);if(void 0!==d&&(s+=JSON.stringify(d).length+f+l.length+tR,f=1),s>e){tD(e,"truncated",t);break}c.target[l]=d}}return r(),i(),u}function tI(t,e,n,r,i){var o=tN(t);if(!o||"object"!=typeof o)return tL(o);var a=tj(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var u=t;if(i.has(u))return"[Reference seen at ".concat(i.get(u),"]");var s=void 0!==n?"".concat(e,".").concat(n):e,c=Array.isArray(o)?[]:{};return i.set(u,s),r.push({source:o,target:c,path:s}),c}function tL(t){return"bigint"==typeof t?"[BigInt] ".concat(t.toString()):"function"==typeof t?"[Function] ".concat(t.name||"unknown"):"symbol"==typeof t?"[Symbol] ".concat(t.description||t.toString()):t}function tj(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"[".concat(e[1],"]")}catch(t){}return"[Unserializable]"}function tN(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}function tD(t,e,n){z.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var tB=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(t),{unsubscribe:function(){e.observers=e.observers.filter(function(e){return t!==e}),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},t.prototype.notify=function(t){this.observers.forEach(function(e){return e(t)})},t}();function tV(){for(var t=[],e=0;etU&&(z.warn("The ".concat(tG[e]," data exceeds the recommended ").concat(tU/ty,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-3kib-warning")),!0)}var tq=200;function tz(t,e){void 0===e&&(e=tw);var n,r={},i=!1,o=new tB,a=tn(function(r){n=e(tO(r)),i||(i=tF(n,t))},tq).throttled,u={getBytesCount:function(){return n},get:function(){return r},add:function(t,e){r[t]=e,a(r),o.notify()},remove:function(t){delete r[t],a(r),o.notify()},set:function(t){a(r=t),o.notify()},getContext:function(){return tA(r)},setContext:function(t){"object"===tS(t)?a(r=tP(t)):u.clearContext(),o.notify()},setContextProperty:function(t,e){r[t]=tP(e),a(r),o.notify()},removeContextProperty:function(t){delete r[t],a(r),o.notify()},clearContext:function(){r={},n=0,o.notify()},changeObservable:o};return u}var tH=500,tW=function(){function t(){this.buffer=[]}return t.prototype.add=function(t){this.buffer.push(t)>tH&&this.buffer.splice(0,1)},t.prototype.drain=function(){this.buffer.forEach(function(t){return t()}),this.buffer.length=0},t}();function tK(t){return 0!==t&&100*Math.random()<=t}function tZ(t,e){return+t.toFixed(e)}function tY(t){return tJ(t)&&t>=0&&t<=100}function tJ(t){return"number"==typeof t}var t$=1e3,tX=6e4,tQ=36e5,t0=31536e6;function t1(t){return{relative:t,timeStamp:t2(t)}}function t2(t){var e=t4()-performance.now();return e>eo()?Math.round(ee(e,t)):er(t)}function t3(){return Math.round(t4()-ee(eo(),performance.now()))}function t6(t){return tJ(t)?tZ(1e6*t,0):t}function t4(){return new Date().getTime()}function t8(){return t4()}function t5(){return performance.now()}function t7(){return{relative:t5(),timeStamp:t8()}}function t9(){return{relative:0,timeStamp:eo()}}function et(t,e){return e-t}function ee(t,e){return t+e}function en(t){return t-eo()}function er(t){return Math.round(ee(eo(),t))}function ei(t){return t>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,ea)}function eu(t,e){var n=new RegExp("(?:^|;)\\s*".concat(e,"\\s*=\\s*([^;]+)")).exec(t);return n?n[1]:void 0}function es(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?t:"".concat(t.slice(0,i)).concat(n)}function ec(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),a=r&&r.crossSite?"none":"strict",u=r&&r.domain?";domain=".concat(r.domain):"",s=r&&r.secure?";secure":"";document.cookie="".concat(t,"=").concat(e,";").concat(o,";path=/;samesite=").concat(a).concat(u).concat(s)}function ef(t){return eu(document.cookie,t)}function el(t,e){ec(t,"",0,e)}function ed(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(ea()),n="test";ec(e,n,tX,t);var r=ef(e)===n;return el(e,t),r}catch(t){return z.error(t),!1}}function eh(){if(void 0===sP){for(var t="dd_site_test_".concat(ea()),e="test",n=window.location.hostname.split("."),r=n.pop();n.length&&!ef(t);)ec(t,e,t$,{domain:r="".concat(n.pop(),".").concat(r)});el(t,{domain:r}),sP=r}return sP}var ep="datadog-synthetics-public-id",ev="datadog-synthetics-result-id",eb="datadog-synthetics-injects-rum";function em(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||ef(eb))}function ey(){var t=window._DATADOG_SYNTHETICS_PUBLIC_ID||ef(ep);return"string"==typeof t?t:void 0}function eg(){var t=window._DATADOG_SYNTHETICS_RESULT_ID||ef(ev);return"string"==typeof t?t:void 0}function e_(){var t=eS();if(t)return{getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n){t.send(JSON.stringify({eventType:e,event:n}))}}}function ew(t){void 0===t&&(t=null===(e=B().location)||void 0===e?void 0:e.hostname);var e,n=e_();return!!n&&n.getAllowedWebViewHosts().some(function(e){return t===e||td(t,".".concat(e))})}function eS(){return B().DatadogEventBridge}function eE(t,e,n,r,i){return eA(t,e,[n],r,i)}function eA(t,e,n,r,i){var o=void 0===i?{}:i,a=o.once,u=o.capture,s=o.passive,c=Y(a?function(t){d(),r(t)}:r),f=s?{capture:u,passive:s}:u,l=V(e,"addEventListener");function d(){var t=V(e,"removeEventListener");n.forEach(function(n){return t.call(e,n,c,f)})}return n.forEach(function(t){return l.call(e,t,c,f)}),{stop:d}}var ek="_dd_c",ex=[];function eO(t,e,n,r){void 0===r&&(r=tw);var i=eM(e,n),o=tz(n,r);return a(),ex.push(eE(t,window,"storage",function(t){i===t.key&&a()})),o.changeObservable.subscribe(u),o;function a(){var t=localStorage.getItem(i),e=null!==t?JSON.parse(t):{};o.setContext(e)}function u(){localStorage.setItem(i,JSON.stringify(o.getContext()))}}function eM(t,e){return"".concat(ek,"_").concat(t,"_").concat(e)}var eT="?";function eC(t){var e=[],n=eq(t,"stack"),r=String(t);return n&&tl(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(function(t){var n=ej(t)||eD(t)||eV(t)||eF(t);n&&(!n.func&&n.line&&(n.func=eT),e.push(n))}),{message:eq(t,"message"),name:eq(t,"name"),stack:e}}var eR="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",eP="(?::(\\d+))",eI=RegExp("^\\s*at (.*?) ?\\(".concat(eR).concat(eP,"?").concat(eP,"?\\)?\\s*$"),"i"),eL=new RegExp("\\((\\S*)".concat(eP).concat(eP,"\\)"));function ej(t){var e=eI.exec(t);if(e){var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=eL.exec(e[2]);return r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||eT,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}}var eN=RegExp("^\\s*at ?".concat(eR).concat(eP,"?").concat(eP,"??\\s*$"),"i");function eD(t){var e=eN.exec(t);if(e)return{args:[],column:e[3]?+e[3]:void 0,func:eT,line:e[2]?+e[2]:void 0,url:e[1]}}var eB=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function eV(t){var e=eB.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||eT,line:+e[3],url:e[2]}}var eU=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,eG=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function eF(t){var e=eU.exec(t);if(e){var n=e[3]&&e[3].indexOf(" > eval")>-1,r=eG.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||eT,line:e[4]?+e[4]:void 0,url:e[3]}}}function eq(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}var ez="No stack, consider using an instance of Error";function eH(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,u=t.handling,s=n instanceof Error,c=eW(e,s,o,n),f=eK(s,e)?eY(e):ez,l=s?eX(n,a):void 0,d=null==e?void 0:e.name,h=eZ(n);return{startClocks:i,source:a,handling:u,handlingStack:r,originalError:n,type:d,message:c,stack:f,causes:l,fingerprint:h}}function eW(t,e,n,r){return(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:e?"Empty message":"".concat(n," ").concat(tO(tP(r)))}function eK(t,e){return void 0!==e&&(!!t||e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url))}function eZ(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function eY(t){var e=eJ(t);return t.stack.forEach(function(t){var n="?"===t.func?"":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",i=t.line?":".concat(t.line):"",o=t.line&&t.column?":".concat(t.column):"";e+="\n at ".concat(n).concat(r," @ ").concat(t.url).concat(i).concat(o)}),e}function eJ(t){return"".concat(t.name||"Error",": ").concat(t.message)}function e$(){var t,e=2,n=Error();if(!n.stack)try{throw n}catch(t){}return J(function(){var r=eC(n);r.stack=r.stack.slice(e),t=eY(r)}),t}function eX(t,e){for(var n=t,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var i=eC(n.cause);r.push({message:n.cause.message,source:e,type:null==i?void 0:i.name,stack:i&&eY(i)}),n=n.cause}return r.length?r:void 0}function eQ(t){var e=tv({},t);return["id","name","email"].forEach(function(t){t in e&&(e[t]=String(e[t]))}),e}function e0(t){var e="object"===tS(t);return e||z.error("Unsupported user:",t),e}!function(t){t.PAGEHIDE="pagehide",t.FEATURE_FLAGS="feature_flags",t.RESOURCE_PAGE_STATES="resource_page_states",t.PAGE_STATES="page_states",t.COLLECT_FLUSH_REASON="collect_flush_reason",t.NO_RESOURCE_DURATION_FROZEN_STATE="no_resource_duration_frozen_state",t.SCROLLMAP="scrollmap",t.INTERACTION_TO_NEXT_PAINT="interaction_to_next_paint",t.WEB_VITALS_ATTRIBUTION="web_vitals_attribution",t.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css"}(sI||(sI={}));var e1=new Set;function e2(t){t.forEach(function(t){e1.add(t)})}function e3(t){return e1.has(t)}function e6(){return e1}function e4(t){return tv({},t)}function e8(t,e){return Object.keys(t).some(function(n){return t[n]===e})}function e5(t){return 0===Object.keys(t).length}function e7(t,e){for(var n={},r=0,i=Object.keys(t);r=nC){nL(e);return}var c=a();if(o&&(c.lock||(i=ea(),c.lock=i,u(c),(c=a()).lock!==i))){nI(t,e,n);return}var f=t.process(c);if(o&&(c=a()).lock!==i){nI(t,e,n);return}if(f&&(na(f)?s():(nu(f),u(f))),o&&!(f&&na(f))){if((c=a()).lock!==i){nI(t,e,n);return}delete c.lock,u(c),f=c}null===(r=t.after)||void 0===r||r.call(t,f||c),nL(e)}function nI(t,e,n){X(function(){nP(t,e,n+1)},nT)}function nL(t){sN=void 0;var e=nR.shift();e&&nP(e,t)}var nj=t$;function nN(t){var e=nm(t);return!e&&t.allowFallbackToLocalStorage&&(e=nA()),e}function nD(t,e,n){var r=new tB,i=new tB,o="Cookie"===t.type?ny(t.cookieOptions):nk(),a=o.clearSession,u=o.retrieveSession,s=tt(l,nj),c=y();function f(){nP({process:function(t){return p()?d(t):void 0}},o)}function l(){nP({process:function(t){return g(t)?void 0:{}},after:d},o)}function d(t){return g(t)||(t={}),p()&&(v(t)?b():c=t),t}function h(t){var r=n(t[e]),i=r.trackingType,o=r.isTracked;return t[e]=i,o&&!t.id&&(t.id=ea(),t.created=String(t4())),o}function p(){return void 0!==c[e]}function v(t){return c.id!==t.id||c[e]!==t[e]}function b(){c={},i.notify()}function m(t){c=t,r.notify()}function y(){var t=u();return g(t)?t:{}}function g(t){return(void 0===t.created||t4()-Number(t.created)n||n8.test(e))&&z.warn("".concat(t," value doesn't meet tag requirements and will be sanitized"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}function n7(t){var e=n4(t),n=n9(t,e),r=tc(n).map(function(t){return t.urlPrefix});return tv({isIntakeUrl:function(t){return r.some(function(e){return 0===t.indexOf(e)})},replica:rt(t,r,e),site:t.site||nZ},n)}function n9(t,e){return{logsEndpointBuilder:n0(t,"logs",e),rumEndpointBuilder:n0(t,"rum",e),sessionReplayEndpointBuilder:n0(t,"sessionReplay",e)}}function rt(t,e,n){if(t.replica){var r=tv({},t,{site:nZ,clientToken:t.replica.clientToken}),i={logsEndpointBuilder:n0(r,"logs",n),rumEndpointBuilder:n0(r,"rum",n)};return e.push.apply(e,tc(i).map(function(t){return t.urlPrefix})),tv({applicationId:t.replica.applicationId},i)}}var re={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function rn(t){if(!t||!t.clientToken){z.error("Client Token is not configured, we will not send any data.");return}var e,n,r,i=null!==(e=t.sessionSampleRate)&&void 0!==e?e:t.sampleRate;if(void 0!==i&&!tY(i)){z.error("Session Sample Rate should be a number between 0 and 100");return}if(void 0!==t.telemetrySampleRate&&!tY(t.telemetrySampleRate)){z.error("Telemetry Sample Rate should be a number between 0 and 100");return}if(void 0!==t.telemetryConfigurationSampleRate&&!tY(t.telemetryConfigurationSampleRate)){z.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");return}return Array.isArray(t.enableExperimentalFeatures)&&e2(t.enableExperimentalFeatures.filter(function(t){return e8(sI,t)})),tv({beforeSend:t.beforeSend&&ti(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:nN(t),sessionSampleRate:null!=i?i:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=t.telemetryConfigurationSampleRate)&&void 0!==r?r:5,service:t.service,silentMultipleInit:!!t.silentMultipleInit,batchBytesLimit:16*ty,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*t$,batchMessagesLimit:50,messageBytesLimit:256*ty},n7(t))}function rr(t){var e,n,r=null!==(e=t.proxy)&&void 0!==e?e:t.proxyUrl;return{session_sample_rate:null!==(n=t.sessionSampleRate)&&void 0!==n?n:t.sampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,use_before_send:!!t.beforeSend,use_cross_site_session_cookie:t.useCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:void 0!==r?!!r:void 0,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,track_resources:t.trackResources,track_long_task:t.trackLongTasks,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages}}function ri(t){var e=tS(t);return"string"===e||"function"===e||t instanceof RegExp}function ro(t,e,n){return void 0===n&&(n=!1),t.some(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?tl(e,t):t===e}catch(t){z.error(t)}return!1})}function ra(t){var e=t;return"object"===tS(e)&&ri(e.match)&&Array.isArray(e.propagatorTypes)}function ru(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function rs(t,e){return{clearTracingIfNeeded:ru,traceFetch:function(n){return rc(t,n,e,function(t){var e;if(n.input instanceof Request&&!(null===(e=n.init)||void 0===e?void 0:e.headers))n.input=new Request(n.input),Object.keys(t).forEach(function(e){n.input.headers.append(e,t[e])});else{n.init=e4(n.init);var r=[];n.init.headers instanceof Headers?n.init.headers.forEach(function(t,e){r.push([e,t])}):Array.isArray(n.init.headers)?n.init.headers.forEach(function(t){r.push(t)}):n.init.headers&&Object.keys(n.init.headers).forEach(function(t){r.push([t,n.init.headers[t]])}),n.init.headers=r.concat(tf(t))}})},traceXhr:function(n,r){return rc(t,n,e,function(t){Object.keys(t).forEach(function(e){r.setRequestHeader(e,t[e])})})}}}function rc(t,e,n,r){if(rf()&&n.findTrackedSession()){var i=tu(t.allowedTracingUrls,function(t){return ro([t.match],e.url,!0)});i&&(e.traceId=new rh,e.spanId=new rh,e.traceSampled=!tJ(t.traceSampleRate)||tK(t.traceSampleRate),r(rd(e.traceId,e.spanId,e.traceSampled,i.propagatorTypes)))}}function rf(){return void 0!==rl()}function rl(){return window.crypto||window.msCrypto}function rd(t,e,n,r){var i={};return r.forEach(function(r){switch(r){case"datadog":tv(i,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toDecimalString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":t.toDecimalString()});break;case"tracecontext":tv(i,{traceparent:"00-0000000000000000".concat(t.toPaddedHexadecimalString(),"-").concat(e.toPaddedHexadecimalString(),"-0").concat(n?"1":"0")});break;case"b3":tv(i,{b3:"".concat(t.toPaddedHexadecimalString(),"-").concat(e.toPaddedHexadecimalString(),"-").concat(n?"1":"0")});break;case"b3multi":tv(i,{"X-B3-TraceId":t.toPaddedHexadecimalString(),"X-B3-SpanId":e.toPaddedHexadecimalString(),"X-B3-Sampled":n?"1":"0"})}}),i}var rh=function(){function t(){this.buffer=new Uint8Array(8),rl().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return t.prototype.toString=function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},t.prototype.toDecimalString=function(){return this.toString(10)},t.prototype.toPaddedHexadecimalString=function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},t.prototype.readInt32=function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]},t}();function rp(t){if(!t.applicationId){z.error("Application ID is not configured, no RUM data will be collected.");return}if(void 0!==t.sessionReplaySampleRate&&!tY(t.sessionReplaySampleRate)){z.error("Session Replay Sample Rate should be a number between 0 and 100");return}var e,n,r,i,o,a,u=null!==(e=t.premiumSampleRate)&&void 0!==e?e:t.replaySampleRate;if(void 0!==u&&void 0!==t.sessionReplaySampleRate&&(z.warn("Ignoring Premium Sample Rate because Session Replay Sample Rate is set"),u=void 0),void 0!==u&&!tY(u)){z.error("Premium Sample Rate should be a number between 0 and 100");return}var s=null!==(n=t.traceSampleRate)&&void 0!==n?n:t.tracingSampleRate;if(void 0!==s&&!tY(s)){z.error("Trace Sample Rate should be a number between 0 and 100");return}if(void 0!==t.excludedActivityUrls&&!Array.isArray(t.excludedActivityUrls)){z.error("Excluded Activity Urls should be an array");return}var c=rv(t);if(c){var f=rn(t);if(f){var l=!!(null!==(r=t.trackUserInteractions)&&void 0!==r?r:t.trackInteractions),d=!!t.trackFrustrations;return tv({applicationId:t.applicationId,version:t.version,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!==(o=null!==(i=t.sessionReplaySampleRate)&&void 0!==i?i:u)&&void 0!==o?o:100,oldPlansBehavior:void 0===t.sessionReplaySampleRate,traceSampleRate:s,allowedTracingUrls:c,excludedActivityUrls:null!==(a=t.excludedActivityUrls)&&void 0!==a?a:[],workerUrl:t.workerUrl,trackUserInteractions:l||d,trackFrustrations:d,trackViewsManually:!!t.trackViewsManually,trackResources:t.trackResources,trackLongTasks:t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:e8(re,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:re.MASK_USER_INPUT,customerDataTelemetrySampleRate:1},f)}}}function rv(t){if(void 0!==t.allowedTracingUrls&&void 0!==t.allowedTracingOrigins&&z.warn("Both allowedTracingUrls and allowedTracingOrigins (deprecated) have been defined. The parameter allowedTracingUrls will override allowedTracingOrigins."),void 0!==t.allowedTracingUrls){if(!Array.isArray(t.allowedTracingUrls)){z.error("Allowed Tracing URLs should be an array");return}if(0!==t.allowedTracingUrls.length&&void 0===t.service){z.error("Service needs to be configured when tracing is enabled");return}var e=[];return t.allowedTracingUrls.forEach(function(t){ri(t)?e.push({match:t,propagatorTypes:["datadog"]}):ra(t)?e.push(t):z.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)}),e}if(void 0!==t.allowedTracingOrigins){if(!Array.isArray(t.allowedTracingOrigins)){z.error("Allowed Tracing Origins should be an array");return}if(0!==t.allowedTracingOrigins.length&&void 0===t.service){z.error("Service needs to be configured when tracing is enabled");return}var n=[];return t.allowedTracingOrigins.forEach(function(t){var e=rb(t);e&&n.push(e)}),n}return[]}function rb(t){var e;if("string"==typeof t?e=t:t instanceof RegExp?e=function(e){return t.test(nU(e))}:"function"==typeof t&&(e=function(e){return t(nU(e))}),void 0===e){z.warn("Allowed Tracing Origins parameters should be a string, RegExp or function. Ignoring parameter",t);return}return{match:e,propagatorTypes:["datadog"]}}function rm(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach(function(t){ri(t)?e.add("datadog"):"object"===tS(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach(function(t){return e.add(t)})}),Array.isArray(t.allowedTracingOrigins)&&t.allowedTracingOrigins.length>0&&e.add("datadog"),ta(e)}function ry(t){var e,n,r=rr(t);return tv({premium_sample_rate:t.premiumSampleRate,replay_sample_rate:t.replaySampleRate,session_replay_sample_rate:t.sessionReplaySampleRate,trace_sample_rate:null!==(e=t.traceSampleRate)&&void 0!==e?e:t.tracingSampleRate,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_origins:Array.isArray(t.allowedTracingOrigins)&&t.allowedTracingOrigins.length>0,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:rm(t),default_privacy_level:t.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,track_frustrations:t.trackFrustrations,track_views_manually:t.trackViewsManually,track_user_interactions:null!==(n=t.trackUserInteractions)&&void 0!==n?n:t.trackInteractions},r)}function rg(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}var r_="rum";function rw(t,e,n){var r=(void 0===n?{}:n).ignoreInitIfSyntheticsWillInjectRum,i=void 0===r||r,o=!1,a=tz(2),u=tz(1),s=function(){},c=function(){},f=tr,l=function(){},d=new tW,h=function(t,e){void 0===e&&(e=t8()),d.add(function(){return h(t,e)})},p=function(t,e){void 0===e&&(e=t7()),d.add(function(){return p(t,e)})},v=function(t,n){void 0===n&&(n=rg(a,u,e)),d.add(function(){return v(t,n)})},b=function(t,n){void 0===n&&(n=rg(a,u,e)),d.add(function(){return b(t,n)})},m=function(t,e){d.add(function(){return m(t,e)})};function y(t){if(!t){z.error("Missing configuration");return}if(c=function(){return tA(t)},!(i&&em())){var e=ew();if(e&&(t=S(t)),w(t)){var n=rp(t);if(n){if(!e&&!n.sessionStoreStrategyType){z.warn("No storage available for session. We will not send any data.");return}if(n.trackViewsManually){var r=d;d=new tW,p=function(e){g(t,n,e)},r.drain()}else g(t,n);o=!0}}}}function g(n,r,i){if(n.storeContextsAcrossPages){var o=a.getContext();(a=eO(r,r_,2)).setContext(tk(a.getContext(),o));var c=u.getContext();(u=eO(r,r_,1)).setContext(tk(u.getContext(),c))}var y=t(n,r,e,a,u,i);l=function(){return e.getSessionReplayLink(r,y.session,y.viewContexts)},p=y.startView,v=y.addAction,b=y.addError,h=y.addTiming,m=y.addFeatureFlagEvaluation,s=y.getInternalContext,f=y.stopSession,d.drain(),e.onRumStart(y.lifeCycle,r,y.session,y.viewContexts)}var _=Y(function(t){p("object"==typeof t?t:{name:t})});return tb({init:Y(y),addRumGlobalContext:Y(function(t,e){return a.add(t,e)}),setGlobalContextProperty:Y(function(t,e){return a.setContextProperty(t,e)}),removeRumGlobalContext:Y(function(t){return a.remove(t)}),removeGlobalContextProperty:Y(function(t){return a.removeContextProperty(t)}),getRumGlobalContext:Y(function(){return a.get()}),getGlobalContext:Y(function(){return a.getContext()}),setRumGlobalContext:Y(function(t){return a.set(t)}),setGlobalContext:Y(function(t){return a.setContext(t)}),clearGlobalContext:Y(function(){return a.clearContext()}),getInternalContext:Y(function(t){return s(t)}),getInitConfiguration:Y(function(){return c()}),addAction:Y(function(t,e){v({name:tP(t),context:tP(e),startClocks:t7(),type:"custom"})}),addError:function(t,e){var n=e$();J(function(){b({error:t,handlingStack:n,context:tP(e),startClocks:t7()})})},addTiming:Y(function(t,e){h(tP(t),e)}),setUser:Y(function(t){e0(t)&&u.setContext(eQ(t))}),getUser:Y(function(){return u.getContext()}),setUserProperty:Y(function(t,e){var n,r=eQ(((n={})[t]=e,n))[t];u.setContextProperty(t,r)}),removeUserProperty:Y(function(t){return u.removeContextProperty(t)}),removeUser:Y(function(){return u.clearContext()}),clearUser:Y(function(){return u.clearContext()}),startView:_,stopSession:Y(function(){f()}),startSessionReplayRecording:Y(e.start),stopSessionReplayRecording:Y(e.stop),addFeatureFlagEvaluation:Y(function(t,e){m(tP(t),tP(e))}),getSessionReplayLink:Y(function(){return l()})});function w(t){return!o||(t.silentMultipleInit||z.error("DD_RUM is already initialized."),!1)}function S(t){return tv({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100})}}function rS(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}var rE={log:"log",configuration:"configuration"},rA=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],rk=[n$],rx={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function rO(t,e){var n,r=new tB;rx.telemetryEnabled=!to(rk,e.site)&&tK(e.telemetrySampleRate),rx.telemetryConfigurationEnabled=rx.telemetryEnabled&&tK(e.telemetryConfigurationSampleRate);var i=rM();function o(t,e,r){return tk({type:"telemetry",date:t8(),service:t,version:"4.50.1",source:"browser",_dd:{format_version:2},telemetry:tk(e,{runtime_env:r}),experimental_features:ta(e6())},void 0!==n?n():{})}return sB=function(e){if(rx.telemetryEnabled){var n=o(t,e,i);r.notify(n),rS("telemetry",n)}},K(rR),tv(rx,{maxEventsPerPage:e.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){n=t},observable:r,enabled:rx.telemetryEnabled}}function rM(){return{is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self}}function rT(t){return t.site===nK}function rC(t,e){$(U.debug,t,e),rI(tv({type:rE.log,message:t,status:"debug"},e))}function rR(t,e){rI(tv({type:rE.log,status:"error"},rL(t),e))}function rP(t){rx.telemetryConfigurationEnabled&&rI({type:rE.configuration,configuration:t})}function rI(t){sB&&rx.sentEventCountt[n])return!1;return!0}function rW(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType}function rK(t){var e=t.duration,n=t.startTime,r=t.responseEnd;return 0===e&&n=0;e-=1){var r=t.body.childNodes[e],n=r9(r);if(n)return n;if(!r0(r))break}}function r9(t){if(t&&r1(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function it(){return void 0!==window.performance&&"getEntries"in performance}function ie(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function ir(t,e){if(ii(e,function(n){is(t,e,[n])}),it()){var n=performance.getEntries();X(function(){return is(t,e,n)})}if(window.PerformanceObserver){var r=Y(function(n){return is(t,e,n.getEntries())}),i=[sV.RESOURCE,sV.NAVIGATION,sV.LONG_TASK,sV.PAINT],o=[sV.LARGEST_CONTENTFUL_PAINT,sV.FIRST_INPUT,sV.LAYOUT_SHIFT,sV.EVENT];try{o.forEach(function(t){new window.PerformanceObserver(r).observe({type:t,buffered:!0,durationThreshold:40})})}catch(t){i.push.apply(i,o)}new PerformanceObserver(r).observe({entryTypes:i}),it()&&"addEventListener"in performance&&eE(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})}ie(sV.NAVIGATION)||io(e,function(n){is(t,e,[n])}),ie(sV.FIRST_INPUT)||ia(e,function(n){is(t,e,[n])})}function ii(t,e){rG(t,"interactive",function(){var t,n={entryType:sV.RESOURCE,initiatorType:rF,traceId:r6(document),toJSON:function(){return tv({},t,{toJSON:void 0})}};if(ie(sV.NAVIGATION)&&performance.getEntriesByType(sV.NAVIGATION).length>0)t=tv(performance.getEntriesByType(sV.NAVIGATION)[0].toJSON(),n);else{var r=iu();t=tv(r,{decodedBodySize:0,duration:r.responseEnd,name:window.location.href,startTime:0},n)}e(t)})}function io(t,e){function n(){e(tv(iu(),{entryType:sV.NAVIGATION}))}rG(t,"complete",function(){X(n)})}function ia(t,e){var n=t4(),r=!1,i=eA(t,window,["click","mousedown","keydown","touchstart","pointerdown"],function(e){if(e.cancelable){var n={entryType:sV.FIRST_INPUT,processingStart:t5(),processingEnd:t5(),startTime:e.timeStamp,duration:0,name:""};"pointerdown"===e.type?o(t,n):a(n)}},{passive:!0,capture:!0}).stop;function o(t,e){eA(t,window,["pointerup","pointercancel"],function(t){"pointerup"===t.type&&a(e)},{once:!0})}function a(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o=0&&n.entries.splice(t,1)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},t.prototype.find=function(t){void 0===t&&(t=iM);for(var e=0,n=this.entries;e0&&this.entries[this.entries.length-1].endTime=500}function iW(t){try{return t.clone()}catch(t){return}}function iK(t,e,n){var r=t.getReader(),i=[],o=0;function a(){r.read().then(Y(function(t){if(t.done){u();return}n.collectStreamBody&&i.push(t.value),(o+=t.value.length)>n.bytesLimit?u():a()}),Y(function(t){return e(t)}))}function u(){if(r.cancel().catch(tr),n.collectStreamBody){if(1===i.length)u=i[0];else{u=new Uint8Array(o);var t,a,u,s=0;i.forEach(function(t){u.set(t,s),s+=t.length})}t=u.slice(0,n.bytesLimit),a=u.length>n.bytesLimit}e(void 0,t,a)}a()}var iZ=1;function iY(t,e,n){var r=rs(e,n);iJ(t,e,r),i$(t,e,r)}function iJ(t,e,n){var r=iN(e).subscribe(function(r){var i=r;if(rQ(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=iX(),t.notify(5,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(6,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"xhr",url:i.url,xhr:i.xhr})}});return{stop:function(){return r.unsubscribe()}}}function i$(t,e,n){var r=iG().subscribe(function(r){var i=r;if(rQ(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=iX(),t.notify(5,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":iQ(i,function(e){n.clearTracingIfNeeded(i),t.notify(6,{duration:e,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"fetch",url:i.url,response:i.response,init:i.init,input:i.input})})}});return{stop:function(){return r.unsubscribe()}}}function iX(){var t=iZ;return iZ+=1,t}function iQ(t,e){var n=t.response&&iW(t.response);n&&n.body?iK(n.body,function(){e(et(t.startClocks.timeStamp,t8()))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(et(t.startClocks.timeStamp,t8()))}function i0(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,i=void 0===r?tr:r,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(11,function(t){var e;if("view"!==t.type&&n(t))switch(t.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,t.action.frustration&&(o.frustrationCount+=t.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":(null===(e=t._dd)||void 0===e?void 0:e.discarded)||(o.resourceCount+=1,i())}});return{stop:function(){a.unsubscribe()},eventCounts:o}}var i1=100,i2=100;function i3(t,e,n,r,i){return i6(i4(t,e,n),r,i)}function i6(t,e,n){var r,i=!1,o=X(Y(function(){return c({hadActivity:!1})}),i1),a=void 0!==n?X(Y(function(){return c({hadActivity:!0,end:t8()})}),n):void 0,u=t.subscribe(function(t){var e=t.isBusy;Q(o),Q(r);var n=t8();e||(r=X(Y(function(){return c({hadActivity:!0,end:n})}),i2))}),s=function(){i=!0,Q(o),Q(r),Q(a),u.unsubscribe()};function c(t){i||(s(),e(t))}return{stop:s}}function i4(t,e,n){var r=new tB(function(){var i,o=[],a=0;o.push(e.subscribe(s),t.subscribe(0,function(t){t.some(function(t){return t.entryType===sV.RESOURCE&&!i8(n,t.name)})&&s()}),t.subscribe(5,function(t){i8(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,s())}),t.subscribe(6,function(t){i8(n,t.url)||void 0===i||t.requestIndex0})}});return r}function i8(t,e){return ro(t.excludedActivityUrls,e)}function i5(t){return iL(window,"open",{before:t})}var i7="data-dd-action-name";function i9(t,e){return ot(t,i7)||e&&ot(t,e)||oi(t,e,oe)||oi(t,e,on)||""}function ot(t,e){if(ol())n=t.closest("[".concat(e,"]"));else for(var n,r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return oa(oo(n.getAttribute(e).trim()))}var oe=[function(t,e){if(of()){if("labels"in t&&t.labels&&t.labels.length>0)return os(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&tu(t.ownerDocument.querySelectorAll("label"),function(e){return e.htmlFor===t.id});return n&&os(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return os(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map(function(e){return ou(t,e)}).filter(function(t){return!!t}).map(function(t){return os(t,e)}).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return os(t.options[0],e)}],on=[function(t,e){return os(t,e)}],or=10;function oi(t,e,n){for(var r=t,i=0;i<=or&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0,a=n;o100?"".concat(es(t,100)," [...]"):t}function ou(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}function os(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i0&&(n=n.replace(a,""))}}};return oc()||r("script, style"),r("[".concat(i7,"]")),e&&r("[".concat(e,"]")),n}return t.textContent}}function oc(){return!ne()}function of(){return void 0===sq&&(sq="labels"in HTMLInputElement.prototype),sq}function ol(){return void 0===sz&&(sz="closest"in HTMLElement.prototype),sz}var od=[i7,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],oh=[o_,om],op=[o_,oy,og];function ov(t,e){for(var n="",r=t;r&&"HTML"!==r.nodeName;){var i=oS(r,oh,oE,e,n);if(i)return i;n=oS(r,op,oA,e,n)||ok(ow(r),n),r=r.parentElement}return n}function ob(t){return/[0-9]/.test(t)}function om(t){if(t.id&&!ob(t.id))return"#".concat(tp(t.id))}function oy(t){if("BODY"!==t.tagName&&t.classList.length>0)for(var e=0;e").concat(e):t}function ox(){if(void 0===sH)try{document.querySelector(":scope"),sH=!0}catch(t){sH=!1}return sH}var oO=t$,oM=100;function oT(t,e){var n,r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),Q(n),n=X(u,oO)}function a(){1===i&&r.every(function(t){return t.isStopped()})&&(i=2,e(r))}function u(){Q(n),0===i&&(i=1,a())}return o(t),{tryAppend:function(t){return 0===i&&(r.length>0&&!oC(r[r.length-1].event,t.event)?(u(),!1):(o(t),!0))},stop:function(){u()}}}function oC(t,e){return t.target===e.target&&oR(t,e)<=oM&&t.timeStamp-e.timeStamp<=oO}function oR(t,e){return Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2))}function oP(t,e){var n,r,i=e.onPointerDown,o=e.onPointerUp,a={selection:!1,input:!1},u=[eE(t,window,"pointerdown",function(t){oL(t)&&(n=oI(),a={selection:!1,input:!1},r=i(t))},{capture:!0}),eE(t,window,"selectionchange",function(){n&&oI()||(a.selection=!0)},{capture:!0}),eE(t,window,"pointerup",function(t){if(oL(t)&&r){var e=a;o(r,t,function(){return e}),r=void 0}},{capture:!0}),eE(t,window,"input",function(){a.input=!0},{capture:!0})];return{stop:function(){u.forEach(function(t){return t.stop()})}}}function oI(){var t=window.getSelection();return!t||t.isCollapsed}function oL(t){return t.target instanceof Element&&!1!==t.isPrimary}var oj=3;function oN(t,e){if(oD(t))return e.addFrustration("rage_click"),t.some(oV)&&e.addFrustration("dead_click"),e.hasError&&e.addFrustration("error_click"),{isRage:!0};var n=t.some(function(t){return t.getUserActivity().selection});return t.forEach(function(t){t.hasError&&t.addFrustration("error_click"),oV(t)&&!n&&t.addFrustration("dead_click")}),{isRage:!1}}function oD(t){if(t.some(function(t){return t.getUserActivity().selection}))return!1;for(var e=0;e0},get hasPageActivity(){return void 0!==o},getUserActivity:n,addFrustration:function(t){l.push(t)},startClocks:u,isStopped:function(){return 1===f||2===f},clone:function(){return oW(t,e,n,r,i)},validate:function(e){if(h(),1===f){var n=c.eventCounts,s=n.resourceCount,d=n.errorCount,p=n.longTaskCount,v=tv({type:"click",duration:o&&et(u.timeStamp,o),startClocks:u,id:a,frustrationTypes:l,counts:{resourceCount:s,errorCount:d,longTaskCount:p},events:null!=e?e:[i],event:i},r);t.notify(1,v),f=2}},discard:function(){h(),f=2}}}function oK(t,e){oN(t,e).isRage?(t.forEach(function(t){return t.discard()}),e.stop(t8()),e.validate(t.map(function(t){return t.event}))):(e.discard(),t.forEach(function(t){return t.validate()}))}function oZ(t,e,n,r){t.subscribe(1,function(e){return t.notify(10,oY(e,r))});var i={findActionId:tr};return n.trackUserInteractions&&(i=oF(t,e,n).actionContexts),{addAction:function(e,n){t.notify(10,tv({savedCommonContext:n},oY(e,r)))},actionContexts:i}}function oY(t,e){var n=oJ(t)?{action:{id:t.id,loading_time:t6(t.duration),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:void 0;return{customerContext:oJ(t)?void 0:t.context,rawRumEvent:tk({action:{id:ea(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:oJ(t)?{event:t.event,events:t.events}:{}}}function oJ(t){return"custom"!==t.type}var o$=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function oX(t){var e=oQ(t).stop,n=o1(t).stop;return{stop:function(){e(),n()}}}function oQ(t){return iL(window,"onerror",{before:function(e,n,r,i,o){var a;if(o instanceof Error)a=eC(o);else{var u=[{url:n,column:i,line:r}],s=o0(e);a={name:s.name,message:s.message,stack:u}}t(a,null!=o?o:e)}})}function o0(t){var e,n,r;return"[object String]"===({}).toString.call(t)&&(n=(e=o$.exec(t))[1],r=e[2]),{name:n,message:r}}function o1(t){return iL(window,"onunhandledrejection",{before:function(e){var n=e.reason||"Empty reason";t(eC(n),n)}})}function o2(t){return oX(function(e,n){t.notify(eH({stackTrace:e,originalError:n,startClocks:t7(),nonErrorPrefix:"Uncaught",source:id.SOURCE,handling:"unhandled"}))})}var o3={};function o6(t){var e=t.map(function(t){return o3[t]||(o3[t]=o4(t)),o3[t]});return tV.apply(void 0,e)}function o4(t){var e=new tB(function(){var n=G[t];return G[t]=function(){for(var r=[],i=0;i=e-r&&ah(t)<=ee(n,r)}function av(t,e,n,r){t.subscribe(6,function(i){t.notify(10,ab(i,e,n,r))}),t.subscribe(0,function(i){for(var o=0,a=i;o=0?i.start:0,u=o?o.start:t6(e);n.push({start:a,duration:u-a})}}return n}function aO(t,e,n){var r=i0({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}var aM=10*tX;function aT(t,e,n){return{stop:t.subscribe(0,function(t){var r=tu(t,function(t){return t.entryType===sV.PAINT&&"first-contentful-paint"===t.name&&t.startTime=0?o:0,time:i.startTime,targetSelector:a})}}).unsubscribe}}function aR(t,e){return{stop:t.subscribe(0,function(t){for(var n=0,r=t;n=0&&i.responseStart<=t5()?i.responseStart:void 0})}}).unsubscribe}}var aP=10*tX;function aI(t,e,n,r,i){var o=1/0,a=eA(e,r,["pointerdown","keydown"],function(t){o=t.timeStamp},{capture:!0,once:!0}).stop,u=t.subscribe(0,function(t){var r=ts(t,function(t){return t.entryType===sV.LARGEST_CONTENTFUL_PAINT&&t.startTimer)){var s=tZ(r=i.value(),4),c=i.largestLayoutShiftTarget(),f=void 0;e3(sI.WEB_VITALS_ATTRIBUTION)&&c&&(f=ov(c,t.actionNameAttribute)),n({value:s,targetSelector:f})}}}).unsubscribe}}function aD(){var t,e,n,r,i=0,o=0;return{update:function(a){var u,s;void 0===t||a.startTime-e>=t$||a.startTime-t>=5*t$?(t=e=a.startTime,i=a.value,o=0,n=void 0):(i+=a.value,e=a.startTime),a.value>o&&(o=a.value,r=a.startTime,n=(null===(u=a.sources)||void 0===u?void 0:u.length)?null===(s=tu(a.sources,function(t){return!!t.node&&r2(t.node)}))||void 0===s?void 0:s.node:void 0)},value:function(){return i},largestLayoutShiftTarget:function(){return n},largestLayoutShiftTime:function(){return r}}}function aB(){return ie(sV.LAYOUT_SHIFT)}var aV=0,aU=1/0,aG=0;function aF(){"interactionCount"in performance||sW||(sW=new window.PerformanceObserver(Y(function(t){t.getEntries().forEach(function(t){var e=t;e.interactionId&&(aU=Math.min(aU,e.interactionId),aV=((aG=Math.max(aG,e.interactionId))-aU)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0})}var aq=function(){return sW?aV:window.performance.interactionCount||0},az=10;function aH(t,e,n,r){if(!aZ()||!e3(sI.INTERACTION_TO_NEXT_PAINT))return{getInteractionToNextPaint:function(){},stop:tr};var i,o=aK(n).getViewInteractionCount,a=aW(o),u=-1,s=!1;return{getInteractionToNextPaint:function(){return u>=0?{value:u,targetSelector:i}:o()?{value:0}:void 0},stop:r.subscribe(0,function(n){for(var r,o=0,c=n;o10*tX&&!s&&(s=!0,rC("INP outlier",{inp:u,interaction:{timeFromViewStart:et(e.relative,l.startTime),duration:l.duration,startTime:l.startTime,processingStart:l.processingStart,processingEnd:l.processingEnd,interactionId:l.interactionId,name:l.name,targetNodeName:null===(r=l.target)||void 0===r?void 0:r.nodeName}})),i=e3(sI.WEB_VITALS_ATTRIBUTION)&&l.target&&r2(l.target)?ov(l.target,t.actionNameAttribute):void 0)}).unsubscribe}}function aW(t){var e=[];function n(){e.sort(function(t,e){return e.duration-t.duration}).splice(az)}return{process:function(t){var r=e.findIndex(function(e){return t.interactionId===e.interactionId}),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.lengthi.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}function aK(t){aF();var e="initial_load"===t?0:aq();return{getViewInteractionCount:function(){return aq()-e}}}function aZ(){return ie(sV.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function aY(t,e,n,r,i,o){var a="initial_load"===r,u=!0,s=[];function c(){u||a||!(s.length>0)||o(Math.max.apply(Math,s))}return{stop:i3(t,e,n,function(t){u&&(u=!1,t.hadActivity&&s.push(et(i.timeStamp,t.end)),c())}).stop,setLoadEvent:function(t){a&&(a=!1,s.push(t),c())}}}function aJ(){var t,e=window.visualViewport;return Math.round(t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function a$(t){return sK||(sK=aX(t)),sK}function aX(t){var e=new tB(function(){return eE(t,window,"resize",tn(function(){e.notify(aQ())},200).throttled,{capture:!0,passive:!0}).stop});return e}function aQ(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var a0=t$;function a1(t,e,n,r){void 0===r&&(r=a3(t));var i=0,o=0,a=0,u=r.subscribe(function(t){var r=t.scrollDepth,u=t.scrollTop,s=t.scrollHeight,c=!1;if(r>i&&(i=r,c=!0),s>o){o=s;var f=t5();a=et(e.relative,f),c=!0}c&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:u,maxScrollHeight:o,maxScrollHeightTime:a})});return{stop:function(){return u.unsubscribe()}}}function a2(){var t=aJ(),e=aQ().height;return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(e+t),scrollTop:t}}function a3(t,e){void 0===e&&(e=a0);var n=new tB(function(){function r(){n.notify(a2())}if(window.ResizeObserver){var i=tn(r,e,{leading:!1,trailing:!0}),o=document.scrollingElement||document.documentElement,a=new ResizeObserver(Y(i.throttled));a.observe(o);var u=eE(t,window,"scroll",i.throttled,{passive:!0});return function(){i.cancel(),a.unobserve(o),u.stop()}}});return n}function a6(t,e,n,r,i,o){var a={},u=aY(t,e,n,i,o,function(t){a.loadingTime=t,r()}),s=u.stop,c=u.setLoadEvent,f=a1(n,o,function(t){a.scroll=t}).stop,l=aN(n,t,function(t){a.cumulativeLayoutShift=t,r()}).stop,d=aH(n,o,i,t),h=d.stop,p=d.getInteractionToNextPaint;return{stop:function(){s(),l(),f(),h()},setLoadEvent:c,getCommonViewMetrics:function(){return a.interactionToNextPaint=p(),a}}}var a4=3e3,a8=5*tX,a5=5*tX;function a7(t,e,n,r,i,o,a){var u,s=new Set,c=f("initial_load",t9(),a);function f(i,o,a){var u=a9(e,n,r,t,i,o,a);return s.add(u),u.stopObservable.subscribe(function(){s.delete(u)}),u}function l(t){return t.subscribe(function(t){ue(t.oldLocation,t.newLocation)&&(c.end(),c=f("route_change"))})}return function(){e.subscribe(8,function(){c=f("route_change",void 0,{name:c.name,service:c.service,version:c.version})}),e.subscribe(7,function(){c.end({sessionIsActive:!1})}),e.subscribe(9,function(t){(t.reason===rN.UNLOADING||t.reason===rN.PAGEHIDE)&&c.end()})}(),o&&(u=l(i)),{addTiming:function(t,e){void 0===e&&(e=t8()),c.addTiming(t,e)},startView:function(t,e){c.end({endClocks:e}),c=f("route_change",e,t)},stop:function(){null==u||u.unsubscribe(),c.end(),s.forEach(function(t){return t.stop()})}}}function a9(t,e,n,r,i,o,a){void 0===o&&(o=t7());var u,s,c,f,l=ea(),d=new tB,h={},p=0,v=e4(r),b=!0;a&&(s=a.name,c=a.service,f=a.version),t.notify(2,{id:l,name:s,startClocks:o,service:c,version:f});var m=tn(R,a4,{leading:!1}),y=m.throttled,g=m.cancel,_=a6(t,e,n,y,i,o),w=_.setLoadEvent,S=_.stop,E=_.getCommonViewMetrics,A="initial_load"===i?aj(t,n,w,y):{stop:tr,initialViewMetrics:{}},k=A.stop,x=A.initialViewMetrics,O=aO(t,l,y),M=O.stop,T=O.eventCounts,C=tt(R,a8);function R(){g(),p+=1;var e=void 0===u?t8():u.timeStamp;t.notify(3,{customTimings:h,documentVersion:p,id:l,name:s,service:c,version:f,loadingType:i,location:v,startClocks:o,commonViewMetrics:E(),initialViewMetrics:x,duration:et(o.timeStamp,e),isActive:void 0===u,sessionIsActive:b,eventCounts:T})}return R(),{name:s,service:c,version:f,stopObservable:d,end:function(e){var n,r,i=this;void 0===e&&(e={}),u||(u=null!==(n=e.endClocks)&&void 0!==n?n:t7(),b=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(4,{endClocks:u}),te(C),S(),R(),X(function(){i.stop()},a5))},stop:function(){k(),M(),d.notify()},addTiming:function(t,e){if(!u){var n=ei(e)?e:et(o.timeStamp,e);h[ut(t)]=n,y()}}}}function ut(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return e!==t&&z.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(e)),e}function ue(t,e){return t.pathname!==e.pathname||!un(e.hash)&&ur(e.hash)!==ur(t.hash)}function un(t){var e=t.substr(1);return!!document.getElementById(e)}function ur(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function ui(t,e,n,r,i,o,a,u,s){return t.subscribe(3,function(n){return t.notify(10,uo(n,e,o,u,a))}),a7(n,t,r,e,i,!e.trackViewsManually,s)}function uo(t,e,n,r,i){var o,a,u,s,c,f,l,d,h,p,v,b,m,y,g=r.getReplayStats(t.id),_=n.findFeatureFlagEvaluations(t.startClocks.relative),w=e3(sI.PAGE_STATES),S=i.findAll(t.startClocks.relative,t.duration),E={_dd:{document_version:t.documentVersion,replay_stats:g,page_states:w?S:void 0},date:t.startClocks.timeStamp,type:"view",view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:null===(o=t.commonViewMetrics.cumulativeLayoutShift)||void 0===o?void 0:o.value,cumulative_layout_shift_target_selector:null===(a=t.commonViewMetrics.cumulativeLayoutShift)||void 0===a?void 0:a.targetSelector,first_byte:t6(null===(u=t.initialViewMetrics.navigationTimings)||void 0===u?void 0:u.firstByte),dom_complete:t6(null===(s=t.initialViewMetrics.navigationTimings)||void 0===s?void 0:s.domComplete),dom_content_loaded:t6(null===(c=t.initialViewMetrics.navigationTimings)||void 0===c?void 0:c.domContentLoaded),dom_interactive:t6(null===(f=t.initialViewMetrics.navigationTimings)||void 0===f?void 0:f.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:t6(t.initialViewMetrics.firstContentfulPaint),first_input_delay:t6(null===(l=t.initialViewMetrics.firstInput)||void 0===l?void 0:l.delay),first_input_time:t6(null===(d=t.initialViewMetrics.firstInput)||void 0===d?void 0:d.time),first_input_target_selector:null===(h=t.initialViewMetrics.firstInput)||void 0===h?void 0:h.targetSelector,interaction_to_next_paint:t6(null===(p=t.commonViewMetrics.interactionToNextPaint)||void 0===p?void 0:p.value),interaction_to_next_paint_target_selector:null===(v=t.commonViewMetrics.interactionToNextPaint)||void 0===v?void 0:v.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:t6(null===(b=t.initialViewMetrics.largestContentfulPaint)||void 0===b?void 0:b.value),largest_contentful_paint_target_selector:null===(m=t.initialViewMetrics.largestContentfulPaint)||void 0===m?void 0:m.targetSelector,load_event:t6(null===(y=t.initialViewMetrics.navigationTimings)||void 0===y?void 0:y.loadEvent),loading_time:ua(t6(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:t6(t.duration),in_foreground_periods:!w&&S?ax(S,t.duration):void 0},feature_flags:_&&!e5(_)?_:void 0,display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:t6(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!g||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};return e5(t.customTimings)||(E.view.custom_timings=e7(t.customTimings,t6)),{rawRumEvent:E,startTime:t.startClocks.relative,domainContext:{location:t.location}}}function ua(t){return tJ(t)&&t<0?void 0:t}var uu=tX,us=e9,uc=[];function uf(t,e,n){var r=nD(t.sessionStoreStrategyType,e,n);uc.push(function(){return r.stop()});var i=new iC(us);function o(){return{id:r.getSession().id,trackingType:r.getSession()[e]}}return uc.push(function(){return i.stop()}),r.renewObservable.subscribe(function(){i.add(o(),t5())}),r.expireObservable.subscribe(function(){i.closeActive(t5())}),r.expandOrRenewSession(),i.add(o(),t9().relative),ul(t,function(){return r.expandOrRenewSession()}),ud(t,function(){return r.expandSession()}),{findActiveSession:function(t){return i.find(t)},renewObservable:r.renewObservable,expireObservable:r.expireObservable,expire:r.expire}}function ul(t,e){var n=eA(t,window,["click","touchstart","keydown","scroll"],e,{capture:!0,passive:!0}).stop;uc.push(n)}function ud(t,e){var n=function(){"visible"===document.visibilityState&&e()},r=eE(t,document,"visibilitychange",n).stop;uc.push(r);var i=tt(n,uu);uc.push(function(){te(i)})}var uh="rum";function up(t,e){var n=uf(t,uh,function(e){return ub(t,e)});return n.expireObservable.subscribe(function(){e.notify(7)}),n.renewObservable.subscribe(function(){e.notify(8)}),{findTrackedSession:function(e){var r=n.findActiveSession(e);if(r&&uy(r.trackingType)){var i="1"===r.trackingType?2:1;return{id:r.id,plan:i,sessionReplayAllowed:2===i,longTaskAllowed:void 0!==t.trackLongTasks?t.trackLongTasks:t.oldPlansBehavior&&2===i,resourceAllowed:void 0!==t.trackResources?t.trackResources:t.oldPlansBehavior&&2===i}}},expire:n.expire,expireObservable:n.expireObservable}}function uv(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",plan:1,sessionReplayAllowed:!1,longTaskAllowed:!0,resourceAllowed:!0};return{findTrackedSession:function(){return t},expire:tr,expireObservable:new tB}}function ub(t,e){var n;return{trackingType:n=um(e)?e:tK(t.sessionSampleRate)?tK(t.sessionReplaySampleRate)?"1":"2":"0",isTracked:uy(n)}}function um(t){return"0"===t||"1"===t||"2"===t}function uy(t){return"2"===t||"1"===t}var ug=function(){function t(t,e,n){var r=this;this.request=t,this.flushController=e,this.messageBytesLimit=n,this.pushOnlyBuffer=[],this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe(function(t){return r.flush(t)})}return t.prototype.add=function(t){this.addOrUpdate(t)},t.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},t.prototype.stop=function(){this.flushSubscription.unsubscribe()},t.prototype.flush=function(t){var e=this.pushOnlyBuffer.concat(tc(this.upsertBuffer));this.pushOnlyBuffer=[],this.upsertBuffer={};var n={data:e.join("\n"),bytesCount:t.bytesCount,flushReason:t.reason};rB(t.reason)?this.request.sendOnExit(n):this.request.send(n)},t.prototype.addOrUpdate=function(t,e){var n=this.process(t),r=n.processedMessage,i=n.messageBytesCount;if(i>=this.messageBytesLimit){z.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB."));return}this.hasMessageFor(e)&&this.remove(e),this.push(r,i,e)},t.prototype.process=function(t){var e=tO(t),n=tw(e);return{processedMessage:e,messageBytesCount:n}},t.prototype.push=function(t,e,n){var r=this.flushController.messagesCount>0?1:0;this.flushController.notifyBeforeAddMessage(e+r),void 0!==n?this.upsertBuffer[n]=t:this.pushOnlyBuffer.push(t),this.flushController.notifyAfterAddMessage()},t.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=tw(e),r=this.flushController.messagesCount>1?1:0;this.flushController.notifyAfterRemoveMessage(n+r)},t.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},t}(),u_=80*ty,uw=32,uS=3*tg,uE=tX,uA=t$;function uk(t,e,n,r,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?uO(t,e,n,{onSuccess:function(){return uM(0,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),ux(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function ux(t,e,n,r){2===t.transportStatus&&X(function(){uO(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=uA,uM(1,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(uE,2*t.currentBackoffTime),ux(t,e,n,r)}})},t.currentBackoffTime)}function uO(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,function(n){e.bandwidthMonitor.remove(t),uT(n)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o()):(e.transportStatus=0,i())})}function uM(t,e,n,r,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(uS/tg,"MiB"),source:id.AGENT,startClocks:t7()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=uR();o.size()>0;)uk(o.dequeue(),e,n,r,i)}function uT(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||iH(t.status))}function uC(){return{transportStatus:0,currentBackoffTime:uA,bandwidthMonitor:uP(),queuedPayloads:uR(),queueFullReported:!1}}function uR(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=uS}}}function uP(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=u_&&this.ongoingRequestCount=r&&d("bytes_limit"),l+=1,f+=t,h()},notifyAfterAddMessage:function(){l>=n?d("messages_limit"):f>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(t){f-=t,0==(l-=1)&&p()}}}function uG(t,e,n,r,i,o){var a=s(t,e.endpoint),u=n&&s(t,n.endpoint);function s(t,e){return new ug(uI(t,e,t.batchBytesLimit,r),uU({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),t.messageBytesLimit)}return{flushObservable:a.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),a.add(t),u&&e&&u.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){a.upsert(t,e),u&&u.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){a.stop(),null==u||u.stop()}}}function uF(t,e,n,r,i,o){var a=t.replica,u=uG(t,{endpoint:t.rumEndpointBuilder},a&&{endpoint:a.rumEndpointBuilder,transformMessage:function(t){return tk(t,{application:{id:a.applicationId}})}},r,i,o);return e.subscribe(11,function(t){"view"===t.type?u.upsert(t,t.view.id):u.add(t)}),n.subscribe(function(e){return u.add(e,rT(t))}),u}function uq(t){var e=e_();t.subscribe(11,function(t){e.send("rum",t)})}var uz=e9;function uH(t,e,n){var r,i=new iC(uz);t.subscribe(4,function(t){var e=t.endClocks;i.closeActive(e.relative)}),t.subscribe(2,function(t){var e=t.startClocks,o=n.href;i.add(a({url:o,referrer:r||document.referrer}),e.relative),r=o});var o=e.subscribe(function(t){var e=t.newLocation,n=i.find();if(n){var r=t5();i.closeActive(r),i.add(a({url:e.href,referrer:n.referrer}),r)}});function a(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}function uW(t,e){var n=e4(e),r=new tB(function(){var e=uK(t,i).stop,n=uZ(t,i).stop;return function(){e(),n()}});function i(){if(n.href!==e.href){var t=e4(e);r.notify({newLocation:t,oldLocation:n}),n=t}}return r}function uK(t,e){var n=iL(history,"pushState",{after:e}).stop,r=iL(history,"replaceState",{after:e}).stop,i=eE(t,window,"popstate",e).stop;return{stop:function(){n(),r(),i()}}}function uZ(t,e){return eE(t,window,"hashchange",e)}var uY=e9,uJ=200;function u$(t,e){if(void 0===e&&(e=tw),!e3(sI.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},getFeatureFlagBytesCount:function(){return 0},addFeatureFlagEvaluation:tr,stop:tr};var n=new iC(uY),r=0,i=!1;t.subscribe(4,function(t){var e=t.endClocks;n.closeActive(e.relative)}),t.subscribe(2,function(t){var e=t.startClocks;n.add({},e.relative),r=0});var o=tn(function(t){r=e(tO(t)),i||(i=tF(r,0))},uJ),a=o.throttled;return{findFeatureFlagEvaluations:function(t){return n.find(t)},getFeatureFlagBytesCount:function(){return n.find()?r:0},addFeatureFlagEvaluation:function(t,e){var r=n.find();r&&(r[t]=e,a(r))},stop:o.cancel}}var uX=10*t$;function uQ(t,e,n,r,i,o,a){e.enabled&&tK(t.customerDataTelemetrySampleRate)&&(u6(),u4(),n.subscribe(11,function(t){sJ=!0,u2(sY.globalContextBytes,e5(r.get())?0:r.getBytesCount()),u2(sY.userContextBytes,e5(i.get())?0:i.getBytesCount());var e=o.findFeatureFlagEvaluations(),n=to(["view","error"],t.type)&&e&&!e5(e);u2(sY.featureFlagBytes,n?o.getFeatureFlagBytesCount():0)}),a.subscribe(function(t){var e=t.bytesCount,n=t.messagesCount;sJ&&(sZ.batchCount+=1,u2(sZ.batchBytesCount,e),u2(sZ.batchMessagesCount,n),u3(sZ.globalContextBytes,sY.globalContextBytes),u3(sZ.userContextBytes,sY.userContextBytes),u3(sZ.featureFlagBytes,sY.featureFlagBytes),u4())}),tt(u0,uX))}function u0(){0!==sZ.batchCount&&(rC("Customer data measures",sZ),u6())}function u1(){return{min:1/0,max:0,sum:0}}function u2(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function u3(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function u6(){sZ={batchCount:0,batchBytesCount:u1(),batchMessagesCount:u1(),globalContextBytes:u1(),userContextBytes:u1(),featureFlagBytes:u1()}}function u4(){sJ=!1,sY={globalContextBytes:u1(),userContextBytes:u1(),featureFlagBytes:u1()}}var u8=4e3,u5=500,u7=e9;function u9(t,e){void 0===e&&(e=u5);var n,r=new iC(u7,u8);o(se(),t5());var i=eA(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(t){t.isTrusted&&o(st(t),t.timeStamp)},{capture:!0}).stop;function o(t,e){void 0===e&&(e=t5()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}return{findAll:function(t,n){var i=r.findAll(t,n);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-e),u=i.length-1;u>=a;u--){var s=i[u],c=et(t,s.startTime);o.push({state:s.state,start:t6(c)})}return o}},isInActivePageStateAt:function(t){var e=r.find(t);return void 0!==e&&"active"===e.state},addPageState:o,stop:function(){i(),r.stop()}}}function st(t){return"freeze"===t.type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":se()}function se(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function sn(t){var e=aQ();return{get:function(){return{viewport:e}},stop:a$(t).subscribe(function(t){e=t}).unsubscribe}}function sr(t){var e=rO("browser-rum-sdk",t);if(ew()){var n=e_();e.observable.subscribe(function(t){return n.send("internal_telemetry",t)})}return e}function si(t,e,n,r,i,o,a,u){var s=iP(t),c=uH(t,i,n),f=u9(e),l=oZ(t,o,e,f),d=l.addAction,h=l.actionContexts,p=sn(e);return iE(e,t,r,s,c,h,p,a,u),{viewContexts:s,pageStateHistory:f,urlContexts:c,addAction:d,actionContexts:h,stop:function(){p.stop(),f.stop(),c.stop(),s.stop(),f.stop()}}}function so(t,e){var n=e.session,r=e.viewContext,i=e.errorType,o=n?n.id:"no-session-id",a=[];void 0!==i&&a.push("error-type=".concat(i)),r&&(a.push("seed=".concat(r.id)),a.push("from=".concat(r.startClocks.timeStamp)));var u=sa(t),s="/rum/replay/sessions/".concat(o);return"".concat(u).concat(s,"?").concat(a.join("&"))}function sa(t){var e=t.site,n=t.subdomain||su(t);return"https://".concat(n?"".concat(n,"."):"").concat(e)}function su(t){switch(t.site){case nZ:case nY:return"app";case nK:return"dd";default:return}}var ss=rw(function(t,e,n,r,i,o){var a=[],u=new iO;u.subscribe(11,function(t){return rS("rum",t)});var s=sr(e);s.setContextProvider(function(){var t,n;return{application:{id:e.applicationId},session:{id:null===(t=h.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(n=y.findView())||void 0===n?void 0:n.id},action:{id:w.findActionId()}}});var c=function(t){u.notify(12,{error:t}),rC("Error reported to customer",{"error.message":t.message})},f=u$(u),l=rD(e),d=l.subscribe(function(t){u.notify(9,t)});a.push(function(){return d.unsubscribe()});var h=ew()?uv():up(e,u);if(ew())uq(u);else{var p=uF(e,u,s.observable,c,l,h.expireObservable);a.push(function(){return p.stop()}),uQ(e,s,u,r,i,f,p.flushObservable)}var v=rV(),b=uW(e,location),m=si(u,e,location,h,b,v,function(){return rg(r,i,n)},c),y=m.viewContexts,g=m.pageStateHistory,_=m.urlContexts,w=m.actionContexts,S=m.addAction,E=m.stop;a.push(E),rP(ry(t)),al(u,h),av(u,e,h,g);var A=ui(u,e,location,v,b,f,g,n,o),k=A.addTiming,x=A.startView,O=A.stop;a.push(O);var M=as(u,e,g,f).addError;iY(u,e,h),ir(u,e);var T=ix(e.applicationId,h,y,w,_);return{addAction:S,addError:M,addTiming:k,addFeatureFlagEvaluation:f.addFeatureFlagEvaluation,startView:x,lifeCycle:u,viewContexts:y,session:h,stopSession:function(){return h.expire()},getInternalContext:T.get,stop:function(){a.forEach(function(t){return t()})}}},{start:tr,stop:tr,onRumStart:tr,isRecording:function(){return!1},getReplayStats:function(){},getSessionReplayLink:function(t){return so(t,{errorType:"slim-package"})}});tm(B(),"DD_RUM",ss);var sc=n(4181),sf=n(83556),sl="pub5735e2b681a86bc49a3c64e43c54e98c",sd="a491e1ff-190d-4b51-802a-a914cdab9b24",sh="datadoghq.com",sp="asanadotcom",sv=o.createContext({}),sb=function(t){var e=t.children,n=(0,o.useContext)(N.lX).performance,r=(0,o.useState)(!1),i=r[0],u=r[1],s=(0,a.useRouter)().asPath,c=(0,sc.cleanPath)(s);return(0,o.useEffect)(function(){if(!h.isTest&&n&&!sy(c)&&!i){ss.init({clientToken:sl,applicationId:sd,site:sh,service:sp,env:h.env,sessionSampleRate:50,trackUserInteractions:!1}),ss.addRumGlobalContext("platform","netlify");var t,e,r,o,a=function(t){ss.addRumGlobalContext("performanceTimings",t.cl),ss.addRumGlobalContext("performanceTimingsServer",t.se)};if(null!==(t=window.AsanaTimings)&&void 0!==t&&t.timings&&(window.AsanaTimings.setTiming("datadogRUMInitialized"),a(window.AsanaTimings.timings),window.AsanaTimings.logTimings=function(t){a(t)}),null!==(e=window.CDN)&&void 0!==e&&e.cacheStatus&&ss.addRumGlobalContext("cacheStatus",window.CDN.cacheStatus),window.NextRenderMethod&&ss.addRumGlobalContext("nextRenderMethod",window.NextRenderMethod),u(!0),window.AsanaErrors.dataDogInitialized=!0,window.AsanaErrors.errorQueue.length&&(window.AsanaErrors.errorQueue.forEach(function(t){ss.addError(t)}),window.AsanaErrors.errorQueue=[]),window.experimentVariants&&ss.addRumGlobalContext("experimentVariants",window.experimentVariants),null!==(r=window.AsanaHelpers)&&void 0!==r&&null!==(r=r.appExperimentEnrollment)&&void 0!==r&&r.experiments){var s=Object.entries(window.AsanaHelpers.appExperimentEnrollment.experiments).reduce(function(t,e){var n=(0,D.Z)(e,2),r=n[0],i=n[1];return t[r]=i.bucket,t},{});ss.addRumGlobalContext("appExperimentVariants",s)}window.assignedExperimentVariants&&ss.addRumGlobalContext("assignedExperimentVariants",window.assignedExperimentVariants);var f=(null===(o=window.AsanaStorage)||void 0===o?void 0:o.getCookie(sf.Mv.BUCKETING_ID))||null;f&&ss.addRumGlobalContext("loggedOutUUID",f)}},[n]),(0,f.tZ)(sv.Provider,{value:i?ss:{},children:e})},sm=["/-/tracking"],sy=function(t){return sm.includes(t)},sg=n(93967),s_=n.n(sg),sw=n(16397);function sS(t,e){var n=t.page,r=n._template,i=n.page_background_notrans,o=n.body_class,a=(0,sw.stripLeadingSlash)(e).split("/"),u=(r||a[0]||"_").toString().replace("/","--");if(!(null!=a&&a.includes("guide")))return s_()("page--".concat(u),i,o);var s=a[a.indexOf("guide")+1];return s_()("guide--layout","guide--".concat(u),s&&"guide--".concat(s))}var sE=n(70917),sA=n(58695),sk=function(){return(0,f.tZ)(sE.xB,{styles:[sx,sO,"",""]})},sx={name:"1x8vudh",styles:'@font-face{font-family:"haptik";src:url("/fonts/haptik/haptik-regular.woff") format("woff");font-weight:400;font-style:normal;font-display:block;}@font-face{font-family:"haptik";src:url("/fonts/haptik/haptik-light.woff") format("woff");font-weight:200;font-style:normal;font-display:block;}@font-face{font-family:"proxima-nova";src:url("/fonts/proxima-nova/proxima-nova-reg.woff") format("woff");font-weight:400;font-style:normal;font-display:block;}@font-face{font-family:"proxima-nova";src:url("/fonts/proxima-nova/proxima-nova-bold.woff") format("woff");font-weight:600;font-style:normal;font-display:swap;}@font-face{font-family:"asanaIcons";src:url("/fonts/asana-icons/asana-icons.woff") format("woff");font-weight:200;font-style:normal;font-display:block;}@font-face{font-family:"pp-editorial";src:url("/fonts/pp-editorial-new/PPEditorialNew-Regular.woff") format("woff");font-weight:400;font-style:normal;font-display:block;}@font-face{font-family:"Roboto";src:url("/fonts/roboto/Roboto-Medium.ttf") format("truetype");font-weight:500;font-style:normal;font-display:block;}@font-face{font-family:"Ghost";src:url("/fonts/ghost/Ghost-Medium.otf") format("opentype");font-weight:500;font-style:normal;font-display:block;}@font-face{font-family:"TWK Lausanne";src:url("/fonts/lausanne/TWKLausanne-250.otf") format("truetype");font-weight:250;font-style:normal;font-display:block;}@font-face{font-family:"TWK Lausanne";src:url("/fonts/lausanne/TWKLausanne-300.otf") format("truetype");font-weight:300;font-style:normal;font-display:block;}@font-face{font-family:"TWK Lausanne";src:url("/fonts/lausanne/TWKLausanne-350.otf") format("truetype");font-weight:350;font-style:normal;font-display:block;}@font-face{font-family:"TWK Lausanne";src:url("/fonts/lausanne/TWKLausanne-400.otf") format("truetype");font-weight:400;font-style:normal;font-display:block;}@font-face{font-family:"TWK Lausanne";src:url("/fonts/lausanne/TWKLausanne-450.otf") format("truetype");font-weight:450;font-style:normal;font-display:block;}@font-face{font-family:"TWK Lausanne";src:url("/fonts/lausanne/TWKLausanne-500.otf") format("truetype");font-weight:500;font-style:normal;font-display:block;}@font-face{font-family:"TWK Lausanne";src:url("/fonts/lausanne/TWKLausanne-550.otf") format("truetype");font-weight:550;font-style:normal;font-display:block;}@font-face{font-family:"Hiragino Kaku Gothic ProN";src:url("/fonts/hiragino-kaku-gothic-pron/Hiragino-Kaku-Gothic-ProN-W3.ttf") format("truetype");font-weight:300 400;font-style:normal;font-display:block;}@font-face{font-family:"Hiragino Kaku Gothic ProN";src:url("/fonts/hiragino-kaku-gothic-pron/Hiragino-Kaku-Gothic-ProN-W6.ttf") format("truetype");font-weight:500;font-style:normal;font-display:block;}'},sO=(0,sE.iv)("h1{",(0,sA.n5)("heading-1"),";}h2{",(0,sA.n5)("heading-2"),";}h3{",(0,sA.n5)("heading-3"),";}h4{",(0,sA.n5)("heading-4"),";}h5{",(0,sA.n5)("heading-5"),";}h6{",(0,sA.n5)("heading-6"),";}p{",(0,sA.n5)("p2"),";}a{",(0,sA.n5)("link-2"),";}","");function sM(){var t="6d3cfbb6-bd53-462f-aac5-4fafed745589-test",e="6d3cfbb6-bd53-462f-aac5-4fafed745589",n=h.isSandbox||h.isDevelopment?t:e;return(0,f.BX)(f.HY,{children:[(0,f.tZ)("script",{dangerouslySetInnerHTML:{__html:"(function(){ \n window.OptanonWrapper = function () {\n if (window.AsanaTimings) window.AsanaTimings.setTiming(\"optanonWrapperCalled\")\n if (window.AsanaStorage) {\n window.AsanaStorage.setPendingCookies();\n window.AsanaStorage.pushPendingEventsToDataLayer();\n window.AsanaStorage.optanonWrapperInitialized = true;\n } else {\n AsanaErrors.notifyException('AsanaStorage not found in OptanonWrapper');\n }\n }})()"}}),(0,f.tZ)("script",{type:"text/javascript",src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js","data-domain-script":n}),(0,f.tZ)("script",{dangerouslySetInnerHTML:{__html:"(function(){ window.AsanaTimings.setTiming('onetrustScriptTagParsed')})()"}})]})}var sT,sC,sR,sP,sI,sL,sj,sN,sD,sB,sV,sU,sG,sF,sq,sz,sH,sW,sK,sZ,sY,sJ,s$,sX,sQ,s0,s1,s2=-1,s3=function(t){addEventListener("pageshow",function(e){e.persisted&&(s2=e.timeStamp,t(e))},!0)},s6=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},s4=function(){var t=s6();return t&&t.activationStart||0},s8=function(t,e){var n=s6(),r="navigate";return s2>=0?r="back-forward-cache":n&&(document.prerendering||s4()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},s5=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver(function(t){Promise.resolve().then(function(){e(t.getEntries())})});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},s7=function(t,e,n,r){var i,o;return function(a){e.value>=0&&(a||r)&&((o=e.value-(i||0))||void 0===i)&&(i=e.value,e.delta=o,e.rating=function(t,e){return t>e[1]?"poor":t>e[0]?"needs-improvement":"good"}(e.value,n),t(e))}},s9=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},ct=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},ce=function(t){var e=!1;return function(n){e||(t(n),e=!0)}},cn=-1,cr=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},ci=function(t){"hidden"===document.visibilityState&&cn>-1&&(cn="visibilitychange"===t.type?t.timeStamp:0,ca())},co=function(){addEventListener("visibilitychange",ci,!0),addEventListener("prerenderingchange",ci,!0)},ca=function(){removeEventListener("visibilitychange",ci,!0),removeEventListener("prerenderingchange",ci,!0)},cu=function(){return cn<0&&(cn=cr(),co(),s3(function(){setTimeout(function(){cn=cr(),co()},0)})),{get firstHiddenTime(){return cn}}},cs=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},cc=[1800,3e3],cf=function(t,e){e=e||{},cs(function(){var n,r=cu(),i=s8("FCP"),o=s5("paint",function(t){t.forEach(function(t){"first-contentful-paint"===t.name&&(o.disconnect(),t.startTimer.value&&(r.value=i,r.entries=o,n())},u=s5("layout-shift",a);u&&(n=s7(t,r,cl,e.reportAllChanges),ct(function(){a(u.takeRecords()),n(!0)}),s3(function(){i=0,n=s7(t,r=s8("CLS",0),cl,e.reportAllChanges),s9(function(){return n()})}),setTimeout(n,0))}))},ch={passive:!0,capture:!0},cp=new Date,cv=function(t,e){s$||(s$=e,sX=t,sQ=new Date,cy(removeEventListener),cb())},cb=function(){if(sX>=0&&sX1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?function(t,e){var n=function(){cv(t,e),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,ch),removeEventListener("pointercancel",r,ch)};addEventListener("pointerup",n,ch),addEventListener("pointercancel",r,ch)}(e,t):cv(e,t)}},cy=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,cm,ch)})},cg=[100,300],c_=function(t,e){e=e||{},cs(function(){var n,r=cu(),i=s8("FID"),o=function(t){t.startTimee.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{var r={id:t.interactionId,latency:t.duration,entries:[t]};cR[r.id]=r,cC.push(r)}cC.sort(function(t,e){return e.latency-t.latency}),cC.splice(10).forEach(function(t){delete cR[t.id]})}},cI=function(t,e){e=e||{},cs(function(){cx();var n,r,i=s8("INP"),o=function(t){t.forEach(function(t){t.interactionId&&cP(t),"first-input"!==t.entryType||cC.some(function(e){return e.entries.some(function(e){return t.duration===e.duration&&t.startTime===e.startTime})})||cP(t)});var e,n=(e=Math.min(cC.length-1,Math.floor(cT()/50)),cC[e]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},a=s5("event",o,{durationThreshold:null!==(n=e.durationThreshold)&&void 0!==n?n:40});r=s7(t,i,cO,e.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),ct(function(){o(a.takeRecords()),i.value<0&&cT()>0&&(i.value=0,i.entries=[]),r(!0)}),s3(function(){cC=[],cM=ck(),r=s7(t,i=s8("INP"),cO,e.reportAllChanges)}))})},cL=[2500,4e3],cj={},cN=function(t,e){e=e||{},cs(function(){var n,r=cu(),i=s8("LCP"),o=function(t){var e=t[t.length-1];e&&e.startTimeperformance.now())return;n.value=Math.max(o-s4(),0),n.entries=[i],r(!0),s3(function(){(r=s7(t,n=s8("TTFB",0),cD,e.reportAllChanges))(!0)})}})};function cU(){var t=(0,o.useState)(),e=t[0],n=t[1],r=(0,o.useState)(),i=r[0],a=r[1],u=(0,o.useState)(),s=u[0],c=u[1],f=(0,o.useState)(),l=f[0],d=f[1],h=(0,o.useState)(),p=h[0],v=h[1],b=(0,o.useState)(),m=b[0],y=b[1];return(0,o.useEffect)(function(){cN(function(t){n(t)}),cd(function(t){a(t)}),c_(function(t){c(t)}),cf(function(t){d(t)}),cV(function(t){v(t)}),cI(function(t){y(t)})},[]),{lcp:e,cls:i,fid:s,fcp:l,ttfb:p,inp:m}}var cG=n(83325);function cF(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function cq(t){for(var e=1;e cookie.split("=")[0]);\n const hasPreviewCookies = cookieNames.includes("__prerender_bypass") && cookieNames.includes("__next_preview_data");\n \n if (!hasPreviewCookies) {\n window.location.href = "/api/preview?slug=" + window.location.pathname;\n }\n })();\n '}})})}var cY=n(18684),cJ=n(15536),c$=n(5152),cX=n.n(c$),cQ=function(t){var e,n=t.pageProps,r=sS(n,t.path).split(" ");return r.includes("page-download")?(0,f.tZ)(c2,{}):r.includes("page-feature")?(0,f.tZ)(c1,{}):r.includes("jobs-landing")||r.includes("jobs-team")||r.includes("jobs-office")||r.includes("jobs-apply")?(0,f.tZ)(c0,{bodyClass:null==n||null===(e=n.page)||void 0===e?void 0:e.body_class}):null},c0=cX()(function(){return Promise.all([n.e(47642),n.e(60648)]).then(n.bind(n,60648))},{loadableGenerated:{webpack:function(){return[60648]}}}),c1=cX()(function(){return Promise.all([n.e(50704),n.e(58643)]).then(n.bind(n,58643))},{loadableGenerated:{webpack:function(){return[58643]}}}),c2=cX()(function(){return Promise.all([n.e(9266),n.e(59820)]).then(n.bind(n,59820))},{loadableGenerated:{webpack:function(){return[59820]}}}),c3=n(95484),c6=n(97248),c4=n(88769);function c8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c5(t){for(var e=1;e0||S>0)&&(0,f.tZ)("script",{src:"//resources.asana.com/js/forms2/js/forms2.min.js"},"forms2")]}),(0,f.tZ)(cK.Y_,{children:(0,f.tZ)(r,ff({},u))})]})})]})})})})})})})}},91225:function(t,e,n){"use strict";n.d(e,{Uo:function(){return r},eZ:function(){return i},mq:function(){return a},u3:function(){return o}});var r=function(t){return t.MOBILE_375="mobile-375",t.MOBILE_480="mobile-480",t.TABLET_768="tablet-768",t.TABLET_960="tablet-960",t.DESKTOP_1120="desktop-1120",t.DESKTOP_1440="desktop-1440",t.DESKTOP_1680="desktop-1680",t}({}),i={mobile:{cols:4,gutter:8,width:{min:375,max:480}},tablet:{cols:8,gutter:16,width:{min:768,max:960}},desktop:{cols:12,gutter:32,width:{min:1120,mid:1440,max:1680}}},o={"mobile-375":{cols:4,gutter:8,width:375,margin:"6.4%"},"mobile-480":{cols:4,gutter:8,width:480,margin:"5%"},"tablet-768":{cols:8,gutter:16,width:768,margin:"6.25%"},"tablet-960":{cols:12,gutter:16,width:960,margin:"5%"},"desktop-1120":{cols:12,gutter:24,width:1120,margin:"5.715%"},"desktop-1440":{cols:12,gutter:32,width:1440,margin:"5.278%"},"desktop-1680":{cols:12,gutter:32,width:1680,margin:"auto",maxwidth:1432}},a=function(t,e,n){var r=e?"max-width":"min-width",i=n?o[t].width-1:o[t].width;return"@media (".concat(r,": ").concat(i,"px)")}},38841:function(t,e,n){"use strict";n.d(e,{ec:function(){return o},fV:function(){return r},sS:function(){return i}});var r={TEXT:{TEXT_WEAK:"var(--lightmode-text-weak)",TEXT:"var(--lightmode-text)",TEXT_STRONG:"var(--lightmode-text-strong)"},BACKGROUNDS:{BG:"var(--lightmode-bg)",BG_INVERTED:"var(--lightmode-bg-inverted)",BG_MED:"var(--lightmode-bg-med)",BG_STRONG:"var(--lightmode-bg-strong)",BG_HOVER:"var(--lightmode-bg-hover)",BG_MED_HOVER:"var(--lightmode-bg-med-hover)",BG_STRONG_HOVER:"var(--lightmode-bg-strong-hover)",BG_ACTIVE:"var(--lightmode-bg-active)",BG_MED_ACTIVE:"var(--lightmode-bg-med-active)",BG_STRONG_ACTIVE:"var(--lightmode-bg-strong-active)"},BORDERS:{BORDER_WEAK:"var(--lightmode-border-weak)",BORDER:"var(--lightmode-border)",BORDER_STRONG:"var(--lightmode-border-strong)",BORDER_HOVER:"var(--lightmode-border-hover)",BORDER_ACTIVE:"var(--lightmode-border-active)"},ICONS:{ICON:"var(--lightmode-icon)",ICON_HOVER:"var(--lightmode-icon-hover)",ICON_DISABLED:"var(--lightmode-icon-disabled)"},BUTTONS:{BUTTON_PRIMARY:"var(--lightmode-button-primary)",BUTTON_PRIMARY_HOVER:"var(--lightmode-button-primary-hover)",BUTTON_DISABLED:"var(--lightmode-button-disabled)",BUTTON_SECONDARY:"var(--lightmode-button-secondary)",BUTTON_SECONDARY_HOVER:"var(--lightmode-button-secondary-hover)",BUTTON_TEXT_PRIMARY:"var(--lightmode-button-text-primary)",BUTTON_TEXT_PRIMARY_HOVER:"var(--lightmode-button-text-primary-hover)",BUTTON_TEXT_DISABLED:"var(--lightmode-button-text-disabled)",BUTTON_TEXT_SECONDARY:"var(--lightmode-button-text-secondary)",BUTTON_TEXT_SECONDARY_HOVER:"var(--lightmode-button-text-secondary-hover)"},LINKS:{LINK_TEXT:"var(--lightmode-link-text)",LINK_HOVER:"var(--lightmode-link-hover)",LINK_DISABLED:"var(--lightmode-link-disabled)",LINK_TEXT_WEAK:"var(--lightmode-link-text-weak)",LINK_TEXT_WEAK_HOVER:"var(--lightmode-link-text-weak-hover)",LINK_TEXT_WEAK_DISABLED:"var(--lightmode-link-text-weak-disabled)"},INLINE_LINKS:{INLINE_LINK_TEXT:"var(--lightmode-inline-link-text)",INLINE_LINK_HOVER:"var(--lightmode-inline-link-hover)",INLINE_LINK_DISABLED:"var(--lightmode-inline-link-disabled)"},STATES:{ERROR:"var(--lightmode-error)",WARNING:"var(--lightmode-warning)",SUCCESS:"var(--lightmode-success)"},ACCENTS:{ACCENT_WHITE:"var(--lightmode-accent-white)",ACCENT_BLACK:"var(--lightmode-accent-black)",ACCENT_YELLOW:"var(--lightmode-accent-yellow)",ACCENT_YELLOW_LIGHT:"var(--lightmode-accent-yellow-light)",ACCENT_ORANGE:"var(--lightmode-accent-orange)",ACCENT_ORANGE_LIGHT:"var(--lightmode-accent-orange-light)",ACCENT_RED:"var(--lightmode-accent-red)",ACCENT_RED_LIGHT:"var(--lightmode-accent-red-light)",ACCENT_PURPLE:"var(--lightmode-accent-purple)",ACCENT_PURPLE_LIGHT:"var(--lightmode-accent-purple-light)",ACCENT_BLUE:"var(--lightmode-accent-blue)",ACCENT_BLUE_LIGHT:"var(--lightmode-accent-blue-light)",ACCENT_GREEN:"var(--lightmode-accent-green)",ACCENT_GREEN_LIGHT:"var(--lightmode-accent-green-light)",ACCENT_GRAY:"var(--lightmode-accent-gray)",ACCENT_GRAY_LIGHT:"var(--lightmode-accent-gray-light)"},A11Y_FOCUS:{PRIMARY:"var(--lightmode-a11y-focus-primary)",BLACK:"var(--lightmode-a11y-focus-black)",WHITE:"var(--lightmode-a11y-focus-white)"}},i={TEXT:{TEXT_WEAK:"var(--darkmode-text-weak)",TEXT:"var(--darkmode-text)",TEXT_STRONG:"var(--darkmode-text-strong)"},BACKGROUNDS:{BG:"var(--darkmode-bg)",BG_INVERTED:"var(--darkmode-bg-inverted)",BG_MED:"var(--darkmode-bg-med)",BG_STRONG:"var(--darkmode-bg-strong)",BG_HOVER:"var(--darkmode-bg-hover)",BG_MED_HOVER:"var(--darkmode-bg-med-hover)",BG_STRONG_HOVER:"var(--darkmode-bg-strong-hover)",BG_ACTIVE:"var(--darkmode-bg-active)",BG_MED_ACTIVE:"var(--darkmode-bg-med-active)",BG_STRONG_ACTIVE:"var(--darkmode-bg-strong-active)"},BORDERS:{BORDER_WEAK:"var(--darkmode-border-weak)",BORDER:"var(--darkmode-border)",BORDER_STRONG:"var(--darkmode-border-strong)",BORDER_HOVER:"var(--darkmode-border-hover)",BORDER_ACTIVE:"var(--darkmode-border-active)"},ICONS:{ICON:"var(--darkmode-icon)",ICON_HOVER:"var(--darkmode-icon-hover)",ICON_DISABLED:"var(--darkmode-icon-disabled)"},BUTTONS:{BUTTON_PRIMARY:"var(--darkmode-button-primary)",BUTTON_PRIMARY_HOVER:"var(--darkmode-button-primary-hover)",BUTTON_DISABLED:"var(--darkmode-button-disabled)",BUTTON_SECONDARY:"var(--darkmode-button-secondary)",BUTTON_SECONDARY_HOVER:"var(--darkmode-button-secondary-hover)",BUTTON_TEXT_PRIMARY:"var(--darkmode-button-text-primary)",BUTTON_TEXT_PRIMARY_HOVER:"var(--darkmode-button-text-primary-hover)",BUTTON_TEXT_DISABLED:"var(--darkmode-button-text-disabled)",BUTTON_TEXT_SECONDARY:"var(--darkmode-button-text-secondary)",BUTTON_TEXT_SECONDARY_HOVER:"var(--darkmode-button-text-secondary-hover)"},LINKS:{LINK_TEXT:"var(--darkmode-link-text)",LINK_HOVER:"var(--darkmode-link-hover)",LINK_DISABLED:"var(--darkmode-link-disabled)",LINK_TEXT_WEAK:"var(--darkmode-link-text-weak)",LINK_TEXT_WEAK_HOVER:"var(--darkmode-link-text-weak-hover)",LINK_TEXT_WEAK_DISABLED:"var(--darkmode-link-text-weak-disabled)"},INLINE_LINKS:{INLINE_LINK_TEXT:"var(--darkmode-inline-link-text)",INLINE_LINK_HOVER:"var(--darkmode-inline-link-hover)",INLINE_LINK_DISABLED:"var(--darkmode-inline-link-disabled)"},STATES:{ERROR:"var(--darkmode-error)",WARNING:"var(--darkmode-warning)",SUCCESS:"var(--darkmode-success)"},ACCENTS:{ACCENT_WHITE:"var(--darkmode-accent-white)",ACCENT_BLACK:"var(--darkmode-accent-black)",ACCENT_YELLOW:"var(--darkmode-accent-yellow)",ACCENT_YELLOW_DARK:"var(--darkmode-accent-yellow-dark)",ACCENT_ORANGE:"var(--darkmode-accent-orange)",ACCENT_ORANGE_DARK:"var(--darkmode-accent-orange-dark)",ACCENT_RED:"var(--darkmode-accent-red)",ACCENT_RED_DARK:"var(--darkmode-accent-red-dark)",ACCENT_PURPLE:"var(--darkmode-accent-purple)",ACCENT_PURPLE_DARK:"var(--darkmode-accent-purple-dark)",ACCENT_BLUE:"var(--darkmode-accent-blue)",ACCENT_BLUE_DARK:"var(--darkmode-accent-blue-dark)",ACCENT_GREEN:"var(--darkmode-accent-green)",ACCENT_GREEN_DARK:"var(--darkmode-accent-green-dark)",ACCENT_GRAY:"var(--darkmode-accent-gray)",ACCENT_GRAY_DARK:"var(--darkmode-accent-gray-dark)"},A11Y_FOCUS:{PRIMARY:"var(--darkmode-a11y-focus-primary)",BLACK:"var(--darkmode-a11y-focus-black)",WHITE:"var(--darkmode-a11y-focus-white)"}},o={ACCENTS_UNIVERSAL:{YELLOW:"var(--accent-yellow)",ORANGE:"var(--accent-orange)",RED:"var(--accent-red)",PURPLE:"var(--accent-purple)",BLUE:"var(--accent-blue)",GREEN:"var(--accent-green)",GRAY:"var(--accent-gray)"},ACCENTS_LIGHTMODE:{YELLOW_LIGHT:"var(--lightmode-accent-yellow-light)",ORANGE_LIGHT:"var(--lightmode-accent-orange-light)",RED_LIGHT:"var(--lightmode-accent-red-light)",PURPLE_LIGHT:"var(--lightmode-accent-purple-light)",BLUE_LIGHT:"var(--lightmode-accent-blue-light)",GREEN_LIGHT:"var(--lightmode-accent-green-light)",GRAY_LIGHT:"var(--lightmode-accent-gray-light)"},ACCENTS_DARKMODE:{YELLOW_DARK:"var(--darkmode-accent-yellow-dark)",ORANGE_DARK:"var(--darkmode-accent-orange-dark)",RED_DARK:"var(--darkmode-accent-red-dark)",PURPLE_DARK:"var(--darkmode-accent-purple-dark)",BLUE_DARK:"var(--darkmode-accent-blue-dark)",GREEN_DARK:"var(--darkmode-accent-green-dark)",GRAY_DARK:"var(--darkmode-accent-gray-dark)"}}},98238:function(t,e,n){"use strict";n.d(e,{e:function(){return r}});var r={BG:{BASE:"--bg",MEDIUM:"--bg-medium",MEDIUM_WEAK:"--bg-medium-weak",HOVER:"--bg-hover",STRONG:"--bg-strong"},BORDER:{BASE:"--border",WEAK:"--border-weak",STRONG:"--border-strong",STRONG_HOVER:"--border-strong-hover"},TEXT:{BASE:"--text",MEDIUM:"--text-medium",WEAK:"--text-weak"},LINK:{TEXT:"--link-text",TEXT_HOVER:"--link-text-hover",TEXT_WEAK:"--link-text-weak",TEXT_WEAK_HOVER:"--link-text-weak-hover",TEXT_ACTIVE:"--link-text-active"},ICON:{BASE:"--icon",MEDIUM:"--icon-medium",WEAK:"--icon-weak",HOVER:"--icon-hover",MEDIUM_HOVER:"--icon-medium-hover",DISABLED:"--icon-disabled"},BTN:{PRIMARY_BG:"--btn-primary-background",PRIMARY_BG_HOVER:"--btn-primary-background-hover",PRIMARY_BG_SELECTED:"--btn-primary-background-selected",PRIMARY_BG_DISABLED:"--btn-primary-background-disabled",PRIMARY_TEXT:"--btn-primary-text",PRIMARY_TEXT_DISABLED:"--btn-primary-text-disabled",PRIMARY_ICON:"--btn-primary-icon",PRIMARY_ICON_DISABLED:"--btn-primary-icon-disabled",PRIMARY_OUTLINE:"--btn-primary-outline",PRIMARY_OUTLINE_HOVER:"--btn-primary-outline-hover",SECONDARY_BG:"--btn-secondary-background",SECONDARY_BG_HOVER:"--btn-secondary-background-hover",SECONDARY_BG_SELECTED:"--btn-secondary-background-selected",SECONDARY_BG_DISABLED:"--btn-secondary-background-disabled",SECONDARY_ALT_BG:"--btn-secondary-alt-background",SECONDARY_ALT_BG_HOVER:"--btn-secondary-alt-background-hover",SECONDARY_TEXT:"--btn-secondary-text",SECONDARY_TEXT_DISABLED:"--btn-secondary-text-disabled",SECONDARY_ICON:"--btn-secondary-icon",SECONDARY_ICON_DISABLED:"--btn-secondary-icon-disabled",SECONDARY_OUTLINE:"--btn-secondary-outline",SECONDARY_OUTLINE_HOVER:"--btn-secondary-outline-hover",TERTIARY_LINK_TEXT:"--btn-tertiary-link-text",TERTIARY_LINK_TEXT_HOVER:"--btn-tertiary-link-text-hover",TERTIARY_BG:"--btn-tertiary-background",TERTIARY_BG_HOVER:"--btn-tertiary-background-hover",TERTIARY_ICON:"--btn-tertiary-icon"},CHIP:{BG:"--chip-bg",BG_HOVER:"--chip-bg-hover",BG_SELECTED:"--chip-bg-selected",TEXT:"--chip-text",TEXT_SELECTED:"--chip-text-selected"},TAG:{BG:"--tag-bg",TEXT:"--tag-text"},CARD:{FILL:"--card-fill",FILL_HOVER:"--card-fill-hover"},ACCENT:{DARK_CORAL:"--accent-dark-coral",DARK_BLUE:"--accent-dark-blue",DARK_GREEN:"--accent-dark-green",DARK_PURPLE:"--accent-dark-purple",LIGHT_CORAL:"--accent-light-coral",LIGHT_BLUE:"--accent-light-blue",LIGHT_GREEN:"--accent-light-green",LIGHT_PURPLE:"--accent-light-purple",BRIGHT_CORAL:"--accent-bright-coral"},STATES:{ERROR:"--error",WARNING:"--warning",SUCCESS:"--success"},GLOW:{BASE:"--glow"},LOGO:{TEXT:"--logo-text",CIRCLES:"--logo-circles"},GOOGLE_SIGN_UP:{BACKGROUND:"--btn-google-background",BACKGROUND_HOVER:"--btn-google-background-hover"},A11Y:{FOCUS_OUTLINE:"--a11y-focus-outline"}}},58695:function(t,e,n){"use strict";n.d(e,{g5:function(){return c},n5:function(){return v}});var r=n(17674),i=n(59499),o=n(70917),a=n(91225);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t){for(var e=1;e>6],i=(32&n)==0;if((31&n)==31){var o=n;for(n=0;(128&o)==128;){if(o=t.readUInt8(e),t.isError(o))return o;n<<=7,n|=127&o}}else n&=31;var a=u.tag[n];return{cls:r,primitive:i,tag:n,tagStr:a}}function l(t,e,n){var r=t.readUInt8(n);if(t.isError(r))return r;if(!e&&128===r)return null;if((128&r)==0)return r;var i=127&r;if(i>4)return t.error("length octect is too long");r=0;for(var o=0;o=31?r.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=u.tagClassByName[n||"universal"]<<6)}t.exports=s,s.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(c,a.Node),c.prototype._encodeComposite=function(t,e,n,r){var o=l(t,e,n,this.reporter);if(r.length<128){var a=new i(2);return a[0]=o,a[1]=r.length,this._createEncoderBuffer([a,r])}for(var u=1,s=r.length;s>=256;s>>=8)u++;var a=new i(2+u);a[0]=o,a[1]=128|u;for(var s=1+u,c=r.length;c>0;s--,c>>=8)a[s]=255&c;return this._createEncoderBuffer([a,r])},c.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var n=new i(2*t.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}for(var o=0,r=0;r=128;a>>=7)o++}for(var u=new i(o),s=u.length-1,r=t.length-1;r>=0;r--){var a=t[r];for(u[s--]=127&a;(a>>=7)>0;)u[s--]=128|127&a}return this._createEncoderBuffer(u)},c.prototype._encodeTime=function(t,e){var n,r=new Date(t);return"gentime"===e?n=[f(r.getFullYear()),f(r.getUTCMonth()+1),f(r.getUTCDate()),f(r.getUTCHours()),f(r.getUTCMinutes()),f(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[f(r.getFullYear()%100),f(r.getUTCMonth()+1),f(r.getUTCDate()),f(r.getUTCHours()),f(r.getUTCMinutes()),f(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!i.isBuffer(t)){var n=t.toArray();!t.sign&&128&n[0]&&n.unshift(0),t=new i(n)}if(i.isBuffer(t)){var r=t.length;0===t.length&&r++;var o=new i(r);return t.copy(o),0===t.length&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var r=1,a=t;a>=256;a>>=8)r++;for(var o=Array(r),a=o.length-1;a>=0;a--)o[a]=255&t,t>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},c.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},c.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},c.prototype._skipDefault=function(t,e,n){var r,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r=49&&a<=54?r|=a-49+10:a>=17&&a<=22?r|=a-17+10:r|=15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a=49?i+=u-49+10:u>=17?i+=u-17+10:i+=u}return i}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 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){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):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=Array(this.length);for(var i,o,a=0;a=0;a-=3)o=t[a]|t[a-1]<<8|t[a-2]<<16,this.words[i]|=o<>>26-u&67108863,(u+=24)>=26&&(u-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-u&67108863,(u+=24)>=26&&(u-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,r,i=0;i=e;i-=6)r=a(t,i,i+6),this.words[n]|=r<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==e&&(r=a(t,e,i+6),this.words[n]|=r<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var s,c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t){for(var e=Array(t.bitLength()),n=0;n>>i}return e}function h(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,u=67108863&a,s=a/67108864|0;n.words[0]=u;for(var c=1;c>>26,l=67108863&s,d=Math.min(c,e.length-1),h=Math.max(0,c-t.length+1);h<=d;h++){var p=c-h|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[h])+l)/67108864|0,l=67108863&a}n.words[c]=0|l,s=0|f}return 0!==s?n.words[c]=0|s:n.length--,n.strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var n,i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-s.length]+s+n:s+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=f[t],h=l[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modn(h).toString(t);n=(p=p.idivn(h)).isZero()?v+n:c[d-v.length]+v+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var 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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==s),this.toArrayLike(s,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i,o,a=this.byteLength(),u=n||Math.max(1,a);r(a<=u,"byte array longer than desired length"),r(u>0,"Requested array length <= 0"),this.strip();var s="le"===e,c=new t(u),f=this.clone();if(s){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),c[o]=i;for(;o=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return(8191&e)==0&&(n+=13,e>>>=13),(127&e)==0&&(n+=7,e>>>=7),(15&e)==0&&(n+=4,e>>>=4),(3&e)==0&&(n+=2,e>>>=2),(1&e)==0&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.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 n=0;nt.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){this.length>t.length?(e=this,n=t):(e=t,n=this);for(var e,n,r=0;rt.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){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),e?this.words[n]=this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var e,n,r,i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,n,r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,n=t):(e=t,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&r;for(;0!==o&&a>26,this.words[a]=67108863&r;if(0===o&&a>>13,h=0|a[1],p=8191&h,v=h>>>13,b=0|a[2],m=8191&b,y=b>>>13,g=0|a[3],_=8191&g,w=g>>>13,S=0|a[4],E=8191&S,A=S>>>13,k=0|a[5],x=8191&k,O=k>>>13,M=0|a[6],T=8191&M,C=M>>>13,R=0|a[7],P=8191&R,I=R>>>13,L=0|a[8],j=8191&L,N=L>>>13,D=0|a[9],B=8191&D,V=D>>>13,U=0|u[0],G=8191&U,F=U>>>13,q=0|u[1],z=8191&q,H=q>>>13,W=0|u[2],K=8191&W,Z=W>>>13,Y=0|u[3],J=8191&Y,$=Y>>>13,X=0|u[4],Q=8191&X,tt=X>>>13,te=0|u[5],tn=8191&te,tr=te>>>13,ti=0|u[6],to=8191&ti,ta=ti>>>13,tu=0|u[7],ts=8191&tu,tc=tu>>>13,tf=0|u[8],tl=8191&tf,td=tf>>>13,th=0|u[9],tp=8191&th,tv=th>>>13;n.negative=t.negative^e.negative,n.length=19;var tb=(c+(r=Math.imul(l,G))|0)+((8191&(i=(i=Math.imul(l,F))+Math.imul(d,G)|0))<<13)|0;c=((o=Math.imul(d,F))+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,r=Math.imul(p,G),i=(i=Math.imul(p,F))+Math.imul(v,G)|0,o=Math.imul(v,F);var tm=(c+(r=r+Math.imul(l,z)|0)|0)+((8191&(i=(i=i+Math.imul(l,H)|0)+Math.imul(d,z)|0))<<13)|0;c=((o=o+Math.imul(d,H)|0)+(i>>>13)|0)+(tm>>>26)|0,tm&=67108863,r=Math.imul(m,G),i=(i=Math.imul(m,F))+Math.imul(y,G)|0,o=Math.imul(y,F),r=r+Math.imul(p,z)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(v,z)|0,o=o+Math.imul(v,H)|0;var ty=(c+(r=r+Math.imul(l,K)|0)|0)+((8191&(i=(i=i+Math.imul(l,Z)|0)+Math.imul(d,K)|0))<<13)|0;c=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,r=Math.imul(_,G),i=(i=Math.imul(_,F))+Math.imul(w,G)|0,o=Math.imul(w,F),r=r+Math.imul(m,z)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(y,z)|0,o=o+Math.imul(y,H)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,Z)|0;var tg=(c+(r=r+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,$)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,r=Math.imul(E,G),i=(i=Math.imul(E,F))+Math.imul(A,G)|0,o=Math.imul(A,F),r=r+Math.imul(_,z)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(w,z)|0,o=o+Math.imul(w,H)|0,r=r+Math.imul(m,K)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,$)|0;var t_=(c+(r=r+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,r=Math.imul(x,G),i=(i=Math.imul(x,F))+Math.imul(O,G)|0,o=Math.imul(O,F),r=r+Math.imul(E,z)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(A,z)|0,o=o+Math.imul(A,H)|0,r=r+Math.imul(_,K)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(m,J)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,$)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0;var tw=(c+(r=r+Math.imul(l,tn)|0)|0)+((8191&(i=(i=i+Math.imul(l,tr)|0)+Math.imul(d,tn)|0))<<13)|0;c=((o=o+Math.imul(d,tr)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,r=Math.imul(T,G),i=(i=Math.imul(T,F))+Math.imul(C,G)|0,o=Math.imul(C,F),r=r+Math.imul(x,z)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(O,z)|0,o=o+Math.imul(O,H)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,$)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,$)|0,r=r+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,tn)|0,i=(i=i+Math.imul(p,tr)|0)+Math.imul(v,tn)|0,o=o+Math.imul(v,tr)|0;var tS=(c+(r=r+Math.imul(l,to)|0)|0)+((8191&(i=(i=i+Math.imul(l,ta)|0)+Math.imul(d,to)|0))<<13)|0;c=((o=o+Math.imul(d,ta)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,r=Math.imul(P,G),i=(i=Math.imul(P,F))+Math.imul(I,G)|0,o=Math.imul(I,F),r=r+Math.imul(T,z)|0,i=(i=i+Math.imul(T,H)|0)+Math.imul(C,z)|0,o=o+Math.imul(C,H)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,$)|0,r=r+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(m,tn)|0,i=(i=i+Math.imul(m,tr)|0)+Math.imul(y,tn)|0,o=o+Math.imul(y,tr)|0,r=r+Math.imul(p,to)|0,i=(i=i+Math.imul(p,ta)|0)+Math.imul(v,to)|0,o=o+Math.imul(v,ta)|0;var tE=(c+(r=r+Math.imul(l,ts)|0)|0)+((8191&(i=(i=i+Math.imul(l,tc)|0)+Math.imul(d,ts)|0))<<13)|0;c=((o=o+Math.imul(d,tc)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,r=Math.imul(j,G),i=(i=Math.imul(j,F))+Math.imul(N,G)|0,o=Math.imul(N,F),r=r+Math.imul(P,z)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(I,z)|0,o=o+Math.imul(I,H)|0,r=r+Math.imul(T,K)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,$)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(_,tn)|0,i=(i=i+Math.imul(_,tr)|0)+Math.imul(w,tn)|0,o=o+Math.imul(w,tr)|0,r=r+Math.imul(m,to)|0,i=(i=i+Math.imul(m,ta)|0)+Math.imul(y,to)|0,o=o+Math.imul(y,ta)|0,r=r+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(v,ts)|0,o=o+Math.imul(v,tc)|0;var tA=(c+(r=r+Math.imul(l,tl)|0)|0)+((8191&(i=(i=i+Math.imul(l,td)|0)+Math.imul(d,tl)|0))<<13)|0;c=((o=o+Math.imul(d,td)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,F))+Math.imul(V,G)|0,o=Math.imul(V,F),r=r+Math.imul(j,z)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(N,z)|0,o=o+Math.imul(N,H)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(T,J)|0,i=(i=i+Math.imul(T,$)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,$)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(E,tn)|0,i=(i=i+Math.imul(E,tr)|0)+Math.imul(A,tn)|0,o=o+Math.imul(A,tr)|0,r=r+Math.imul(_,to)|0,i=(i=i+Math.imul(_,ta)|0)+Math.imul(w,to)|0,o=o+Math.imul(w,ta)|0,r=r+Math.imul(m,ts)|0,i=(i=i+Math.imul(m,tc)|0)+Math.imul(y,ts)|0,o=o+Math.imul(y,tc)|0,r=r+Math.imul(p,tl)|0,i=(i=i+Math.imul(p,td)|0)+Math.imul(v,tl)|0,o=o+Math.imul(v,td)|0;var tk=(c+(r=r+Math.imul(l,tp)|0)|0)+((8191&(i=(i=i+Math.imul(l,tv)|0)+Math.imul(d,tp)|0))<<13)|0;c=((o=o+Math.imul(d,tv)|0)+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,r=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(V,z)|0,o=Math.imul(V,H),r=r+Math.imul(j,K)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,Z)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(x,tn)|0,i=(i=i+Math.imul(x,tr)|0)+Math.imul(O,tn)|0,o=o+Math.imul(O,tr)|0,r=r+Math.imul(E,to)|0,i=(i=i+Math.imul(E,ta)|0)+Math.imul(A,to)|0,o=o+Math.imul(A,ta)|0,r=r+Math.imul(_,ts)|0,i=(i=i+Math.imul(_,tc)|0)+Math.imul(w,ts)|0,o=o+Math.imul(w,tc)|0,r=r+Math.imul(m,tl)|0,i=(i=i+Math.imul(m,td)|0)+Math.imul(y,tl)|0,o=o+Math.imul(y,td)|0;var tx=(c+(r=r+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tv)|0)+Math.imul(v,tp)|0))<<13)|0;c=((o=o+Math.imul(v,tv)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Z))+Math.imul(V,K)|0,o=Math.imul(V,Z),r=r+Math.imul(j,J)|0,i=(i=i+Math.imul(j,$)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(T,tn)|0,i=(i=i+Math.imul(T,tr)|0)+Math.imul(C,tn)|0,o=o+Math.imul(C,tr)|0,r=r+Math.imul(x,to)|0,i=(i=i+Math.imul(x,ta)|0)+Math.imul(O,to)|0,o=o+Math.imul(O,ta)|0,r=r+Math.imul(E,ts)|0,i=(i=i+Math.imul(E,tc)|0)+Math.imul(A,ts)|0,o=o+Math.imul(A,tc)|0,r=r+Math.imul(_,tl)|0,i=(i=i+Math.imul(_,td)|0)+Math.imul(w,tl)|0,o=o+Math.imul(w,td)|0;var tO=(c+(r=r+Math.imul(m,tp)|0)|0)+((8191&(i=(i=i+Math.imul(m,tv)|0)+Math.imul(y,tp)|0))<<13)|0;c=((o=o+Math.imul(y,tv)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,$))+Math.imul(V,J)|0,o=Math.imul(V,$),r=r+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(P,tn)|0,i=(i=i+Math.imul(P,tr)|0)+Math.imul(I,tn)|0,o=o+Math.imul(I,tr)|0,r=r+Math.imul(T,to)|0,i=(i=i+Math.imul(T,ta)|0)+Math.imul(C,to)|0,o=o+Math.imul(C,ta)|0,r=r+Math.imul(x,ts)|0,i=(i=i+Math.imul(x,tc)|0)+Math.imul(O,ts)|0,o=o+Math.imul(O,tc)|0,r=r+Math.imul(E,tl)|0,i=(i=i+Math.imul(E,td)|0)+Math.imul(A,tl)|0,o=o+Math.imul(A,td)|0;var tM=(c+(r=r+Math.imul(_,tp)|0)|0)+((8191&(i=(i=i+Math.imul(_,tv)|0)+Math.imul(w,tp)|0))<<13)|0;c=((o=o+Math.imul(w,tv)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,tt))+Math.imul(V,Q)|0,o=Math.imul(V,tt),r=r+Math.imul(j,tn)|0,i=(i=i+Math.imul(j,tr)|0)+Math.imul(N,tn)|0,o=o+Math.imul(N,tr)|0,r=r+Math.imul(P,to)|0,i=(i=i+Math.imul(P,ta)|0)+Math.imul(I,to)|0,o=o+Math.imul(I,ta)|0,r=r+Math.imul(T,ts)|0,i=(i=i+Math.imul(T,tc)|0)+Math.imul(C,ts)|0,o=o+Math.imul(C,tc)|0,r=r+Math.imul(x,tl)|0,i=(i=i+Math.imul(x,td)|0)+Math.imul(O,tl)|0,o=o+Math.imul(O,td)|0;var tT=(c+(r=r+Math.imul(E,tp)|0)|0)+((8191&(i=(i=i+Math.imul(E,tv)|0)+Math.imul(A,tp)|0))<<13)|0;c=((o=o+Math.imul(A,tv)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,r=Math.imul(B,tn),i=(i=Math.imul(B,tr))+Math.imul(V,tn)|0,o=Math.imul(V,tr),r=r+Math.imul(j,to)|0,i=(i=i+Math.imul(j,ta)|0)+Math.imul(N,to)|0,o=o+Math.imul(N,ta)|0,r=r+Math.imul(P,ts)|0,i=(i=i+Math.imul(P,tc)|0)+Math.imul(I,ts)|0,o=o+Math.imul(I,tc)|0,r=r+Math.imul(T,tl)|0,i=(i=i+Math.imul(T,td)|0)+Math.imul(C,tl)|0,o=o+Math.imul(C,td)|0;var tC=(c+(r=r+Math.imul(x,tp)|0)|0)+((8191&(i=(i=i+Math.imul(x,tv)|0)+Math.imul(O,tp)|0))<<13)|0;c=((o=o+Math.imul(O,tv)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,r=Math.imul(B,to),i=(i=Math.imul(B,ta))+Math.imul(V,to)|0,o=Math.imul(V,ta),r=r+Math.imul(j,ts)|0,i=(i=i+Math.imul(j,tc)|0)+Math.imul(N,ts)|0,o=o+Math.imul(N,tc)|0,r=r+Math.imul(P,tl)|0,i=(i=i+Math.imul(P,td)|0)+Math.imul(I,tl)|0,o=o+Math.imul(I,td)|0;var tR=(c+(r=r+Math.imul(T,tp)|0)|0)+((8191&(i=(i=i+Math.imul(T,tv)|0)+Math.imul(C,tp)|0))<<13)|0;c=((o=o+Math.imul(C,tv)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,r=Math.imul(B,ts),i=(i=Math.imul(B,tc))+Math.imul(V,ts)|0,o=Math.imul(V,tc),r=r+Math.imul(j,tl)|0,i=(i=i+Math.imul(j,td)|0)+Math.imul(N,tl)|0,o=o+Math.imul(N,td)|0;var tP=(c+(r=r+Math.imul(P,tp)|0)|0)+((8191&(i=(i=i+Math.imul(P,tv)|0)+Math.imul(I,tp)|0))<<13)|0;c=((o=o+Math.imul(I,tv)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,r=Math.imul(B,tl),i=(i=Math.imul(B,td))+Math.imul(V,tl)|0,o=Math.imul(V,td);var tI=(c+(r=r+Math.imul(j,tp)|0)|0)+((8191&(i=(i=i+Math.imul(j,tv)|0)+Math.imul(N,tp)|0))<<13)|0;c=((o=o+Math.imul(N,tv)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863;var tL=(c+(r=Math.imul(B,tp))|0)+((8191&(i=(i=Math.imul(B,tv))+Math.imul(V,tp)|0))<<13)|0;return c=((o=Math.imul(V,tv))+(i>>>13)|0)+(tL>>>26)|0,tL&=67108863,s[0]=tb,s[1]=tm,s[2]=ty,s[3]=tg,s[4]=t_,s[5]=tw,s[6]=tS,s[7]=tE,s[8]=tA,s[9]=tk,s[10]=tx,s[11]=tO,s[12]=tM,s[13]=tT,s[14]=tC,s[15]=tR,s[16]=tP,s[17]=tI,s[18]=tL,0!==c&&(s[19]=c,n.length++),n};function v(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=u,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function b(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(p=h),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):n<63?h(this,t,e):n<1024?v(this,t,e):b(this,t,e)},m.prototype.makeRBT=function(t){for(var e=Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=(i/67108864|0)+(o>>>26),this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),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=d(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}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=0),i=e?(e-e%26)/26:0;var i,o=t%26,a=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<a)for(this.length-=a,c=0;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,n){return r(0===this.negative),this.iushrn(t,e,n)},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){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>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(r("number"==typeof t),r(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>26)-(s/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===u)return this.strip();for(r(-1===u),u=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n,r=this.length-t.length,i=this.clone(),a=t,u=0|a.words[a.length-1];0!=(r=26-this._countBits(u))&&(a=a.ushln(r),i.iushln(r),u=0|a.words[a.length-1]);var s=i.length-a.length;if("mod"!==e){(n=new o(null)).length=s+1,n.words=Array(n.length);for(var c=0;c=0;l--){var d=(0|i.words[a.length+l])*67108864+(0|i.words[a.length+l-1]);for(d=Math.min(d/u|0,67108863),i._ishlnsubmul(a,d,l);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,l),i.isZero()||(i.negative^=1);n&&(n.words[l]=d)}return n&&n.strip(),i.strip(),"div"!==e&&0!==r&&i.iushrn(r),{div:n||null,mod:i}},o.prototype.divmod=function(t,e,n){var i,a,u;return(r(!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(),n&&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}):(this.negative&t.negative)!=0?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(a=u.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:u.div,mod:a}):t.length>this.length||0>this.cmp(t)?{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.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},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 n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=67108864%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=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()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var f=n.clone(),l=e.clone();!e.isZero();){for(var d=0,h=1;(e.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;(n.words[0]&v)==0&&p<26;++p,v<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(u.isOdd()||s.isOdd())&&(u.iadd(f),s.isub(l)),u.iushrn(1),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(u),a.isub(s)):(n.isub(e),u.isub(i),s.isub(a))}return{a:u,b:s,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e,n=this,i=t.clone();n=0!==n.negative?n.umod(t):n.clone();for(var a=new o(1),u=new o(0),s=i.clone();n.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,f=1;(n.words[0]&f)==0&&c<26;++c,f<<=1);if(c>0)for(n.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var l=0,d=1;(i.words[0]&d)==0&&l<26;++l,d<<=1);if(l>0)for(i.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);n.cmp(i)>=0?(n.isub(i),a.isub(u)):(i.isub(n),u.isub(a))}return 0>(e=0===n.cmpn(1)?a:u).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>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,n=t<0;if(0!==this.negative&&!n)return -1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(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 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},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 A(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(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 r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function g(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 _(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){A.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)}g.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(_,g),_.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){var e;if(y[t])return y[t];if("k256"===t)e=new _;else if("p224"===t)e=new w;else if("p192"===t)e=new S;else if("p25519"===t)e=new E;else throw Error("Unknown prime "+t);return y[t]=e,e},A.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},A.prototype._verify2=function(t,e){r((t.negative|e.negative)==0,"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},A.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},A.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},A.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},A.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},A.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return 0>n.cmpn(0)&&n.iadd(this.m),n._forceRed(this)},A.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return 0>n.cmpn(0)&&n.iadd(this.m),n},A.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},A.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},A.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},A.prototype.isqr=function(t){return this.imul(t,t.clone())},A.prototype.sqr=function(t){return this.mul(t,t)},A.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!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),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;0!==h.cmp(u);){for(var v=h,b=0;0!==v.cmp(u);b++)v=v.redSqr();r(b=0;i--){for(var f=e.words[i],l=c-1;l>=0;l--){var d=f>>l&1;if(a!==r[0]&&(a=this.sqr(a)),0===d&&0===u){s=0;continue}u<<=1,u|=d,(++s===n||0===i&&0===l)&&(a=this.mul(a,r[u]),s=0,u=0)}c=26}return a},A.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},A.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},i(k,A),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 n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(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 n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(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=n.nmd(t),this)},1670:function(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(n=e,e=10),this._init(t||0,e||10,n||"be"))}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{f=n(4300).Buffer}catch(t){}function a(t,e,n){for(var i=0,o=Math.min(t.length,n),a=0,u=e;u=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,a|=s}return r(!(240&a),"Invalid character in "+t),i}function u(t,e,n,i){for(var o=0,a=0,u=Math.min(t.length,n),s=e;s=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a"}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 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this._strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){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):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=Array(this.length);for(var i,o,a=0;a=0;a-=3)o=t[a]|t[a-1]<<8|t[a-2]<<16,this.words[i]|=o<>>26-u&67108863,(u+=24)>=26&&(u-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-u&67108863,(u+=24)>=26&&(u-=26,i++);return this._strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,r,i=0;i=e;i-=6)r=a(t,i,i+6),this.words[n]|=r<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==e&&(r=a(t,e,i+6),this.words[n]|=r<>>26-o&4194303),this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,f=n;f1&&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?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c:o.prototype.inspect=c;var f,l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[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){if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var n,i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?l[6-s.length]+s+n:s+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],f=h[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modrn(f).toString(t);n=(p=p.idivn(f)).isZero()?v+n:l[c-v.length]+v+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var 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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},f&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(f,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};var p=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)};function v(t){for(var e=Array(t.bitLength()),n=0;n>>i&1}return e}function b(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,u=67108863&a,s=a/67108864|0;n.words[0]=u;for(var c=1;c>>26,l=67108863&s,d=Math.min(c,e.length-1),h=Math.max(0,c-t.length+1);h<=d;h++){var p=c-h|0;f+=(a=(i=0|t.words[p])*(o=0|e.words[h])+l)/67108864|0,l=67108863&a}n.words[c]=0|l,s=0|f}return 0!==s?n.words[c]=0|s:n.length--,n._strip()}o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=p(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return(8191&e)==0&&(n+=13,e>>>=13),(127&e)==0&&(n+=7,e>>>=7),(15&e)==0&&(n+=4,e>>>=4),(3&e)==0&&(n+=2,e>>>=2),(1&e)==0&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.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 n=0;nt.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){this.length>t.length?(e=this,n=t):(e=t,n=this);for(var e,n,r=0;rt.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){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),e?this.words[n]=this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var e,n,r,i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,n,r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,n=t):(e=t,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&r;for(;0!==o&&a>26,this.words[a]=67108863&r;if(0===o&&a>>13,h=0|a[1],p=8191&h,v=h>>>13,b=0|a[2],m=8191&b,y=b>>>13,g=0|a[3],_=8191&g,w=g>>>13,S=0|a[4],E=8191&S,A=S>>>13,k=0|a[5],x=8191&k,O=k>>>13,M=0|a[6],T=8191&M,C=M>>>13,R=0|a[7],P=8191&R,I=R>>>13,L=0|a[8],j=8191&L,N=L>>>13,D=0|a[9],B=8191&D,V=D>>>13,U=0|u[0],G=8191&U,F=U>>>13,q=0|u[1],z=8191&q,H=q>>>13,W=0|u[2],K=8191&W,Z=W>>>13,Y=0|u[3],J=8191&Y,$=Y>>>13,X=0|u[4],Q=8191&X,tt=X>>>13,te=0|u[5],tn=8191&te,tr=te>>>13,ti=0|u[6],to=8191&ti,ta=ti>>>13,tu=0|u[7],ts=8191&tu,tc=tu>>>13,tf=0|u[8],tl=8191&tf,td=tf>>>13,th=0|u[9],tp=8191&th,tv=th>>>13;n.negative=t.negative^e.negative,n.length=19;var tb=(c+(r=Math.imul(l,G))|0)+((8191&(i=(i=Math.imul(l,F))+Math.imul(d,G)|0))<<13)|0;c=((o=Math.imul(d,F))+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,r=Math.imul(p,G),i=(i=Math.imul(p,F))+Math.imul(v,G)|0,o=Math.imul(v,F);var tm=(c+(r=r+Math.imul(l,z)|0)|0)+((8191&(i=(i=i+Math.imul(l,H)|0)+Math.imul(d,z)|0))<<13)|0;c=((o=o+Math.imul(d,H)|0)+(i>>>13)|0)+(tm>>>26)|0,tm&=67108863,r=Math.imul(m,G),i=(i=Math.imul(m,F))+Math.imul(y,G)|0,o=Math.imul(y,F),r=r+Math.imul(p,z)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(v,z)|0,o=o+Math.imul(v,H)|0;var ty=(c+(r=r+Math.imul(l,K)|0)|0)+((8191&(i=(i=i+Math.imul(l,Z)|0)+Math.imul(d,K)|0))<<13)|0;c=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,r=Math.imul(_,G),i=(i=Math.imul(_,F))+Math.imul(w,G)|0,o=Math.imul(w,F),r=r+Math.imul(m,z)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(y,z)|0,o=o+Math.imul(y,H)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,Z)|0;var tg=(c+(r=r+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,$)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(tg>>>26)|0,tg&=67108863,r=Math.imul(E,G),i=(i=Math.imul(E,F))+Math.imul(A,G)|0,o=Math.imul(A,F),r=r+Math.imul(_,z)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(w,z)|0,o=o+Math.imul(w,H)|0,r=r+Math.imul(m,K)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,Z)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,$)|0;var t_=(c+(r=r+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,r=Math.imul(x,G),i=(i=Math.imul(x,F))+Math.imul(O,G)|0,o=Math.imul(O,F),r=r+Math.imul(E,z)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(A,z)|0,o=o+Math.imul(A,H)|0,r=r+Math.imul(_,K)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(m,J)|0,i=(i=i+Math.imul(m,$)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,$)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0;var tw=(c+(r=r+Math.imul(l,tn)|0)|0)+((8191&(i=(i=i+Math.imul(l,tr)|0)+Math.imul(d,tn)|0))<<13)|0;c=((o=o+Math.imul(d,tr)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,r=Math.imul(T,G),i=(i=Math.imul(T,F))+Math.imul(C,G)|0,o=Math.imul(C,F),r=r+Math.imul(x,z)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(O,z)|0,o=o+Math.imul(O,H)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(_,J)|0,i=(i=i+Math.imul(_,$)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,$)|0,r=r+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,tn)|0,i=(i=i+Math.imul(p,tr)|0)+Math.imul(v,tn)|0,o=o+Math.imul(v,tr)|0;var tS=(c+(r=r+Math.imul(l,to)|0)|0)+((8191&(i=(i=i+Math.imul(l,ta)|0)+Math.imul(d,to)|0))<<13)|0;c=((o=o+Math.imul(d,ta)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,r=Math.imul(P,G),i=(i=Math.imul(P,F))+Math.imul(I,G)|0,o=Math.imul(I,F),r=r+Math.imul(T,z)|0,i=(i=i+Math.imul(T,H)|0)+Math.imul(C,z)|0,o=o+Math.imul(C,H)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,$)|0,r=r+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,r=r+Math.imul(m,tn)|0,i=(i=i+Math.imul(m,tr)|0)+Math.imul(y,tn)|0,o=o+Math.imul(y,tr)|0,r=r+Math.imul(p,to)|0,i=(i=i+Math.imul(p,ta)|0)+Math.imul(v,to)|0,o=o+Math.imul(v,ta)|0;var tE=(c+(r=r+Math.imul(l,ts)|0)|0)+((8191&(i=(i=i+Math.imul(l,tc)|0)+Math.imul(d,ts)|0))<<13)|0;c=((o=o+Math.imul(d,tc)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,r=Math.imul(j,G),i=(i=Math.imul(j,F))+Math.imul(N,G)|0,o=Math.imul(N,F),r=r+Math.imul(P,z)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(I,z)|0,o=o+Math.imul(I,H)|0,r=r+Math.imul(T,K)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,$)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(_,tn)|0,i=(i=i+Math.imul(_,tr)|0)+Math.imul(w,tn)|0,o=o+Math.imul(w,tr)|0,r=r+Math.imul(m,to)|0,i=(i=i+Math.imul(m,ta)|0)+Math.imul(y,to)|0,o=o+Math.imul(y,ta)|0,r=r+Math.imul(p,ts)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(v,ts)|0,o=o+Math.imul(v,tc)|0;var tA=(c+(r=r+Math.imul(l,tl)|0)|0)+((8191&(i=(i=i+Math.imul(l,td)|0)+Math.imul(d,tl)|0))<<13)|0;c=((o=o+Math.imul(d,td)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,F))+Math.imul(V,G)|0,o=Math.imul(V,F),r=r+Math.imul(j,z)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(N,z)|0,o=o+Math.imul(N,H)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(T,J)|0,i=(i=i+Math.imul(T,$)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,$)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(E,tn)|0,i=(i=i+Math.imul(E,tr)|0)+Math.imul(A,tn)|0,o=o+Math.imul(A,tr)|0,r=r+Math.imul(_,to)|0,i=(i=i+Math.imul(_,ta)|0)+Math.imul(w,to)|0,o=o+Math.imul(w,ta)|0,r=r+Math.imul(m,ts)|0,i=(i=i+Math.imul(m,tc)|0)+Math.imul(y,ts)|0,o=o+Math.imul(y,tc)|0,r=r+Math.imul(p,tl)|0,i=(i=i+Math.imul(p,td)|0)+Math.imul(v,tl)|0,o=o+Math.imul(v,td)|0;var tk=(c+(r=r+Math.imul(l,tp)|0)|0)+((8191&(i=(i=i+Math.imul(l,tv)|0)+Math.imul(d,tp)|0))<<13)|0;c=((o=o+Math.imul(d,tv)|0)+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,r=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(V,z)|0,o=Math.imul(V,H),r=r+Math.imul(j,K)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,Z)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,$)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(x,tn)|0,i=(i=i+Math.imul(x,tr)|0)+Math.imul(O,tn)|0,o=o+Math.imul(O,tr)|0,r=r+Math.imul(E,to)|0,i=(i=i+Math.imul(E,ta)|0)+Math.imul(A,to)|0,o=o+Math.imul(A,ta)|0,r=r+Math.imul(_,ts)|0,i=(i=i+Math.imul(_,tc)|0)+Math.imul(w,ts)|0,o=o+Math.imul(w,tc)|0,r=r+Math.imul(m,tl)|0,i=(i=i+Math.imul(m,td)|0)+Math.imul(y,tl)|0,o=o+Math.imul(y,td)|0;var tx=(c+(r=r+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tv)|0)+Math.imul(v,tp)|0))<<13)|0;c=((o=o+Math.imul(v,tv)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Z))+Math.imul(V,K)|0,o=Math.imul(V,Z),r=r+Math.imul(j,J)|0,i=(i=i+Math.imul(j,$)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(T,tn)|0,i=(i=i+Math.imul(T,tr)|0)+Math.imul(C,tn)|0,o=o+Math.imul(C,tr)|0,r=r+Math.imul(x,to)|0,i=(i=i+Math.imul(x,ta)|0)+Math.imul(O,to)|0,o=o+Math.imul(O,ta)|0,r=r+Math.imul(E,ts)|0,i=(i=i+Math.imul(E,tc)|0)+Math.imul(A,ts)|0,o=o+Math.imul(A,tc)|0,r=r+Math.imul(_,tl)|0,i=(i=i+Math.imul(_,td)|0)+Math.imul(w,tl)|0,o=o+Math.imul(w,td)|0;var tO=(c+(r=r+Math.imul(m,tp)|0)|0)+((8191&(i=(i=i+Math.imul(m,tv)|0)+Math.imul(y,tp)|0))<<13)|0;c=((o=o+Math.imul(y,tv)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,$))+Math.imul(V,J)|0,o=Math.imul(V,$),r=r+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(P,tn)|0,i=(i=i+Math.imul(P,tr)|0)+Math.imul(I,tn)|0,o=o+Math.imul(I,tr)|0,r=r+Math.imul(T,to)|0,i=(i=i+Math.imul(T,ta)|0)+Math.imul(C,to)|0,o=o+Math.imul(C,ta)|0,r=r+Math.imul(x,ts)|0,i=(i=i+Math.imul(x,tc)|0)+Math.imul(O,ts)|0,o=o+Math.imul(O,tc)|0,r=r+Math.imul(E,tl)|0,i=(i=i+Math.imul(E,td)|0)+Math.imul(A,tl)|0,o=o+Math.imul(A,td)|0;var tM=(c+(r=r+Math.imul(_,tp)|0)|0)+((8191&(i=(i=i+Math.imul(_,tv)|0)+Math.imul(w,tp)|0))<<13)|0;c=((o=o+Math.imul(w,tv)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,tt))+Math.imul(V,Q)|0,o=Math.imul(V,tt),r=r+Math.imul(j,tn)|0,i=(i=i+Math.imul(j,tr)|0)+Math.imul(N,tn)|0,o=o+Math.imul(N,tr)|0,r=r+Math.imul(P,to)|0,i=(i=i+Math.imul(P,ta)|0)+Math.imul(I,to)|0,o=o+Math.imul(I,ta)|0,r=r+Math.imul(T,ts)|0,i=(i=i+Math.imul(T,tc)|0)+Math.imul(C,ts)|0,o=o+Math.imul(C,tc)|0,r=r+Math.imul(x,tl)|0,i=(i=i+Math.imul(x,td)|0)+Math.imul(O,tl)|0,o=o+Math.imul(O,td)|0;var tT=(c+(r=r+Math.imul(E,tp)|0)|0)+((8191&(i=(i=i+Math.imul(E,tv)|0)+Math.imul(A,tp)|0))<<13)|0;c=((o=o+Math.imul(A,tv)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,r=Math.imul(B,tn),i=(i=Math.imul(B,tr))+Math.imul(V,tn)|0,o=Math.imul(V,tr),r=r+Math.imul(j,to)|0,i=(i=i+Math.imul(j,ta)|0)+Math.imul(N,to)|0,o=o+Math.imul(N,ta)|0,r=r+Math.imul(P,ts)|0,i=(i=i+Math.imul(P,tc)|0)+Math.imul(I,ts)|0,o=o+Math.imul(I,tc)|0,r=r+Math.imul(T,tl)|0,i=(i=i+Math.imul(T,td)|0)+Math.imul(C,tl)|0,o=o+Math.imul(C,td)|0;var tC=(c+(r=r+Math.imul(x,tp)|0)|0)+((8191&(i=(i=i+Math.imul(x,tv)|0)+Math.imul(O,tp)|0))<<13)|0;c=((o=o+Math.imul(O,tv)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,r=Math.imul(B,to),i=(i=Math.imul(B,ta))+Math.imul(V,to)|0,o=Math.imul(V,ta),r=r+Math.imul(j,ts)|0,i=(i=i+Math.imul(j,tc)|0)+Math.imul(N,ts)|0,o=o+Math.imul(N,tc)|0,r=r+Math.imul(P,tl)|0,i=(i=i+Math.imul(P,td)|0)+Math.imul(I,tl)|0,o=o+Math.imul(I,td)|0;var tR=(c+(r=r+Math.imul(T,tp)|0)|0)+((8191&(i=(i=i+Math.imul(T,tv)|0)+Math.imul(C,tp)|0))<<13)|0;c=((o=o+Math.imul(C,tv)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,r=Math.imul(B,ts),i=(i=Math.imul(B,tc))+Math.imul(V,ts)|0,o=Math.imul(V,tc),r=r+Math.imul(j,tl)|0,i=(i=i+Math.imul(j,td)|0)+Math.imul(N,tl)|0,o=o+Math.imul(N,td)|0;var tP=(c+(r=r+Math.imul(P,tp)|0)|0)+((8191&(i=(i=i+Math.imul(P,tv)|0)+Math.imul(I,tp)|0))<<13)|0;c=((o=o+Math.imul(I,tv)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,r=Math.imul(B,tl),i=(i=Math.imul(B,td))+Math.imul(V,tl)|0,o=Math.imul(V,td);var tI=(c+(r=r+Math.imul(j,tp)|0)|0)+((8191&(i=(i=i+Math.imul(j,tv)|0)+Math.imul(N,tp)|0))<<13)|0;c=((o=o+Math.imul(N,tv)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863;var tL=(c+(r=Math.imul(B,tp))|0)+((8191&(i=(i=Math.imul(B,tv))+Math.imul(V,tp)|0))<<13)|0;return c=((o=Math.imul(V,tv))+(i>>>13)|0)+(tL>>>26)|0,tL&=67108863,s[0]=tb,s[1]=tm,s[2]=ty,s[3]=tg,s[4]=t_,s[5]=tw,s[6]=tS,s[7]=tE,s[8]=tA,s[9]=tk,s[10]=tx,s[11]=tO,s[12]=tM,s[13]=tT,s[14]=tC,s[15]=tR,s[16]=tP,s[17]=tI,s[18]=tL,0!==c&&(s[19]=c,n.length++),n};function y(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=u,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return y(t,e,n)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=b),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):n<63?b(this,t,e):n<1024?y(this,t,e):g(this,t,e)},_.prototype.makeRBT=function(t){for(var e=Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},_.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,n+=(o/67108864|0)+(a>>>26),this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,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=v(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}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=0),i=e?(e-e%26)/26:0;var i,o=t%26,a=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<a)for(this.length-=a,c=0;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,n){return r(0===this.negative),this.iushrn(t,e,n)},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){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>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(r("number"==typeof t),r(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>26)-(s/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===u)return this._strip();for(r(-1===u),u=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n,r=this.length-t.length,i=this.clone(),a=t,u=0|a.words[a.length-1];0!=(r=26-this._countBits(u))&&(a=a.ushln(r),i.iushln(r),u=0|a.words[a.length-1]);var s=i.length-a.length;if("mod"!==e){(n=new o(null)).length=s+1,n.words=Array(n.length);for(var c=0;c=0;l--){var d=(0|i.words[a.length+l])*67108864+(0|i.words[a.length+l-1]);for(d=Math.min(d/u|0,67108863),i._ishlnsubmul(a,d,l);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,l),i.isZero()||(i.negative^=1);n&&(n.words[l]=d)}return n&&n._strip(),i._strip(),"div"!==e&&0!==r&&i.iushrn(r),{div:n||null,mod:i}},o.prototype.divmod=function(t,e,n){var i,a,u;return(r(!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(),n&&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}):(this.negative&t.negative)!=0?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(a=u.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:u.div,mod:a}):t.length>this.length||0>this.cmp(t)?{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)},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 n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);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),r(t<=67108863);for(var n=67108864%t,i=0,o=this.length-1;o>=0;o--)i=(n*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),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=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()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var f=n.clone(),l=e.clone();!e.isZero();){for(var d=0,h=1;(e.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;(n.words[0]&v)==0&&p<26;++p,v<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(u.isOdd()||s.isOdd())&&(u.iadd(f),s.isub(l)),u.iushrn(1),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(u),a.isub(s)):(n.isub(e),u.isub(i),s.isub(a))}return{a:u,b:s,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e,n=this,i=t.clone();n=0!==n.negative?n.umod(t):n.clone();for(var a=new o(1),u=new o(0),s=i.clone();n.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,f=1;(n.words[0]&f)==0&&c<26;++c,f<<=1);if(c>0)for(n.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var l=0,d=1;(i.words[0]&d)==0&&l<26;++l,d<<=1);if(l>0)for(i.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);n.cmp(i)>=0?(n.isub(i),a.isub(u)):(i.isub(n),u.isub(a))}return 0>(e=0===n.cmpn(1)?a:u).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>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,n=t<0;if(0!==this.negative&&!n)return -1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(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 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},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 r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(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 r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(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 S(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 E(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){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 r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(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)}S.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},S.prototype.ireduce=function(t){var e,n=t;do this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},S.prototype.split=function(t,e){t.iushrn(this.n,0,e)},S.prototype.imulK=function(t){return t.imul(this.k)},i(E,S),E.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},E.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){var e;if(w[t])return w[t];if("k256"===t)e=new E;else if("p224"===t)e=new A;else if("p192"===t)e=new k;else if("p25519"===t)e=new x;else throw Error("Unknown prime "+t);return w[t]=e,e},O.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},O.prototype._verify2=function(t,e){r((t.negative|e.negative)==0,"red works only with positives"),r(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):(s(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 n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},O.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},O.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return 0>n.cmpn(0)&&n.iadd(this.m),n._forceRed(this)},O.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return 0>n.cmpn(0)&&n.iadd(this.m),n},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(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!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),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;0!==h.cmp(u);){for(var v=h,b=0;0!==v.cmp(u);b++)v=v.redSqr();r(b=0;i--){for(var f=e.words[i],l=c-1;l>=0;l--){var d=f>>l&1;if(a!==r[0]&&(a=this.sqr(a)),0===d&&0===u){s=0;continue}u<<=1,u|=d,(++s===n||0===i&&0===l)&&(a=this.mul(a,r[u]),s=0,u=0)}c=26}return a},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 M(t)},i(M,O),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},3500:function(t,e,n){var r;function i(t){this.rand=t}if(t.exports=function(t){return r||(r=new i(null)),r.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n>>24]^f[p>>>16&255]^l[v>>>8&255]^d[255&b]^e[m++],a=c[p>>>24]^f[v>>>16&255]^l[b>>>8&255]^d[255&h]^e[m++],u=c[v>>>24]^f[b>>>16&255]^l[h>>>8&255]^d[255&p]^e[m++],s=c[b>>>24]^f[h>>>16&255]^l[p>>>8&255]^d[255&v]^e[m++],h=o,p=a,v=u,b=s;return o=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[v>>>8&255]<<8|r[255&b])^e[m++],a=(r[p>>>24]<<24|r[v>>>16&255]<<16|r[b>>>8&255]<<8|r[255&h])^e[m++],[o>>>=0,a>>>=0,u=((r[v>>>24]<<24|r[b>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^e[m++])>>>0,s=((r[b>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&v])^e[m++])>>>0]}var u=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var t=Array(256),e=0;e<256;e++)e<128?t[e]=e<<1:t[e]=e<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,u=0,s=0;s<256;++s){var c=u^u<<1^u<<2^u<<3^u<<4;c=c>>>8^255&c^99,n[a]=c,r[c]=a;var f=t[a],l=t[f],d=t[l],h=257*t[c]^16843008*c;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*d^65537*l^257*f^16843008*a,o[0][c]=h<<24|h>>>8,o[1][c]=h<<16|h>>>16,o[2][c]=h<<8|h>>>24,o[3][c]=h,0===a?a=u=1:(a=f^t[t[t[d^f]]],u^=t[t[u]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function c(t){this._key=i(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,r=(n+1)*4,i=[],o=0;o>>24,a=(s.SBOX[a>>>24]<<24|s.SBOX[a>>>16&255]<<16|s.SBOX[a>>>8&255]<<8|s.SBOX[255&a])^u[o/e|0]<<24):e>6&&o%e==4&&(a=s.SBOX[a>>>24]<<24|s.SBOX[a>>>16&255]<<16|s.SBOX[a>>>8&255]<<8|s.SBOX[255&a]),i[o]=i[o-e]^a}for(var c=[],f=0;f>>24]]^s.INV_SUB_MIX[1][s.SBOX[d>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[d>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=r.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},c.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var n=a(t,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=c},6624:function(t,e,n){var r=n(1387),i=n(6911).Buffer,o=n(1043),a=n(3782),u=n(7225),s=n(4734),c=n(598);function f(t,e){var n=0;t.length!==e.length&&n++;for(var r=Math.min(t.length,e.length),i=0;i16)throw Error("unable to decrypt data");for(var n=-1;++n16)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=p,e.createDecipheriv=h},2:function(t,e,n){var r=n(6370),i=n(6624),o=n(6911).Buffer,a=n(126),u=n(1043),s=n(1387),c=n(8368);function f(t,e,n){u.call(this),this._cache=new d,this._cipher=new s.AES(e),this._prev=o.from(n),this._mode=t,this._autopadding=!0}n(3782)(f,u),f.prototype._update=function(t){this._cache.add(t);for(var e,n,r=[];e=this._cache.get();)n=this._mode.encrypt(this,e),r.push(n);return o.concat(r)};var l=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function h(t,e,n){var u=r[t.toLowerCase()];if(!u)throw TypeError("invalid suite type");if("string"==typeof e&&(e=o.from(e)),e.length!==u.key/8)throw TypeError("invalid key length "+e.length);if("string"==typeof n&&(n=o.from(n)),"GCM"!==u.mode&&n.length!==u.iv)throw TypeError("invalid iv length "+n.length);return"stream"===u.type?new a(u.module,e,n):"auth"===u.type?new i(u.module,e,n):new f(u.module,e,n)}function p(t,e){var n=r[t.toLowerCase()];if(!n)throw TypeError("invalid suite type");var i=c(e,!1,n.key,n.iv);return h(t,i.key,i.iv)}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(),Error("data not multiple of block length")},f.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=o.concat([this.cache,t])},d.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},d.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),n=-1;++n>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function u(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}u.prototype.ghash=function(t){for(var e=-1;++e0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,e&&(n[0]=-520093696^n[0])}this.state=a(r)},u.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},u.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(a([0,t,0,e])),this.state},t.exports=u},598:function(t){function e(t){for(var e,n=t.length;n--;)if(255===(e=t.readUInt8(n)))t.writeUInt8(0,n);else{e++,t.writeUInt8(e,n);break}}t.exports=e},9825:function(t,e,n){var r=n(4734);e.encrypt=function(t,e){var n=r(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},e.decrypt=function(t,e){var n=t._prev;return t._prev=e,r(t._cipher.decryptBlock(e),n)}},321:function(t,e,n){var r=n(6911).Buffer,i=n(4734);function o(t,e,n){var o=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=r.concat([t._prev,n?e:a]),a}e.encrypt=function(t,e,n){for(var i,a=r.allocUnsafe(0);e.length;)if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=r.allocUnsafe(0)),t._cache.length<=e.length)i=t._cache.length,a=r.concat([a,o(t,e.slice(0,i),n)]),e=e.slice(i);else{a=r.concat([a,o(t,e,n)]);break}return a}},3147:function(t,e,n){var r=n(6911).Buffer;function i(t,e,n){for(var r,i,a,u=-1,s=8,c=0;++u>u%8,t._prev=o(t._prev,n?i:a);return c}function o(t,e){var n=t.length,i=-1,o=r.allocUnsafe(t.length);for(t=r.concat([t,r.from([e])]);++i>7;return o}e.encrypt=function(t,e,n){for(var o=e.length,a=r.allocUnsafe(o),u=-1;++u=0||!n.umod(t.prime1)||!n.umod(t.prime2);)n=new r(o(e));return n}t.exports=u,u.getr=s},9276:function(t,e,n){t.exports=n(2908)},4078:function(t,e,n){var r=n(6911).Buffer,i=n(9739),o=n(3726),a=n(3782),u=n(9807),s=n(4013),c=n(2908);function f(t){o.Writable.call(this);var e=c[t];if(!e)throw 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 Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){return new f(t)}function h(t){return new l(t)}Object.keys(c).forEach(function(t){c[t].id=r.from(c[t].id,"hex"),c[t.toLowerCase()]=c[t]}),a(f,o.Writable),f.prototype._write=function(t,e,n){this._hash.update(t),n()},f.prototype.update=function(t,e){return"string"==typeof t&&(t=r.from(t,e)),this._hash.update(t),this},f.prototype.sign=function(t,e){this.end();var n=u(this._hash.digest(),t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},a(l,o.Writable),l.prototype._write=function(t,e,n){this._hash.update(t),n()},l.prototype.update=function(t,e){return"string"==typeof t&&(t=r.from(t,e)),this._hash.update(t),this},l.prototype.verify=function(t,e,n){return"string"==typeof e&&(e=r.from(e,n)),this.end(),s(e,this._hash.digest(),t,this._signType,this._tag)},t.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},9807:function(t,e,n){var r=n(6911).Buffer,i=n(4873),o=n(7166),a=n(949).ec,u=n(1670),s=n(9902),c=n(9267);function f(t,e,n,i,a){var u=s(e);if(u.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");return l(t,u)}if("dsa"===u.type){if("dsa"!==i)throw Error("wrong private key type");return d(t,u,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");t=r.concat([a,t]);for(var c=u.modulus.byteLength(),f=[0,1];t.length+f.length+10&&n.ishrn(r),n}function b(t,e){t=(t=v(t,e)).mod(e);var n=r.from(t.toArray());if(n.length=t.cmpn(0)||t.cmp(e)>=e)throw Error("invalid sig")}t.exports=s},4734:function(t){t.exports=function(t,e){for(var n=Math.min(t.length,e.length),r=new i(n),o=0;on?e=("rmd160"===t?new s:c(t)).update(e).digest():e.lengthu?e=t(e):e.length0;r--)e+=this._buffer(t,e),n+=this._flushBuffer(i,n);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,n;return(t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e)?e.concat(n):n},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e>>1];n=o.r28shl(n,u),i=o.r28shl(i,u),o.pc2(n,i,t.keys,a)}},s.prototype._update=function(t,e,n,r){var i=this._desState,a=o.readUInt32BE(t,e),u=o.readUInt32BE(t,e+4);o.ip(a,u,i.tmp,0),a=i.tmp[0],u=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,u,i.tmp,0):this._decrypt(i,a,u,i.tmp,0),a=i.tmp[0],u=i.tmp[1],o.writeUInt32BE(n,a,r),o.writeUInt32BE(n,u,r+4)},s.prototype._pad=function(t,e){for(var n=t.length-e,r=e;r>>0,a=h}o.rip(u,a,r,i)},s.prototype._decrypt=function(t,e,n,r,i){for(var a=n,u=e,s=t.keys.length-2;s>=0;s-=2){var c=t.keys[s],f=t.keys[s+1];o.expand(a,t.tmp,0),c^=t.tmp[0],f^=t.tmp[1];var l=o.substitute(c,f),d=o.permute(l),h=a;a=(u^d)>>>0,u=h}o.rip(a,u,r,i)}},6159:function(t,e,n){"use strict";var r=n(3523),i=n(3782),o=n(9876),a=n(1016);function u(t,e){r.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),i=e.slice(8,16),o=e.slice(16,24);"encrypt"===t?this.ciphers=[a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:this.ciphers=[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:n})]}function s(t){o.call(this,t);var e=new u(this.type,this.options.key);this._edeState=e}i(s,o),t.exports=s,s.create=function(t){return new s(t)},s.prototype._update=function(t,e,n,r){var i=this._edeState;i.ciphers[0]._update(t,e,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},s.prototype._pad=a.prototype._pad,s.prototype._unpad=a.prototype._unpad},5334:function(t,e){"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,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,r){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(var u=0;u<=24;u+=8)i<<=1,i|=t>>>u+a&1}for(var a=6;a>=0;a-=2){for(var u=1;u<=25;u+=8)o<<=1,o|=e>>>u+a&1;for(var u=1;u<=25;u+=8)o<<=1,o|=t>>>u+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},e.rip=function(t,e,n,r){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(var a=4;a<8;a++)for(var u=24;u>=0;u-=8)o<<=1,o|=e>>>u+a&1,o<<=1,o|=t>>>u+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.pc1=function(t,e,n,r){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(var u=0;u<=24;u+=8)i<<=1,i|=t>>u+a&1}for(var u=0;u<=24;u+=8)i<<=1,i|=e>>u+a&1;for(var a=1;a<=3;a++){for(var u=0;u<=24;u+=8)o<<=1,o|=e>>u+a&1;for(var u=0;u<=24;u+=8)o<<=1,o|=t>>u+a&1}for(var u=0;u<=24;u+=8)o<<=1,o|=t>>u+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.r28shl=function(t,e){return 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>>n[s]&1;for(var s=u;s>>n[s]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},e.expand=function(t,e,n){var r=0,i=0;r=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=t>>>o&63;for(var o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=i>>>0};var r=[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 n=0,i=0;i<4;i++){var o=t>>>18-6*i&63,a=r[64*i+o];n<<=4,n|=a}for(var i=0;i<4;i++){var o=e>>>18-6*i&63,a=r[256+64*i+o];n<<=4,n|=a}return n>>>0};var i=[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,n=0;n>>i[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var r=t.toString(2);r.lengtht;)n.ishrn(1);if(n.isEven()&&n.iadd(u),n.testn(1)||n.iadd(s),e.cmp(s)){if(!e.cmp(c))for(;n.mod(f).cmp(l);)n.iadd(h)}else for(;n.mod(o).cmp(d);)n.iadd(h);if(b(p=n.shrn(1))&&b(n)&&m(p)&&m(n)&&a.test(p)&&a.test(n))return n}}},949:function(t,e,n){"use strict";var r=e;r.version=n(2531).i8,r.utils=n(4401),r.rand=n(3500),r.curve=n(9359),r.curves=n(6226),r.ec=n(4088),r.eddsa=n(8511)},2727:function(t,e,n){"use strict";var r=n(711),i=n(4401),o=i.getNAF,a=i.getJSF,u=i.assert;function s(t,e){this.type=t,this.p=new r(e.p,16),this.red=e.prime?r.red(e.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=e.n&&new r(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=s,s.prototype.point=function(){throw Error("Not implemented")},s.prototype.validate=function(){throw Error("Not implemented")},s.prototype._fixedNafMul=function(t,e){u(t.precomputed);var n=t._getDoubles(),r=o(e,1,this._bitLength),i=(1<=s;e--)c=(c<<1)+r[e];a.push(c)}for(var f=this.jpoint(null,null,null),l=this.jpoint(null,null,null),d=i;d>0;d--){for(var s=0;s=0;c--){for(var e=0;c>=0&&0===a[c];c--)e++;if(c>=0&&e++,s=s.dblp(e),c<0)break;var f=a[c];u(0!==f),s="affine"===t.type?f>0?s.mixedAdd(i[f-1>>1]):s.mixedAdd(i[-f-1>>1].neg()):f>0?s.add(i[f-1>>1]):s.add(i[-f-1>>1].neg())}return"affine"===t.type?s.toP():s},s.prototype._wnafMulAdd=function(t,e,n,r,i){for(var u=this._wnafT1,s=this._wnafT2,c=this._wnafT3,f=0,l=0;l=1;l-=2){var p=l-1,v=l;if(1!==u[p]||1!==u[v]){c[p]=o(n[p],u[p],this._bitLength),c[v]=o(n[v],u[v],this._bitLength),f=Math.max(c[p].length,f),f=Math.max(c[v].length,f);continue}var b=[e[p],null,null,e[v]];0===e[p].y.cmp(e[v].y)?(b[1]=e[p].add(e[v]),b[2]=e[p].toJ().mixedAdd(e[v].neg())):0===e[p].y.cmp(e[v].y.redNeg())?(b[1]=e[p].toJ().mixedAdd(e[v]),b[2]=e[p].add(e[v].neg())):(b[1]=e[p].toJ().mixedAdd(e[v]),b[2]=e[p].toJ().mixedAdd(e[v].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],y=a(n[p],n[v]);f=Math.max(y[0].length,f),c[p]=Array(f),c[v]=Array(f);for(var g=0;g=0;l--){for(var A=0;l>=0;){for(var k=!0,g=0;g=0&&A++,S=S.dblp(A),l<0)break;for(var g=0;g0?d=s[g][x-1>>1]:x<0&&(d=s[g][-x-1>>1].neg()),S="affine"===d.type?S.mixedAdd(d):S.add(d))}}for(var l=0;l=Math.ceil((t.bitLength()+1)/e.step)},c.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i":""},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(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),a=o.redSub(n),u=r.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,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),u=a.redAdd(o);if(this.zOne)t=r.redSub(i).redSub(o).redMul(u.redSub(this.curve.two)),e=u.redMul(a.redSub(o)),n=u.redSqr().redSub(u).redSub(u);else{var s=this.z.redSqr(),c=u.redSub(s).redISub(s);t=r.redSub(i).redISub(o).redMul(c),e=u.redMul(a.redSub(o)),n=u.redMul(c)}}else{var a=i.redAdd(o),s=this.curve._mulC(this.z).redSqr(),c=a.redSub(s).redSub(s);t=this.curve._mulC(r.redISub(a)).redMul(c),e=this.curve._mulC(a).redMul(i.redISub(o)),n=a.redMul(c)}return this.curve.point(t,e,n)},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)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e),a=i.redSub(r),u=i.redAdd(r),s=n.redAdd(e),c=o.redMul(a),f=u.redMul(s),l=o.redMul(s),d=a.redMul(u);return this.curve.point(c,f,d,l)},c.prototype._projAdd=function(t){var e,n,r=this.z.redMul(t.z),i=r.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=r.redMul(s).redMul(f);return this.curve.twisted?(e=r.redMul(c).redMul(a.redSub(this.curve._mulA(o))),n=s.redMul(c)):(e=r.redMul(c).redMul(a.redSub(o)),n=this.curve._mulC(s).redMul(c)),this.curve.point(l,e,n)},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,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},c.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],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 n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},9359:function(t,e,n){"use strict";var r=e;r.base=n(2727),r.short=n(4720),r.mont=n(6653),r.edwards=n(2705)},6653:function(t,e,n){"use strict";var r=n(711),i=n(3782),o=n(2727),a=n(4401);function u(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(t,e,n){o.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(u,o),t.exports=u,u.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===r.redSqrt().redSqr().cmp(r)},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()?"":""},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(),n=t.redSub(e),r=t.redMul(e),i=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},s.prototype.add=function(){throw Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(n),a=i.redMul(r),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(),n=this,r=this.curve.point(null,null),i=this,o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(n=n.diffAdd(r,i),r=r.dbl()):(r=n.diffAdd(r,i),n=n.dbl());return r},s.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw 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()}},4720:function(t,e,n){"use strict";var r=n(4401),i=n(711),o=n(3782),a=n(2727),u=r.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=[,,,,],this._endoWnafT2=[,,,,]}function c(t,e,n,r){a.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(t,e,n,r){a.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(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(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(s,a),t.exports=s,s.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var e,n,r,o=this._getEndoRoots(this.p);e=(e=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(t.lambda)n=new i(t.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(e))?n=a[0]:(n=a[1],u(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}return r=t.basis?t.basis.map(function(t){return{a:new i(t.a,16),b:new i(t.b,16)}}):this._getEndoBasis(n),{beta:e,lambda:n,basis:r}}},s.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),n=new i(2).toRed(e).redInvm(),r=n.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},s.prototype._getEndoBasis=function(t){for(var e,n,r,o,a,u,s,c,f,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,h=this.n.clone(),p=new i(1),v=new i(0),b=new i(0),m=new i(1),y=0;0!==d.cmpn(0);){var g=h.div(d);c=h.sub(g.mul(d)),f=b.sub(g.mul(p));var _=m.sub(g.mul(v));if(!r&&0>c.cmp(l))e=s.neg(),n=p,r=c.neg(),o=f;else if(r&&2==++y)break;s=c,h=d,d=c,b=p,p=f,m=v,v=_}a=c.neg(),u=f;var w=r.sqr().add(o.sqr());return a.sqr().add(u.sqr()).cmp(w)>=0&&(a=e,u=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),u=u.neg()),[{a:r,b:o},{a:a,b:u}]},s.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),a=i.mul(n.a),u=o.mul(r.a),s=i.mul(n.b),c=o.mul(r.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 n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw Error("invalid point");var o=r.fromRed().isOdd();return(e&&!o||!e&&o)&&(r=r.redNeg()),this.point(t,r)},s.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},s.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},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)||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 n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},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,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(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,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},c.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,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 n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return 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,n){return new f(this,t,e,n)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},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(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),u=r.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=r.redMul(c),d=s.redSqr().redIAdd(f).redISub(l).redISub(l),h=s.redMul(l.redISub(d)).redISub(o.redMul(f)),p=this.z.redMul(t.z).redMul(u);return this.curve.jpoint(d,h,p)},f.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=n.redSub(r),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=n.redMul(s),l=u.redSqr().redIAdd(c).redISub(f).redISub(f),d=u.redMul(f.redISub(l)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(l,d,h)},f.prototype.dblp=function(t){if(0===t||this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(t,e,n){"use strict";var r,i=e,o=n(7028),a=n(9359),u=n(4401).assert;function s(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,u(this.g.validate(),"Invalid curve"),u(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var n=new s(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=s,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(9702)}catch(t){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},4088:function(t,e,n){"use strict";var r=n(711),i=n(4910),o=n(4401),a=n(6226),u=n(3500),s=o.assert,c=n(4724),f=n(7526);function l(t){if(!(this instanceof l))return new l(t);"string"==typeof t&&(s(a.hasOwnProperty(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()}),n=this.n.byteLength(),o=this.n.sub(new r(2));;){var a=new r(e.generate(n));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},l.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return(n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0)?t.sub(this.n):t},l.prototype.sign=function(t,e,n,o){"object"==typeof n&&(o=n,n=null),o||(o={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new r(t,16));for(var a=this.n.byteLength(),u=e.getPrivate().toArray("be",a),s=t.toArray("be",a),c=new i({hash:this.hash,entropy:u,nonce:s,pers:o.pers,persEnc:o.persEnc||"utf8"}),l=this.n.sub(new r(1)),d=0;;d++){var h=o.k?o.k(d):new r(c.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(l)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var v=p.getX(),b=v.umod(this.n);if(0!==b.cmpn(0)){var m=h.invm(this.n).mul(b.mul(e.getPrivate()).iadd(t));if(0!==(m=m.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==v.cmp(b)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),y^=1),new f({r:b,s:m,recoveryParam:y})}}}}}},l.prototype.verify=function(t,e,n,i){t=this._truncateToN(new r(t,16)),n=this.keyFromPublic(n,i);var o=(e=new f(e,"hex")).r,a=e.s;if(0>o.cmpn(1)||o.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var u=a.invm(this.n),s=u.mul(t).umod(this.n),c=u.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var l=this.g.mulAdd(s,n.getPublic(),c);return!l.isInfinity()&&0===l.getX().umod(this.n).cmp(o)}var l=this.g.jmulAdd(s,n.getPublic(),c);return!l.isInfinity()&&l.eqXToP(o)},l.prototype.recoverPubKey=function(t,e,n,i){s((3&n)===n,"The recovery param is more than two bits"),e=new f(e,i);var o=this.n,a=new r(t),u=e.r,c=e.s,l=1&n,d=n>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw Error("Unable to find sencond key candinate");u=d?this.curve.pointFromX(u.add(this.curve.n),l):this.curve.pointFromX(u,l);var h=e.r.invm(o),p=o.sub(a).mul(h).umod(o),v=c.mul(h).umod(o);return this.g.mulAdd(p,u,v)},l.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new f(e,r)).recoveryParam)return e.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(t,e,o)}catch(t){continue}if(i.eq(n))return o}throw Error("Unable to find valid recovery factor")}},4724:function(t,e,n){"use strict";var r=n(711),i=n(4401).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,n){return e instanceof o?e:new o(t,{pub:e,pubEnc:n})},o.fromPrivate=function(t,e,n){return e instanceof o?e:new o(t,{priv:e,privEnc:n})},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 r(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y){"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"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.mul(this.priv).getX()},o.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},o.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},o.prototype.inspect=function(){return""}},7526:function(t,e,n){"use strict";var r=n(711),i=n(4401),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 r(t.r,16),this.s=new r(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function u(){this.place=0}function s(t,e){var n=t[e.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=e.place;o>>=0;return!(i<=127)&&(e.place=a,i)}function c(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}t.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var n=new u;if(48!==t[n.place++])return!1;var o=s(t,n);if(!1===o||o+n.place!==t.length||2!==t[n.place++])return!1;var a=s(t,n);if(!1===a)return!1;var c=t.slice(n.place,a+n.place);if(n.place+=a,2!==t[n.place++])return!1;var f=s(t,n);if(!1===f||t.length!==f+n.place)return!1;var l=t.slice(n.place,f+n.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 r(c),this.s=new r(l),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=c(e),n=c(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var r=[2];f(r,e.length),(r=r.concat(e)).push(2),f(r,n.length);var o=r.concat(n),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,t)}},8511:function(t,e,n){"use strict";var r=n(7028),i=n(6226),o=n(4401),a=o.assert,u=o.parseBytes,s=n(9917),c=n(9314);function f(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof f))return new f(t);var 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=r.sha512}t.exports=f,f.prototype.sign=function(t,e){t=u(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),s=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},f.prototype.verify=function(t,e,n){t=u(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var t=this.hash(),e=0;e(i>>1)-1?(i>>1)-s:s,o.isubn(u)):u=0,r[a]=u,o.iushrn(1)}return r}function s(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r=0,i=0;t.cmpn(-r)>0||e.cmpn(-i)>0;){var o,a,u=t.andln(3)+r&3,s=e.andln(3)+i&3;if(3===u&&(u=-1),3===s&&(s=-1),(1&u)==0)o=0;else{var c=t.andln(7)+r&7;o=(3===c||5===c)&&2===s?-u:u}if(n[0].push(o),(1&s)==0)a=0;else{var c=e.andln(7)+i&7;a=(3===c||5===c)&&2===u?-s:s}n[1].push(a),2*r===o+1&&(r=1-r),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return n}function c(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}}function f(t){return"string"==typeof t?r.toArray(t,"hex"):t}function l(t){return new i(t,"hex","le")}r.assert=o,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=u,r.getJSF=s,r.cachedProperty=c,r.parseBytes=f,r.intFromLE=l},8368:function(t,e,n){var r=n(6911).Buffer,i=n(3533);function o(t,e,n,o){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&(r.isBuffer(e)||(e=r.from(e,"binary")),8!==e.length))throw RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,u=r.alloc(a),s=r.alloc(o||0),c=r.alloc(0);a>0||o>0;){var f=new i;f.update(c),f.update(t),e&&f.update(e),c=f.digest();var l=0;if(a>0){var d=u.length-a;l=Math.min(a,c.length),c.copy(u,d,0,l),a-=l}if(l0){var h=s.length-o,p=Math.min(o,c.length-l);c.copy(s,h,l,l+p),o-=p}}return c.fill(0),{key:u,iv:s}}t.exports=o},9029:function(t,e,n){"use strict";var r=n(6911).Buffer,i=n(3726).Transform;function o(t,e){if(!r.isBuffer(t)&&"string"!=typeof t)throw TypeError(e+" must be a string or a buffer")}function a(t){i.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(3782)(a,i),a.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(t){r=t}n(r)},a.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},a.prototype.update=function(t,e){if(o(t,"Data"),this._finalized)throw Error("Digest already called");r.isBuffer(t)||(t=r.from(t,e));for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var a=this._blockOffset;a0;++u)this._length[u]+=s,(s=this._length[u]/4294967296|0)>0&&(this._length[u]-=4294967296*s);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(t){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},a.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=a},7028:function(t,e,n){var r=e;r.utils=n(263),r.common=n(1330),r.sha=n(301),r.ripemd=n(3079),r.hmac=n(3092),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},1330:function(t,e,n){"use strict";var r=n(263),i=n(3523);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(o=8,r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0;othis.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e>>3}function l(t){return r(t,17)^r(t,19)^t>>>10}e.ft_1=i,e.ch32=o,e.maj32=a,e.p32=u,e.s0_256=s,e.s1_256=c,e.g0_256=f,e.g1_256=l},263:function(t,e,n){"use strict";var r=n(3523),i=n(3782);function o(t,e){return(64512&t.charCodeAt(e))==55296&&!(e<0)&&!(e+1>=t.length)&&(64512&t.charCodeAt(e+1))==56320}function a(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t){if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192:(o(t,i)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128):n[r++]=a>>12|224,n[r++]=a>>6&63|128),n[r++]=63&a|128)}}else for(i=0;i>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function c(t,e){for(var n="",r=0;r>>0;return u}function h(t,e){for(var n=Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n}function p(t,e){return t>>>e|t<<32-e}function v(t,e){return t<>>32-e}function b(t,e){return t+e>>>0}function m(t,e,n){return t+e+n>>>0}function y(t,e,n,r){return t+e+n+r>>>0}function g(t,e,n,r,i){return t+e+n+r+i>>>0}function _(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,a=(o>>0,t[e+1]=o}function w(t,e,n,r){return(e+r>>>0>>0}function S(t,e,n,r){return e+r>>>0}function E(t,e,n,r,i,o,a,u){var s,c=e;return t+n+i+a+(s=0+((c=c+r>>>0)>>0)>>0)>>0}function A(t,e,n,r,i,o,a,u){return e+r+o+u>>>0}function k(t,e,n,r,i,o,a,u,s,c){var f,l=e;return t+n+i+a+s+(f=0+((l=l+r>>>0)>>0)>>0)>>0)>>0}function x(t,e,n,r,i,o,a,u,s,c){return e+r+o+u+c>>>0}function O(t,e,n){return(e<<32-n|t>>>n)>>>0}function M(t,e,n){return(t<<32-n|e>>>n)>>>0}function T(t,e,n){return t>>>n}function C(t,e,n){return(t<<32-n|e>>>n)>>>0}e.inherits=i,e.toArray=a,e.toHex=u,e.htonl=s,e.toHex32=c,e.zero2=f,e.zero8=l,e.join32=d,e.split32=h,e.rotr32=p,e.rotl32=v,e.sum32=b,e.sum32_3=m,e.sum32_4=y,e.sum32_5=g,e.sum64=_,e.sum64_hi=w,e.sum64_lo=S,e.sum64_4_hi=E,e.sum64_4_lo=A,e.sum64_5_hi=k,e.sum64_5_lo=x,e.rotr64_hi=O,e.rotr64_lo=M,e.shr64_hi=T,e.shr64_lo=C},4910:function(t,e,n){"use strict";var r=n(7028),i=n(6545),o=n(3523);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"),n=i.toArray(t.nonce,t.nonceEnc||"hex"),r=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}t.exports=a,a.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},a.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length>>32-e}function c(t,e,n,r,i,o,a){return s(t+(e&n|~e&r)+i+o|0,a)+e|0}function f(t,e,n,r,i,o,a){return s(t+(e&r|n&~r)+i+o|0,a)+e|0}function l(t,e,n,r,i,o,a){return s(t+(e^n^r)+i+o|0,a)+e|0}function d(t,e,n,r,i,o,a){return s(t+(n^(e|~r))+i+o|0,a)+e|0}r(u,i),u.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,i=this._c,o=this._d;n=c(n,r,i,o,t[0],3614090360,7),o=c(o,n,r,i,t[1],3905402710,12),i=c(i,o,n,r,t[2],606105819,17),r=c(r,i,o,n,t[3],3250441966,22),n=c(n,r,i,o,t[4],4118548399,7),o=c(o,n,r,i,t[5],1200080426,12),i=c(i,o,n,r,t[6],2821735955,17),r=c(r,i,o,n,t[7],4249261313,22),n=c(n,r,i,o,t[8],1770035416,7),o=c(o,n,r,i,t[9],2336552879,12),i=c(i,o,n,r,t[10],4294925233,17),r=c(r,i,o,n,t[11],2304563134,22),n=c(n,r,i,o,t[12],1804603682,7),o=c(o,n,r,i,t[13],4254626195,12),i=c(i,o,n,r,t[14],2792965006,17),r=c(r,i,o,n,t[15],1236535329,22),n=f(n,r,i,o,t[1],4129170786,5),o=f(o,n,r,i,t[6],3225465664,9),i=f(i,o,n,r,t[11],643717713,14),r=f(r,i,o,n,t[0],3921069994,20),n=f(n,r,i,o,t[5],3593408605,5),o=f(o,n,r,i,t[10],38016083,9),i=f(i,o,n,r,t[15],3634488961,14),r=f(r,i,o,n,t[4],3889429448,20),n=f(n,r,i,o,t[9],568446438,5),o=f(o,n,r,i,t[14],3275163606,9),i=f(i,o,n,r,t[3],4107603335,14),r=f(r,i,o,n,t[8],1163531501,20),n=f(n,r,i,o,t[13],2850285829,5),o=f(o,n,r,i,t[2],4243563512,9),i=f(i,o,n,r,t[7],1735328473,14),r=f(r,i,o,n,t[12],2368359562,20),n=l(n,r,i,o,t[5],4294588738,4),o=l(o,n,r,i,t[8],2272392833,11),i=l(i,o,n,r,t[11],1839030562,16),r=l(r,i,o,n,t[14],4259657740,23),n=l(n,r,i,o,t[1],2763975236,4),o=l(o,n,r,i,t[4],1272893353,11),i=l(i,o,n,r,t[7],4139469664,16),r=l(r,i,o,n,t[10],3200236656,23),n=l(n,r,i,o,t[13],681279174,4),o=l(o,n,r,i,t[0],3936430074,11),i=l(i,o,n,r,t[3],3572445317,16),r=l(r,i,o,n,t[6],76029189,23),n=l(n,r,i,o,t[9],3654602809,4),o=l(o,n,r,i,t[12],3873151461,11),i=l(i,o,n,r,t[15],530742520,16),r=l(r,i,o,n,t[2],3299628645,23),n=d(n,r,i,o,t[0],4096336452,6),o=d(o,n,r,i,t[7],1126891415,10),i=d(i,o,n,r,t[14],2878612391,15),r=d(r,i,o,n,t[5],4237533241,21),n=d(n,r,i,o,t[12],1700485571,6),o=d(o,n,r,i,t[3],2399980690,10),i=d(i,o,n,r,t[10],4293915773,15),r=d(r,i,o,n,t[1],2240044497,21),n=d(n,r,i,o,t[8],1873313359,6),o=d(o,n,r,i,t[15],4264355552,10),i=d(i,o,n,r,t[6],2734768916,15),r=d(r,i,o,n,t[13],1309151649,21),n=d(n,r,i,o,t[4],4149444226,6),o=d(o,n,r,i,t[11],3174756917,10),i=d(i,o,n,r,t[2],718787259,15),r=d(r,i,o,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},u.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=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=u},1354:function(t,e,n){var r=n(711),i=n(3500);function o(t){this.rand=t||new i.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=Math.ceil(t.bitLength()/8);do var n=new r(this.rand.generate(e));while(n.cmp(t)>=0);return n},o.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},o.prototype.test=function(t,e,n){var i=t.bitLength(),o=r.mont(t),a=new r(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var u=t.subn(1),s=0;!u.testn(s);s++);for(var c=t.shrn(s),f=u.toRed(o),l=!0;e>0;e--){var d=this._randrange(new r(2),u);n&&n(d);var h=d.toRed(o).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(f)){for(var p=1;p0;e--){var f=this._randrange(new r(2),a),l=t.gcd(f);if(0!==l.cmpn(1))return l;var d=f.toRed(i).redPow(s);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var h=1;h>8,a=255&i;o?n.push(o,a):n.push(a)}return n}function i(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",n=0;ne||n!=n)throw TypeError("Bad key length")}},2127:function(t,e,n){var r={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},i=n(4873),o=n(6911).Buffer,a=n(5349),u=n(7007),s=n(5407);function c(t,e,n,c,f){a(n,c),t=s(t,u,"Password"),e=s(e,u,"Salt"),f=f||"sha1";var l=o.allocUnsafe(c),d=o.allocUnsafe(e.length+4);e.copy(d,0,0,e.length);for(var h=0,p=r[f],v=Math.ceil(c/p),b=1;b<=v;b++){d.writeUInt32BE(b,e.length);for(var m=i(f,t).update(d).digest(),y=m,g=1;g=e.length){o++;break}var a=e.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,a.length<8&&o++,o)throw Error("decryption error");return e.slice(i)}function h(t,e){t=f.from(t),e=f.from(e);var n=0,r=t.length;t.length!==e.length&&(n++,r=Math.min(t.length,e.length));for(var i=-1;++ih||new a(e).cmp(s.modulus)>=0)throw Error("decryption error");o=n?c(new a(e),s):u(e,s);var p=f.alloc(h-o.length);if(o=f.concat([p,o],h),4===i)return l(s,o);if(1===i)return d(s,o,n);if(3===i)return o;throw Error("unknown padding")}},3995:function(t,e,n){var r=n(9902),i=n(7223),o=n(9739),a=n(5520),u=n(6386),s=n(711),c=n(1607),f=n(7166),l=n(6911).Buffer;function d(t,e){var n=t.modulus.byteLength(),r=e.length,c=o("sha1").update(l.alloc(0)).digest(),f=c.length,d=2*f;if(r>n-d-2)throw Error("message too long");var h=l.alloc(n-r-d-2),p=n-f-1,v=i(f),b=u(l.concat([c,h,l.alloc(1,1),e],p),a(v,p)),m=u(v,a(b,f));return new s(l.concat([l.alloc(1),m,b],n))}function h(t,e,n){var r,i=e.length,o=t.modulus.byteLength();if(i>o-11)throw Error("message too long");return r=n?l.alloc(o-i-3,255):p(o-i-3),new s(l.concat([l.from([0,n?1:2]),r,l.alloc(1),e],o))}function p(t){for(var e,n=l.allocUnsafe(t),r=0,o=i(2*t),a=0;r=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return n?f(o,a):c(o,a)}},1607:function(t,e,n){var r=n(711),i=n(6911).Buffer;function o(t,e){return i.from(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}t.exports=o},6386:function(t){t.exports=function(t,e){for(var n=t.length,r=-1;++ra)throw RangeError("requested too many random bytes");var n=s.allocUnsafe(t);if(t>0){if(t>i)for(var r=0;rf||t<0)throw TypeError("offset must be a uint32");if(t>s||t>e)throw RangeError("offset out of range")}function d(t,e,n){if("number"!=typeof t||t!=t)throw TypeError("size must be a number");if(t>f||t<0)throw TypeError("size must be a uint32");if(t+e>n||t>s)throw RangeError("buffer too small")}function h(t,e,r,i){if(!u.isBuffer(t)&&!(t instanceof n.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)i=e,e=0,r=t.length;else if("function"==typeof r)i=r,r=t.length-e;else if("function"!=typeof i)throw TypeError('"cb" argument must be a function');return l(e,t.length),d(r,e,t.length),p(t,e,r,i)}function p(t,e,n,r){var i=new Uint8Array(t.buffer,e,n);if(c.getRandomValues(i),r){o.nextTick(function(){r(null,t)});return}return t}function v(t,e,r){if(void 0===e&&(e=0),!u.isBuffer(t)&&!(t instanceof n.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return l(e,t.length),void 0===r&&(r=t.length-e),d(r,e,t.length),p(t,e,r)}c&&c.getRandomValues?(e.randomFill=h,e.randomFillSync=v):(e.randomFill=i,e.randomFillSync=i)},4646:function(t){"use strict";let e={};function n(t,n,r){function i(t,e,r){return"string"==typeof n?n:n(t,e,r)}r||(r=Error);class o extends r{constructor(t,e,n){super(i(t,e,n))}}o.prototype.name=r.name,o.prototype.code=t,e[t]=o}function r(t,e){if(!Array.isArray(t))return`of ${e} ${String(t)}`;{let n=t.length;return(t=t.map(t=>String(t)),n>2)?`one of ${e} ${t.slice(0,n-1).join(", ")}, or `+t[n-1]:2===n?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}}function i(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function o(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function a(t,e,n){return"number"!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}n("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(t,e,n){let u,s;if("string"==typeof e&&i(e,"not ")?(u="must not be",e=e.replace(/^not /,"")):u="must be",o(t," argument"))s=`The ${t} ${u} ${r(e,"type")}`;else{let n=a(t,".")?"property":"argument";s=`The "${t}" ${n} ${u} ${r(e,"type")}`}return s+`. Received type ${typeof n}`},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},2403:function(t,e,n){"use strict";var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=f;var i=n(1709),a=n(7337);n(3782)(f,i);for(var u=r(a.prototype),s=0;s0){if("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===d.prototype||(e=p(e)),r)u.endEmitted?k(t,new A):R(t,u,e,!0);else if(u.ended)k(t,new S);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!n?(e=u.decoder.write(e),u.objectMode||0!==e.length?R(t,u,e,!1):V(t,u)):R(t,u,e,!1)}}else r||(u.reading=!1,V(t,u));return!u.ended&&(u.length=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function j(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=L(t)),t<=e.length)?t:e.ended?e.length:(e.needReadable=!0,0)}function N(t,e){if(a("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?D(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,B(t)))}}function D(t){var e=t._readableState;a("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(a("emitReadable",e.flowing),e.emittedReadable=!0,o.nextTick(B,t))}function B(t){var e=t._readableState;a("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,W(t)}function V(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(U,t,e))}function U(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function q(t){a("readable nexttick read 0"),t.read(0)}function z(t,e){e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(H,t,e))}function H(t,e){a("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),W(t),e.flowing&&!e.reading&&t.read(0)}function W(t){var e=t._readableState;for(a("flow",e.flowing);e.flowing&&null!==t.read(););}function K(t,e){var n;return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n)}function Z(t){var e=t._readableState;a("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,o.nextTick(Y,e,t))}function Y(t,e){if(a("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function J(t,e){for(var n=0,r=t.length;n=n.highWaterMark:n.length>0)||n.ended))return a("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?Z(this):D(this),null;if(0===(t=j(t,n))&&n.ended)return 0===n.length&&Z(this),null;var i=n.needReadable;return a("need readable",i),(0===n.length||n.length-t0?K(t,n):null)?(n.needReadable=n.length<=n.highWaterMark,t=0):(n.length-=t,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==t&&n.ended&&Z(this)),null!==e&&this.emit("data",e),e},T.prototype._read=function(t){k(this,new E("_read()"))},T.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,a("pipe count=%d opts=%j",r.pipesCount,e);var i=e&&!1===e.end||t===o.stdout||t===o.stderr?m:s;function u(t,e){a("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function s(){a("onend"),t.end()}r.endEmitted?o.nextTick(i):n.once("end",i),t.on("unpipe",u);var c=G(n);t.on("drain",c);var l=!1;function d(){a("cleanup"),t.removeListener("close",v),t.removeListener("finish",b),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",u),n.removeListener("end",s),n.removeListener("end",m),n.removeListener("data",h),l=!0,r.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&c()}function h(e){a("ondata");var i=t.write(e);a("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==J(r.pipes,t))&&!l&&(a("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function p(e){a("onerror",e),m(),t.removeListener("error",p),0===f(t,"error")&&k(t,e)}function v(){t.removeListener("finish",b),m()}function b(){a("onfinish"),t.removeListener("close",v),m()}function m(){a("unpipe"),n.unpipe(t)}return n.on("data",h),O(t,"error",p),t.once("close",v),t.once("finish",b),t.emit("pipe",n),r.flowing||(a("pipe resume"),n.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"!==t||r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,a("on readable",r.length,r.reading),r.length?D(this):r.reading||o.nextTick(q,this)),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var n=l.prototype.removeListener.call(this,t,e);return"readable"===t&&o.nextTick(F,this),n},T.prototype.removeAllListeners=function(t){var e=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===t||void 0===t)&&o.nextTick(F,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(a("resume"),t.flowing=!t.readableListening,z(this,t)),t.paused=!1,this},T.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",function(){if(a("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!=i)&&(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))}),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o-1))throw new A(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(t,e,n){n(new y("_write()"))},M.prototype._writev=null,M.prototype.end=function(t,e,n){var r=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||z(this,r,n),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),M.prototype.destroy=p.destroy,M.prototype._undestroy=p.undestroy,M.prototype._destroy=function(t,e){e(t)}},6871:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i,a=n(9698),u=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(t,e){return{value:t,done:e}}function v(t){var e=t[u];if(null!==e){var n=t[h].read();null!==n&&(t[l]=null,t[u]=null,t[s]=null,e(p(n,!1)))}}function b(t){o.nextTick(v,t)}function m(t,e){return function(n,r){t.then(function(){if(e[f]){n(p(void 0,!0));return}e[d](n,r)},r)}}var y=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((r(i={get stream(){return this[h]},next:function(){var t,e=this,n=this[c];if(null!==n)return Promise.reject(n);if(this[f])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(t,n){o.nextTick(function(){e[c]?n(e[c]):t(p(void 0,!0))})});var r=this[l];if(r)t=new Promise(m(r,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(p(i,!1));t=new Promise(this[d])}return this[l]=t,t}},Symbol.asyncIterator,function(){return this}),r(i,"return",function(){var t=this;return new Promise(function(e,n){t[h].destroy(null,function(t){if(t){n(t);return}e(p(void 0,!0))})})}),i),y),_=function(t){var e,n=Object.create(g,(r(e={},h,{value:t,writable:!0}),r(e,u,{value:null,writable:!0}),r(e,s,{value:null,writable:!0}),r(e,c,{value:null,writable:!0}),r(e,f,{value:t._readableState.endEmitted,writable:!0}),r(e,d,{value:function(t,e){var r=n[h].read();r?(n[l]=null,n[u]=null,n[s]=null,t(p(r,!1))):(n[u]=t,n[s]=e)},writable:!0}),e));return n[l]=null,a(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];null!==e&&(n[l]=null,n[u]=null,n[s]=null,e(t)),n[c]=t;return}var r=n[u];null!==r&&(n[l]=null,n[u]=null,n[s]=null,r(p(void 0,!0))),n[f]=!0}),t.on("readable",b.bind(null,n)),n};t.exports=_},4379:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);for(var e=c.allocUnsafe(t>>>0),n=this.head,r=0;n;)d(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0==(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:l,value:function(t,e){return f(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},7025:function(t){"use strict";function e(t,e){var i=this,u=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return u||s?e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(a,this,t)):o.nextTick(a,this,t)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?i._writableState?i._writableState.errorEmitted?o.nextTick(r,i):(i._writableState.errorEmitted=!0,o.nextTick(n,i,t)):o.nextTick(n,i,t):e?(o.nextTick(r,i),e(t)):o.nextTick(r,i)})),this}function n(t,e){a(t,e),r(t)}function r(t){(!t._writableState||t._writableState.emitClose)&&(!t._readableState||t._readableState.emitClose)&&t.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(t,e){t.emit("error",e)}function u(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:e,undestroy:i,errorOrDestroy:u}},9698:function(t,e,n){"use strict";var r=n(4646).q.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=Array(n),i=0;i0,function(e){t||(t=e),e&&o.forEach(l),a||(o.forEach(l),i(t))})});return n.reduce(d)}t.exports=p},6776:function(t,e,n){"use strict";var r=n(4646).q.ERR_INVALID_OPT_VALUE;function i(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var a=i(e,o,n);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new r(o?n:"highWaterMark",a);return Math.floor(a)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},4678:function(t,e,n){t.exports=n(2781)},3726:function(t,e,n){var r=n(2781);"disable"===o.env.READABLE_STREAM&&r?(t.exports=r.Readable,Object.assign(t.exports,r),t.exports.Stream=r):((e=t.exports=n(1709)).Stream=r||e,e.Readable=e,e.Writable=n(7337),e.Duplex=n(2403),e.Transform=n(1170),e.PassThrough=n(7889),e.finished=n(9698),e.pipeline=n(8442))},3225:function(t,e,n){"use strict";var r=n(4300).Buffer,i=n(3782),o=n(9029),a=Array(16),u=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[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],l=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<>>32-e}function v(t,e,n,r,i,o,a,u){return p(t+(e^n^r)+o+a|0,u)+i|0}function b(t,e,n,r,i,o,a,u){return p(t+(e&n|~e&r)+o+a|0,u)+i|0}function m(t,e,n,r,i,o,a,u){return p(t+((e|~n)^r)+o+a|0,u)+i|0}function y(t,e,n,r,i,o,a,u){return p(t+(e&r|n&~r)+o+a|0,u)+i|0}function g(t,e,n,r,i,o,a,u){return p(t+(e^(n|~r))+o+a|0,u)+i|0}i(h,o),h.prototype._update=function(){for(var t,e,n=a,r=0;r<16;++r)n[r]=this._block.readInt32LE(4*r);for(var i=0|this._a,o=0|this._b,h=0|this._c,_=0|this._d,w=0|this._e,S=0|this._a,E=0|this._b,A=0|this._c,k=0|this._d,x=0|this._e,O=0;O<80;O+=1)O<16?(t=v(i,o,h,_,w,n[u[O]],l[0],c[O]),e=g(S,E,A,k,x,n[s[O]],d[0],f[O])):O<32?(t=b(i,o,h,_,w,n[u[O]],l[1],c[O]),e=y(S,E,A,k,x,n[s[O]],d[1],f[O])):O<48?(t=m(i,o,h,_,w,n[u[O]],l[2],c[O]),e=m(S,E,A,k,x,n[s[O]],d[2],f[O])):O<64?(t=y(i,o,h,_,w,n[u[O]],l[3],c[O]),e=b(S,E,A,k,x,n[s[O]],d[3],f[O])):(t=g(i,o,h,_,w,n[u[O]],l[4],c[O]),e=v(S,E,A,k,x,n[s[O]],d[4],f[O])),i=w,w=_,_=p(h,10),h=o,o=t,S=x,x=k,k=p(A,10),A=E,E=e;var M=this._b+h+k|0;this._b=this._c+_+x|0,this._c=this._d+w+S|0,this._d=this._e+i+E|0,this._e=this._a+o+A|0,this._a=M},h.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=r.alloc?r.alloc(20):new r(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=h},5055:function(t,e,n){var r=n(4300),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return r.SlowBuffer(t)}},6911:function(t,e,n){/*! safe-buffer. MIT License. Feross Aboukhadijeh */var r=n(4300),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return r.SlowBuffer(t)}},2858:function(t,e,n){var r=n(6911).Buffer;function i(t,e){this._block=r.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=r.from(t,e));for(var n=this._block,i=this._blockSize,o=t.length,a=this._len,u=0;u=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw Error("_update must be implemented by subclass")},t.exports=i},4371:function(t,e,n){var r=t.exports=function(t){var e=r[t=t.toLowerCase()];if(!e)throw Error(t+" is not supported (we accept pull requests)");return new e};r.sha=n(4018),r.sha1=n(4179),r.sha224=n(532),r.sha256=n(1843),r.sha384=n(7455),r.sha512=n(9934)},4018:function(t,e,n){var r=n(3782),i=n(2858),o=n(6911).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=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,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(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=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,u=0|this._e,s=0;s<16;++s)e[s]=t.readInt32BE(4*s);for(;s<80;++s)e[s]=e[s-3]^e[s-8]^e[s-14]^e[s-16];for(var d=0;d<80;++d){var h=~~(d/20),p=c(n)+l(h,r,i,o)+u+e[d]+a[h]|0;u=o,o=i,i=f(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=u+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},4179:function(t,e,n){var r=n(3782),i=n(2858),o=n(6911).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=Array(80);function s(){this.init(),this._w=u,i.call(this,64,56)}function c(t){return t<<1|t>>>31}function f(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function d(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(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=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,u=0|this._e,s=0;s<16;++s)e[s]=t.readInt32BE(4*s);for(;s<80;++s)e[s]=c(e[s-3]^e[s-8]^e[s-14]^e[s-16]);for(var h=0;h<80;++h){var p=~~(h/20),v=f(n)+d(p,r,i,o)+u+e[h]+a[p]|0;u=o,o=i,i=l(r),r=n,n=v}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=u+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},532:function(t,e,n){var r=n(3782),i=n(1843),o=n(2858),a=n(6911).Buffer,u=Array(64);function s(){this.init(),this._w=u,o.call(this,64,56)}r(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},1843:function(t,e,n){var r=n(3782),i=n(2858),o=n(6911).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],u=Array(64);function s(){this.init(),this._w=u,i.call(this,64,56)}function c(t,e,n){return n^t&(e^n)}function f(t,e,n){return t&e|n&(t|e)}function l(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function h(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function p(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}r(s,i),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,u=0|this._e,s=0|this._f,v=0|this._g,b=0|this._h,m=0;m<16;++m)e[m]=t.readInt32BE(4*m);for(;m<64;++m)e[m]=p(e[m-2])+e[m-7]+h(e[m-15])+e[m-16]|0;for(var y=0;y<64;++y){var g=b+d(u)+c(u,s,v)+a[y]+e[y]|0,_=l(n)+f(n,r,i)|0;b=v,v=s,s=u,u=o+g|0,o=i,i=r,r=n,n=g+_|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0,this._f=s+this._f|0,this._g=v+this._g|0,this._h=b+this._h|0},s.prototype._hash=function(){var t=o.allocUnsafe(32);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.writeInt32BE(this._h,28),t},t.exports=s},7455:function(t,e,n){var r=n(3782),i=n(9934),o=n(2858),a=n(6911).Buffer,u=Array(160);function s(){this.init(),this._w=u,o.call(this,128,112)}r(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,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+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},9934:function(t,e,n){var r=n(3782),i=n(2858),o=n(6911).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],u=Array(160);function s(){this.init(),this._w=u,i.call(this,128,112)}function c(t,e,n){return n^t&(e^n)}function f(t,e,n){return t&e|n&(t|e)}function l(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function h(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function v(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function b(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function m(t,e){return t>>>0>>0?1:0}r(s,i),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,u=0|this._eh,s=0|this._fh,y=0|this._gh,g=0|this._hh,_=0|this._al,w=0|this._bl,S=0|this._cl,E=0|this._dl,A=0|this._el,k=0|this._fl,x=0|this._gl,O=0|this._hl,M=0;M<32;M+=2)e[M]=t.readInt32BE(4*M),e[M+1]=t.readInt32BE(4*M+4);for(;M<160;M+=2){var T=e[M-30],C=e[M-30+1],R=h(T,C),P=p(C,T),I=v(T=e[M-4],C=e[M-4+1]),L=b(C,T),j=e[M-14],N=e[M-14+1],D=e[M-32],B=e[M-32+1],V=P+N|0,U=R+j+m(V,P)|0;U=(U=U+I+m(V=V+L|0,L)|0)+D+m(V=V+B|0,B)|0,e[M]=U,e[M+1]=V}for(var G=0;G<160;G+=2){U=e[G],V=e[G+1];var F=f(n,r,i),q=f(_,w,S),z=l(n,_),H=l(_,n),W=d(u,A),K=d(A,u),Z=a[G],Y=a[G+1],J=c(u,s,y),$=c(A,k,x),X=O+K|0,Q=g+W+m(X,O)|0;Q=(Q=(Q=Q+J+m(X=X+$|0,$)|0)+Z+m(X=X+Y|0,Y)|0)+U+m(X=X+V|0,V)|0;var tt=H+q|0,te=z+F+m(tt,H)|0;g=y,O=x,y=s,x=k,s=u,k=A,u=o+Q+m(A=E+X|0,E)|0,o=i,E=S,i=r,S=w,r=n,w=_,n=Q+te+m(_=X+tt|0,X)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+S|0,this._dl=this._dl+E|0,this._el=this._el+A|0,this._fl=this._fl+k|0,this._gl=this._gl+x|0,this._hl=this._hl+O|0,this._ah=this._ah+n+m(this._al,_)|0,this._bh=this._bh+r+m(this._bl,w)|0,this._ch=this._ch+i+m(this._cl,S)|0,this._dh=this._dh+o+m(this._dl,E)|0,this._eh=this._eh+u+m(this._el,A)|0,this._fh=this._fh+s+m(this._fl,k)|0,this._gh=this._gh+y+m(this._gl,x)|0,this._hh=this._hh+g+m(this._hl,O)|0},s.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+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),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=s},3704:function(t,e,n){"use strict";var r=n(5055).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;if(!t)return"utf8";for(;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function a(t){var e=o(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw Error("Unknown encoding: "+t);return e||t}function u(t){var e;switch(this.encoding=a(t),this.encoding){case"utf16le":this.text=p,this.end=v,e=4;break;case"utf8":this.fillLast=l,e=4;break;case"base64":this.text=b,this.end=m,e=3;break;default:this.write=y,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function c(t,e,n){var r=e.length-1;if(r=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}function f(t,e,n){if((192&e[0])!=128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((192&e[1])!=128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(192&e[2])!=128)return t.lastNeed=2,"�"}}function l(t){var e=this.lastTotal-this.lastNeed,n=f(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length)}function d(t,e){var n=c(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function p(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function v(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function b(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function m(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function y(t){return t.toString(this.encoding)}function g(t){return t&&t.length?this.write(t):""}e.s=u,u.prototype.write=function(t){var e,n;if(0===t.length)return"";if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n2){var s=r.lastIndexOf("/");if(s!==r.length-1){-1===s?(r="",i=0):i=(r=r.slice(0,s)).length-1-r.lastIndexOf("/"),o=u,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=u,a=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+t.slice(o+1,u):r=t.slice(o+1,u),i=u-o-1;o=u,a=0}else 46===n&&-1!==a?++a:a=-1}return r}function r(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}var i={resolve:function(){for(var t,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(void 0===t&&(t=""),r=t),e(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));return(i=n(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(t){if(e(t),0===t.length)return".";var r=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return(0!==(t=n(t,!r)).length||r||(t="."),t.length>0&&i&&(t+="/"),r)?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var t,n=0;n0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":i.normalize(t)},relative:function(t,n){if(e(t),e(n),t===n||(t=i.resolve(t))===(n=i.resolve(n)))return"";for(var r=1;rc){if(47===n.charCodeAt(u+l))return n.slice(u+l+1);if(0===l)return n.slice(u+l)}else a>c&&(47===t.charCodeAt(r+l)?f=l:0===l&&(f=0));break}var d=t.charCodeAt(r+l);if(d!==n.charCodeAt(u+l))break;47===d&&(f=l)}var h="";for(l=r+f+1;l<=o;++l)(l===o||47===t.charCodeAt(l))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(u+f):(u+=f,47===n.charCodeAt(u)&&++u,n.slice(u))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),r=47===n,i=-1,o=!0,a=t.length-1;a>=1;--a)if(47===(n=t.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":t.slice(0,i)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');e(t);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var u=n.length-1,s=-1;for(r=t.length-1;r>=0;--r){var c=t.charCodeAt(r);if(47===c){if(!a){i=r+1;break}}else -1===s&&(a=!1,s=r+1),u>=0&&(c===n.charCodeAt(u)?-1==--u&&(o=r):(u=-1,o=s))}return i===o?o=s:-1===o&&(o=t.length),t.slice(i,o)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":t.slice(i,o)},extname:function(t){e(t);for(var n=-1,r=0,i=-1,o=!0,a=0,u=t.length-1;u>=0;--u){var s=t.charCodeAt(u);if(47===s){if(!o){r=u+1;break}continue}-1===i&&(o=!1,i=u+1),46===s?-1===n?n=u:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(null===t||"object"!=typeof t)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return r("/",t)},parse:function(t){e(t);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var i=t.charCodeAt(0),o=47===i;o?(r.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))){if(!c){u=f+1;break}continue}-1===s&&(c=!1,s=f+1),46===i?-1===a?a=f:1!==l&&(l=1):-1!==a&&(l=-1)}return -1===a||-1===s||0===l||1===l&&a===s-1&&a===u+1?-1!==s&&(0===u&&o?r.base=r.name=t.slice(1,s):r.base=r.name=t.slice(u,s)):(0===u&&o?(r.name=t.slice(1,a),r.base=t.slice(1,s)):(r.name=t.slice(u,a),r.base=t.slice(u,s)),r.ext=t.slice(a,s)),u>0?r.dir=t.slice(0,u-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,t.exports=i}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={exports:{}},a=!0;try{n[t](o,o.exports,i),a=!1}finally{a&&delete r[t]}return o.exports}i.ab=e+"/";var o=i(114);t.exports=o}()},79681:function(t,e,n){var r="/",i=n(34155);!function(){var e={782:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},646:function(t){"use strict";let e={};function n(t,n,r){function i(t,e,r){return"string"==typeof n?n:n(t,e,r)}r||(r=Error);class o extends r{constructor(t,e,n){super(i(t,e,n))}}o.prototype.name=r.name,o.prototype.code=t,e[t]=o}function r(t,e){if(!Array.isArray(t))return`of ${e} ${String(t)}`;{let n=t.length;return(t=t.map(t=>String(t)),n>2)?`one of ${e} ${t.slice(0,n-1).join(", ")}, or `+t[n-1]:2===n?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}}function i(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function o(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function a(t,e,n){return"number"!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}n("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(t,e,n){let u,s;if("string"==typeof e&&i(e,"not ")?(u="must not be",e=e.replace(/^not /,"")):u="must be",o(t," argument"))s=`The ${t} ${u} ${r(e,"type")}`;else{let n=a(t,".")?"property":"argument";s=`The "${t}" ${n} ${u} ${r(e,"type")}`}return s+`. Received type ${typeof n}`},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},403:function(t,e,n){"use strict";var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=f;var o=n(709),a=n(337);n(782)(f,o);for(var u=r(a.prototype),s=0;s0){if("string"==typeof e||u.objectMode||Object.getPrototypeOf(e)===d.prototype||(e=p(e)),r)u.endEmitted?k(t,new A):R(t,u,e,!0);else if(u.ended)k(t,new S);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!n?(e=u.decoder.write(e),u.objectMode||0!==e.length?R(t,u,e,!1):V(t,u)):R(t,u,e,!1)}}else r||(u.reading=!1,V(t,u));return!u.ended&&(u.length=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function j(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=L(t)),t<=e.length)?t:e.ended?e.length:(e.needReadable=!0,0)}function N(t,e){if(a("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?D(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,B(t)))}}function D(t){var e=t._readableState;a("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(a("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(B,t))}function B(t){var e=t._readableState;a("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,W(t)}function V(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(U,t,e))}function U(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function q(t){a("readable nexttick read 0"),t.read(0)}function z(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(H,t,e))}function H(t,e){a("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),W(t),e.flowing&&!e.reading&&t.read(0)}function W(t){var e=t._readableState;for(a("flow",e.flowing);e.flowing&&null!==t.read(););}function K(t,e){var n;return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n)}function Z(t){var e=t._readableState;a("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(Y,e,t))}function Y(t,e){if(a("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function J(t,e){for(var n=0,r=t.length;n=n.highWaterMark:n.length>0)||n.ended))return a("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?Z(this):D(this),null;if(0===(t=j(t,n))&&n.ended)return 0===n.length&&Z(this),null;var i=n.needReadable;return a("need readable",i),(0===n.length||n.length-t0?K(t,n):null)?(n.needReadable=n.length<=n.highWaterMark,t=0):(n.length-=t,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),r!==t&&n.ended&&Z(this)),null!==e&&this.emit("data",e),e},T.prototype._read=function(t){k(this,new E("_read()"))},T.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,a("pipe count=%d opts=%j",r.pipesCount,e);var o=e&&!1===e.end||t===i.stdout||t===i.stderr?m:s;function u(t,e){a("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function s(){a("onend"),t.end()}r.endEmitted?i.nextTick(o):n.once("end",o),t.on("unpipe",u);var c=G(n);t.on("drain",c);var l=!1;function d(){a("cleanup"),t.removeListener("close",v),t.removeListener("finish",b),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",u),n.removeListener("end",s),n.removeListener("end",m),n.removeListener("data",h),l=!0,r.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&c()}function h(e){a("ondata");var i=t.write(e);a("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==J(r.pipes,t))&&!l&&(a("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function p(e){a("onerror",e),m(),t.removeListener("error",p),0===f(t,"error")&&k(t,e)}function v(){t.removeListener("finish",b),m()}function b(){a("onfinish"),t.removeListener("close",v),m()}function m(){a("unpipe"),n.unpipe(t)}return n.on("data",h),O(t,"error",p),t.once("close",v),t.once("finish",b),t.emit("pipe",n),r.flowing||(a("pipe resume"),n.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"!==t||r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,a("on readable",r.length,r.reading),r.length?D(this):r.reading||i.nextTick(q,this)),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var n=l.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(F,this),n},T.prototype.removeAllListeners=function(t){var e=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===t||void 0===t)&&i.nextTick(F,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(a("resume"),t.flowing=!t.readableListening,z(this,t)),t.paused=!1,this},T.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",function(){if(a("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){a("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!=i)&&(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))}),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o-1))throw new A(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(t,e,n){n(new y("_write()"))},M.prototype._writev=null,M.prototype.end=function(t,e,n){var r=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||z(this,r,n),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),M.prototype.destroy=p.destroy,M.prototype._undestroy=p.undestroy,M.prototype._destroy=function(t,e){e(t)}},871:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o,a=n(698),u=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(t,e){return{value:t,done:e}}function v(t){var e=t[u];if(null!==e){var n=t[h].read();null!==n&&(t[l]=null,t[u]=null,t[s]=null,e(p(n,!1)))}}function b(t){i.nextTick(v,t)}function m(t,e){return function(n,r){t.then(function(){if(e[f]){n(p(void 0,!0));return}e[d](n,r)},r)}}var y=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((r(o={get stream(){return this[h]},next:function(){var t,e=this,n=this[c];if(null!==n)return Promise.reject(n);if(this[f])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(t,n){i.nextTick(function(){e[c]?n(e[c]):t(p(void 0,!0))})});var r=this[l];if(r)t=new Promise(m(r,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));t=new Promise(this[d])}return this[l]=t,t}},Symbol.asyncIterator,function(){return this}),r(o,"return",function(){var t=this;return new Promise(function(e,n){t[h].destroy(null,function(t){if(t){n(t);return}e(p(void 0,!0))})})}),o),y),_=function(t){var e,n=Object.create(g,(r(e={},h,{value:t,writable:!0}),r(e,u,{value:null,writable:!0}),r(e,s,{value:null,writable:!0}),r(e,c,{value:null,writable:!0}),r(e,f,{value:t._readableState.endEmitted,writable:!0}),r(e,d,{value:function(t,e){var r=n[h].read();r?(n[l]=null,n[u]=null,n[s]=null,t(p(r,!1))):(n[u]=t,n[s]=e)},writable:!0}),e));return n[l]=null,a(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];null!==e&&(n[l]=null,n[u]=null,n[s]=null,e(t)),n[c]=t;return}var r=n[u];null!==r&&(n[l]=null,n[u]=null,n[s]=null,r(p(void 0,!0))),n[f]=!0}),t.on("readable",b.bind(null,n)),n};t.exports=_},379:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);for(var e=c.allocUnsafe(t>>>0),n=this.head,r=0;n;)d(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0==(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:l,value:function(t,e){return f(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},25:function(t){"use strict";function e(t,e){var o=this,u=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return u||s?e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(a,this,t)):i.nextTick(a,this,t)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?o._writableState?o._writableState.errorEmitted?i.nextTick(r,o):(o._writableState.errorEmitted=!0,i.nextTick(n,o,t)):i.nextTick(n,o,t):e?(i.nextTick(r,o),e(t)):i.nextTick(r,o)})),this}function n(t,e){a(t,e),r(t)}function r(t){(!t._writableState||t._writableState.emitClose)&&(!t._readableState||t._readableState.emitClose)&&t.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(t,e){t.emit("error",e)}function u(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:e,undestroy:o,errorOrDestroy:u}},698:function(t,e,n){"use strict";var r=n(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=Array(n),i=0;i0,function(e){t||(t=e),e&&o.forEach(l),a||(o.forEach(l),i(t))})});return n.reduce(d)}t.exports=p},776:function(t,e,n){"use strict";var r=n(646).q.ERR_INVALID_OPT_VALUE;function i(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var a=i(e,o,n);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new r(o?n:"highWaterMark",a);return Math.floor(a)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},678:function(t,e,n){t.exports=n(781)},55:function(t,e,n){var r=n(300),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return r.SlowBuffer(t)}},173:function(t,e,n){t.exports=i;var r=n(361).EventEmitter;function i(){r.call(this)}n(782)(i,r),i.Readable=n(709),i.Writable=n(337),i.Duplex=n(403),i.Transform=n(170),i.PassThrough=n(889),i.finished=n(698),i.pipeline=n(442),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",u),n.on("close",s));var a=!1;function u(){a||(a=!0,t.end())}function s(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(f(),0===r.listenerCount(this,"error"))throw t}function f(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",u),n.removeListener("close",s),n.removeListener("error",c),t.removeListener("error",c),n.removeListener("end",f),n.removeListener("close",f),t.removeListener("close",f)}return n.on("error",c),t.on("error",c),n.on("end",f),n.on("close",f),t.on("close",f),t.emit("pipe",n),t}},704:function(t,e,n){"use strict";var r=n(55).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;if(!t)return"utf8";for(;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function a(t){var e=o(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw Error("Unknown encoding: "+t);return e||t}function u(t){var e;switch(this.encoding=a(t),this.encoding){case"utf16le":this.text=p,this.end=v,e=4;break;case"utf8":this.fillLast=l,e=4;break;case"base64":this.text=b,this.end=m,e=3;break;default:this.write=y,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function c(t,e,n){var r=e.length-1;if(r=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}function f(t,e,n){if((192&e[0])!=128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((192&e[1])!=128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(192&e[2])!=128)return t.lastNeed=2,"�"}}function l(t){var e=this.lastTotal-this.lastNeed,n=f(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length)}function d(t,e){var n=c(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function p(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function v(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function b(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function m(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function y(t){return t.toString(this.encoding)}function g(t){return t&&t.length?this.write(t):""}e.s=u,u.prototype.write=function(t){var e,n;if(0===t.length)return"";if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n1)for(var n=1;n4294967295||s(e)!==e)throw new u("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in t&&a){var f=a(t,"length");f&&!f.configurable&&(r=!1),f&&!f.writable&&(c=!1)}return(r||c||!n)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},32553:function(t,e,n){"use strict";var r=n(89509).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;if(!t)return"utf8";for(;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function a(t){var e=o(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw Error("Unknown encoding: "+t);return e||t}function u(t){var e;switch(this.encoding=a(t),this.encoding){case"utf16le":this.text=p,this.end=v,e=4;break;case"utf8":this.fillLast=l,e=4;break;case"base64":this.text=b,this.end=m,e=3;break;default:this.write=y,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function c(t,e,n){var r=e.length-1;if(r=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}function f(t,e,n){if((192&e[0])!=128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((192&e[1])!=128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(192&e[2])!=128)return t.lastNeed=2,"�"}}function l(t){var e=this.lastTotal-this.lastNeed,n=f(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length)}function d(t,e){var n=c(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function p(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function v(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function b(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function m(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function y(t){return t.toString(this.encoding)}function g(t){return t&&t.length?this.write(t):""}e.StringDecoder=u,u.prototype.write=function(t){var e,n;if(0===t.length)return"";if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),_(n)?r.showHidden=n:n&&e._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),h(r,t,r.depth)}function f(t,e){var n=c.styles[e];return n?"\x1b["+c.colors[n][0]+"m"+t+"\x1b["+c.colors[n][1]+"m":t}function l(t,e){return t}function d(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function h(t,n,r){if(t.customInspect&&n&&R(n.inspect)&&n.inspect!==e.inspect&&!(n.constructor&&n.constructor.prototype===n)){var i,o=n.inspect(r,t);return A(o)||(o=h(t,o,r)),o}var a=p(t,n);if(a)return a;var u=Object.keys(n),s=d(u);if(t.showHidden&&(u=Object.getOwnPropertyNames(n)),C(n)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return v(n);if(0===u.length){if(R(n)){var c=n.name?": "+n.name:"";return t.stylize("[Function"+c+"]","special")}if(O(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return t.stylize(Date.prototype.toString.call(n),"date");if(C(n))return v(n)}var f="",l=!1,_=["{","}"];return(g(n)&&(l=!0,_=["[","]"]),R(n)&&(f=" [Function"+(n.name?": "+n.name:"")+"]"),O(n)&&(f=" "+RegExp.prototype.toString.call(n)),T(n)&&(f=" "+Date.prototype.toUTCString.call(n)),C(n)&&(f=" "+v(n)),0!==u.length||l&&0!=n.length)?r<0?O(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),i=l?b(t,n,r,s,u):u.map(function(e){return m(t,n,r,s,e,l)}),t.seen.pop(),y(i,f,_)):_[0]+f+_[1]}function p(t,e){if(x(e))return t.stylize("undefined","undefined");if(A(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return E(e)?t.stylize(""+e,"number"):_(e)?t.stylize(""+e,"boolean"):w(e)?t.stylize("null","null"):void 0}function v(t){return"["+Error.prototype.toString.call(t)+"]"}function b(t,e,n,r,i){for(var o=[],a=0,u=e.length;at.seen.indexOf(s.value)?(u=w(n)?h(t,s.value,null):h(t,s.value,n-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map(function(t){return" "+t}).join("\n").slice(2):"\n"+u.split("\n").map(function(t){return" "+t}).join("\n")):u=t.stylize("[Circular]","special")),x(a)){if(o&&i.match(/^\d+$/))return u;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function y(t,e,n){var r=0;return t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function g(t){return Array.isArray(t)}function _(t){return"boolean"==typeof t}function w(t){return null===t}function S(t){return null==t}function E(t){return"number"==typeof t}function A(t){return"string"==typeof t}function k(t){return"symbol"==typeof t}function x(t){return void 0===t}function O(t){return M(t)&&"[object RegExp]"===I(t)}function M(t){return"object"==typeof t&&null!==t}function T(t){return M(t)&&"[object Date]"===I(t)}function C(t){return M(t)&&("[object Error]"===I(t)||t instanceof Error)}function R(t){return"function"==typeof t}function P(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function I(t){return Object.prototype.toString.call(t)}function L(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(!a[t=t.toUpperCase()]){if(u.test(t)){var n=r.pid;a[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else a[t]=function(){}}return a[t]},e.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=n(55955),e.isArray=g,e.isBoolean=_,e.isNull=w,e.isNullOrUndefined=S,e.isNumber=E,e.isString=A,e.isSymbol=k,e.isUndefined=x,e.isRegExp=O,e.types.isRegExp=O,e.isObject=M,e.isDate=T,e.types.isDate=T,e.isError=C,e.types.isNativeError=C,e.isFunction=R,e.isPrimitive=P,e.isBuffer=n(20384);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var t=new Date,e=[L(t.getHours()),L(t.getMinutes()),L(t.getSeconds())].join(":");return[t.getDate(),j[t.getMonth()],e].join(" ")}function D(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",N(),e.format.apply(e,arguments))},e.inherits=n(35717),e._extend=function(t,e){if(!e||!M(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function V(t,e){if(!t){var n=Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}function U(t){if("function"!=typeof t)throw TypeError('The "original" argument must be of type Function');function e(){for(var e=[],n=0;n-1?e:"Object"===e&&m(t)}return u?b(t):null}},63083:function(t,e,n){"use strict";var r=n(89908),i="undefined"==typeof globalThis?n.g:globalThis;t.exports=function(){for(var t=[],e=0;e256){for(r=Array(e=256);e--;)r[e]=256*Math.random()|0;e=i=0}for(;e<16;e++)t=r[i+e],6==e?n+=o[15&t|64]:8==e?n+=o[63&t|128]:n+=o[t],1&e&&e>1&&e<11&&(n+="-");return i++,n}},96475:function(t,e,n){"use strict";function r(t,e,n){e.split&&(e=e.split("."));for(var r,i,o=0,a=e.length,u=t;ot.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}function i(t,e){if(null==t)return{};var n,i,o=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,{Z:function(){return i}})},72179:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(86831);function i(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e){if(e&&("object"===(0,r.Z)(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return i(t)}},90607:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}n.d(e,{Z:function(){return r}})},17674:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(14666);function i(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],s=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}var o=n(2937),a=n(14882);function u(t,e){return(0,r.Z)(t)||i(t,e)||(0,o.Z)(t,e)||(0,a.Z)()}},90116:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(52587);function i(t){if(Array.isArray(t))return(0,r.Z)(t)}var o=n(28811),a=n(2937);function u(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t){return i(t)||(0,o.Z)(t)||(0,a.Z)(t)||u()}},96714:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(86831);function i(t,e){if("object"!==(0,r.Z)(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==(0,r.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function o(t){var e=i(t,"string");return"symbol"===(0,r.Z)(e)?e:String(e)}},86831:function(t,e,n){"use strict";function r(t){return(r="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)}n.d(e,{Z:function(){return r}})},2937:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(52587);function i(t,e){if(t){if("string"==typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,r.Z)(t,e)}}},97582:function(t,e,n){"use strict";n.d(e,{CR:function(){return f},Jh:function(){return s},XA:function(){return c},ZT:function(){return i},_T:function(){return a},ev:function(){return l},mG:function(){return u},pi:function(){return o}});var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function u(t,e,n,r){function i(t){return t instanceof n?t:new n(function(e){e(t)})}return new(n||(n=Promise))(function(n,o){function a(t){try{s(r.next(t))}catch(t){o(t)}}function u(t){try{s(r.throw(t))}catch(t){o(t)}}function s(t){t.done?n(t.value):i(t.value).then(a,u)}s((r=r.apply(t,e||[])).next())})}function s(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(e){return s([t,e])}}function s(u){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i