(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23485,n=>{"use strict";var i=n.i(43476),o=n.i(71645);let a=({children:n,animation:a="fade-in",mode:s="once",className:f=""})=>{let u=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let n=u.current;if(!n)return;if("u"{n.forEach(n=>{n.isIntersecting?(n.target.classList.add("show"),"once"===s&&i.unobserve(n.target)):"always"===s&&n.target.classList.remove("show")})},{threshold:.15});return i.observe(n),()=>i.disconnect()},[s]),(0,i.jsx)("div",{ref:u,className:`animate ${a} ${s} ${f}`.trim(),children:n})};n.s(["AnimateOnScroll",0,a])},56438,88674,95370,47459,n=>{"use strict";var i=n.i(43476);function o(n){if(n)return n.startsWith("//")?`https:${n}`:n}function a(n){return!!n&&"object"==typeof n&&"fields"in n}function s(n){return n?a(n)?n.fields:n:null}function f(n){return n&&a(n)?n.fields:null}n.s(["normalizeUrl",0,o,"resolveBadge",0,s,"resolveHeadingFields",0,f],88674);var u=n.i(6510);function c(n){if(!n||"object"!=typeof n)return!1;let i="string"==typeof n.dynamic_url&&n.dynamic_url.length>0,o="string"==typeof n.generic_url&&n.generic_url.length>0;return i||o}function l(n){return n?.dynamic_url||n?.generic_url||void 0}function h(n){return{width:n?.width,height:n?.height}}function d(n,i){if(c(n)){let i=l(n);if(i)return i}let a=o(i??"")||i||"";return a?(0,u.secureAssetUrlWithParams)(a):""}function p(n){let i=l(n);if(!i)return null;let{width:o,height:a}=h(n);return{src:i,width:o||1200,height:a||600}}function b(n){if(!n?.fields?.file?.url)return null;let i=o(n.fields.file.url)||n.fields.file.url;return{src:(0,u.secureAssetUrlWithParams)(i),width:n.fields.file.details?.image?.width||1200,height:n.fields.file.details?.image?.height||600}}function y(n,i){if(c(n)){let i=p(n);if(i)return i}return b(i)}function m(n){return Array.isArray(n)?n:n?[n]:[]}n.s(["frontifyDimensions",0,h,"frontifyUrl",0,l,"isFrontifyAsset",0,c,"resolveAssetSrc",0,d,"resolveImage",0,y,"toFrontifyArray",0,m],95370);var g=n.i(93346);function v(n){let i=n?.fields;return d(m(i?.frontifyImages)[0],i?.images?.[0]?.fields?.file?.url)||null}let w=({cta:n,forceInline:o=!1,onClick:a})=>n&&0!==n.length?(n.every(n=>n.fields?.type==="Breadcrumb"),(0,i.jsx)(i.Fragment,{children:n.map((n,s)=>{if(!n?.fields)return null;let{link:f="#",type:u="Button filled",openInNewTab:c=!1,ariaLabel:l,dataBiEcn:h,dataBiEhn:d,dataBiHn:p,dataModal:b="",text:y,classes:m="",icon:w,download:x}=n.fields,_="CTA with Icon"===u||!!w,E=!_&&"Button filled"===u,S="Button outline"===u,M="CTA with Chevron"===u,A="Inline Link"===u||o,R=m;E?R=`inline-block ${g.default.button.base} ${g.default.button.color.secondary} ${g.default.button.size.md} ${m}`:S?R=`${g.default.button.base} ${g.default.button.outline.secondary} ${g.default.button.size.md} ${m}`:M&&(R="group inline-flex items-center gap-x-1.5 text-sm font-semibold leading-snug text-ms-blue no-underline lg:text-base");let I=y;if(_){let n=v(w);I=n?(0,i.jsx)("img",{src:n,alt:"",className:"w-5 h-5","aria-hidden":"true"}):(0,i.jsx)("span",{className:"w-5 h-5",children:(y||"?").charAt(0)})}else M?I=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"break-keep no-underline decoration-ms-blue underline-offset-2 transition-[text-decoration-color] duration-300 ease-out group-hover:underline",children:y}),(0,i.jsx)("span",{className:"shrink-0 text-3xl font-semibold leading-none text-ms-blue transition-transform duration-300 ease-out group-hover:translate-x-1 mb-1","aria-hidden":"true",children:"›"})]}):A&&(I=(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("span",{children:y})}));return(0,i.jsx)("a",{href:f,target:c?"_blank":"_self","aria-label":l||y,"data-bi-ecn":h||y,"data-bi-ehn":d||y,"data-bi-hn":p||y,"data-modal":b,rel:c?"noopener noreferrer":void 0,className:R||void 0,onClick:a,...x?{"data-download":"true"}:{},children:I},s)})})):null;n.s(["default",0,w],56438);var x=i,_=n.i(57688);let E=n=>!!n&&"videos"in n,S=({fields:n})=>{let i,o,a,s;if(!n)return null;let f="",u="",c="No Round",l="";if(E(n)){let o=m(n.frontifyImages),s=n.posterImage;i=o[0],a=s,f=s?.fields?.description||s?.fields?.title||"",c=n.style||"No Round"}else{let{images:h=[],altText:d="",caption:p="",style:b="No Round",inlineStyles:y=""}=n,g=m(n.frontifyImages);i=g[0],o=g[1]??g[0],a=h[0],s=h[1]??a,f=d,u=p,c=b,l=y}let h=y(i,a),d=y(o,s)??h;if(!h)return null;let p="media-image",b=c.startsWith("More Rounded")?"rounded-2xl":c.startsWith("Rounded")?"rounded-lg":"",g=!!d&&d.src!==h.src;return(0,x.jsxs)("figure",{className:`h-full overflow-hidden ${p} ${b}`,style:l?JSON.parse(l):{margin:0},children:[g&&d&&(0,x.jsx)(_.default,{src:d.src,alt:f||"Image",width:d.width,height:d.height,loading:"lazy",unoptimized:!0,className:"w-full h-full object-cover ms-block md-ms-hidden"}),(0,x.jsx)(_.default,{src:h.src,alt:f||"Image",width:h.width,height:h.height,loading:"lazy",unoptimized:!0,className:`w-full h-full object-cover ${g?"ms-hidden md-ms-block":"block"}`}),u&&(0,x.jsx)("figcaption",{className:"text-sm text-ms-600 mt-1",children:u})]})};n.s(["default",0,S],47459)},96463,n=>{"use strict";var i=n.i(71645);let o=n.i(93346).default.text.heading,a=({fields:n,className:a})=>{let{level:s="2",text:f="",visualLevel:u}=n;if(!f)return null;let c=s?`h${s}`:"h2",l=u?o[`h${u}`]:o[c];return i.default.createElement(c,{className:a?`${l} ${a}`:l},f)};n.s(["default",0,a])},27347,n=>{"use strict";var i=n.i(43476),o=n.i(71645);let a=null;function s(){return a||(a=new Promise((n,i)=>{if(window.ump)return void n();let o=document.createElement("script");o.type="module",o.src="https://www.microsoft.com/videoplayer/ump.mjs",o.onload=()=>{let o=0,s=setInterval(()=>{o++,window.ump?(clearInterval(s),n()):o>=20&&(clearInterval(s),a=null,i(Error("UMP player: window.ump not available after script load")))},200)},o.onerror=()=>{a=null,i(Error("Failed to load UMP player script"))},document.head.appendChild(o)}))}function f({videoUrl:n,posterUrl:a,title:u="",description:c="",ariaLabel:l="",ttmlUrl:h="",transcriptUrl:d="",isAutoPlay:p=!1,componentName:b="umpvideo",borderRadius:y=""}){let m=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let i=m.current;if(!i)return;let o=!1;return s().then(()=>{if(o||!i)return;let s=window.ump;if(!s)return;i.innerHTML="";let f=document.createElement("universal-media-player");i.appendChild(f);let l=document.documentElement.lang?.toLowerCase()||"en-us";s(f,{partnerName:u,autoplay:p,title:u,description:c,language:l,reporting:!0,poster:a,sources:[{src:n,type:"video/mp4",quality:"HQ"}],ccFiles:h?[{url:h,locale:l,ccType:"TTML"}]:[],downloadableFiles:d?[{url:d,locale:l,mediaType:"transcript"}]:[]});let b=()=>{let n=f.shadowRoot;if(!n)return!1;let i=document.createElement("style");return i.textContent="video { object-fit: cover !important; object-position: top !important; } img { object-position: top !important; } :host { background: transparent !important; } .f-video-player { background: transparent !important; }",n.appendChild(i),!0};if(!b()){let n=0,i=setInterval(()=>{n++,(b()||n>=20)&&clearInterval(i)},100)}}).catch(n=>{console.error("UMP player failed to load:",n)}),()=>{o=!0,i&&(i.innerHTML="")}},[n,a,u,c,h,d,p]),(0,i.jsx)("figure",{className:`w-full bg-transparent overflow-hidden ${y}`,children:(0,i.jsx)("div",{ref:m,className:"ump-player-video bg-transparent","data-componentname":b,"data-video-title":u,"data-video-description":c,"data-video-arialabel":l,"data-video-poster":a||"","data-video-src":n,"data-video-ttml":h,"data-video-transcript":d,"data-auto-play":p?"true":""})})}n.s(["default",0,f])},21235,95877,n=>{"use strict";n.s(["default",()=>tg],21235),n.s(["RichTextRenderer",()=>tb,"default",()=>ty],95877);var i,o,a,s=n.i(43476),f=n.i(71645),u=n.i(56438),c=n.i(96463),l=s,h=f,d=((i={}).DOCUMENT="document",i.PARAGRAPH="paragraph",i.HEADING_1="heading-1",i.HEADING_2="heading-2",i.HEADING_3="heading-3",i.HEADING_4="heading-4",i.HEADING_5="heading-5",i.HEADING_6="heading-6",i.OL_LIST="ordered-list",i.UL_LIST="unordered-list",i.LIST_ITEM="list-item",i.HR="hr",i.QUOTE="blockquote",i.EMBEDDED_ENTRY="embedded-entry-block",i.EMBEDDED_ASSET="embedded-asset-block",i.EMBEDDED_RESOURCE="embedded-resource-block",i.TABLE="table",i.TABLE_ROW="table-row",i.TABLE_CELL="table-cell",i.TABLE_HEADER_CELL="table-header-cell",i),p=((o={}).ASSET_HYPERLINK="asset-hyperlink",o.EMBEDDED_ENTRY="embedded-entry-inline",o.EMBEDDED_RESOURCE="embedded-resource-inline",o.ENTRY_HYPERLINK="entry-hyperlink",o.HYPERLINK="hyperlink",o.RESOURCE_HYPERLINK="resource-hyperlink",o);function b(n,i){for(let o of Object.keys(n))if(i===n[o])return!0;return!1}function y(n){return b(p,n.nodeType)}function m(n){return b(d,n.nodeType)}function g(n){return"text"===n.nodeType}function v(n){if(n.nodeType!==d.PARAGRAPH||1!==n.content.length)return!1;let i=n.content[0];return"text"===i.nodeType&&""===i.value}function w(n){return null!=n&&"object"==typeof n&&"content"in n&&Array.isArray(n.content)}let x=2;function _(n){return!w(n)||n.content.length({details:`The type of "${i}" is incorrect, expected type: ${o}`,name:"type",path:n.toArray(),type:o,value:a}),j=({min:n,value:i,path:o})=>({name:"size",min:n,path:o.toArray(),details:`Size must be at least ${n}`,value:i}),T=({max:n,value:i,path:o})=>({name:"size",max:n,path:o.toArray(),details:`Size must be at most ${n}`,value:i}),O=({expected:n,value:i,path:o})=>({details:"Value must be one of expected values",name:"in",expected:[...n].sort(),path:o.toArray(),value:i}),N=({property:n,path:i})=>({details:`The property "${n}" is not expected`,name:"unexpected",path:i.toArray()}),P=({property:n,path:i})=>({details:`The property "${n}" is required here`,name:"required",path:i.toArray()});class B{obj;path;_errors=[];constructor(n,i){this.obj=n,this.path=i}catch=(...n)=>{this._errors.push(...n)};get errors(){let n=n=>JSON.stringify({details:n.details,path:n.path});return this._errors.filter((i,o)=>this._errors.findIndex(o=>n(i)===n(o))===o)}exists=n=>n in this.obj||(this.catch(P({property:n,path:this.path.of(n)})),!1);object=n=>{let i=n?this.obj[n]:this.obj;if(n&&!this.exists(n))return!1;if("object"==typeof i&&!Array.isArray(i)&&null!==i)return!0;let o=n?this.path.of(n):this.path,a=n??this.path.last()??"value";return this.catch(k({typeName:"Object",property:a,path:o,value:i})),!1};string=n=>{let i=this.obj[n];return(!n||!!this.exists(n))&&("string"==typeof i||(this.catch(k({typeName:"String",property:n,path:this.path.of(n),value:i})),!1))};number=(n,i)=>{let o=this.obj[n];return!!i&&!(n in this.obj)||!!this.exists(n)&&(!("number"!=typeof o||Number.isNaN(o))||(this.catch(k({typeName:"Number",property:n,path:this.path.of(n),value:o})),!1))};array=n=>{let i=this.obj[n];return(!n||!!this.exists(n))&&(!!Array.isArray(i)||(this.catch(k({typeName:"Array",property:n,path:this.path.of(n),value:i})),!1))};enum=(n,i)=>{let o=this.obj[n];return!!("string"==typeof o&&i.includes(o))||(this.catch(O({expected:i,value:o,path:this.path.of(n)})),!1)};empty=n=>{if(!this.array(n))return!1;let i=this.obj[n];return 0===i.length||(this.catch(T({max:0,value:i,path:this.path.of(n)})),!1)};minLength=(n,i)=>{if(!this.array(n))return!1;let o=this.obj[n];return o.length>=i||(this.catch(j({min:i,value:o,path:this.path.of(n)})),!1)};noAdditionalProperties=n=>{let i=Object.keys(this.obj).sort().filter(i=>!n.includes(i));return i.forEach(n=>this.catch(N({property:n,path:this.path.of(n)}))),0===i.length};each=(n,i)=>{if(!this.array(n))return;let o=this.obj[n],a=!1;o.forEach((o,s)=>{if(a)return;let f=i(o,this.path.of(n).of(s));f.length>0&&(a=!0),this.catch(...f)})}}let L=[];class C{contentRule;validateData;constructor(n,i){this.contentRule=n,this.validateData=i}assert(n,i){let o=new B(n,i);if(!o.object())return o.errors;o.noAdditionalProperties(["nodeType","data","content"]);let{nodeTypes:a,min:s=0}=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(n,i);if(0===a.length&&s>0)throw Error(`Invalid content rule. Cannot have enforce a 'min' of ${s} with no nodeTypes`);if(o.minLength("content",s),0===a.length?o.empty("content"):o.each("content",(n,i)=>{let o=new B(n,i);return o.object()&&o.enum("nodeType",a),o.errors}),o.object("data")){let a=this.validateData?.(n.data,i.of("data"))??[];o.catch(...a)}return o.errors}}class D extends C{linkType;type;constructor(n,i){super(i,(n,i)=>this.assertLink(n,i)),this.linkType=n,this.type=this.linkType.startsWith("Contentful:")?"ResourceLink":"Link"}assertLink=(n,i)=>{let o=new B(n,i);if(o.object("target")){let a=new B(n.target.sys,i.of("target").of("sys"));a.object()&&(a.enum("type",[this.type]),a.enum("linkType",[this.linkType]),"Link"===this.type?(a.string("id"),a.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===this.type&&(a.string("urn"),a.noAdditionalProperties(["type","linkType","urn"]))),o.catch(...a.errors)}return o.noAdditionalProperties(["target"]),o.errors}}class U extends C{constructor(){super(["text"],(n,i)=>this.assertLink(n,i))}assertLink=(n,i)=>{let o=new B(n,i);return o.string("uri"),o.noAdditionalProperties(["uri"]),o.errors}}let $=(n,i)=>new C(n,i),F=(n,i)=>new D(n,i);$([...Object.values(p),"text"].sort()),$([d.LIST_ITEM]),F("Entry",L),$(()=>({nodeTypes:[d.PARAGRAPH],min:1}),(n,i)=>{let o=new B(n,i);return o.noAdditionalProperties(["colspan","rowspan"]),o.number("colspan",!0),o.number("rowspan",!0),o.errors}),d.DOCUMENT,$(M),d.PARAGRAPH,d.HEADING_1,d.HEADING_2,d.HEADING_3,d.HEADING_4,d.HEADING_5,d.HEADING_6,d.QUOTE,$(R[d.QUOTE]),d.EMBEDDED_ENTRY,d.EMBEDDED_ASSET,F("Asset",L),d.EMBEDDED_RESOURCE,F("Contentful:Entry",L),d.HR,$(L),d.OL_LIST,d.UL_LIST,d.LIST_ITEM,$([...A].sort()),d.TABLE,$(()=>({nodeTypes:[d.TABLE_ROW],min:1})),d.TABLE_ROW,$(()=>({nodeTypes:[d.TABLE_CELL,d.TABLE_HEADER_CELL],min:1})),d.TABLE_CELL,d.TABLE_HEADER_CELL,p.HYPERLINK,new U,p.EMBEDDED_ENTRY,p.EMBEDDED_RESOURCE,F("Contentful:Entry",L),p.ENTRY_HYPERLINK,F("Entry",["text"]),p.ASSET_HYPERLINK,F("Asset",["text"]),p.RESOURCE_HYPERLINK,F("Contentful:Entry",["text"]);var z=E;function q(n,i){return(0,h.isValidElement)(n)&&null===n.key?(0,h.cloneElement)(n,{key:i}):n}function H(n,i){return n.map((n,o)=>q(W(n,i),o))}function W(n,i){let{renderNode:o,renderMark:a,renderText:s,preserveWhitespace:f}=i;if(z.isText(n)){let i=s?s(n.value):n.value;if(f&&!s){let n=(i=i.replace(/ {2,}/g,n=>" ".repeat(n.length))).split("\n"),o=[];n.forEach((i,a)=>{o.push(i),a!==n.length-1&&o.push(h.default.createElement("br",null))}),i=o}return n.marks.reduce((n,i)=>a[i.type]?a[i.type](n):n,i)}{let a=H(n.content,i);return n.nodeType&&o[n.nodeType]?o[n.nodeType](n,a):h.default.createElement(h.default.Fragment,null,a)}}let K={[d.DOCUMENT]:(n,i)=>i,[d.PARAGRAPH]:(n,i)=>h.default.createElement("p",null,i),[d.HEADING_1]:(n,i)=>h.default.createElement("h1",null,i),[d.HEADING_2]:(n,i)=>h.default.createElement("h2",null,i),[d.HEADING_3]:(n,i)=>h.default.createElement("h3",null,i),[d.HEADING_4]:(n,i)=>h.default.createElement("h4",null,i),[d.HEADING_5]:(n,i)=>h.default.createElement("h5",null,i),[d.HEADING_6]:(n,i)=>h.default.createElement("h6",null,i),[d.EMBEDDED_ENTRY]:(n,i)=>h.default.createElement("div",null,i),[d.EMBEDDED_RESOURCE]:(n,i)=>h.default.createElement("div",null,i),[d.UL_LIST]:(n,i)=>h.default.createElement("ul",null,i),[d.OL_LIST]:(n,i)=>h.default.createElement("ol",null,i),[d.LIST_ITEM]:(n,i)=>h.default.createElement("li",null,i),[d.QUOTE]:(n,i)=>h.default.createElement("blockquote",null,i),[d.HR]:()=>h.default.createElement("hr",null),[d.TABLE]:(n,i)=>h.default.createElement("table",null,h.default.createElement("tbody",null,i)),[d.TABLE_ROW]:(n,i)=>h.default.createElement("tr",null,i),[d.TABLE_HEADER_CELL]:(n,i)=>h.default.createElement("th",null,i),[d.TABLE_CELL]:(n,i)=>h.default.createElement("td",null,i),[p.ASSET_HYPERLINK]:n=>V(p.ASSET_HYPERLINK,n),[p.ENTRY_HYPERLINK]:n=>V(p.ENTRY_HYPERLINK,n),[p.RESOURCE_HYPERLINK]:n=>Y(p.RESOURCE_HYPERLINK,n),[p.EMBEDDED_ENTRY]:n=>V(p.EMBEDDED_ENTRY,n),[p.EMBEDDED_RESOURCE]:(n,i)=>Y(p.EMBEDDED_RESOURCE,n),[p.HYPERLINK]:(n,i)=>h.default.createElement("a",{href:n.data.uri},i)},G={[S.BOLD]:n=>h.default.createElement("b",null,n),[S.ITALIC]:n=>h.default.createElement("i",null,n),[S.UNDERLINE]:n=>h.default.createElement("u",null,n),[S.CODE]:n=>h.default.createElement("code",null,n),[S.SUPERSCRIPT]:n=>h.default.createElement("sup",null,n),[S.SUBSCRIPT]:n=>h.default.createElement("sub",null,n),[S.STRIKETHROUGH]:n=>h.default.createElement("s",null,n)};function V(n,i){return h.default.createElement("span",{key:i.data.target.sys.id},"type: ",i.nodeType," id: ",i.data.target.sys.id)}function Y(n,i){return h.default.createElement("span",{key:i.data.target.sys.urn},"type: ",i.nodeType," urn: ",i.data.target.sys.urn)}function X(n,i={}){if(!n)return null;let o=n;return i.stripEmptyTrailingParagraph&&(o=z.stripEmptyTrailingParagraphFromDocument(n)),W(o,{renderNode:{...K,...i.renderNode},renderMark:{...G,...i.renderMark},renderText:i.renderText,preserveWhitespace:i.preserveWhitespace})}var J=f,Z=n.i(22016),z=E;d.PARAGRAPH,d.HEADING_1,d.HEADING_2,d.HEADING_3,d.HEADING_4,d.HEADING_5,d.HEADING_6,d.EMBEDDED_ENTRY,d.EMBEDDED_RESOURCE,d.EMBEDDED_ASSET,d.UL_LIST,d.OL_LIST,d.LIST_ITEM,d.QUOTE,d.HR,d.TABLE,d.TABLE_ROW,d.TABLE_HEADER_CELL,d.TABLE_CELL,p.ASSET_HYPERLINK,p.ENTRY_HYPERLINK,p.RESOURCE_HYPERLINK,p.EMBEDDED_ENTRY,p.EMBEDDED_RESOURCE,p.HYPERLINK,S.BOLD,S.ITALIC,S.UNDERLINE,S.CODE,S.SUPERSCRIPT,S.SUBSCRIPT,S.STRIKETHROUGH;var Q=u,ee=n.i(47459),et=n.i(6510),er=s,en=s,ei=Z,eo=s;let ea=({text:n="",classes:i="",inlineStyles:o=""})=>n?(0,eo.jsx)("span",{className:`inline-flex items-center bg-brand-softer border border-brand-subtle text-fg-brand-strong text-xs font-medium px-1.5 py-0.5 rounded-sm ${i}`,style:o?(()=>{try{return JSON.parse(o)}catch{return}})():void 0,children:n}):null;var es=c,ef=s;let eu=({description:n,classes:i="",id:o,includes:a})=>n?(0,ef.jsx)("div",{id:o,className:`prose max-w-none ${i}`,children:(0,ef.jsx)(ty,{document:n,includes:a})}):null;var ec=u;function el(n){return"string"!=typeof n?n:n.split(";").filter(Boolean).reduce((n,i)=>{let o=i.indexOf(":");if(-1===o)return n;let a=i.slice(0,o),s=i.slice(o+1);return a.trim()&&s.trim()&&(n[a.trim().replace(/-([a-z])/g,(n,i)=>i.toUpperCase())]=s.trim()),n},{})}var eh=ee,ed=n.i(88674);let ep=({fields:n,card:i,alignment:o="left",includes:a,href:s,preHeadingContent:f,wrapperClassName:u})=>{if(!i?.fields&&!n)return null;let{badge:c,heading:l,description:h,cta:d=[],asset:p,classes:b="",inlineStyles:y=""}=i?.fields??n,m=(0,ed.resolveBadge)(c),g=(0,ed.resolveHeadingFields)(l),v=(0,en.jsxs)(en.Fragment,{children:[p?.fields&&(0,en.jsx)(eh.default,{fields:p.fields}),(0,en.jsxs)("div",{className:`${"right"===o?"text-right":"center"===o?"text-center":"text-left"}`,children:[m&&(0,en.jsx)(ea,{...m}),f,g&&(0,en.jsx)(es.default,{fields:g}),h&&(0,en.jsx)("div",{className:"mb-3",children:(0,en.jsx)(eu,{description:h,includes:a})})]}),d?.length>0&&(0,en.jsx)("div",{className:"card-footer",children:(0,en.jsx)(ec.default,{cta:d})})]}),w=u||`col ${b}`,x=y?el(y):void 0;return s?(0,en.jsx)(ei.default,{href:s,className:w,style:x,"aria-label":g?.text||void 0,children:v}):(0,en.jsx)("div",{className:w,style:x,children:v})};var eb=ee,ey=s,em=c,eg=u,ev=ee,ew=s,ex=f,e_=n.i(43820),eE=ed,eS=et,eM=n.i(95370);function eA(n){let i,o,a,s=n?.fields,f=((0,eM.isFrontifyAsset)(n)?n:void 0)??(0,eM.toFrontifyArray)(s?.frontifyImages)[0]??((0,eM.isFrontifyAsset)(s?.images?.[0])?s?.images?.[0]:void 0),u=n?.fields?.images?.[0]?.fields?.file,c=s?.file,l=u??c;if((0,eM.isFrontifyAsset)(f))i=(0,eM.frontifyUrl)(f)??"",{width:o,height:a}=(0,eM.frontifyDimensions)(f);else{let n=(0,eE.normalizeUrl)(l?.url??"")||l?.url||(0,eE.normalizeUrl)(s?.url??"")||s?.url||"";i=n?(0,eS.secureAssetUrlWithParams)(n):"",o=l?.details?.image?.width,a=l?.details?.image?.height}return{src:i,alt:s?.altText??s?.title??s?.description??"",width:o,height:a}}function eR(n){let i=n?.fields;if(!i)return{sources:[]};let o=[],a=(0,eM.toFrontifyArray)(i.frontifyVideos)[0];if((0,eM.isFrontifyAsset)(a)){let n=(0,eM.frontifyUrl)(a);n&&o.push({src:n,type:a?.contentType})}0===o.length&&Array.isArray(i.videos)&&o.push(...i.videos.map(n=>{let i=n?.fields?.file,o=(0,eE.normalizeUrl)(i?.url??"")||i?.url||(0,eE.normalizeUrl)(n?.fields?.url??"")||n?.fields?.url||"";return o?{src:(0,eS.secureAssetUrlWithParams)(o),type:i?.contentType??n?.fields?.type}:null}).filter(n=>!!n));let s=(0,eM.toFrontifyArray)(i.frontifyPosterImage)[0],f=(0,eM.isFrontifyAsset)(s)?s:(0,eM.isFrontifyAsset)(i.posterImage)?i.posterImage:void 0,u=f?eA({fields:{frontifyImages:[f]}}):i.posterImage?eA(i.posterImage):void 0;return{sources:o,poster:u,isAutoPlay:i.isAutoPlay,title:i.title,width:u?.width,height:u?.height}}var eI=n.i(36665);function ek(n){if(!n)return{src:"",alt:"",mediaType:"image"};if("mediaVideo"===n?.sys?.contentType?.sys?.id||Array.isArray(n?.fields?.videos)){let{sources:i,poster:o,width:a,height:s}=eR(n);if(i.length)return i[0].src.endsWith(".fsv")?{kind:"scroll",src:i[0].src,poster:o,width:a,height:s}:{mediaType:"video",sources:i,poster:o,width:a,height:s,loop:"boolean"!=typeof n?.fields?.loop||n.fields.loop,playButtonAttributes:(0,eI.pickButtonAttributes)(n?.fields?.playButton?.fields),pauseButtonAttributes:(0,eI.pickButtonAttributes)(n?.fields?.pauseButton?.fields)}}let i=eA(n);return i.src?{...i,mediaType:"image"}:{src:"",alt:"",mediaType:"image"}}var ej=ed,eT=s;function eO({data:n}){return(0,eT.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}})}function eN(n){return{"@context":"https://schema.org","@type":"VideoObject",...n.title&&{name:n.title},...n.description&&{description:n.description},...n.thumbnailUrl&&{thumbnailUrl:n.thumbnailUrl},uploadDate:n.uploadDate,duration:n.duration,contentUrl:n.contentUrl,embedUrl:n.contentUrl}}var eP=n.i(27347);n.i(27344),n.i(79712),n.i(1952);var eB=et,eL=eM;let eC=({fields:n,context:i="body"})=>{let o=ex.default.useId();if(!n)return null;let a=[...o].reduce((n,i)=>31*n+i.charCodeAt(0)>>>0,0),s=n.id?.trim()||`video-${a}`,{videos:f=[],posterImage:u,frontifyPosterImage:c,title:l,description:h,ttml:d,frontifyTtml:p,transcript:b,frontifyTranscript:y,style:m="No Rounded",isAutoPlay:g=!1,uploadedDate:v,duration:w,type:x}=n;if("HTML5"===x){let i=ek({fields:n});if("video"!==i.mediaType)return null;let o=i.width&&i.height?`${i.width} / ${i.height}`:"16 / 9",a=m.startsWith("More Rounded")?"rounded-2xl":m.startsWith("Rounded")?"rounded-lg":"",f=i.sources[0]?.src;return(0,ew.jsxs)("div",{"data-componentname":"MediaVideoHtml5",id:s,children:[(0,ew.jsx)("div",{className:`relative w-full overflow-hidden ${a}`,style:{aspectRatio:o},children:(0,ew.jsx)(e_.DecorativeVideo,{sources:i.sources,poster:i.poster,width:i.width,height:i.height,autoPlay:g,loop:i.loop,playButtonAttributes:i.playButtonAttributes,pauseButtonAttributes:i.pauseButtonAttributes,preload:"metadata",toggleCorner:"top-end",className:"size-full"})}),v&&w&&f&&(0,ew.jsx)(eO,{data:eN({title:l,description:h,thumbnailUrl:i.poster?.src,uploadDate:v,duration:w,contentUrl:f})})]})}let _=(0,eL.toFrontifyArray)(n.frontifyVideos),E=(0,eL.toFrontifyArray)(n.frontifyImages);if(0===f.length&&0===_.length)return null;let S=_[0],M=f[0]?.fields?.file,A=null;if((0,eL.isFrontifyAsset)(S)&&(0,eL.frontifyUrl)(S))A=(0,eL.frontifyUrl)(S)||null;else if(M?.url){let n=(0,ej.normalizeUrl)(M.url);A=n?(0,eB.secureAssetUrlWithParams)(n):null}if(!A)return null;let R=A,I=Array.isArray(c)?c[0]:c,k=(0,eL.isFrontifyAsset)(I)?I:(0,eL.isFrontifyAsset)(E?.[0])?E[0]:(0,eL.isFrontifyAsset)(u)?u:void 0,j=u?u.fields||u:void 0,T=(0,eL.resolveAssetSrc)(k,j?.file?.url)||void 0,O=(0,eL.toFrontifyArray)(p)[0],N=(0,eL.isFrontifyAsset)(O)?(0,eL.frontifyUrl)(O)||void 0:d?.fields?.file?.url?(0,eB.secureAssetUrlWithParams)((0,ej.normalizeUrl)(d.fields.file.url)):void 0,P=(0,eL.toFrontifyArray)(y)[0],B=(0,eL.isFrontifyAsset)(P)?(0,eL.frontifyUrl)(P)||void 0:b?.fields?.file?.url?(0,eB.secureAssetUrlWithParams)((0,ej.normalizeUrl)(b.fields.file.url)):void 0,L="card"===i?"umpvideo":"cf-mediavideo",C=m.startsWith("More Rounded")?"rounded-2xl":m.startsWith("Rounded")?"rounded-lg":"";return(0,ew.jsxs)(ew.Fragment,{children:[(0,ew.jsx)(eP.default,{videoUrl:R,posterUrl:T,title:l,description:h,ttmlUrl:N,transcriptUrl:B,isAutoPlay:g,componentName:L,borderRadius:C}),v&&w&&(0,ew.jsx)(eO,{data:eN({title:l,description:h,thumbnailUrl:T,uploadDate:v,duration:w,contentUrl:R})})]})};var eD=ed;let eU=({card:n,includes:i})=>{if(!n?.fields)return null;let{id:o,classes:a="",inlineStyles:s="",badge:f,heading:u,description:c,cta:l=[],asset:h,isClickable:d}=n.fields,p=a.includes("fullbleed"),b=a.includes("image-left"),y=a.includes("big-image"),m=a.includes("small-image"),g=a.includes("container-bg"),v=y?"md:w-8/12":m?"md:w-5/12":"md:w-6/12",w=b?"order-last":"order-last md:order-first",x=!g&&s?el(s):void 0,_=g&&s?el(s):void 0,E=(0,eD.resolveBadge)(f),S=(0,eD.resolveHeadingFields)(u),M=h&&h.fields?.images,A=h&&h.fields?.videos;return(0,ey.jsx)("section",{id:o||void 0,className:a,style:x,...d?{"data-mount":"click-group"}:{},children:(0,ey.jsx)("div",{className:p?"w-full":"max-w-screen-xl mx-auto px-4",children:(0,ey.jsx)("div",{className:"rounded-lg overflow-hidden",style:_,children:(0,ey.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,ey.jsx)("div",{className:`flex ${w} flex-1`,children:(0,ey.jsxs)("div",{className:"self-center p-6 md:p-10",children:[E&&(0,ey.jsx)(ea,{...E}),S&&(0,ey.jsx)(em.default,{fields:S}),c&&(0,ey.jsx)("div",{className:"mb-3",children:(0,ey.jsx)(eu,{description:c,includes:i})}),l?.length>0&&(0,ey.jsx)(eg.default,{cta:l})]})}),(0,ey.jsxs)("div",{className:`${v} self-center`,children:[M&&(0,ey.jsx)(ev.default,{fields:h.fields}),A&&(0,ey.jsx)("div",{className:"pt-3",children:(0,ey.jsx)(eC,{fields:h.fields})})]})]})})})})};var e$=s,eF=c,ez=u,eq=ee;let eH=({fields:n})=>n?.cards?.length?(0,e$.jsx)("div",{"data-componentname":"SmallCards",id:`${n.id}`,className:"ms-small-cards-grid",children:n.cards.map(n=>{let i=n.fields.heading,o=n.fields.cta,a=n.fields.asset;return i?.fields.text&&o?(0,e$.jsxs)("div",{className:"ms-small-card",children:[a&&(0,e$.jsx)("div",{className:"ms-small-card-image",children:(0,e$.jsx)(eq.default,{fields:a.fields})}),(0,e$.jsxs)("div",{className:"ms-small-card-content",children:[(0,e$.jsx)(eF.default,{fields:i.fields}),(0,e$.jsx)(ez.default,{cta:o})]})]},n.sys.id):null})}):null;var eW=s,eK=n.i(71526),eG=n.i(13522),eV=n.i(99627),eY=n.i(30440),eX=n.i(58977),eJ=n.i(2085),eZ=eV,eQ=n.i(49621),e0=n.i(65265),e1=n.i(7670),e2=s,e6=n.i(64774);let e3=({title:n,description:i,primaryLink:o,secondaryLink:a,image:s,className:f,...u})=>(0,e2.jsx)("div",{"data-inview":!0,children:(0,e2.jsxs)("article",{"data-inview-anim":"fade-up",className:(0,e1.default)("bg-elevated text-black-contrast flex flex-col gap-10 overflow-hidden rounded-lg lg:h-full lg:justify-between",f),...u,children:[(0,e2.jsxs)("div",{className:"flex shrink-0 flex-col px-5 pt-10 md:px-7 lg:px-20 lg:pt-15",children:[(0,e2.jsx)(eZ.Heading,{unstyled:!0,className:"heading-5 lg:heading-4 text-center",children:n}),(0,e2.jsx)("div",{className:"heading-6-sans-sm md:heading-6-sans mt-3 text-center",children:i}),(0,e2.jsxs)("div",{className:"mt-5 flex flex-wrap justify-center gap-x-6 gap-y-3",children:[o?.href&&(0,e2.jsx)(eJ.ButtonLink,{size:"sm",variant:"hyperlink",icon:(0,e2.jsx)(e6.ChevronRightIcon,{className:"mt-0.5 h-2.5 rtl:-scale-x-100"}),...o}),a?.href&&(0,e2.jsx)(eJ.ButtonLink,{size:"sm",variant:"hyperlink",icon:(0,e2.jsx)(e6.ChevronRightIcon,{className:"mt-0.5 h-2.5 rtl:-scale-x-100"}),...a})]})]}),(0,e2.jsxs)("div",{className:"relative aspect-350/285 w-full overflow-hidden md:aspect-462/346 lg:aspect-569/464",children:[o&&(0,e2.jsx)(eQ.LinkOverlay,{...o}),(0,e2.jsx)(e0.Image,{...s,sizes:{default:"90vw",lg:"649px"},className:"absolute top-0 left-0 size-full object-cover"})]})]})});var e4=e1,e5=s;let e8=({heading:n,layout:i,description:o,items:a,tagsPrefix:s,tags:f,theme:u="light",className:c,...l})=>(0,e5.jsx)(eY.InView,{as:eG.Section,className:(0,e4.default)("bg-white-contrast text-black-contrast py-20 lg:py-30",c),...(0,eK.getThemeAttribute)(u),...l,children:(0,e5.jsxs)("div",{className:"container-wide",children:[(0,e5.jsxs)("div",{"data-inview":!0,className:(0,e4.default)("max-w-2xl","centered"===i&&"mx-auto text-center"),children:[n&&(0,e5.jsx)(eV.Heading,{"data-inview-anim":"words-fade-up",unstyled:!0,className:"heading-5 md:heading-4 lg:heading-3",children:(0,e5.jsx)(eX.SplitText,{as:"span",type:"words,lines",children:n})}),o&&(0,e5.jsx)("div",{"data-inview-anim":"fade-up",className:"heading-6 lg:heading-5 mt-5 text-pretty",children:o}),f&&(0,e5.jsxs)("div",{"data-inview-anim":"fade-up",className:(0,e4.default)("mt-8 flex flex-wrap items-center gap-2 lg:mt-10","centered"===i&&"justify-center"),children:[s&&(0,e5.jsx)("span",{className:"body-sm",children:s}),f.map(n=>(0,e5.jsx)("span",{className:"body-sm bg-elevated rounded-[4px] px-1 py-0.5",children:n},n))]})]}),(0,e5.jsx)("div",{className:"mx-auto mt-15 grid grid-cols-1 gap-2 lg:mt-20 lg:grid-cols-2",children:a?.map((n,i)=>(0,e5.jsx)(e3,{...n},i))})]})});var e9=eI;function e7(n){if(Array.isArray(n))return n.filter(Boolean);if(!n||"object"!=typeof n)return[];let i=n,o=i.fields?.tilesItems??i.fields?.tilesItems??i.fields?.items??i.fields?.tilesItemss;return Array.isArray(o)?o.filter(Boolean):[]}let te=(n,i)=>{let o=n?.fields??{},a=o.heading?.fields?.text??("string"==typeof o.heading?o.heading:void 0)??o.title??"",s=o.description?(0,eW.jsx)(tb,{document:o.description,includes:i}):"",f=eA(o.image??o.asset)??{src:"",alt:""};return{title:a,description:s,image:f,primaryLink:(0,e9.resolveCtaToLink)(o.primaryLink),secondaryLink:(0,e9.resolveCtaToLink)(o.secondaryLink)}},tt=({fields:n,includes:i})=>{let{id:o,heading:a,description:s,tilesItems:f,layout:u,theme:c="light",...l}=n,h=n,d=e7(f??h.tileItem??h.items),p=h.tagsPrefix,b=h.tags,y=a?.fields?.text??"";if(2!==d.length&&4!==d.length)return null;let m=2===d.length?[te(d[0],i),te(d[1],i)]:[te(d[0],i),te(d[1],i),te(d[2],i),te(d[3],i)],g=s?(0,eW.jsx)(tb,{document:s,includes:i}):void 0,v="default"===u||"centered"===u?u:void 0;return(0,eW.jsx)("div",{"data-componentname":"WrapperTiles",id:o,children:(0,eW.jsx)(e8,{heading:y,description:g,layout:v,theme:c,tagsPrefix:"string"==typeof p?p:void 0,tags:Array.isArray(b)?b.filter(n=>"string"==typeof n):void 0,items:m,...(0,e9.pickDataAttributes)(l)})})};var tr=n.i(23485);function tn(n){return String(n?.sys?.contentType?.sys?.id??"").toLowerCase()}function ti(n){let i=tn(n);if("tileitem"===i||"tileitems"===i)return!0;let o=n?.fields??{};return!!(o?.primaryLink||o?.secondaryLink||o?.image)}let to=({fields:n,includes:i})=>{if(!n?.cards?.length)return null;let{cards:o,type:a}=n,s=n;if("Cards"===a){let i=o.find(n=>"tiles"===tn(n));if(i?.fields){let o=i.fields;return(0,er.jsx)(tt,{fields:{...o,id:o.id??n.id,heading:o.heading??s.heading,tileItem:o.tileItem??o.items}})}if(o.some(n=>ti(n)))return(0,er.jsx)(tt,{fields:{...n,tileItem:o}})}if("Product Card"===a){let a=n.classes||"",s=n.inlineStyles||"",f=a.includes("fullbleed")?"fullbleed":"container",u=a.includes("lg-cards")?"lg":"md",c=o.length,l=a.includes("equal")||a.includes("height")?"h-100":"",h=a.includes("version2"),d=a.includes("copy-first")?"order-first pb-4":"",p=c>6&&a.includes("copilot-hub-cards")||c>=5?"row-cols-sm-2 row-cols-lg-3 justify-content-center":c>=4?"row-cols-sm-2 row-cols-lg-4":`row-cols-${u}-${c}`,b=a.includes("container-bg"),y=!b&&s?el(s):void 0,m=b&&s?el(s):void 0;return(0,er.jsx)("div",{id:n.id||void 0,className:`cmo-cards ${a}`,style:y,"data-componentname":"cf-cards",children:(0,er.jsx)("div",{className:f,children:(0,er.jsx)("div",{className:`row row-cols-1 ${p}`,style:m,children:o.map(n=>{let o=n?.fields?.classes||"",a=n?.fields?.inlineStyles||"",s=n?.fields?.isClickable?{"data-mount":"click-group"}:{};return h?(0,er.jsx)("div",{className:`col mt-3 ${o}`,style:a?el(a):void 0,children:(0,er.jsxs)("div",{className:`card-img-overlay ${l}`,...s,children:[(0,er.jsx)("div",{className:"card-background",children:n?.fields?.asset?.fields?.images&&(0,er.jsx)(eb.default,{fields:n.fields.asset.fields})}),(0,er.jsx)("div",{className:"card-foreground p-4",children:(0,er.jsx)(ep,{card:n,fields:n?.fields,includes:i,wrapperClassName:`card-body ${d}`})})]})},n?.sys?.id):(0,er.jsx)("div",{className:`col mt-3 ${o}`,children:(0,er.jsx)("div",{className:`card ${l}`,style:a?el(a):void 0,...s,children:(0,er.jsx)(ep,{card:n,fields:n?.fields,includes:i,wrapperClassName:`card-body ${d}`})})},n?.sys?.id)})})})})}if("Small Cards"===a)return(0,er.jsx)(eH,{fields:n});if("Feature Promo Banner"===a)return null;if("Cards"===a){let a=o.length;return(0,er.jsx)("section",{className:`ms-cards-section ${n.classes??""}`,style:n.inlineStyles?el(n.inlineStyles):void 0,id:n.id||void 0,"data-componentname":"FeatureCardsUp",children:(0,er.jsx)("div",{className:`ms-cards-grid ${a>=4?"ms-cards-grid--4":3===a?"ms-cards-grid--3":"ms-cards-grid--2"}`,children:o.map(n=>{if(!n?.fields)return null;let o=n.fields.asset?.fields,a=o?.images,{asset:s,...f}=n.fields;return(0,er.jsxs)("div",{className:"ms-card",children:[a&&(0,er.jsx)("div",{className:"ms-card-icon",children:(0,er.jsx)(eb.default,{fields:o})}),(0,er.jsx)(tr.AnimateOnScroll,{animation:"fade-in",mode:"once",children:(0,er.jsx)(ep,{fields:f,includes:i})})]},n.sys?.id)})})})}return(0,er.jsx)("div",{id:n.id||void 0,className:n.classes||void 0,style:n.inlineStyles?el(n.inlineStyles):void 0,"data-componentname":"cf-features",children:o.map((n,o)=>(0,er.jsx)(eU,{card:n,includes:i},`${n?.sys?.id}-${o}`))})};function ta(n){let i=n?.content;return!Array.isArray(i)||0===i.length||i.every(n=>n?.nodeType==="text"&&(n?.value??"")==="")}function ts(n){if(!n.includes("\n"))return n;let i=n.split("\n");return i.map((n,o)=>(0,l.jsxs)(J.Fragment,{children:[n,o{i.set(n.sys.id,n)}),n?.Entry?.forEach(n=>{o.set(n.sys.id,n)}),{assetMap:i,entryMap:o}}function td(n,i=!1){let{assetMap:o,entryMap:a}=th(n),s=n=>tl(n,tf,i),f=i?tc:void 0,u=i?"body":void 0;return{renderNode:{[d.HEADING_1]:(n,i)=>(0,l.jsx)("h1",{className:s("ms-h1"),children:i}),[d.HEADING_2]:(n,i)=>(0,l.jsx)("h2",{className:s("ms-h2"),children:i}),[d.HEADING_3]:(n,i)=>(0,l.jsx)("h3",{className:s("ms-h3"),children:i}),[d.HEADING_4]:(n,i)=>(0,l.jsx)("h4",{className:s("ms-h4"),children:i}),[d.HEADING_5]:(n,i)=>(0,l.jsx)("h5",{className:s("ms-h5"),children:i}),[d.HEADING_6]:(n,i)=>(0,l.jsx)("h6",{className:s("ms-h6"),children:i}),[d.PARAGRAPH]:(n,i)=>ta(n)?(0,l.jsx)("br",{}):(0,l.jsx)("p",{className:u,children:i}),[d.UL_LIST]:(n,o)=>(0,l.jsx)("ul",{className:tl("ms-ul",tu,i),children:o}),[d.OL_LIST]:(n,o)=>(0,l.jsx)("ol",{className:tl("ms-ol",tu,i),children:o}),[d.LIST_ITEM]:(n,i)=>(0,l.jsx)("li",{className:"ms-li",children:i}),[d.QUOTE]:(n,i)=>(0,l.jsx)("blockquote",{className:"ms-blockquote",children:i}),[d.HR]:()=>(0,l.jsx)("hr",{className:"my-8"}),[d.EMBEDDED_ASSET]:n=>{let i=n?.data?.target?.sys?.id,a=o.get(i);if(!a)return null;let{file:s,title:f}=a.fields,u=s?.url?.startsWith("//")?`https:${s.url}`:s?.url,c=u?(0,et.secureAssetUrlWithParams)(u):u;return s.contentType.startsWith("image/")?(0,l.jsxs)("figure",{className:"my-6",children:[(0,l.jsx)("img",{src:c,alt:f,className:"w-full rounded-lg",loading:"lazy"}),f&&(0,l.jsx)("figcaption",{className:"text-sm text-ms-600 mt-2",children:f})]}):s.contentType.startsWith("video/")?(0,l.jsxs)("video",{controls:!0,className:"w-full my-6 rounded-lg",children:[(0,l.jsx)("source",{src:c,type:s.contentType}),"Your browser does not support the video tag."]}):null},[d.EMBEDDED_ENTRY]:i=>{let s=i.data.target.sys.id,f=a.get(s);if(!f)return null;if("codeBlock"===f.sys.contentType.sys.id)return(0,l.jsx)("pre",{children:f.fields.code});if("mediaImage"===f.sys.contentType.sys.id){let n=(f.fields?.images||[]).map(n=>{if(n?.fields?.file)return n;let i=n?.sys?.id;return i?o.get(i):void 0}).filter(Boolean),i={...f.fields,images:n};return(0,l.jsx)(ee.default,{fields:i})}if("accordion"===f.sys.contentType.sys.id){let i=(f.fields?.items||[]).map(n=>{let i=n.fields?n:a.get(n.sys?.id);return i?.fields?i:{sys:n.sys,fields:{}}}),o=f.fields?.heading?.fields?f.fields.heading:a.get(f.fields?.heading?.sys?.id),s=(f.fields?.cta||[]).map(n=>n.fields?n:a.get(n.sys?.id)||n);return(0,l.jsx)(tg,{fields:{...f.fields,items:i,heading:o,cta:s},includes:n})}if("cards"===f.sys.contentType.sys.id){let i=(f.fields?.cards||[]).map(n=>{let i=n.fields?n:a.get(n.sys?.id)||n;if(!i?.fields)return i;let s=i.fields,f=s.heading?.fields?s.heading:a.get(s.heading?.sys?.id)||s.heading,u=s.badge?.fields?s.badge:a.get(s.badge?.sys?.id)||s.badge,c=(s.cta||[]).map(n=>n.fields?n:a.get(n.sys?.id)||n),l=s.asset?.fields?s.asset:a.get(s.asset?.sys?.id)||o.get(s.asset?.sys?.id)||s.asset;if(l?.fields){let n=(l.fields.images||[]).map(n=>n.fields?n:o.get(n.sys?.id)||n),i=(l.fields.videos||[]).map(n=>n.fields?n:o.get(n.sys?.id)||n);l={...l,fields:{...l.fields,images:n,videos:i}}}return{...i,fields:{...s,heading:f,badge:u,asset:l,cta:c}}});return(0,l.jsx)(to,{fields:{...f.fields,cards:i},includes:n})}if("footnotes"===f.sys.contentType.sys.id){let i=f.fields?.items||[],o=f.fields?.classes||"",s=i.map(n=>n.fields?n:a.get(n.sys?.id)||n),u=s.filter(n=>!n?.fields?.id||"0"===n.fields.id),c=s.filter(n=>n?.fields?.id&&"0"!==n.fields.id);return(0,l.jsxs)("div",{id:"footnotes",className:`footnotes ${o}`.trim(),"data-componentname":"cf-footnotes",role:"region","aria-label":"Footnotes",children:[u.map((i,o)=>{let a=i?.fields?.text||i?.fields?.body||{nodeType:"document",content:[]};return(0,l.jsx)("p",{className:"py-1 footnote-item mb-0",children:tp(a,n)},i?.sys?.id||`plain-${o}`)}),(0,l.jsx)("ul",{className:"list-unstyled mb-0 px-md-4",children:c.map(i=>{let o=i.fields.id,a=i?.fields?.text||i?.fields?.body||{nodeType:"document",content:[]};return(0,l.jsxs)("li",{className:"py-2 footnote-item",children:[(0,l.jsxs)("a",{id:`sup${o}`,className:"supLink",href:`#ref-${o}`,"aria-label":i?.fields?.ariaLabel||`Footnote ${o}`,children:["[",(0,l.jsx)("span",{className:"supFn",children:o}),"]"]})," ",tp(a,n)]},i?.sys?.id||`fn-${o}`)})})]})}return null},[p.EMBEDDED_ENTRY]:n=>{let i=n?.data?.target,o=(i?.fields&&i?.sys?.contentType?.sys?.id?i:null)||a.get(i?.sys?.id);if(!o)return console.warn("Missing inline entry:",i?.sys?.id),null;let s=o?.sys?.contentType?.sys?.id;if("footnoteItem"===s){let n=o.fields?.id||o.sys.id;return(0,l.jsx)("sup",{id:`ref-${n}`,children:(0,l.jsx)("a",{href:`#footnote-${n}`,"aria-label":o.fields?.ariaLabel||`Footnote ${n}`,className:"c-hyperlink underline",children:(0,l.jsx)("span",{className:"supText",children:n})})})}if("genericCta"===s){let n=o.fields?.type,i=o.fields?.text;if("Inline Link"===n){let n=o.fields?.link,a="string"==typeof n?n.trim():"",s=o.fields?.openInNewTab===!0;return(0,l.jsx)("a",{href:a||"#",target:s?"_blank":void 0,"aria-label":o.fields?.ariaLabel||i,className:"c-hyperlink underline","data-bi-ecn":o.fields?.ecn||i,"data-bi-ehn":o.fields?.ehn||i,"data-bi-hn":o.fields?.hn||i,...o?.fields?.download?{"data-download":"true"}:{},children:(0,l.jsx)("span",{className:"supText",children:i})})}}return(0,l.jsx)(Q.default,{cta:[o]})},[p.HYPERLINK]:(n,i)=>{let o=n.data.uri,a=o.startsWith("/"),s=o.startsWith("#");if(a)return(0,l.jsx)(Z.default,{href:o,className:f,children:i});if(s){let n=o.match(/^#(?:sup|f)(\w+)$/);if(n){let i=n[1];return(0,l.jsx)("sup",{children:(0,l.jsx)("a",{href:o,id:`ref-${i}`,"aria-label":`Footnote ${i}`,className:"c-hyperlink supBLink",children:(0,l.jsx)("span",{className:"supText",children:i})})})}return(0,l.jsx)("a",{href:o,className:f,children:i})}return(0,l.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:f,children:i})},[p.ASSET_HYPERLINK]:(n,i)=>{let{file:o}=n.data.target.fields,a=(0,et.secureAssetUrlWithParams)(`https:${o.url}`);return(0,l.jsx)("a",{href:`https:${a}`,download:!0,className:f,children:i})},[p.ENTRY_HYPERLINK]:(n,i)=>(0,l.jsx)("span",{className:"font-bold",children:i})},renderMark:{[S.BOLD]:n=>(0,l.jsx)("strong",{className:"font-bold",children:n}),[S.ITALIC]:n=>(0,l.jsx)("em",{className:"italic",children:n}),[S.UNDERLINE]:n=>(0,l.jsx)("u",{className:"underline",children:n}),[S.CODE]:n=>(0,l.jsx)("code",{className:"bg-gray-100 text-ms-700 px-2 py-1 rounded font-mono text-sm",children:n}),[S.STRIKETHROUGH]:n=>(0,l.jsx)("s",{className:"line-through",children:n})},renderText:ts}}function tp(n,i){let o=td(i);return X(n,{...o,renderNode:{...o.renderNode||{},[d.PARAGRAPH]:(n,i)=>(0,l.jsx)("span",{className:"my-0 leading-[1.5] text-ms-700 text-sm",children:i})}})}function tb({document:n,includes:i,styleContent:o=!1}){return n?(0,l.jsx)("div",{className:"rich-text-content",children:X(n,td(i,o))}):null}let ty=tb;var tm=eI;let tg=({fields:n,includes:i={}})=>{let{items:o=[],heading:a,cta:l,hideIcon:h=!1}=n,d=(0,f.useId)(),[p,b]=(0,f.useState)(()=>new Set),y=(0,f.useCallback)(n=>{b(i=>{let o=new Set(i);return o.has(n)?o.delete(n):o.add(n),o})},[]),m=(0,f.useMemo)(()=>o.filter(n=>n.fields.question&&n.fields.answer).map(n=>({question:n.fields.question,answer:n?.fields?.answer?(0,s.jsx)(ty,{document:n.fields.answer,includes:i}):null,cta:n.fields.cta||[],triggerAttrs:{"data-bi-ecn":n.fields.question,"data-bi-ehn":n.fields.question,"data-bi-hn":n.fields.question,...(0,tm.pickButtonAttributes)(n.fields)}})),[o,i]),g=(0,f.useCallback)(()=>{b(new Set(m.map((n,i)=>i)))},[m]),v=(0,f.useCallback)(()=>{b(new Set)},[]);if(!o||0===o.length||!m||0===m.length)return null;let w=p.size===m.length,x=0===p.size;return(0,s.jsxs)("div",{className:"ms-accordion",children:[a?.fields&&(0,s.jsx)(c.default,{fields:a.fields}),(0,s.jsxs)("div",{className:"ms-accordion-controls",children:[(0,s.jsx)("button",{type:"button",className:`ms-accordion-control-btn ${w?"ms-accordion-control-disabled":""}`,onClick:()=>!w&&g(),"aria-label":"Expand All","aria-disabled":w,children:"Expand All"}),(0,s.jsx)("span",{"aria-hidden":"true",className:"ms-accordion-control-separator",children:"|"}),(0,s.jsx)("button",{type:"button",className:`ms-accordion-control-btn ${x?"ms-accordion-control-disabled":""}`,onClick:()=>!x&&v(),"aria-label":"Collapse All","aria-disabled":x,children:"Collapse All"})]}),(0,s.jsx)("ul",{className:"ms-accordion-list",role:"list",children:m.map((n,i)=>{if(!n)return null;let o=p.has(i),a=`${d}-panel-${i}`,f=`${d}-trigger-${i}`;return(0,s.jsxs)("li",{className:"ms-accordion-item",children:[(0,s.jsx)("h4",{className:"ms-accordion-header",children:(0,s.jsxs)("button",{id:f,type:"button",className:"ms-accordion-trigger",onClick:()=>y(i),"aria-expanded":o,"aria-controls":a,...n.triggerAttrs,children:[!h&&(0,s.jsx)("span",{className:`ms-accordion-icon ${o?"ms-accordion-icon-open":""}`,"aria-hidden":"true"}),n.question]})}),(0,s.jsx)("div",{id:a,role:"region","aria-labelledby":f,className:"ms-accordion-panel",style:{display:o?"block":"none"},children:(0,s.jsxs)("div",{className:"ms-accordion-body",children:[n.answer,n.cta&&n.cta.length>0&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(u.default,{cta:n.cta})})]})})]},i)})}),l&&l.length>0&&(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)(u.default,{cta:l})})]})}},93346,(n,i,o)=>{i.exports={text:{heading:{h1:"ms-h1",h2:"ms-h2",h3:"ms-h3",h4:"ms-h4",h5:"ms-h5",h6:"ms-h6"},body:"ms-body",muted:"text-ms-muted text-sm",link:"text-ms-blue hover:text-ms-blue-hover underline"},layout:{container:"ms-container",section:"py-12 md:py-16",card:"rounded-lg border border-gray-200 bg-white shadow-sm",cards:"bg-neutral-primary-soft block max-w-sm border border-default rounded-base shadow-xs",cardPadding:"p-4 sm:p-6 lg:p-8",stack:{row:"flex flex-row gap-2",rowLg:"flex flex-row gap-4",col:"flex flex-col gap-2",colLg:"flex flex-col gap-4"},grid:"grid grid-cols-12 gap-6",articleGrid:"ms-article-grid",articleContent:"ms-article-content",articleSocial:"ms-article-social",articleBody:"ms-article-body"},spacing:{none:"m-0 p-0",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8",margin:{xs:"m-1",sm:"m-2",md:"m-4",lg:"m-6",xl:"m-8"},sectionY:"py-12 md:py-16",contentGap:"space-y-6",cardGap:"gap-6"},border:{base:"border border-gray-200",subtle:"border border-gray-100",strong:"border border-gray-300",radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},default:"border border-ms-border",light:"border border-ms-gray",rounded:"rounded-lg"},shadow:{sm:"shadow-sm",md:"shadow",lg:"shadow-lg",xl:"shadow-xl",card:"shadow-sm hover:shadow-md transition-shadow",elevated:"shadow-lg"},button:{base:"inline-flex items-center justify-center rounded-md font-medium focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",color:{primary:"bg-ms-blue hover:bg-ms-blue-hover text-white focus-visible:ring-ms-blue",secondary:"bg-ms-blue hover:bg-ms-blue-hover text-white focus-visible:ring-ms-blue",success:"bg-green-500 hover:bg-green-600 text-white focus-visible:ring-green-500",warning:"bg-yellow-500 hover:bg-yellow-600 text-black focus-visible:ring-yellow-500",danger:"bg-rose-500 hover:bg-rose-600 text-white focus-visible:ring-rose-500",ghost:"bg-transparent hover:bg-gray-100 text-gray-900 focus-visible:ring-gray-300",link:"bg-transparent text-ms-blue hover:text-ms-blue-hover hover:underline focus-visible:ring-ms-blue"},outline:{primary:"border border-ms-blue text-ms-blue hover:bg-blue-50 focus-visible:ring-ms-blue",secondary:"border border-ms-blue text-ms-blue hover:bg-blue-50 focus-visible:ring-ms-blue",neutral:"border border-gray-300 text-gray-800 hover:bg-gray-50 focus-visible:ring-gray-400"},size:{xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base",xl:"px-8 py-3.5 text-lg"},iconOnly:{sm:"p-2",md:"p-2.5",lg:"p-3"}},form:{input:"w-full rounded-md border border-ms-border px-3 py-2 text-sm focus:border-ms-blue focus:ring-1 focus:ring-ms-blue",label:"block text-sm font-medium text-700 mb-1",helperText:"text-sm text-ms-muted mt-1",errorText:"mt-1 text-xs text-rose-500"}}},36665,n=>{"use strict";function i(n,o=!1){if(!n?.fields?.link)return;let a=u(n.fields),s="boolean"==typeof a?.["aria-disabled"]&&a["aria-disabled"];return{href:n.fields.link,text:n.fields.text??"",...n.fields.openInNewTab&&{target:"_blank",rel:"noopener noreferrer"},...a,"aria-disabled":s||o}}function o(n){return n.replace(/([A-Z])/g,n=>`-${n.toLowerCase()}`)}let a={ecn:"data-bi-ecn",ehn:"data-bi-ehn",hn:"data-bi-hn",bhvr:"data-bi-bhvr",cn:"data-bi-cn"};function s(n){let i={};for(let s of Object.keys(n)){let f=n[s];if("string"==typeof f||"boolean"==typeof f||"number"==typeof f){if(s.startsWith("data-"))i[s]=String(f);else if(/^data[A-Z]/.test(s))i[o(s)]=String(f);else if(s in a){let n=a[s];n in i||(i[n]=String(f))}}}return i}function f(n){if(null==n||"object"!=typeof n)return;let i=s(n);return Object.keys(i).length>0?i:void 0}function u(n){if(null==n||"object"!=typeof n)return;let i=n,o={...s(i)};"string"==typeof i["aria-label"]?o["aria-label"]=i["aria-label"]:"string"==typeof i.ariaLabel&&(o["aria-label"]=i.ariaLabel);let a=i.disabled;"boolean"==typeof a?o["aria-disabled"]=a:("true"===a||"false"===a)&&(o["aria-disabled"]="true"===a);let f=i.download;return"boolean"==typeof f?o["data-download"]=f:("true"===f||"false"===f)&&(o["data-download"]="true"===f),"string"==typeof i.variant&&(o.variant=i.variant),Object.keys(o).length>0?o:void 0}function c(n){let i=u(n),o=null!=n&&"object"==typeof n?n:{},a="string"==typeof o.text?o.text:"";if(i||a)return{...i??{},text:a}}n.s(["pickButtonAttributes",0,u,"pickButtonAttributesWithText",0,c,"pickDataAttributes",0,f,"resolveCtaToLink",0,i])},6510,27344,n=>{"use strict";var i=n.i(47167);let o=new Set(["images","downloads","assets","videos"]);function a(n){return/\/api\/assets\/(images|downloads|assets|videos)\//.test(n)}function s(n){return n.trim().replace(/^https\/\//i,"https://").replace(/^http\/\//i,"http://")}function f(n){let i=s(n);try{if(i.startsWith("//"))return new URL(`https:${i}`);if(/^https?:\/\//i.test(i))return new URL(i);return new URL(i,"https://ctfassets.net")}catch{return null}}function u(n){let i=n?.trim();if(!i)return null;try{if(/^https?:\/\//i.test(i))return new URL(i);return new URL(`https://${i}`)}catch{return null}}function c(n){let i=n.split(".")[0]?.toLowerCase();return o.has(i)?i:"assets"}function l(n,i){if(!n||a(n))return n;let o=f(n);if(!o)return n;let s=u(i);if(!s)return n;let l=c(o.hostname);return o.hostname=s.hostname,o.port=s.port||"",o.protocol="localhost"===s.hostname||"127.0.0.1"===s.hostname?"http:":s.protocol||"https:",o.pathname=`/api/assets/${l}${o.pathname}`,o.toString()}var h=i;function d(){return void 0===h.default?{enabled:!1,assetServiceHostname:"assets.example.com"}:{enabled:"true"===h.default.env.CONTENTFUL_EMBARGOED_ASSETS_ENABLED,assetServiceHostname:h.default.env.APP_URL||"assets.example.com"}}n.s(["getEmbargoedAssetsConfig",0,d],27344);let p=(()=>{try{return JSON.parse(i.default.env.EMBARGOED_ASSETS||"{}")}catch{return{}}})(),b=i.default.env.APP_URL;function y(n){try{let i=new URL(n);return/^(images|assets|downloads|videos)\.secure\.ctfassets\.net$/i.test(i.hostname)&&(i.hostname=i.hostname.replace(".secure.ctfassets.net",".ctfassets.net")),i.toString()}catch{return n}}function m(n){return n?p.embargoedAssetsEnabled?l(n,b):y(n):""}function g(n,i){if(!n)return"";let o=new URL(p.embargoedAssetsEnabled?n:y(n));for(let[n,a]of Object.entries(i))o.searchParams.append(n,String(a));return o.toString()}function v(n,i){let o=m(n);return i&&0!==Object.keys(i).length?g(o,i):o}function w(n){if(!n)return!1;try{return new URL(n,"https://ctfassets.net").hostname.includes("secure.ctfassets.net")}catch{return!1}}function x(n){let i=d();if(!n||!i.enabled)return!1;try{return new URL(n).hostname===i.assetServiceHostname}catch{return!1}}n.s(["addImageParams",0,g,"isEmbargoedAssetUrl",0,w,"isSecuredAssetUrl",0,x,"secureAssetUrl",0,m,"secureAssetUrlWithParams",0,v],6510)},79712,n=>{"use strict";var i=n.i(6510);function o(){return{secureUrl:i.secureAssetUrl,secureUrlWithParams:i.secureAssetUrlWithParams,addParams:i.addImageParams,isEmbargoed:i.isEmbargoedAssetUrl,isSecured:i.isSecuredAssetUrl}}let a=o;n.s(["useAssetUrl",0,a,"useSecureAsset",0,o])},27930,n=>{"use strict";n.i(47167);var i=n.i(71645),o=n.i(40886),a=n.i(52245);let s=i.forwardRef(function(n,i){let{render:s,className:f,disabled:u=!1,focusableWhenDisabled:c=!1,nativeButton:l=!0,style:h,...d}=n,{getButtonProps:p,buttonRef:b}=(0,o.useButton)({disabled:u,focusableWhenDisabled:c,native:l}),y={disabled:u};return(0,a.useRenderElement)("button",n,{state:y,ref:[i,b],props:[d,p]})});n.s(["Button",0,s])},40886,29315,14553,88940,67865,46376,76782,33332,38452,33848,64350,28918,58321,56789,77570,52245,n=>{"use strict";var i,o=n.i(71645);function a(){return"u">typeof window}function s(n){return c(n)?(n.nodeName||"").toLowerCase():"#document"}function f(n){var i;return(null==n||null==(i=n.ownerDocument)?void 0:i.defaultView)||window}function u(n){var i;return null==(i=(c(n)?n.ownerDocument:n.document)||window.document)?void 0:i.documentElement}function c(n){return!!a()&&(n instanceof Node||n instanceof f(n).Node)}function l(n){return!!a()&&(n instanceof Element||n instanceof f(n).Element)}function h(n){return!!a()&&(n instanceof HTMLElement||n instanceof f(n).HTMLElement)}function d(n){return!(!a()||"u"n();function S(n){let i=x(M).current;return i.next=n,E(i.effect),i.trampoline}function M(){let n={next:void 0,callback:A,trampoline:(...i)=>n.callback?.(...i),effect:()=>{n.callback=n.next}};return n}function A(){}n.s(["useStableCallback",0,S],67865);var R=o;let I=()=>{},k="u">typeof document?R.useLayoutEffect:I;function j(n,i){return n&&!i?n:!n&&i?i:n||i?{...n,...i}:void 0}n.s(["useIsoLayoutEffect",0,k],46376);let T={};function O(n,i,o,a,s){if(!o&&!a&&!s&&!n)return P(i);let f=P(n);return i&&(f=B(f,i)),o&&(f=B(f,o)),a&&(f=B(f,a)),s&&(f=B(f,s)),f}function N(n){if(0===n.length)return T;if(1===n.length)return P(n[0]);let i=P(n[0]);for(let o=1;o=65&&s<=90&&("function"==typeof i||void 0===i)}function U(n){return"function"==typeof n}function $(n,i){return U(n)?n(i):n??T}function F(n,i){return i?n?(...o)=>{let a=o[0];if(W(a)){let s=a;q(s);let f=i(...o);return s.baseUIHandlerPrevented||n?.(...o),f}let s=i(...o);return n?.(...o),s}:z(i):n}function z(n){return n?(...i)=>{let o=i[0];return W(o)&&q(o),n(...i)}:n}function q(n){return n.preventBaseUIHandler=()=>{n.baseUIHandlerPrevented=!0},n}function H(n,i){return i?n?i+" "+n:i:n}function W(n){return null!=n&&"object"==typeof n&&"nativeEvent"in n}n.s(["makeEventPreventable",0,q,"mergeClassNames",0,H,"mergeProps",0,O,"mergePropsN",0,N],76782);let K=(i="https://base-ui.com/production-error",function(n,...o){let a=new URL(i);return a.searchParams.set("code",n.toString()),o.forEach(n=>a.searchParams.append("args[]",n)),`Base UI error #${n}; visit ${a} for the full message.`});n.s(["default",0,K],33332);var G=o;let V=G.createContext(void 0);function Y(n=!1){let i=G.useContext(V);if(void 0===i&&!n)throw Error(K(16));return i}n.s(["CompositeRootContext",0,V,"useCompositeRootContext",0,Y],38452);var X=o;function J(n){let{focusableWhenDisabled:i,disabled:o,composite:a=!1,tabIndex:s=0,isNativeButton:f}=n,u=a&&!1!==i,c=a&&!1===i;return{props:X.useMemo(()=>{let n={onKeyDown(n){o&&i&&"Tab"!==n.key&&n.preventDefault()}};return a||(n.tabIndex=s,!f&&o&&(n.tabIndex=i?s:-1)),(f&&(i||u)||!f&&o)&&(n["aria-disabled"]=o),f&&(!i||c)&&(n.disabled=o),n},[a,o,i,u,c,f,s])}}function Z(n,i,{detail:o=0}={}){n.dispatchEvent(new(f(n)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:o,shiftKey:i.shiftKey,ctrlKey:i.ctrlKey,altKey:i.altKey,metaKey:i.metaKey}))}function Q(n={}){let{disabled:i=!1,focusableWhenDisabled:a,tabIndex:s=0,native:f=!0,composite:u}=n,c=o.useRef(null),l=Y(!0),h=u??void 0!==l,{props:d}=J({focusableWhenDisabled:a,disabled:i,composite:h,tabIndex:s,isNativeButton:f}),p=o.useCallback(()=>{let n=c.current;ee(n)&&h&&i&&void 0===d.disabled&&n.disabled&&(n.disabled=!1)},[i,d.disabled,h]);return k(p,[p]),{getButtonProps:o.useCallback((n={})=>{let{onClick:o,onMouseDown:a,onKeyUp:s,onKeyDown:u,onPointerDown:c,...l}=n;return O({onClick(n){i?n.preventDefault():o?.(n)},onMouseDown(n){i||a?.(n)},onKeyDown(n){if(i||(q(n),u?.(n),n.baseUIHandlerPrevented))return;let o=n.target===n.currentTarget,a=n.currentTarget,s=ee(a),c=!f&&et(a),l=o&&(f?s:!c),d="Enter"===n.key,p=" "===n.key,b=a.getAttribute("role"),y=b?.startsWith("menuitem")||"option"===b||"gridcell"===b;if(o&&h&&p){if(n.defaultPrevented&&y)return;n.preventDefault(),(!f||s)&&(n.preventBaseUIHandler(),Z(a,n));return}if(!l||f||!p&&!d){o&&c&&p&&n.preventDefault();return}!n.defaultPrevented&&(n.preventDefault(),d&&(n.preventBaseUIHandler(),Z(a,n)))},onKeyUp(n){i||((q(n),s?.(n),n.target===n.currentTarget&&f&&h&&ee(n.currentTarget)&&" "===n.key)?n.preventDefault():!n.baseUIHandlerPrevented&&(n.target!==n.currentTarget||f||h||n.defaultPrevented||" "!==n.key||(n.preventBaseUIHandler(),Z(n.currentTarget,n))))},onPointerDown(n){i?n.preventDefault():c?.(n)}},f?{type:"button"}:{role:"button"},d,l)},[i,d,h,f]),buttonRef:S(n=>{c.current=n,p()})}}function ee(n){return h(n)&&"BUTTON"===n.tagName}function et(n){return h(n)&&"A"===n.tagName&&!!n.href}n.s(["ownerWindow",0,f],33848),n.s(["dispatchClickWithModifiers",0,Z],64350),n.s(["useButton",0,Q],40886);var er=o;function en(n,i,o,a){let s=x(eo).current;return ea(s,n,i,o,a)&&ef(s,[n,i,o,a]),s.callback}function ei(n){let i=x(eo).current;return es(i,n)&&ef(i,n),i.callback}function eo(){return{callback:null,cleanup:null,refs:[]}}function ea(n,i,o,a,s){return n.refs[0]!==i||n.refs[1]!==o||n.refs[2]!==a||n.refs[3]!==s}function es(n,i){return n.refs.length!==i.length||n.refs.some((n,o)=>n!==i[o])}function ef(n,i){if(n.refs=i,i.every(n=>null==n)){n.callback=null;return}n.callback=o=>{if(n.cleanup&&(n.cleanup(),n.cleanup=null),null!=o){let a=Array(i.length).fill(null);for(let n=0;n{for(let n=0;n=n}function eh(n){if(!eu.isValidElement(n))return null;let i=n,o=i.props;return(el(19)?o?.ref:i.ref)??null}function ed(){}n.s(["isReactVersionAtLeast",0,el],58321);let ep=Object.freeze([]),eb=Object.freeze({});function ey(n,i){let o={};for(let a in n){let s=n[a];if(i?.hasOwnProperty(a)){let n=i[a](s);null!=n&&Object.assign(o,n);continue}!0===s?o[`data-${a.toLowerCase()}`]="":s&&(o[`data-${a.toLowerCase()}`]=s.toString())}return o}function em(n,i){return"function"==typeof n?n(i):n}function eg(n,i){return"function"==typeof n?n(i):n}function ev(n,i,o={}){let a=i.render;!1!==o.enabled&&(a=eE(a));let s=ew(i,o,a);return!1===o.enabled?null:eS(n,a,s,o.state??eb)}function ew(n,i,o){let{className:a,style:s}=n,{state:f=eb,ref:u,props:c,stateAttributesMapping:l,enabled:h=!0}=i,d=h?em(a,f):void 0,p=h?eg(s,f):void 0,b=h?ey(f,l):eb,y=h&&c?ex(c):void 0,m=h?j(b,y)??{}:eb;return("u">typeof document&&(h?Array.isArray(u)?m.ref=ei([m.ref,eh(o),...u]):m.ref=en(m.ref,eh(o),u):en(null,null)),h)?(void 0!==d&&(m.className=H(m.className,d)),void 0!==p&&(m.style=j(m.style,p)),m):eb}function ex(n){return Array.isArray(n)?N(n):O(void 0,n)}n.s(["EMPTY_ARRAY",0,ep,"EMPTY_OBJECT",0,eb,"NOOP",0,ed],56789),n.s(["resolveStyle",0,eg],77570);let e_=Symbol.for("react.lazy");function eE(n){if(n?.$$typeof!==e_)return n;let i=er.Children.toArray(n)[0];return er.isValidElement(i)?i:n}function eS(n,i,o,a){if(i){if("function"==typeof i)return i(o,a);let n=O(o,i.props);return n.ref=o.ref,er.cloneElement(i,n)}if(n&&"string"==typeof n)return eM(n,o);throw Error(K(8))}function eM(n,i){return"button"===n?(0,er.createElement)("button",{type:"button",...i,key:i.key}):"img"===n?(0,er.createElement)("img",{alt:"",...i,key:i.key}):er.createElement(n,i)}n.s(["useRenderElement",0,ev],52245)},43820,n=>{"use strict";var i=n.i(308),o=n.i(2388),a=n.i(16984),s=n.i(84563),f=n.i(18771),u=n.i(43476);let c=({video:n})=>(0,u.jsx)(f.JsonLd,{data:{"@context":"https://schema.org","@type":"VideoObject",...n}});var l=n.i(85286),h=n.i(92438),d=n.i(31461),p=n.i(77463),b=n.i(65265),y=n.i(7670),m=n.i(71645),g=u;let v={sm:o.tw`sm:aspect-(--dt-ar)`,md:o.tw`md:aspect-(--dt-ar)`,lg:o.tw`lg:aspect-(--dt-ar)`,landscape:o.tw`landscape:aspect-(--dt-ar)`,"landscape-4/5":o.tw`[@media(min-aspect-ratio:4/5)]:aspect-(--dt-ar)`,hover:o.tw`can-hover:aspect-(--dt-ar)`},w={"top-start":o.tw`inset-s-5 inset-bs-5 lg:inset-s-10 lg:inset-bs-10`,"top-end":o.tw`inset-e-5 inset-bs-5 lg:inset-e-10 lg:inset-bs-10`,"bottom-start":o.tw`inset-s-5 inset-be-5 lg:inset-s-10 lg:inset-be-10`,"bottom-end":o.tw`inset-e-5 inset-be-5 lg:inset-e-10 lg:inset-be-10`},x={"top-start":o.tw`max-lg:inset-s-5 max-lg:inset-bs-5`,"top-end":o.tw`max-lg:inset-e-5 max-lg:inset-bs-5`,"bottom-start":o.tw`max-lg:inset-s-5 max-lg:inset-be-5`,"bottom-end":o.tw`max-lg:inset-e-5 max-lg:inset-be-5`},_={"top-start":o.tw`lg:inset-s-10 lg:inset-bs-10`,"top-end":o.tw`lg:inset-e-10 lg:inset-bs-10`,"bottom-start":o.tw`lg:inset-s-10 lg:inset-be-10`,"bottom-end":o.tw`lg:inset-e-10 lg:inset-be-10`},E=n=>"string"==typeof n?w[n]:(0,y.default)(x[n.default],n.md&&_[n.md]),S=({style:n,sources:o,width:f,height:u,poster:w,loop:x,className:_,posterSizes:S,playButtonClassName:M,playButtonSize:A,playButtonAttributes:R,pauseButtonAttributes:I,mediaClassName:k,mediaContainerAttributes:j,cornerClassName:T,toggleCorner:O="top-start",ref:N,autoPlay:P=!0,preload:B="none",priority:L=!1,naturalAspectRatio:C=!1,desktopWidth:D,desktopHeight:U,desktopSources:$,desktopPoster:F,desktopMediaQuery:z,onPosterLoad:q})=>{let H=z?d.RESPONSIVE_MEDIA_QUERY[z]:void 0,W=L&&"none"===B?"metadata":B,K=(0,m.useRef)(null),G=(0,m.useRef)(null),V=(0,h.useReducedMotion)(),Y=(0,l.useIntersectionObserver)(G,{threshold:0,enabled:P}),[X,J]=(0,m.useState)(!1),Z=(0,m.useEffectEvent)(()=>{G.current?.setAttribute("data-video-ready",""),w||F||q?.()});(0,m.useEffect)(()=>{let n=K.current;if(!n)return;let i=()=>J(!0),o=()=>J(!1);return n.addEventListener("play",i),n.addEventListener("pause",o),n.readyState>=HTMLMediaElement.HAVE_FUTURE_DATA?Z():n.addEventListener("canplay",Z,{once:!0}),()=>{n.removeEventListener("canplay",Z),n.removeEventListener("play",i),n.removeEventListener("pause",o)}},[]),(0,m.useEffect)(()=>{if(!H)return;let n=K.current;if(!n||"u"{let i=!n.paused;n.load(),i&&n.play().catch(()=>{})};return i.addEventListener("change",o),()=>i.removeEventListener("change",o)},[H]);let Q=(0,m.useRef)(!1),ee=(0,m.useRef)(!1);(0,m.useEffect)(()=>{let n=K.current;n&&(Y?ee.current?Q.current&&n.play().catch(()=>{}):(ee.current=!0,P&&!V&&n.play().catch(()=>{})):(Q.current=!n.paused,n.pause()))},[Y,V,P]),(0,m.useImperativeHandle)(N,()=>({play:n=>{let i=K.current;if(i){if(void 0!==n)try{i.readyState>=HTMLMediaElement.HAVE_METADATA&&i.seekable.length>0&&(i.currentTime=n)}catch{}return i.play().catch(()=>{})}},pause:()=>K.current?.pause(),restart:()=>{let n=K.current;if(n){try{n.readyState>=HTMLMediaElement.HAVE_METADATA&&n.seekable.length>0&&(n.currentTime=0)}catch{}n.play().catch(()=>{})}}}));let et=(0,m.useCallback)(()=>{let n=K.current;n&&(n.paused?n.play().catch(()=>{}):n.pause())},[]),{className:er,...en}=j??{},ei="object"==typeof S?(0,p.buildSizes)(S):S??"100vw",eo=F&&H?i.R.getImageProps({...F,sizes:ei}).props:void 0,{srcSet:ea,...es}=(w?i.R.getImageProps({...w,sizes:ei}).props:void 0)??{};return(0,g.jsxs)("div",{ref:G,style:{...C&&f&&u&&{"--mb-ar":`${f}/${u}`},...C&&D&&U&&{"--dt-ar":`${D}/${U}`},...n},"data-theme":"dark",className:(0,y.default)("group/dv relative size-full",C&&f&&u&&"aspect-(--mb-ar)",C&&D&&U&&z&&v[z],_),children:[w&&o[0]&&(0,g.jsx)(c,{video:{name:w.alt,thumbnailUrl:es.src,contentUrl:o[0].src,...f&&u&&{width:f,height:u}}}),(0,g.jsxs)("div",{"data-decorative-wrapper":!0,...en,className:(0,y.default)("absolute inset-0 z-0 overflow-hidden",er),children:[w&&(0,g.jsx)("div",{className:"absolute inset-0 z-1 transition-opacity duration-700 group-data-video-ready/dv:pointer-events-none group-data-video-ready/dv:opacity-0",children:(0,g.jsxs)("picture",{className:"size-full",children:[F&&eo&&H&&(0,g.jsx)("source",{srcSet:eo.srcSet??eo.src,sizes:eo.sizes,media:H}),(0,g.jsx)("source",{srcSet:ea??es.src,sizes:es.sizes,media:H?`not ${H}`:void 0}),(0,g.jsx)(b.Image,{native:!0,priority:L,onLoad:q,className:(0,y.default)("size-full object-cover drag-none",k),...es})]})}),(0,g.jsxs)("video",{ref:K,"aria-hidden":"true",className:(0,y.default)("absolute inset-0 size-full object-cover",k),muted:!0,loop:x??!0,playsInline:!0,preload:W,disablePictureInPicture:!0,children:[H&&$?.map(n=>(0,g.jsx)("source",{src:n.src,type:n.type,media:H},`dk-${n.src}`)),o.map(n=>(0,g.jsx)("source",{src:n.src,type:n.type,media:H?`not ${H}`:void 0},n.src))]})]}),(0,g.jsx)("div",{"data-play-pause-wrapper":!0,children:(0,g.jsx)(s.PlayPauseButton,{isPlaying:X,onToggle:et,size:A,playButtonAttributes:{"aria-label":(0,a.t)("playVideo"),...R},pauseButtonAttributes:{"aria-label":(0,a.t)("pauseVideo"),...I},className:(0,y.default)("absolute z-2 flex cursor-pointer items-center justify-center rounded-full transition-colors duration-300",!1,"bg-white/10 backdrop-blur-[48px] hover:bg-white/20",!1,!A&&"size-10 p-3",!T&&E(O),T,M)})})]})};n.s(["DecorativeVideo",0,S],43820)},30440,n=>{"use strict";var i=n.i(50398),o=n.i(7670),a=n.i(71645),s=n.i(43476),f=n.i(33363);let u="[data-inview]",c="[data-inview-scope]",l="0px 0px -10% 0px",h=0,d="inview-debug",p=()=>{try{return"u">typeof window&&null!=window.localStorage.getItem(d)}catch{return!1}},b=n=>(i,o)=>{p()&&(console.groupCollapsed("%c[InView]%c "+i,"color:#8b5cf6;font-weight:bold","color:inherit"),o&&console.debug(o),console.debug(n),console.groupEnd())},y=({delay:n,duration:i,easing:o,fromTranslateX:a,fromTranslateY:s}={})=>({...null==n?{}:{"--inview-delay":n+"ms"},...null==i?{}:{"--inview-duration":i+"ms"},...null==o?{}:{"--inview-easing":o},...null==a?{}:{"--inview-from-translate-x":a},...null==s?{}:{"--inview-from-translate-y":s}}),m=(n,i)=>{i?n.setAttribute("data-inview-visible",""):n.removeAttribute("data-inview-visible")},g=(n,i)=>{i?n.setAttribute("data-inview-hidden",""):n.removeAttribute("data-inview-hidden")},v=n=>[...n.matches(u)?[n]:[],...Array.from(n.querySelectorAll(u))].filter(i=>i.closest(c)===n),w=({as:n,className:u,threshold:c,rootMargin:d,onVisibilityChange:y,ref:w,...x})=>{let _=n??"div",E=(0,a.useRef)(null),S=(0,i.useMergedRefs)(E,w),M=(0,a.useRef)(c),A=(0,a.useRef)(d),R=(0,a.useRef)(new WeakSet),I="function"==typeof y,k=(0,a.useEffectEvent)((n,i)=>y?.(n,i));return(0,a.useEffect)(()=>{let n=E.current;if(!n||"u"{m(n,!0)});return}let o=[],a;if(I){let i=(0,f.getIntersectionObserver)({rootMargin:A.current,threshold:M.current}),a=n=>{!1===k(n.isIntersecting,n)&&s()},s=()=>i.unsubscribe(n,a);i.subscribe(n,a),o.push(s)}let s=v(n);if(i("observing",{targets:s.length,hasOnChange:I,root:a}),s.forEach(n=>{let s=n.hasAttribute("data-inview-repeat"),u=n.hasAttribute("data-inview-defer"),c=n.hasAttribute("data-inview-await-fonts");if(!s&&R.current.has(n)){i("skip (already revealed)",{target:n}),u?g(n,!1):m(n,!0);return}let d=(0,f.getIntersectionObserver)({root:a,rootMargin:n.dataset.inviewMargin??l,threshold:null!=n.dataset.inviewThreshold?parseFloat(n.dataset.inviewThreshold):h}),p=o=>{let a=o.isIntersecting;i(u?"defer":"reveal",{target:n,isVisible:a,repeat:s,ratio:o.intersectionRatio});let f=()=>{u?g(n,!a):m(n,a)};c&&a&&"u">typeof document&&document.fonts?.status!=="loaded"?(i("awaiting fonts before reveal",{target:n}),document.fonts.ready.then(()=>{n.isConnected&&f()})):f(),!s&&a&&(i("settled (unsubscribing)",{target:n}),R.current.add(n),d.unsubscribe(n,p))};d.subscribe(n,p),o.push(()=>d.unsubscribe(n,p))}),p()&&"u">typeof MutationObserver){let a=new Set(s),f=new MutationObserver(()=>{a.forEach(n=>{n.isConnected||(i("tracked target removed from DOM while still subscribed",{target:n}),a.delete(n))})});f.observe(n,{childList:!0,subtree:!0}),o.push(()=>f.disconnect())}return()=>{i("cleanup",{subscriptions:o.length}),o.forEach(n=>n())}},[I]),(0,s.jsx)(_,{ref:S,className:(0,o.default)("inview-root",u),...x,"data-inview-scope":!0})};n.s(["InView",0,w,"inViewAnimStyle",0,y])},49621,n=>{"use strict";var i=n.i(43476);let o=n=>n.href?(0,i.jsx)("a",{...n,"aria-hidden":"true",tabIndex:-1,className:"absolute inset-0 z-1 drag-none"}):null;n.s(["LinkOverlay",0,o])},13522,n=>{"use strict";var i=n.i(71645),o=n.i(43476);let a=(0,i.createContext)(0),s=()=>(0,i.useContext)(a)??0,f=({children:n,as:i,level:f,ref:u,fragment:c,...l})=>{let h=i||"section",d=s();return(0,o.jsx)(a.Provider,{value:f??Math.min(6,d+1),children:c?(0,o.jsx)(o.Fragment,{children:n}):(0,o.jsx)(h,{ref:u,...l,children:n})})};n.s(["Section",0,f,"useSectionContext",0,s])},2085,n=>{"use strict";var i=n.i(308),o=n.i(71526),a=n.i(2388),s=n.i(27930),f=n.i(7670),u=n.i(43476);let c=a.tw`ease-ms inline-flex cursor-pointer items-center justify-center overflow-hidden text-center leading-none tracking-normal whitespace-nowrap transition-colors duration-300 disabled:cursor-not-allowed aria-disabled:cursor-not-allowed`,l={primary:a.tw`bg-brand text-white outline-brand hover:bg-brand-hover active:bg-brand-active disabled:opacity-40 aria-disabled:opacity-40`,secondary:(0,f.default)("text-black-contrast outline-black-contrast hover:text-black-contrast border disabled:opacity-40 aria-disabled:opacity-40",!1,"border-black-contrast/50 bg-black-contrast/10 text-black-contrast hover:text-white-contrast hover:bg-black-contrast"),hyperlink:(0,f.default)("outline-black-contrast disabled:opacity-40 aria-disabled:opacity-40",!1,"h-5.5 gap-2"),tag:a.tw`bg-ms-grey-1 text-black hover:bg-brand hover:text-white`,naked:a.tw`disabled:opacity-40 aria-disabled:opacity-40`},h=a.tw`outline-offset-4 focus-visible:outline-1`,d={sm:a.tw`label-sm gap-4`,default:a.tw`label-md gap-8`},p={sm:a.tw`py-2`,default:a.tw`py-4`},b={sm:a.tw`rounded-full py-2`,default:a.tw`rounded-full py-4`},y={sm:{before:a.tw`ps-2.5 pe-4`,after:a.tw`ps-4 pe-2.5`,alone:a.tw`px-2`},default:{before:a.tw`px-4`,after:a.tw`px-4`,alone:a.tw`px-4`}},m={sm:a.tw`rounded-full px-6 py-2`,default:a.tw`rounded-full px-5 py-3`},g=({variant:n="primary",size:i="default",icon:o,iconPosition:a="after",children:s,className:u})=>{let g=o&&!s||"alone"===a,v="hyperlink"===n,w="naked"===n,x=!v&&!w;return(0,f.default)(c,l[n],!w&&h,x&&[g?p[i]:[d[i],o?b[i]:m[i]]],g&&"rounded-full",o&&x&&y[i][a],u)},v=({iconPosition:n="after",icon:i,children:o})=>{let a=i&&!o||"alone"===n;return(0,u.jsxs)(u.Fragment,{children:[(a||"before"===n)&&i,"alone"===n&&o?(0,u.jsx)("span",{className:"sr-only",children:o}):o,!a&&"after"===n&&i]})},w=n=>{let{variant:i,size:a,iconPosition:f="after",icon:c,className:l,children:h,text:d,theme:p="auto",...b}=n;return(0,u.jsx)(s.Button,{className:g(n),...(0,o.getThemeAttribute)(p),...b,children:(0,u.jsx)(v,{iconPosition:f,icon:c,children:h||d})})},x=n=>{let{variant:a,size:s,iconPosition:f="after",icon:c,className:l,children:h,theme:d="auto",text:p,href:b,...y}=n,m=!0===y["aria-disabled"]||"true"===y["aria-disabled"],w=(0,u.jsx)(v,{iconPosition:f,icon:c,children:h||p});return m?(0,u.jsx)("a",{className:g(n),...(0,o.getThemeAttribute)(d),...y,role:"link","aria-disabled":!0,children:w}):(0,u.jsx)(i.R.Link,{className:g(n),...(0,o.getThemeAttribute)(d),...y,href:b,children:w})};n.s(["Button",0,w,"ButtonLink",0,x,"variants",0,l])},99627,n=>{"use strict";var i=n.i(2388),o=n.i(13522),a=n.i(7670),s=n.i(43476);let f={1:i.tw`heading-1`,2:i.tw`heading-2`,3:i.tw`heading-3`,4:i.tw`heading-4`,5:i.tw`heading-5`,6:i.tw`heading-6`},u=({text:n,level:i,visualLevel:u,className:c,children:l,preserveWhitespace:h=!0,unstyled:d=!1,...p})=>{let b=(0,o.useSectionContext)();i||b||console.warn("Heading component should be used within a Section component to determine its semantic level. Defaulting to h1 semantics.");let y=(i??b)||1,m=`h${y}`,g=l||n;return(0,s.jsx)(m,{className:(0,a.default)(!d&&f[u??y],h&&"whitespace-pre-wrap",c),...p,children:g})};n.s(["Heading",0,u])},84563,n=>{"use strict";var i=n.i(16984),o=n.i(7670),a=n.i(43476),s=n.i(73186),f=n.i(23681);let u=({isPlaying:n,onToggle:u,playButtonAttributes:c,pauseButtonAttributes:l,playIcon:h=(0,a.jsx)(f.PlayIcon,{fill:!0}),pauseIcon:d=(0,a.jsx)(s.PauseIcon,{fill:!0}),className:p,size:b})=>{let y=n?l:c,m=n?(0,i.t)("pause"):(0,i.t)("play");return(0,a.jsx)("button",{type:"button",onClick:u,"aria-pressed":n,className:(0,o.default)("default"===b&&"size-16 p-[19px]","sm"===b&&"size-8 p-[7px]",p),"aria-label":m,...y,children:n?d:h})};n.s(["PlayPauseButton",0,u])},308,n=>{"use strict";n.i(71645);var i=n.i(43476);let o=({src:n,unoptimized:i,fill:o,quality:a,blurDataURL:s,placeholder:f,ref:u,...c})=>({src:"object"==typeof n?n.src:n,ref:u,nativeImgProps:c});function a(n){n.Link&&(s.Link=n.Link),n.Image&&(s.Image=n.Image),n.getImageProps&&(s.getImageProps=n.getImageProps)}let s={Link:({href:n,...o})=>(0,i.jsx)("a",{href:n,...o}),Image:n=>{let{src:a,ref:s,nativeImgProps:f}=o(n);return(0,i.jsx)("img",{ref:s,src:a,...f})},getImageProps:n=>{let{src:i,nativeImgProps:a}=o(n);return{props:{...a,src:i}}}},f=s;n.s(["R",0,f,"configureRegistry",0,a])},58977,n=>{"use strict";var i=n.i(71645),o=n.i(43476),a=n.i(75324);let s=({as:n,type:s="words",vars:c,onSplit:l,children:h,...d})=>{let p=n??"div",b=(0,i.useRef)(null),y=(0,i.useRef)(null),m=(0,i.useRef)(l),g=(0,i.useRef)(c);return(0,i.useEffect)(()=>{m.current=l}),(0,i.useEffect)(()=>{g.current=c}),(0,i.useEffect)(()=>{let n=b.current;if(!n)return;let i=!1,o=n.style.textWrap,u=n.parentElement?.style.textWrap;return f()&&(n.style.textWrap="wrap",n.parentElement&&(n.parentElement.style.textWrap="wrap")),(document.fonts?.ready??Promise.resolve()).then(()=>{i||(y.current?.revert(),y.current=a.SplitText.create(n,{linesClass:"st-line",wordsClass:"st-word",charsClass:"st-char",autoSplit:!0,aria:"none",...g.current,type:s,onSplit:o=>{o.words?.forEach((n,i)=>{n.style.setProperty("--st-word-index",String(i))}),m.current?.(o),requestAnimationFrame(()=>{i||n.setAttribute("data-split","")})}}))}),()=>{i=!0,y.current?.revert(),y.current=null,n.style.textWrap=o,n.parentElement&&void 0!==u&&(n.parentElement.style.textWrap=u)}},[s,h]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p,{ref:b,...d,"aria-hidden":"true",children:u(h)}),(0,o.jsx)("span",{className:"sr-only",children:h})]})},f=()=>{if("u""string"==typeof n&&n.includes("\n")?n.split("\n").map((n,a)=>(0,o.jsxs)(i.Fragment,{children:[a>0&&(0,o.jsx)("br",{}),n]},a)):n;n.s(["SplitText",0,s])},16984,20955,n=>{"use strict";var i=n.i(7670),o=n.i(43476);let a=({id:n,className:a})=>(0,o.jsx)("sup",{id:`ref-${n}`,children:(0,o.jsx)("a",{className:(0,i.default)("text-hyperlink ms-1 align-baseline underline",a),href:`#footnote-${n}`,children:n})});n.s(["Superscript",0,a],20955);var s=n.i(71645);let f={};function u(n){Object.assign(f,n)}let c=new Set;function l(n,i){let o=f[n];return void 0===o?(c.has(n)||(console.warn(`[@msft/components] Missing i18n key: "${n}". Configure it via .`),c.add(n)),i)?`${n} ${Object.values(i).join(" ")}`:n:i?o.replace(/\{(\w+)\}/g,(n,o)=>String(i[o]??`{${o}}`)):o}function h(n,i){let o=l(n,i);return o.includes("")?(0,s.createElement)(s.Fragment,null,...o.split(/([^<]*<\/sup>)/).map((n,i)=>{let o=n.match(/^([^<]*)<\/sup>$/);return o?(0,s.createElement)(a,{key:i,id:o[1]}):n})):o}n.s(["configureI18n",0,u,"t",0,l,"tNode",0,h],16984)},71526,n=>{"use strict";let i=n=>"auto"===n?{}:{"data-theme":n};n.s(["getThemeAttribute",0,i])},85286,n=>{"use strict";var i=n.i(71645),o=n.i(33363);function a(n,{once:s=!1,enabled:f=!0,root:u,rootMargin:c,threshold:l=.2}={}){let[h,d]=(0,i.useState)(!1),p=(0,i.useRef)(l),b=(0,i.useRef)(c);return(0,i.useEffect)(()=>{if(!f)return;let i=n.current;if(!i||"u"{d(n.isIntersecting),s&&n.isIntersecting&&a.unsubscribe(i,c)};return a.subscribe(i,c),()=>{a.unsubscribe(i,c)}},[n,s,u,f]),!f||h}n.s(["useIntersectionObserver",0,a])},50398,n=>{"use strict";var i=n.i(71645);function o(n,i){if(n){if("function"==typeof n)return void n(i);n.current=i}}function a(...n){let s=(0,i.useRef)(n);return(0,i.useEffect)(()=>{s.current=n}),(0,i.useCallback)(n=>{s.current.forEach(i=>o(i,n))},[])}n.s(["useMergedRefs",0,a])},92438,38559,n=>{"use strict";var i=n.i(71645);function o(n,a=!1){let[s,f]=(0,i.useState)(()=>"u">typeof window?window.matchMedia(n).matches:a);return(0,i.useEffect)(()=>{let i=window.matchMedia(n),o=n=>f(n.matches);return i.addEventListener("change",o),()=>i.removeEventListener("change",o)},[n]),s}function a(){return o("(prefers-reduced-motion: reduce)")}n.s(["useMediaQuery",0,o],38559),n.s(["useReducedMotion",0,a],92438)},31461,77463,65265,n=>{"use strict";let i={sm:640,md:768,lg:1024,xl:1280,"2xl":1440,"3xl":1600},o={sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",landscape:"(orientation: landscape)","landscape-4/5":"(min-aspect-ratio: 4/5)",hover:"(hover: hover)"};function a(n){let{default:o,...a}=n;return[...Object.entries(a).sort(([n],[o])=>i[o]-i[n]).map(([n,o])=>`(min-width: ${i[n]}px) ${o}`),o].join(", ")}n.s(["BREAKPOINTS",0,i,"RESPONSIVE_MEDIA_QUERY",0,o],31461),n.s(["buildSizes",0,a],77463);var s=n.i(308),f=n.i(50398),u=n.i(7670),c=n.i(71645),l=n.i(43476);let h=300,d="ease-out";function p(n){let i=n.animate([{opacity:0},{opacity:1}],{duration:h,easing:d,fill:"forwards"});return i.finished.catch(()=>void 0),i}let b=({fade:n=!0,loading:i,priority:o,fetchPriority:h,onLoad:d,sizes:b,ref:y,src:m,style:g,className:v,native:w,...x})=>{let _=o?"eager":i??"lazy",E=o?"high":h,S=(0,c.useRef)(null),M=(0,f.useMergedRefs)((0,c.useRef)(null),y),A=(0,c.useMemo)(()=>"object"==typeof b?a(b):b,[]);(0,c.useEffect)(()=>()=>{S.current?.cancel()},[]);let R=(0,c.useCallback)(i=>{n&&(S.current?.cancel(),S.current=p(i))},[n]),I=(0,c.useCallback)(n=>{M(n),n&&n.complete&&0!==n.naturalWidth&&(n.setAttribute("data-loaded",""),R(n),d?.())},[M,R,d]),k=(0,c.useCallback)(i=>{i.currentTarget.setAttribute("data-loaded",""),n&&R(i.currentTarget),d?.(i)},[n,d,R]),j={className:(0,u.default)("select-none [-webkit-user-drag:none] [user-drag:none]",n&&"image-fade",v),draggable:!1,sizes:A,loading:_,fetchPriority:E,ref:I,onLoad:k,style:g};if(w){let{fill:n,quality:i,unoptimized:o,placeholder:a,blurDataURL:s,alt:f,...u}=x,c="object"==typeof m?m.src:m;return(0,l.jsx)("img",{alt:f,...u,...j,src:c})}return(0,l.jsx)(s.R.Image,{...x,...j,src:m})};n.s(["Image",0,b],65265)},18771,n=>{"use strict";var i=n.i(43476);let o=n=>JSON.stringify(n).replace(//g,"\\u003e").replace(/&/g,"\\u0026"),a=({data:n})=>(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:o(n)}});n.s(["JsonLd",0,a])},2388,n=>{"use strict";function i(n,...o){return String.raw({raw:n},...o)}n.s(["tw",0,i])},33363,n=>{"use strict";let i=null,o="0px",a=0,s=new Map,f=new WeakMap,u=0,c=(n=a)=>`${n}`,l=(n=i)=>{if(null==n)return"viewport";let o=f.get(n);if(o)return o;let a=`root-${++u}`;return f.set(n,a),a},h=({root:n=i,rootMargin:s=o,threshold:f=a}={})=>`${l(n)}|${s}|${c(f)}`,d=({root:n=i,rootMargin:s=o,threshold:f=a,polyfill:u}={})=>{let c=new Map,l=new(u||window.IntersectionObserver)((n,i)=>{n.forEach(n=>{c.get(n.target)?.forEach(o=>o(n,i))})},{root:n,rootMargin:s,threshold:f});return{observer:l,subscribe(n,i){let o=c.get(n)??new Set;o.size||l.observe(n),o.add(i),c.set(n,o)},unsubscribe(n,i){let o=c.get(n);if(o?.size&&o.has(i)){if(1===o.size){l.unobserve(n),c.delete(n);return}o.delete(i)}}}},p=(n,i)=>{let o=h(n);return s.has(o)||s.set(o,d({...n,polyfill:i})),s.get(o)};n.s(["getIntersectionObserver",0,p])},34582,(n,i,o)=>{"use strict";o.byteLength=d,o.toByteArray=b,o.fromByteArray=g;for(var a=[],s=[],f="u">typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,l=u.length;c0)throw Error("Invalid string. Length must be a multiple of 4");var o=n.indexOf("=");-1===o&&(o=i);var a=o===i?0:4-o%4;return[o,a]}function d(n){var i=h(n),o=i[0],a=i[1];return(o+a)*3/4-a}function p(n,i,o){return(i+o)*3/4-o}function b(n){var i,o,a=h(n),u=a[0],c=a[1],l=new f(p(n,u,c)),d=0,b=c>0?u-4:u;for(o=0;o>16&255,l[d++]=i>>8&255,l[d++]=255&i;return 2===c&&(i=s[n.charCodeAt(o)]<<2|s[n.charCodeAt(o+1)]>>4,l[d++]=255&i),1===c&&(i=s[n.charCodeAt(o)]<<10|s[n.charCodeAt(o+1)]<<4|s[n.charCodeAt(o+2)]>>2,l[d++]=i>>8&255,l[d++]=255&i),l}function y(n){return a[n>>18&63]+a[n>>12&63]+a[n>>6&63]+a[63&n]}function m(n,i,o){for(var a=[],s=i;sl?l:c+u));return 1===s?f.push(a[(i=n[o-1])>>2]+a[i<<4&63]+"=="):2===s&&f.push(a[(i=(n[o-2]<<8)+n[o-1])>>10]+a[i>>4&63]+a[i<<2&63]+"="),f.join("")}s[45]=62,s[95]=63},38492,(n,i,o)=>{o.read=function(n,i,o,a,s){var f,u,c=8*s-a-1,l=(1<>1,d=-7,p=o?s-1:0,b=o?-1:1,y=n[i+p];for(p+=b,f=y&(1<<-d)-1,y>>=-d,d+=c;d>0;f=256*f+n[i+p],p+=b,d-=8);for(u=f&(1<<-d)-1,f>>=-d,d+=a;d>0;u=256*u+n[i+p],p+=b,d-=8);if(0===f)f=1-h;else{if(f===l)return u?NaN:1/0*(y?-1:1);u+=Math.pow(2,a),f-=h}return(y?-1:1)*u*Math.pow(2,f-a)},o.write=function(n,i,o,a,s,f){var u,c,l,h=8*f-s-1,d=(1<>1,b=5960464477539062e-23*(23===s),y=a?0:f-1,m=a?1:-1,g=+(i<0||0===i&&1/i<0);for(isNaN(i=Math.abs(i))||i===1/0?(c=+!!isNaN(i),u=d):(u=Math.floor(Math.log(i)/Math.LN2),i*(l=Math.pow(2,-u))<1&&(u--,l*=2),u+p>=1?i+=b/l:i+=b*Math.pow(2,1-p),i*l>=2&&(u++,l/=2),u+p>=d?(c=0,u=d):u+p>=1?(c=(i*l-1)*Math.pow(2,s),u+=p):(c=i*Math.pow(2,p-1)*Math.pow(2,s),u=0));s>=8;n[o+y]=255&c,y+=m,c/=256,s-=8);for(u=u<0;n[o+y]=255&u,y+=m,u/=256,h-=8);n[o+y-m]|=128*g}},43943,(n,i,o)=>{"use strict";var a=n.r(34582),s=n.r(38492),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;o.Buffer=h,o.SlowBuffer=E,o.INSPECT_MAX_BYTES=50;var u=0x7fffffff;function c(){try{var n=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(n,i),42===n.foo()}catch(n){return!1}}function l(n){if(n>u)throw RangeError('The value "'+n+'" is invalid for option "size"');var i=new Uint8Array(n);return Object.setPrototypeOf(i,h.prototype),i}function h(n,i,o){if("number"==typeof n){if("string"==typeof i)throw TypeError('The "string" argument must be of type string. Received type number');return y(n)}return d(n,i,o)}function d(n,i,o){if("string"==typeof n)return m(n,i);if(ArrayBuffer.isView(n))return v(n);if(null==n)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(ee(n,ArrayBuffer)||n&&ee(n.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(ee(n,SharedArrayBuffer)||n&&ee(n.buffer,SharedArrayBuffer)))return w(n,i,o);if("number"==typeof n)throw TypeError('The "value" argument must not be of type number. Received type number');var a=n.valueOf&&n.valueOf();if(null!=a&&a!==n)return h.from(a,i,o);var s=x(n);if(s)return s;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof n[Symbol.toPrimitive])return h.from(n[Symbol.toPrimitive]("string"),i,o);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}function p(n){if("number"!=typeof n)throw TypeError('"size" argument must be of type number');if(n<0)throw RangeError('The value "'+n+'" is invalid for option "size"')}function b(n,i,o){return(p(n),n<=0)?l(n):void 0!==i?"string"==typeof o?l(n).fill(i,o):l(n).fill(i):l(n)}function y(n){return p(n),l(n<0?0:0|_(n))}function m(n,i){if(("string"!=typeof i||""===i)&&(i="utf8"),!h.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|S(n,i),a=l(o),s=a.write(n,i);return s!==o&&(a=a.slice(0,s)),a}function g(n){for(var i=n.length<0?0:0|_(n.length),o=l(i),a=0;a=u)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|n}function E(n){return+n!=n&&(n=0),h.alloc(+n)}function S(n,i){if(h.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||ee(n,ArrayBuffer))return n.byteLength;if("string"!=typeof n)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var o=n.length,a=arguments.length>2&&!0===arguments[2];if(!a&&0===o)return 0;for(var s=!1;;)switch(i){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return Y(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return Z(n).length;default:if(s)return a?-1:Y(n).length;i=(""+i).toLowerCase(),s=!0}}function M(n,i,o){var a=!1;if((void 0===i||i<0)&&(i=0),i>this.length||((void 0===o||o>this.length)&&(o=this.length),o<=0||(o>>>=0)<=(i>>>=0)))return"";for(n||(n="utf8");;)switch(n){case"hex":return $(this,i,o);case"utf8":case"utf-8":return B(this,i,o);case"ascii":return D(this,i,o);case"latin1":case"binary":return U(this,i,o);case"base64":return P(this,i,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,i,o);default:if(a)throw TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),a=!0}}function A(n,i,o){var a=n[i];n[i]=n[o],n[o]=a}function R(n,i,o,a,s){if(0===n.length)return -1;if("string"==typeof o?(a=o,o=0):o>0x7fffffff?o=0x7fffffff:o<-0x80000000&&(o=-0x80000000),et(o*=1)&&(o=s?0:n.length-1),o<0&&(o=n.length+o),o>=n.length)if(s)return -1;else o=n.length-1;else if(o<0)if(!s)return -1;else o=0;if("string"==typeof i&&(i=h.from(i,a)),h.isBuffer(i))return 0===i.length?-1:I(n,i,o,a,s);if("number"==typeof i){if(i&=255,"function"==typeof Uint8Array.prototype.indexOf)if(s)return Uint8Array.prototype.indexOf.call(n,i,o);else return Uint8Array.prototype.lastIndexOf.call(n,i,o);return I(n,[i],o,a,s)}throw TypeError("val must be string, number or Buffer")}function I(n,i,o,a,s){var f,u=1,c=n.length,l=i.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(n.length<2||i.length<2)return -1;u=2,c/=2,l/=2,o/=2}function h(n,i){return 1===u?n[i]:n.readUInt16BE(i*u)}if(s){var d=-1;for(f=o;fc&&(o=c-l),f=o;f>=0;f--){for(var p=!0,b=0;bs&&(a=s):a=s;var f=i.length;a>f/2&&(a=f/2);for(var u=0;u239?4:h>223?3:h>191?2:1;if(s+p<=o)switch(p){case 1:h<128&&(d=h);break;case 2:(192&(f=n[s+1]))==128&&(l=(31&h)<<6|63&f)>127&&(d=l);break;case 3:f=n[s+1],u=n[s+2],(192&f)==128&&(192&u)==128&&(l=(15&h)<<12|(63&f)<<6|63&u)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:f=n[s+1],u=n[s+2],c=n[s+3],(192&f)==128&&(192&u)==128&&(192&c)==128&&(l=(15&h)<<18|(63&f)<<12|(63&u)<<6|63&c)>65535&&l<1114112&&(d=l)}null===d?(d=65533,p=1):d>65535&&(d-=65536,a.push(d>>>10&1023|55296),d=56320|1023&d),a.push(d),s+=p}return C(a)}o.kMaxLength=0x7fffffff,h.TYPED_ARRAY_SUPPORT=c(),!h.TYPED_ARRAY_SUPPORT&&"u">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(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(n,i,o){return d(n,i,o)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(n,i,o){return b(n,i,o)},h.allocUnsafe=function(n){return y(n)},h.allocUnsafeSlow=function(n){return y(n)},h.isBuffer=function(n){return null!=n&&!0===n._isBuffer&&n!==h.prototype},h.compare=function(n,i){if(ee(n,Uint8Array)&&(n=h.from(n,n.offset,n.byteLength)),ee(i,Uint8Array)&&(i=h.from(i,i.offset,i.byteLength)),!h.isBuffer(n)||!h.isBuffer(i))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===i)return 0;for(var o=n.length,a=i.length,s=0,f=Math.min(o,a);sa.length?h.from(f).copy(a,s):Uint8Array.prototype.set.call(a,f,s);else if(h.isBuffer(f))f.copy(a,s);else throw TypeError('"list" argument must be an Array of Buffers');s+=f.length}return a},h.byteLength=S,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var n=this.length;if(n%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;ii&&(n+=" ... "),""},f&&(h.prototype[f]=h.prototype.inspect),h.prototype.compare=function(n,i,o,a,s){if(ee(n,Uint8Array)&&(n=h.from(n,n.offset,n.byteLength)),!h.isBuffer(n))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(void 0===i&&(i=0),void 0===o&&(o=n?n.length:0),void 0===a&&(a=0),void 0===s&&(s=this.length),i<0||o>n.length||a<0||s>this.length)throw RangeError("out of range index");if(a>=s&&i>=o)return 0;if(a>=s)return -1;if(i>=o)return 1;if(i>>>=0,o>>>=0,a>>>=0,s>>>=0,this===n)return 0;for(var f=s-a,u=o-i,c=Math.min(f,u),l=this.slice(a,s),d=n.slice(i,o),p=0;p>>=0,isFinite(o)?(o>>>=0,void 0===a&&(a="utf8")):(a=o,o=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-i;if((void 0===o||o>s)&&(o=s),n.length>0&&(o<0||i<0)||i>this.length)throw RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var f=!1;;)switch(a){case"hex":return k(this,n,i,o);case"utf8":case"utf-8":return j(this,n,i,o);case"ascii":case"latin1":case"binary":return T(this,n,i,o);case"base64":return O(this,n,i,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,n,i,o);default:if(f)throw TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),f=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function C(n){var i=n.length;if(i<=L)return String.fromCharCode.apply(String,n);for(var o="",a=0;aa)&&(o=a);for(var s="",f=i;fo)throw RangeError("Trying to access beyond buffer length")}function q(n,i,o,a,s,f){if(!h.isBuffer(n))throw TypeError('"buffer" argument must be a Buffer instance');if(i>s||in.length)throw RangeError("Index out of range")}function H(n,i,o,a,s,f){if(o+a>n.length||o<0)throw RangeError("Index out of range")}function W(n,i,o,a,f){return i*=1,o>>>=0,f||H(n,i,o,4,34028234663852886e22,-34028234663852886e22),s.write(n,i,o,a,23,4),o+4}function K(n,i,o,a,f){return i*=1,o>>>=0,f||H(n,i,o,8,17976931348623157e292,-17976931348623157e292),s.write(n,i,o,a,52,8),o+8}h.prototype.slice=function(n,i){var o=this.length;n=~~n,i=void 0===i?o:~~i,n<0?(n+=o)<0&&(n=0):n>o&&(n=o),i<0?(i+=o)<0&&(i=0):i>o&&(i=o),i>>=0,i>>>=0,o||z(n,i,this.length);for(var a=this[n],s=1,f=0;++f>>=0,i>>>=0,o||z(n,i,this.length);for(var a=this[n+--i],s=1;i>0&&(s*=256);)a+=this[n+--i]*s;return a},h.prototype.readUint8=h.prototype.readUInt8=function(n,i){return n>>>=0,i||z(n,1,this.length),this[n]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(n,i){return n>>>=0,i||z(n,2,this.length),this[n]|this[n+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(n,i){return n>>>=0,i||z(n,2,this.length),this[n]<<8|this[n+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(n,i){return n>>>=0,i||z(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+0x1000000*this[n+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(n,i){return n>>>=0,i||z(n,4,this.length),0x1000000*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},h.prototype.readIntLE=function(n,i,o){n>>>=0,i>>>=0,o||z(n,i,this.length);for(var a=this[n],s=1,f=0;++f=(s*=128)&&(a-=Math.pow(2,8*i)),a},h.prototype.readIntBE=function(n,i,o){n>>>=0,i>>>=0,o||z(n,i,this.length);for(var a=i,s=1,f=this[n+--a];a>0&&(s*=256);)f+=this[n+--a]*s;return f>=(s*=128)&&(f-=Math.pow(2,8*i)),f},h.prototype.readInt8=function(n,i){return(n>>>=0,i||z(n,1,this.length),128&this[n])?-((255-this[n]+1)*1):this[n]},h.prototype.readInt16LE=function(n,i){n>>>=0,i||z(n,2,this.length);var o=this[n]|this[n+1]<<8;return 32768&o?0xffff0000|o:o},h.prototype.readInt16BE=function(n,i){n>>>=0,i||z(n,2,this.length);var o=this[n+1]|this[n]<<8;return 32768&o?0xffff0000|o:o},h.prototype.readInt32LE=function(n,i){return n>>>=0,i||z(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},h.prototype.readInt32BE=function(n,i){return n>>>=0,i||z(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},h.prototype.readFloatLE=function(n,i){return n>>>=0,i||z(n,4,this.length),s.read(this,n,!0,23,4)},h.prototype.readFloatBE=function(n,i){return n>>>=0,i||z(n,4,this.length),s.read(this,n,!1,23,4)},h.prototype.readDoubleLE=function(n,i){return n>>>=0,i||z(n,8,this.length),s.read(this,n,!0,52,8)},h.prototype.readDoubleBE=function(n,i){return n>>>=0,i||z(n,8,this.length),s.read(this,n,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(n,i,o,a){if(n*=1,i>>>=0,o>>>=0,!a){var s=Math.pow(2,8*o)-1;q(this,n,i,o,s,0)}var f=1,u=0;for(this[i]=255&n;++u>>=0,o>>>=0,!a){var s=Math.pow(2,8*o)-1;q(this,n,i,o,s,0)}var f=o-1,u=1;for(this[i+f]=255&n;--f>=0&&(u*=256);)this[i+f]=n/u&255;return i+o},h.prototype.writeUint8=h.prototype.writeUInt8=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,1,255,0),this[i]=255&n,i+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,2,65535,0),this[i]=255&n,this[i+1]=n>>>8,i+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,2,65535,0),this[i]=n>>>8,this[i+1]=255&n,i+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,4,0xffffffff,0),this[i+3]=n>>>24,this[i+2]=n>>>16,this[i+1]=n>>>8,this[i]=255&n,i+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,4,0xffffffff,0),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=255&n,i+4},h.prototype.writeIntLE=function(n,i,o,a){if(n*=1,i>>>=0,!a){var s=Math.pow(2,8*o-1);q(this,n,i,o,s-1,-s)}var f=0,u=1,c=0;for(this[i]=255&n;++f>>=0,!a){var s=Math.pow(2,8*o-1);q(this,n,i,o,s-1,-s)}var f=o-1,u=1,c=0;for(this[i+f]=255&n;--f>=0&&(u*=256);)n<0&&0===c&&0!==this[i+f+1]&&(c=1),this[i+f]=(n/u|0)-c&255;return i+o},h.prototype.writeInt8=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,1,127,-128),n<0&&(n=255+n+1),this[i]=255&n,i+1},h.prototype.writeInt16LE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,2,32767,-32768),this[i]=255&n,this[i+1]=n>>>8,i+2},h.prototype.writeInt16BE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,2,32767,-32768),this[i]=n>>>8,this[i+1]=255&n,i+2},h.prototype.writeInt32LE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,4,0x7fffffff,-0x80000000),this[i]=255&n,this[i+1]=n>>>8,this[i+2]=n>>>16,this[i+3]=n>>>24,i+4},h.prototype.writeInt32BE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,4,0x7fffffff,-0x80000000),n<0&&(n=0xffffffff+n+1),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=255&n,i+4},h.prototype.writeFloatLE=function(n,i,o){return W(this,n,i,!0,o)},h.prototype.writeFloatBE=function(n,i,o){return W(this,n,i,!1,o)},h.prototype.writeDoubleLE=function(n,i,o){return K(this,n,i,!0,o)},h.prototype.writeDoubleBE=function(n,i,o){return K(this,n,i,!1,o)},h.prototype.copy=function(n,i,o,a){if(!h.isBuffer(n))throw TypeError("argument should be a Buffer");if(o||(o=0),a||0===a||(a=this.length),i>=n.length&&(i=n.length),i||(i=0),a>0&&a=this.length)throw RangeError("Index out of range");if(a<0)throw RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),n.length-i>>=0,o=void 0===o?this.length:o>>>0,n||(n=0),"number"==typeof n)for(s=i;s55295&&o<57344){if(!s){if(o>56319||u+1===a){(i-=3)>-1&&f.push(239,191,189);continue}s=o;continue}if(o<56320){(i-=3)>-1&&f.push(239,191,189),s=o;continue}o=(s-55296<<10|o-56320)+65536}else s&&(i-=3)>-1&&f.push(239,191,189);if(s=null,o<128){if((i-=1)<0)break;f.push(o)}else if(o<2048){if((i-=2)<0)break;f.push(o>>6|192,63&o|128)}else if(o<65536){if((i-=3)<0)break;f.push(o>>12|224,o>>6&63|128,63&o|128)}else if(o<1114112){if((i-=4)<0)break;f.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else throw Error("Invalid code point")}return f}function X(n){for(var i=[],o=0;o>8,s.push(o%256),s.push(a);return s}function Z(n){return a.toByteArray(V(n))}function Q(n,i,o,a){for(var s=0;s=i.length)&&!(s>=n.length);++s)i[s+o]=n[s];return s}function ee(n,i){return n instanceof i||null!=n&&null!=n.constructor&&null!=n.constructor.name&&n.constructor.name===i.name}function et(n){return n!=n}var er=function(){for(var n="0123456789abcdef",i=Array(256),o=0;o<16;++o)for(var a=16*o,s=0;s<16;++s)i[a+s]=n[o]+n[s];return i}()},42524,(n,i,o)=>{var a=n.r(43943),s=a.Buffer;function f(n,i){for(var o in n)i[o]=n[o]}function u(n,i,o){return s(n,i,o)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?i.exports=a:(f(a,o),o.Buffer=u),u.prototype=Object.create(s.prototype),f(s,u),u.from=function(n,i,o){if("number"==typeof n)throw TypeError("Argument must not be a number");return s(n,i,o)},u.alloc=function(n,i,o){if("number"!=typeof n)throw TypeError("Argument must be a number");var a=s(n);return void 0!==i?"string"==typeof o?a.fill(i,o):a.fill(i):a.fill(0),a},u.allocUnsafe=function(n){if("number"!=typeof n)throw TypeError("Argument must be a number");return s(n)},u.allocUnsafeSlow=function(n){if("number"!=typeof n)throw TypeError("Argument must be a number");return a.SlowBuffer(n)}},30662,(n,i,o)=>{!function(){"use strict";var n={294:function(n){var i,o="object"==typeof Reflect?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(n,i,o){return Function.prototype.apply.call(n,i,o)};function s(n){console&&console.warn&&console.warn(n)}i=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:function(n){return Object.getOwnPropertyNames(n)};var f=Number.isNaN||function(n){return n!=n};function u(){u.init.call(this)}n.exports=u,n.exports.once=x,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function l(n){if("function"!=typeof n)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}function h(n){return void 0===n._maxListeners?u.defaultMaxListeners:n._maxListeners}function d(n,i,o,a){if(l(o),void 0===(u=n._events)?(u=n._events=Object.create(null),n._eventsCount=0):(void 0!==u.newListener&&(n.emit("newListener",i,o.listener?o.listener:o),u=n._events),c=u[i]),void 0===c)c=u[i]=o,++n._eventsCount;else if("function"==typeof c?c=u[i]=a?[o,c]:[c,o]:a?c.unshift(o):c.push(o),(f=h(n))>0&&c.length>f&&!c.warned){c.warned=!0;var f,u,c,d=Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(i)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=n,d.type=i,d.count=c.length,s(d)}return n}function p(){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 b(n,i,o){var a={fired:!1,wrapFn:void 0,target:n,type:i,listener:o},s=p.bind(a);return s.listener=o,a.wrapFn=s,s}function y(n,i,o){var a=n._events;if(void 0===a)return[];var s=a[i];return void 0===s?[]:"function"==typeof s?o?[s.listener||s]:[s]:o?w(s):g(s,s.length)}function m(n){var i=this._events;if(void 0!==i){var o=i[n];if("function"==typeof o)return 1;if(void 0!==o)return o.length}return 0}function g(n,i){for(var o=Array(i),a=0;a0&&(u=i[0]),u instanceof Error)throw u;var u,c=Error("Unhandled error."+(u?" ("+u.message+")":""));throw c.context=u,c}var l=f[n];if(void 0===l)return!1;if("function"==typeof l)a(l,this,i);else for(var h=l.length,d=g(l,h),o=0;o=0;f--)if(o[f]===i||o[f].listener===i){u=o[f].listener,s=f;break}if(s<0)return this;0===s?o.shift():v(o,s),1===o.length&&(a[n]=o[0]),void 0!==a.removeListener&&this.emit("removeListener",n,u||i)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(n){var i,o,a;if(void 0===(o=this._events))return this;if(void 0===o.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==o[n]&&(0==--this._eventsCount?this._events=Object.create(null):delete o[n]),this;if(0==arguments.length){var s,f=Object.keys(o);for(a=0;a=0;a--)this.removeListener(n,i[a]);return this},u.prototype.listeners=function(n){return y(this,n,!0)},u.prototype.rawListeners=function(n){return y(this,n,!1)},u.listenerCount=function(n,i){return"function"==typeof n.listenerCount?n.listenerCount(i):m.call(n,i)},u.prototype.listenerCount=m,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}}},o={};function a(i){var s=o[i];if(void 0!==s)return s.exports;var f=o[i]={exports:{}},u=!0;try{n[i](f,f.exports,a),u=!1}finally{u&&delete o[i]}return f.exports}a.ab="/ROOT/node_modules/next/dist/compiled/events/",i.exports=a(294)}()},67034,(n,i,o)=>{var a={872:function(n,i){"use strict";i.byteLength=h,i.toByteArray=p,i.fromByteArray=m;for(var o=[],a=[],s="u">typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=f.length;u0)throw Error("Invalid string. Length must be a multiple of 4");var o=n.indexOf("=");-1===o&&(o=i);var a=o===i?0:4-o%4;return[o,a]}function h(n){var i=l(n),o=i[0],a=i[1];return(o+a)*3/4-a}function d(n,i,o){return(i+o)*3/4-o}function p(n){var i,o,f=l(n),u=f[0],c=f[1],h=new s(d(n,u,c)),p=0,b=c>0?u-4:u;for(o=0;o>16&255,h[p++]=i>>8&255,h[p++]=255&i;return 2===c&&(i=a[n.charCodeAt(o)]<<2|a[n.charCodeAt(o+1)]>>4,h[p++]=255&i),1===c&&(i=a[n.charCodeAt(o)]<<10|a[n.charCodeAt(o+1)]<<4|a[n.charCodeAt(o+2)]>>2,h[p++]=i>>8&255,h[p++]=255&i),h}function b(n){return o[n>>18&63]+o[n>>12&63]+o[n>>6&63]+o[63&n]}function y(n,i,o){for(var a=[],s=i;sl?l:c+u));return 1===s?f.push(o[(i=n[a-1])>>2]+o[i<<4&63]+"=="):2===s&&f.push(o[(i=(n[a-2]<<8)+n[a-1])>>10]+o[i>>4&63]+o[i<<2&63]+"="),f.join("")}a[45]=62,a[95]=63},230:function(n,i,o){"use strict";var a=o(872),s=o(321),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;i.Buffer=h,i.SlowBuffer=_,i.INSPECT_MAX_BYTES=50;var u=0x7fffffff;function c(){try{var n=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(n,i),42===n.foo()}catch(n){return!1}}function l(n){if(n>u)throw RangeError('The value "'+n+'" is invalid for option "size"');var i=new Uint8Array(n);return Object.setPrototypeOf(i,h.prototype),i}function h(n,i,o){if("number"==typeof n){if("string"==typeof i)throw TypeError('The "string" argument must be of type string. Received type number');return y(n)}return d(n,i,o)}function d(n,i,o){if("string"==typeof n)return m(n,i);if(ArrayBuffer.isView(n))return g(n);if(null==n)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(ee(n,ArrayBuffer)||n&&ee(n.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(ee(n,SharedArrayBuffer)||n&&ee(n.buffer,SharedArrayBuffer)))return v(n,i,o);if("number"==typeof n)throw TypeError('The "value" argument must not be of type number. Received type number');var a=n.valueOf&&n.valueOf();if(null!=a&&a!==n)return h.from(a,i,o);var s=w(n);if(s)return s;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof n[Symbol.toPrimitive])return h.from(n[Symbol.toPrimitive]("string"),i,o);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}function p(n){if("number"!=typeof n)throw TypeError('"size" argument must be of type number');if(n<0)throw RangeError('The value "'+n+'" is invalid for option "size"')}function b(n,i,o){return(p(n),n<=0)?l(n):void 0!==i?"string"==typeof o?l(n).fill(i,o):l(n).fill(i):l(n)}function y(n){return p(n),l(n<0?0:0|x(n))}function m(n,i){if(("string"!=typeof i||""===i)&&(i="utf8"),!h.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|E(n,i),a=l(o),s=a.write(n,i);return s!==o&&(a=a.slice(0,s)),a}function g(n){for(var i=n.length<0?0:0|x(n.length),o=l(i),a=0;a=u)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|n}function _(n){return+n!=n&&(n=0),h.alloc(+n)}function E(n,i){if(h.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||ee(n,ArrayBuffer))return n.byteLength;if("string"!=typeof n)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var o=n.length,a=arguments.length>2&&!0===arguments[2];if(!a&&0===o)return 0;for(var s=!1;;)switch(i){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return Y(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return Z(n).length;default:if(s)return a?-1:Y(n).length;i=(""+i).toLowerCase(),s=!0}}function S(n,i,o){var a=!1;if((void 0===i||i<0)&&(i=0),i>this.length||((void 0===o||o>this.length)&&(o=this.length),o<=0||(o>>>=0)<=(i>>>=0)))return"";for(n||(n="utf8");;)switch(n){case"hex":return $(this,i,o);case"utf8":case"utf-8":return B(this,i,o);case"ascii":return D(this,i,o);case"latin1":case"binary":return U(this,i,o);case"base64":return P(this,i,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,i,o);default:if(a)throw TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),a=!0}}function M(n,i,o){var a=n[i];n[i]=n[o],n[o]=a}function A(n,i,o,a,s){if(0===n.length)return -1;if("string"==typeof o?(a=o,o=0):o>0x7fffffff?o=0x7fffffff:o<-0x80000000&&(o=-0x80000000),et(o*=1)&&(o=s?0:n.length-1),o<0&&(o=n.length+o),o>=n.length)if(s)return -1;else o=n.length-1;else if(o<0)if(!s)return -1;else o=0;if("string"==typeof i&&(i=h.from(i,a)),h.isBuffer(i))return 0===i.length?-1:R(n,i,o,a,s);if("number"==typeof i){if(i&=255,"function"==typeof Uint8Array.prototype.indexOf)if(s)return Uint8Array.prototype.indexOf.call(n,i,o);else return Uint8Array.prototype.lastIndexOf.call(n,i,o);return R(n,[i],o,a,s)}throw TypeError("val must be string, number or Buffer")}function R(n,i,o,a,s){var f,u=1,c=n.length,l=i.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(n.length<2||i.length<2)return -1;u=2,c/=2,l/=2,o/=2}function h(n,i){return 1===u?n[i]:n.readUInt16BE(i*u)}if(s){var d=-1;for(f=o;fc&&(o=c-l),f=o;f>=0;f--){for(var p=!0,b=0;bs&&(a=s):a=s;var f=i.length;a>f/2&&(a=f/2);for(var u=0;u239?4:h>223?3:h>191?2:1;if(s+p<=o)switch(p){case 1:h<128&&(d=h);break;case 2:(192&(f=n[s+1]))==128&&(l=(31&h)<<6|63&f)>127&&(d=l);break;case 3:f=n[s+1],u=n[s+2],(192&f)==128&&(192&u)==128&&(l=(15&h)<<12|(63&f)<<6|63&u)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:f=n[s+1],u=n[s+2],c=n[s+3],(192&f)==128&&(192&u)==128&&(192&c)==128&&(l=(15&h)<<18|(63&f)<<12|(63&u)<<6|63&c)>65535&&l<1114112&&(d=l)}null===d?(d=65533,p=1):d>65535&&(d-=65536,a.push(d>>>10&1023|55296),d=56320|1023&d),a.push(d),s+=p}return C(a)}i.kMaxLength=0x7fffffff,h.TYPED_ARRAY_SUPPORT=c(),!h.TYPED_ARRAY_SUPPORT&&"u">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(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(n,i,o){return d(n,i,o)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(n,i,o){return b(n,i,o)},h.allocUnsafe=function(n){return y(n)},h.allocUnsafeSlow=function(n){return y(n)},h.isBuffer=function(n){return null!=n&&!0===n._isBuffer&&n!==h.prototype},h.compare=function(n,i){if(ee(n,Uint8Array)&&(n=h.from(n,n.offset,n.byteLength)),ee(i,Uint8Array)&&(i=h.from(i,i.offset,i.byteLength)),!h.isBuffer(n)||!h.isBuffer(i))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===i)return 0;for(var o=n.length,a=i.length,s=0,f=Math.min(o,a);so&&(n+=" ... "),""},f&&(h.prototype[f]=h.prototype.inspect),h.prototype.compare=function(n,i,o,a,s){if(ee(n,Uint8Array)&&(n=h.from(n,n.offset,n.byteLength)),!h.isBuffer(n))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(void 0===i&&(i=0),void 0===o&&(o=n?n.length:0),void 0===a&&(a=0),void 0===s&&(s=this.length),i<0||o>n.length||a<0||s>this.length)throw RangeError("out of range index");if(a>=s&&i>=o)return 0;if(a>=s)return -1;if(i>=o)return 1;if(i>>>=0,o>>>=0,a>>>=0,s>>>=0,this===n)return 0;for(var f=s-a,u=o-i,c=Math.min(f,u),l=this.slice(a,s),d=n.slice(i,o),p=0;p>>=0,isFinite(o)?(o>>>=0,void 0===a&&(a="utf8")):(a=o,o=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-i;if((void 0===o||o>s)&&(o=s),n.length>0&&(o<0||i<0)||i>this.length)throw RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var f=!1;;)switch(a){case"hex":return I(this,n,i,o);case"utf8":case"utf-8":return k(this,n,i,o);case"ascii":return j(this,n,i,o);case"latin1":case"binary":return T(this,n,i,o);case"base64":return O(this,n,i,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,n,i,o);default:if(f)throw TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),f=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function C(n){var i=n.length;if(i<=L)return String.fromCharCode.apply(String,n);for(var o="",a=0;aa)&&(o=a);for(var s="",f=i;fo)throw RangeError("Trying to access beyond buffer length")}function q(n,i,o,a,s,f){if(!h.isBuffer(n))throw TypeError('"buffer" argument must be a Buffer instance');if(i>s||in.length)throw RangeError("Index out of range")}function H(n,i,o,a,s,f){if(o+a>n.length||o<0)throw RangeError("Index out of range")}function W(n,i,o,a,f){return i*=1,o>>>=0,f||H(n,i,o,4,34028234663852886e22,-34028234663852886e22),s.write(n,i,o,a,23,4),o+4}function K(n,i,o,a,f){return i*=1,o>>>=0,f||H(n,i,o,8,17976931348623157e292,-17976931348623157e292),s.write(n,i,o,a,52,8),o+8}h.prototype.slice=function(n,i){var o=this.length;n=~~n,i=void 0===i?o:~~i,n<0?(n+=o)<0&&(n=0):n>o&&(n=o),i<0?(i+=o)<0&&(i=0):i>o&&(i=o),i>>=0,i>>>=0,o||z(n,i,this.length);for(var a=this[n],s=1,f=0;++f>>=0,i>>>=0,o||z(n,i,this.length);for(var a=this[n+--i],s=1;i>0&&(s*=256);)a+=this[n+--i]*s;return a},h.prototype.readUInt8=function(n,i){return n>>>=0,i||z(n,1,this.length),this[n]},h.prototype.readUInt16LE=function(n,i){return n>>>=0,i||z(n,2,this.length),this[n]|this[n+1]<<8},h.prototype.readUInt16BE=function(n,i){return n>>>=0,i||z(n,2,this.length),this[n]<<8|this[n+1]},h.prototype.readUInt32LE=function(n,i){return n>>>=0,i||z(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+0x1000000*this[n+3]},h.prototype.readUInt32BE=function(n,i){return n>>>=0,i||z(n,4,this.length),0x1000000*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},h.prototype.readIntLE=function(n,i,o){n>>>=0,i>>>=0,o||z(n,i,this.length);for(var a=this[n],s=1,f=0;++f=(s*=128)&&(a-=Math.pow(2,8*i)),a},h.prototype.readIntBE=function(n,i,o){n>>>=0,i>>>=0,o||z(n,i,this.length);for(var a=i,s=1,f=this[n+--a];a>0&&(s*=256);)f+=this[n+--a]*s;return f>=(s*=128)&&(f-=Math.pow(2,8*i)),f},h.prototype.readInt8=function(n,i){return(n>>>=0,i||z(n,1,this.length),128&this[n])?-((255-this[n]+1)*1):this[n]},h.prototype.readInt16LE=function(n,i){n>>>=0,i||z(n,2,this.length);var o=this[n]|this[n+1]<<8;return 32768&o?0xffff0000|o:o},h.prototype.readInt16BE=function(n,i){n>>>=0,i||z(n,2,this.length);var o=this[n+1]|this[n]<<8;return 32768&o?0xffff0000|o:o},h.prototype.readInt32LE=function(n,i){return n>>>=0,i||z(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},h.prototype.readInt32BE=function(n,i){return n>>>=0,i||z(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},h.prototype.readFloatLE=function(n,i){return n>>>=0,i||z(n,4,this.length),s.read(this,n,!0,23,4)},h.prototype.readFloatBE=function(n,i){return n>>>=0,i||z(n,4,this.length),s.read(this,n,!1,23,4)},h.prototype.readDoubleLE=function(n,i){return n>>>=0,i||z(n,8,this.length),s.read(this,n,!0,52,8)},h.prototype.readDoubleBE=function(n,i){return n>>>=0,i||z(n,8,this.length),s.read(this,n,!1,52,8)},h.prototype.writeUIntLE=function(n,i,o,a){if(n*=1,i>>>=0,o>>>=0,!a){var s=Math.pow(2,8*o)-1;q(this,n,i,o,s,0)}var f=1,u=0;for(this[i]=255&n;++u>>=0,o>>>=0,!a){var s=Math.pow(2,8*o)-1;q(this,n,i,o,s,0)}var f=o-1,u=1;for(this[i+f]=255&n;--f>=0&&(u*=256);)this[i+f]=n/u&255;return i+o},h.prototype.writeUInt8=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,1,255,0),this[i]=255&n,i+1},h.prototype.writeUInt16LE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,2,65535,0),this[i]=255&n,this[i+1]=n>>>8,i+2},h.prototype.writeUInt16BE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,2,65535,0),this[i]=n>>>8,this[i+1]=255&n,i+2},h.prototype.writeUInt32LE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,4,0xffffffff,0),this[i+3]=n>>>24,this[i+2]=n>>>16,this[i+1]=n>>>8,this[i]=255&n,i+4},h.prototype.writeUInt32BE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,4,0xffffffff,0),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=255&n,i+4},h.prototype.writeIntLE=function(n,i,o,a){if(n*=1,i>>>=0,!a){var s=Math.pow(2,8*o-1);q(this,n,i,o,s-1,-s)}var f=0,u=1,c=0;for(this[i]=255&n;++f>>=0,!a){var s=Math.pow(2,8*o-1);q(this,n,i,o,s-1,-s)}var f=o-1,u=1,c=0;for(this[i+f]=255&n;--f>=0&&(u*=256);)n<0&&0===c&&0!==this[i+f+1]&&(c=1),this[i+f]=(n/u|0)-c&255;return i+o},h.prototype.writeInt8=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,1,127,-128),n<0&&(n=255+n+1),this[i]=255&n,i+1},h.prototype.writeInt16LE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,2,32767,-32768),this[i]=255&n,this[i+1]=n>>>8,i+2},h.prototype.writeInt16BE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,2,32767,-32768),this[i]=n>>>8,this[i+1]=255&n,i+2},h.prototype.writeInt32LE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,4,0x7fffffff,-0x80000000),this[i]=255&n,this[i+1]=n>>>8,this[i+2]=n>>>16,this[i+3]=n>>>24,i+4},h.prototype.writeInt32BE=function(n,i,o){return n*=1,i>>>=0,o||q(this,n,i,4,0x7fffffff,-0x80000000),n<0&&(n=0xffffffff+n+1),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=255&n,i+4},h.prototype.writeFloatLE=function(n,i,o){return W(this,n,i,!0,o)},h.prototype.writeFloatBE=function(n,i,o){return W(this,n,i,!1,o)},h.prototype.writeDoubleLE=function(n,i,o){return K(this,n,i,!0,o)},h.prototype.writeDoubleBE=function(n,i,o){return K(this,n,i,!1,o)},h.prototype.copy=function(n,i,o,a){if(!h.isBuffer(n))throw TypeError("argument should be a Buffer");if(o||(o=0),a||0===a||(a=this.length),i>=n.length&&(i=n.length),i||(i=0),a>0&&a=this.length)throw RangeError("Index out of range");if(a<0)throw RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),n.length-i=0;--f)n[f+i]=this[f+o];else Uint8Array.prototype.set.call(n,this.subarray(o,a),i);return s},h.prototype.fill=function(n,i,o,a){if("string"==typeof n){if("string"==typeof i?(a=i,i=0,o=this.length):"string"==typeof o&&(a=o,o=this.length),void 0!==a&&"string"!=typeof a)throw TypeError("encoding must be a string");if("string"==typeof a&&!h.isEncoding(a))throw TypeError("Unknown encoding: "+a);if(1===n.length){var s,f=n.charCodeAt(0);("utf8"===a&&f<128||"latin1"===a)&&(n=f)}}else"number"==typeof n?n&=255:"boolean"==typeof n&&(n=Number(n));if(i<0||this.length>>=0,o=void 0===o?this.length:o>>>0,n||(n=0),"number"==typeof n)for(s=i;s55295&&o<57344){if(!s){if(o>56319||u+1===a){(i-=3)>-1&&f.push(239,191,189);continue}s=o;continue}if(o<56320){(i-=3)>-1&&f.push(239,191,189),s=o;continue}o=(s-55296<<10|o-56320)+65536}else s&&(i-=3)>-1&&f.push(239,191,189);if(s=null,o<128){if((i-=1)<0)break;f.push(o)}else if(o<2048){if((i-=2)<0)break;f.push(o>>6|192,63&o|128)}else if(o<65536){if((i-=3)<0)break;f.push(o>>12|224,o>>6&63|128,63&o|128)}else if(o<1114112){if((i-=4)<0)break;f.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else throw Error("Invalid code point")}return f}function X(n){for(var i=[],o=0;o>8,s.push(o%256),s.push(a);return s}function Z(n){return a.toByteArray(V(n))}function Q(n,i,o,a){for(var s=0;s=i.length)&&!(s>=n.length);++s)i[s+o]=n[s];return s}function ee(n,i){return n instanceof i||null!=n&&null!=n.constructor&&null!=n.constructor.name&&n.constructor.name===i.name}function et(n){return n!=n}var er=function(){for(var n="0123456789abcdef",i=Array(256),o=0;o<16;++o)for(var a=16*o,s=0;s<16;++s)i[a+s]=n[o]+n[s];return i}()},321:function(n,i){i.read=function(n,i,o,a,s){var f,u,c=8*s-a-1,l=(1<>1,d=-7,p=o?s-1:0,b=o?-1:1,y=n[i+p];for(p+=b,f=y&(1<<-d)-1,y>>=-d,d+=c;d>0;f=256*f+n[i+p],p+=b,d-=8);for(u=f&(1<<-d)-1,f>>=-d,d+=a;d>0;u=256*u+n[i+p],p+=b,d-=8);if(0===f)f=1-h;else{if(f===l)return u?NaN:1/0*(y?-1:1);u+=Math.pow(2,a),f-=h}return(y?-1:1)*u*Math.pow(2,f-a)},i.write=function(n,i,o,a,s,f){var u,c,l,h=8*f-s-1,d=(1<>1,b=5960464477539062e-23*(23===s),y=a?0:f-1,m=a?1:-1,g=+(i<0||0===i&&1/i<0);for(isNaN(i=Math.abs(i))||i===1/0?(c=+!!isNaN(i),u=d):(u=Math.floor(Math.log(i)/Math.LN2),i*(l=Math.pow(2,-u))<1&&(u--,l*=2),u+p>=1?i+=b/l:i+=b*Math.pow(2,1-p),i*l>=2&&(u++,l/=2),u+p>=d?(c=0,u=d):u+p>=1?(c=(i*l-1)*Math.pow(2,s),u+=p):(c=i*Math.pow(2,p-1)*Math.pow(2,s),u=0));s>=8;n[o+y]=255&c,y+=m,c/=256,s-=8);for(u=u<0;n[o+y]=255&u,y+=m,u/=256,h-=8);n[o+y-m]|=128*g}}},s={};function f(n){var i=s[n];if(void 0!==i)return i.exports;var o=s[n]={exports:{}},u=!0;try{a[n](o,o.exports,f),u=!1}finally{u&&delete s[n]}return o.exports}f.ab="/ROOT/node_modules/next/dist/compiled/buffer/",i.exports=f(230)},77398,(n,i,o)=>{var a=n.i(67034),s=n.i(47167),f={7492:function(n){n.exports=function(n,o,a){if(n.filter)return n.filter(o,a);if(null==n||"function"!=typeof o)throw TypeError();for(var s=[],f=0;ftypeof Reflect&&Reflect&&Reflect.apply},2982:function(n,i,o){"use strict";var a=o(1893),s=o(5494),f=s(a("String.prototype.indexOf"));n.exports=function(n,i){var o=a(n,!!i);return"function"==typeof o&&f(n,".prototype.")>-1?s(o):o}},5494:function(n,i,o){"use strict";var a=o(3798),s=o(871),f=o(2462),u=o(4757);n.exports=function(n){var i=f(arguments),o=n.length-(arguments.length-1);return a(i,1+(o>0?o:0),!0)},s?s(n.exports,"apply",{value:u}):n.exports.apply=u},2071:function(n,i,o){"use strict";var a=o(871),s=o(9546),f=o(4785),u=o(8322);n.exports=function(n,i,o){if(!n||"object"!=typeof n&&"function"!=typeof n)throw new f("`obj` must be an object or a function`");if("string"!=typeof i&&"symbol"!=typeof i)throw new f("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new f("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new f("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new f("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new f("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,d=arguments.length>6&&arguments[6],p=!!u&&u(n,i);if(a)a(n,i,{configurable:null===h&&p?p.configurable:!h,enumerable:null===c&&p?p.enumerable:!c,value:o,writable:null===l&&p?p.writable:!l});else if(!d&&(c||l||h))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else n[i]=o}},3859:function(n,i,o){"use strict";var a,s=o(2462),f=o(8322);try{a=[].__proto__===Array.prototype}catch(n){if(!n||"object"!=typeof n||!("code"in n)||"ERR_PROTO_ACCESS"!==n.code)throw n}var u=!!a&&f&&f(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;n.exports=u&&"function"==typeof u.get?s([u.get]):"function"==typeof l&&function(n){return l(null==n?n:c(n))}},871:function(n){"use strict";var i=Object.defineProperty||!1;if(i)try{i({},"a",{value:1})}catch(n){i=!1}n.exports=i},1247:function(n){"use strict";n.exports=EvalError},6621:function(n){"use strict";n.exports=Error},6136:function(n){"use strict";n.exports=RangeError},252:function(n){"use strict";n.exports=ReferenceError},9546:function(n){"use strict";n.exports=SyntaxError},4785:function(n){"use strict";n.exports=TypeError},1223:function(n){"use strict";n.exports=URIError},8300:function(n){"use strict";n.exports=Object},4680:function(n){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString;n.exports=function(n,a,s){if("[object Function]"!==o.call(a))throw TypeError("iterator must be a function");var f=n.length;if(f===+f)for(var u=0;utypeof Uint8Array&&k?k(Uint8Array):a,L={__proto__:null,"%AggregateError%":"u"typeof Map&&I&&k?k((new Map)[Symbol.iterator]()):a,"%Math%":Math,"%Number%":Number,"%Object%":s,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"typeof Set&&I&&k?k((new Set)[Symbol.iterator]()):a,"%SharedArrayBuffer%":"u"1&&"boolean"!=typeof i)throw new d('"allowMissing" argument must be a boolean');if(null===K(/^%?[^%]*%?$/,n))throw new h("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=Y(n),a=o.length>0?o[0]:"",s=X("%"+a+"%",i),f=s.name,u=s.value,c=!1,l=s.alias;l&&(a=l[0],q(o,z([0,1],l)));for(var p=1,b=!0;p=o.length){var v=S(u,y);u=(b=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[y]}else b=F(u,y),u=u[y];b&&!c&&(L[f]=u)}}return u}},45:function(n,i,o){"use strict";n.exports=o(8300).getPrototypeOf||null},7767:function(n){"use strict";n.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},9717:function(n,i,o){"use strict";var a=o(7767),s=o(45),f=o(3859);n.exports=a?function(n){return a(n)}:s?function(n){if(!n||"object"!=typeof n&&"function"!=typeof n)throw TypeError("getProto: not an object");return s(n)}:f?function(n){return f(n)}:null},8422:function(n){"use strict";n.exports=Object.getOwnPropertyDescriptor},8322:function(n,i,o){"use strict";var a=o(8422);if(a)try{a([],"length")}catch(n){a=null}n.exports=a},8122:function(n,i,o){"use strict";var a=o(871),s=function(){return!!a};s.hasArrayLengthDefineBug=function(){if(!a)return null;try{return 1!==a([],"length",{value:1}).length}catch(n){return!0}},n.exports=s},8564:function(n,i,o){"use strict";var a="u">typeof Symbol&&Symbol,s=o(9094);n.exports=function(){return"function"==typeof a&&"function"==typeof Symbol&&"symbol"==typeof a("foo")&&"symbol"==typeof Symbol("bar")&&s()}},9094:function(n){"use strict";n.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var n={},i=Symbol("test"),o=Object(i);if("string"==typeof i||"[object Symbol]"!==Object.prototype.toString.call(i)||"[object Symbol]"!==Object.prototype.toString.call(o))return!1;var a=42;for(i in n[i]=a,n)return!1;if("function"==typeof Object.keys&&0!==Object.keys(n).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(n).length)return!1;var s=Object.getOwnPropertySymbols(n);if(1!==s.length||s[0]!==i||!Object.prototype.propertyIsEnumerable.call(n,i))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var f=Object.getOwnPropertyDescriptor(n,i);if(f.value!==a||!0!==f.enumerable)return!1}return!0}},9131:function(n,i,o){"use strict";var a="u">typeof Symbol&&Symbol,s=o(6313);n.exports=function(){return"function"==typeof a&&"function"==typeof Symbol&&"symbol"==typeof a("foo")&&"symbol"==typeof Symbol("bar")&&s()}},6313:function(n){"use strict";n.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var n={},i=Symbol("test"),o=Object(i);if("string"==typeof i||"[object Symbol]"!==Object.prototype.toString.call(i)||"[object Symbol]"!==Object.prototype.toString.call(o))return!1;var a=42;for(var s in n[i]=a,n)return!1;if("function"==typeof Object.keys&&0!==Object.keys(n).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(n).length)return!1;var f=Object.getOwnPropertySymbols(n);if(1!==f.length||f[0]!==i||!Object.prototype.propertyIsEnumerable.call(n,i))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var u=Object.getOwnPropertyDescriptor(n,i);if(u.value!==a||!0!==u.enumerable)return!1}return!0}},3383:function(n,i,o){"use strict";var a=Function.prototype.call,s=Object.prototype.hasOwnProperty;n.exports=o(7797).call(a,s)},1638:function(n){"function"==typeof Object.create?n.exports=function(n,i){i&&(n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:n.exports=function(n,i){if(i){n.super_=i;var o=function(){};o.prototype=i.prototype,n.prototype=new o,n.prototype.constructor=n}}},6960:function(n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.prototype.toString,a=function(n){return(!i||!n||"object"!=typeof n||!(Symbol.toStringTag in n))&&"[object Arguments]"===o.call(n)},s=function(n){return!!a(n)||null!==n&&"object"==typeof n&&"number"==typeof n.length&&n.length>=0&&"[object Array]"!==o.call(n)&&"[object Function]"===o.call(n.callee)},f=function(){return a(arguments)}();a.isLegacyArguments=s,n.exports=f?a:s},8979:function(n){"use strict";var i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,f=Object.getPrototypeOf,u=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(n){}}(),c=u?f(u):{};n.exports=function(n){return"function"==typeof n&&(!!a.test(o.call(n))||(s?f(n)===c:"[object GeneratorFunction]"===i.call(n)))}},9572:function(i,o,a){"use strict";var s=a(4680),f=a(3147),u=a(2982),c=u("Object.prototype.toString"),l=a(8564)()&&"symbol"==typeof Symbol.toStringTag,h=f(),d=u("Array.prototype.indexOf",!0)||function(n,i){for(var o=0;o-1)}},4197:function(n){"use strict";n.exports=Math.abs},4455:function(n){"use strict";n.exports=Math.floor},6128:function(n){"use strict";n.exports=Number.isNaN||function(n){return n!=n}},1295:function(n){"use strict";n.exports=Math.max},6949:function(n){"use strict";n.exports=Math.min},2943:function(n){"use strict";n.exports=Math.pow},1721:function(n){"use strict";n.exports=Math.round},3536:function(n,i,o){"use strict";var a=o(6128);n.exports=function(n){return a(n)||0===n?n:n<0?-1:1}},3798:function(n,i,o){"use strict";var a=o(1893),s=o(2071),f=o(8122)(),u=o(8322),c=o(4785),l=a("%Math.floor%");n.exports=function(n,i){if("function"!=typeof n)throw new c("`fn` is not a function");if("number"!=typeof i||i<0||i>0xffffffff||l(i)!==i)throw new c("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],a=!0,h=!0;if("length"in n&&u){var d=u(n,"length");d&&!d.configurable&&(a=!1),d&&!d.writable&&(h=!1)}return(a||h||!o)&&(f?s(n,"length",i,!0,!0):s(n,"length",i)),n}},3614:function(n){n.exports=function(n){return n instanceof a.Buffer}},7551:function(n,i,o){"use strict";var a=o(6960),s=o(8979),f=o(3051),u=o(9572);function c(n){return n.call.bind(n)}var l="u">typeof BigInt,h="u">typeof Symbol,d=c(Object.prototype.toString),p=c(Number.prototype.valueOf),b=c(String.prototype.valueOf),y=c(Boolean.prototype.valueOf);if(l)var m=c(BigInt.prototype.valueOf);if(h)var g=c(Symbol.prototype.valueOf);function v(n,i){if("object"!=typeof n)return!1;try{return i(n),!0}catch(n){return!1}}function w(n){return"[object Map]"===d(n)}function x(n){return"[object Set]"===d(n)}function _(n){return"[object WeakMap]"===d(n)}function E(n){return"[object WeakSet]"===d(n)}function S(n){return"[object ArrayBuffer]"===d(n)}function M(n){return!("u"typeof Promise&&n instanceof Promise||null!==n&&"object"==typeof n&&"function"==typeof n.then&&"function"==typeof n.catch},i.isArrayBufferView=function(n){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(n):u(n)||R(n)},i.isUint8Array=function(n){return"Uint8Array"===f(n)},i.isUint8ClampedArray=function(n){return"Uint8ClampedArray"===f(n)},i.isUint16Array=function(n){return"Uint16Array"===f(n)},i.isUint32Array=function(n){return"Uint32Array"===f(n)},i.isInt8Array=function(n){return"Int8Array"===f(n)},i.isInt16Array=function(n){return"Int16Array"===f(n)},i.isInt32Array=function(n){return"Int32Array"===f(n)},i.isFloat32Array=function(n){return"Float32Array"===f(n)},i.isFloat64Array=function(n){return"Float64Array"===f(n)},i.isBigInt64Array=function(n){return"BigInt64Array"===f(n)},i.isBigUint64Array=function(n){return"BigUint64Array"===f(n)},w.working="u">typeof Map&&w(new Map),i.isMap=function(n){return!("u"typeof Set&&x(new Set),i.isSet=function(n){return!("u"typeof WeakMap&&_(new WeakMap),i.isWeakMap=function(n){return!("u"typeof WeakSet&&E(new WeakSet),i.isWeakSet=function(n){return E(n)},S.working="u">typeof ArrayBuffer&&S(new ArrayBuffer),i.isArrayBuffer=M,A.working="u">typeof ArrayBuffer&&"u">typeof DataView&&A(new DataView(new ArrayBuffer(1),0,1)),i.isDataView=R;var I="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function k(n){return"[object SharedArrayBuffer]"===d(n)}function j(n){return void 0!==I&&(void 0===k.working&&(k.working=k(new I)),k.working?k(n):n instanceof I)}function T(n){return v(n,p)}function O(n){return v(n,b)}function N(n){return v(n,y)}function P(n){return l&&v(n,m)}function B(n){return h&&v(n,g)}i.isSharedArrayBuffer=j,i.isAsyncFunction=function(n){return"[object AsyncFunction]"===d(n)},i.isMapIterator=function(n){return"[object Map Iterator]"===d(n)},i.isSetIterator=function(n){return"[object Set Iterator]"===d(n)},i.isGeneratorObject=function(n){return"[object Generator]"===d(n)},i.isWebAssemblyCompiledModule=function(n){return"[object WebAssembly.Module]"===d(n)},i.isNumberObject=T,i.isStringObject=O,i.isBooleanObject=N,i.isBigIntObject=P,i.isSymbolObject=B,i.isBoxedPrimitive=function(n){return T(n)||O(n)||N(n)||P(n)||B(n)},i.isAnyArrayBuffer=function(n){return"u">typeof Uint8Array&&(M(n)||j(n))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(n){Object.defineProperty(i,n,{enumerable:!1,value:function(){throw Error(n+" is not supported in userland")}})})},4268:function(n,i,o){var a=Object.getOwnPropertyDescriptors||function(n){for(var i=Object.keys(n),o={},a=0;a=s)return n;switch(n){case"%s":return String(a[o++]);case"%d":return Number(a[o++]);case"%j":try{return JSON.stringify(a[o++])}catch(n){return"[Circular]"}default:return n}}),c=a[o];o=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),E(o)?a.showHidden=o:o&&i._extend(a,o),R(a.showHidden)&&(a.showHidden=!1),R(a.depth)&&(a.depth=2),R(a.colors)&&(a.colors=!1),R(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=d),y(a,n,a.depth)}function d(n,i){var o=h.styles[i];return o?"\x1b["+h.colors[o][0]+"m"+n+"\x1b["+h.colors[o][1]+"m":n}function p(n,i){return n}function b(n){var i={};return n.forEach(function(n,o){i[n]=!0}),i}function y(n,o,a){if(n.customInspect&&o&&O(o.inspect)&&o.inspect!==i.inspect&&!(o.constructor&&o.constructor.prototype===o)){var s,f=o.inspect(a,n);return A(f)||(f=y(n,f,a)),f}var u=m(n,o);if(u)return u;var c=Object.keys(o),l=b(c);if(n.showHidden&&(c=Object.getOwnPropertyNames(o)),T(o)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return g(o);if(0===c.length){if(O(o)){var h=o.name?": "+o.name:"";return n.stylize("[Function"+h+"]","special")}if(I(o))return n.stylize(RegExp.prototype.toString.call(o),"regexp");if(j(o))return n.stylize(Date.prototype.toString.call(o),"date");if(T(o))return g(o)}var d="",p=!1,E=["{","}"];if(_(o)&&(p=!0,E=["[","]"]),O(o)&&(d=" [Function"+(o.name?": "+o.name:"")+"]"),I(o)&&(d=" "+RegExp.prototype.toString.call(o)),j(o)&&(d=" "+Date.prototype.toUTCString.call(o)),T(o)&&(d=" "+g(o)),0===c.length&&(!p||0==o.length))return E[0]+d+E[1];if(a<0)if(I(o))return n.stylize(RegExp.prototype.toString.call(o),"regexp");else return n.stylize("[Object]","special");return n.seen.push(o),s=p?v(n,o,a,l,c):c.map(function(i){return w(n,o,a,l,i,p)}),n.seen.pop(),x(s,d,E)}function m(n,i){if(R(i))return n.stylize("undefined","undefined");if(A(i)){var o="'"+JSON.stringify(i).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(o,"string")}return M(i)?n.stylize(""+i,"number"):E(i)?n.stylize(""+i,"boolean"):S(i)?n.stylize("null","null"):void 0}function g(n){return"["+Error.prototype.toString.call(n)+"]"}function v(n,i,o,a,s){for(var f=[],u=0,c=i.length;un.seen.indexOf(l.value)?(c=S(o)?y(n,l.value,null):y(n,l.value,o-1)).indexOf("\n")>-1&&(c=f?c.split("\n").map(function(n){return" "+n}).join("\n").substr(2):"\n"+c.split("\n").map(function(n){return" "+n}).join("\n")):c=n.stylize("[Circular]","special")),R(u)){if(f&&s.match(/^\d+$/))return c;(u=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=n.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=n.stylize(u,"string"))}return u+": "+c}function x(n,i,o){var a=0;return n.reduce(function(n,i){return a++,i.indexOf("\n")>=0&&a++,n+i.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?o[0]+(""===i?"":i+"\n ")+" "+n.join(",\n ")+" "+o[1]:o[0]+i+" "+n.join(", ")+" "+o[1]}function _(n){return Array.isArray(n)}function E(n){return"boolean"==typeof n}function S(n){return null===n}function M(n){return"number"==typeof n}function A(n){return"string"==typeof n}function R(n){return void 0===n}function I(n){return k(n)&&"[object RegExp]"===N(n)}function k(n){return"object"==typeof n&&null!==n}function j(n){return k(n)&&"[object Date]"===N(n)}function T(n){return k(n)&&("[object Error]"===N(n)||n instanceof Error)}function O(n){return"function"==typeof n}function N(n){return Object.prototype.toString.call(n)}function P(n){return n<10?"0"+n.toString(10):n.toString(10)}i.debuglog=function(n){if(!u[n=n.toUpperCase()])if(c.test(n)){var o=s.default.pid;u[n]=function(){var a=i.format.apply(i,arguments);console.error("%s %d: %s",n,o,a)}}else u[n]=function(){};return u[n]},i.inspect=h,h.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]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},i.types=o(7551),i.isArray=_,i.isBoolean=E,i.isNull=S,i.isNullOrUndefined=function(n){return null==n},i.isNumber=M,i.isString=A,i.isSymbol=function(n){return"symbol"==typeof n},i.isUndefined=R,i.isRegExp=I,i.types.isRegExp=I,i.isObject=k,i.isDate=j,i.types.isDate=j,i.isError=T,i.types.isNativeError=T,i.isFunction=O,i.isPrimitive=function(n){return null===n||"boolean"==typeof n||"number"==typeof n||"string"==typeof n||"symbol"==typeof n||void 0===n},i.isBuffer=o(3614);var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var n=new Date,i=[P(n.getHours()),P(n.getMinutes()),P(n.getSeconds())].join(":");return[n.getDate(),B[n.getMonth()],i].join(" ")}function C(n,i){return Object.prototype.hasOwnProperty.call(n,i)}i.log=function(){console.log("%s - %s",L(),i.format.apply(i,arguments))},i.inherits=o(1638),i._extend=function(n,i){if(!i||!k(i))return n;for(var o=Object.keys(i),a=o.length;a--;)n[o[a]]=i[o[a]];return n};var D="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function U(n,i){if(!n){var o=Error("Promise was rejected with a falsy value");o.reason=n,n=o}return i(n)}i.promisify=function(n){if("function"!=typeof n)throw TypeError('The "original" argument must be of type Function');if(D&&n[D]){var i=n[D];if("function"!=typeof i)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(i,D,{value:i,enumerable:!1,writable:!1,configurable:!0}),i}function i(){for(var i,o,a=new Promise(function(n,a){i=n,o=a}),s=[],f=0;f{var a=n.i(47167),s={638:function(n){"function"==typeof Object.create?n.exports=function(n,i){i&&(n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:n.exports=function(n,i){if(i){n.super_=i;var o=function(){};o.prototype=i.prototype,n.prototype=new o,n.prototype.constructor=n}}},329:function(n){"use strict";let i={};function o(n,o,a){function s(n,i,a){return"string"==typeof o?o:o(n,i,a)}a||(a=Error);class f extends a{constructor(n,i,o){super(s(n,i,o))}}f.prototype.name=a.name,f.prototype.code=n,i[n]=f}function a(n,i){if(!Array.isArray(n))return`of ${i} ${String(n)}`;{let o=n.length;return(n=n.map(n=>String(n)),o>2)?`one of ${i} ${n.slice(0,o-1).join(", ")}, or `+n[o-1]:2===o?`one of ${i} ${n[0]} or ${n[1]}`:`of ${i} ${n[0]}`}}function s(n,i,o){return n.substr(!o||o<0?0:+o,i.length)===i}function f(n,i,o){return(void 0===o||o>n.length)&&(o=n.length),n.substring(o-i.length,o)===i}function u(n,i,o){return"number"!=typeof o&&(o=0),!(o+i.length>n.length)&&-1!==n.indexOf(i,o)}o("ERR_INVALID_OPT_VALUE",function(n,i){return'The value "'+i+'" is invalid for option "'+n+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(n,i,o){let c,l;if("string"==typeof i&&s(i,"not ")?(c="must not be",i=i.replace(/^not /,"")):c="must be",f(n," argument"))l=`The ${n} ${c} ${a(i,"type")}`;else{let o=u(n,".")?"property":"argument";l=`The "${n}" ${o} ${c} ${a(i,"type")}`}return l+`. Received type ${typeof o}`},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(n){return"The "+n+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(n){return"Cannot call "+n+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(n){return"Unknown encoding: "+n},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),n.exports.F=i},686:function(n,i,o){"use strict";var s=Object.keys||function(n){var i=[];for(var o in n)i.push(o);return i};n.exports=d;var f=o(276),u=o(732);o(638)(d,f);for(var c=s(u.prototype),l=0;l0)if("string"==typeof i||c.objectMode||Object.getPrototypeOf(i)===b.prototype||(i=m(i)),a)c.endEmitted?I(n,new R):P(n,c,i,!0);else if(c.ended)I(n,new M);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!o?(i=c.decoder.write(i),c.objectMode||0!==i.length?P(n,c,i,!1):z(n,c)):P(n,c,i,!1)}else a||(c.reading=!1,z(n,c));return!c.ended&&(c.length=L?n=L:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function D(n,i){if(n<=0||0===i.length&&i.ended)return 0;if(i.objectMode)return 1;if(n!=n)if(i.flowing&&i.length)return i.buffer.head.data.length;else return i.length;return(n>i.highWaterMark&&(i.highWaterMark=C(n)),n<=i.length)?n:i.ended?i.length:(i.needReadable=!0,0)}function U(n,i){if(u("onEofChunk"),!i.ended){if(i.decoder){var o=i.decoder.end();o&&o.length&&(i.buffer.push(o),i.length+=i.objectMode?1:o.length)}i.ended=!0,i.sync?$(n):(i.needReadable=!1,i.emittedReadable||(i.emittedReadable=!0,F(n)))}}function $(n){var i=n._readableState;u("emitReadable",i.needReadable,i.emittedReadable),i.needReadable=!1,i.emittedReadable||(u("emitReadable",i.flowing),i.emittedReadable=!0,a.default.nextTick(F,n))}function F(n){var i=n._readableState;u("emitReadable_",i.destroyed,i.length,i.ended),!i.destroyed&&(i.length||i.ended)&&(n.emit("readable"),i.emittedReadable=!1),i.needReadable=!i.flowing&&!i.ended&&i.length<=i.highWaterMark,Y(n)}function z(n,i){i.readingMore||(i.readingMore=!0,a.default.nextTick(q,n,i))}function q(n,i){for(;!i.reading&&!i.ended&&(i.length0,i.resumeScheduled&&!i.paused?i.flowing=!0:n.listenerCount("data")>0&&n.resume()}function K(n){u("readable nexttick read 0"),n.read(0)}function G(n,i){i.resumeScheduled||(i.resumeScheduled=!0,a.default.nextTick(V,n,i))}function V(n,i){u("resume",i.reading),i.reading||n.read(0),i.resumeScheduled=!1,n.emit("resume"),Y(n),i.flowing&&!i.reading&&n.read(0)}function Y(n){var i=n._readableState;for(u("flow",i.flowing);i.flowing&&null!==n.read(););}function X(n,i){var o;return 0===i.length?null:(i.objectMode?o=i.buffer.shift():!n||n>=i.length?(o=i.decoder?i.buffer.join(""):1===i.buffer.length?i.buffer.first():i.buffer.concat(i.length),i.buffer.clear()):o=i.buffer.consume(n,i.decoder),o)}function J(n){var i=n._readableState;u("endReadable",i.endEmitted),i.endEmitted||(i.ended=!0,a.default.nextTick(Z,i,n))}function Z(n,i){if(u("endReadableNT",n.endEmitted,n.length),!n.endEmitted&&0===n.length&&(n.endEmitted=!0,i.readable=!1,i.emit("end"),n.autoDestroy)){var o=i._writableState;(!o||o.autoDestroy&&o.finished)&&i.destroy()}}function Q(n,i){for(var o=0,a=n.length;o=o.highWaterMark:o.length>0)||o.ended))return u("read: emitReadable",o.length,o.ended),0===o.length&&o.ended?J(this):$(this),null;if(0===(n=D(n,o))&&o.ended)return 0===o.length&&J(this),null;var s=o.needReadable;return u("need readable",s),(0===o.length||o.length-n0?X(n,o):null)?(o.needReadable=o.length<=o.highWaterMark,n=0):(o.length-=n,o.awaitDrain=0),0===o.length&&(o.ended||(o.needReadable=!0),a!==n&&o.ended&&J(this)),null!==i&&this.emit("data",i),i},O.prototype._read=function(n){I(this,new A("_read()"))},O.prototype.pipe=function(n,i){var o=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=n;break;case 1:s.pipes=[s.pipes,n];break;default:s.pipes.push(n)}s.pipesCount+=1,u("pipe count=%d opts=%j",s.pipesCount,i);var f=i&&!1===i.end||n===a.default.stdout||n===a.default.stderr?w:l;function c(n,i){u("onunpipe"),n===o&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,b())}function l(){u("onend"),n.end()}s.endEmitted?a.default.nextTick(f):o.once("end",f),n.on("unpipe",c);var h=H(o);n.on("drain",h);var p=!1;function b(){u("cleanup"),n.removeListener("close",g),n.removeListener("finish",v),n.removeListener("drain",h),n.removeListener("error",m),n.removeListener("unpipe",c),o.removeListener("end",l),o.removeListener("end",w),o.removeListener("data",y),p=!0,s.awaitDrain&&(!n._writableState||n._writableState.needDrain)&&h()}function y(i){u("ondata");var a=n.write(i);u("dest.write",a),!1===a&&((1===s.pipesCount&&s.pipes===n||s.pipesCount>1&&-1!==Q(s.pipes,n))&&!p&&(u("false write response, pause",s.awaitDrain),s.awaitDrain++),o.pause())}function m(i){u("onerror",i),w(),n.removeListener("error",m),0===d(n,"error")&&I(n,i)}function g(){n.removeListener("finish",v),w()}function v(){u("onfinish"),n.removeListener("close",g),w()}function w(){u("unpipe"),o.unpipe(n)}return o.on("data",y),j(n,"error",m),n.once("close",g),n.once("finish",v),n.emit("pipe",o),s.flowing||(u("pipe resume"),o.resume()),n},O.prototype.unpipe=function(n){var i=this._readableState,o={hasUnpiped:!1};if(0===i.pipesCount)return this;if(1===i.pipesCount)return n&&n!==i.pipes||(n||(n=i.pipes),i.pipes=null,i.pipesCount=0,i.flowing=!1,n&&n.emit("unpipe",this,o)),this;if(!n){var a=i.pipes,s=i.pipesCount;i.pipes=null,i.pipesCount=0,i.flowing=!1;for(var f=0;f0,!1!==s.flowing&&this.resume()):"readable"!==n||s.endEmitted||s.readableListening||(s.readableListening=s.needReadable=!0,s.flowing=!1,s.emittedReadable=!1,u("on readable",s.length,s.reading),s.length?$(this):s.reading||a.default.nextTick(K,this)),o},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(n,i){var o=p.prototype.removeListener.call(this,n,i);return"readable"===n&&a.default.nextTick(W,this),o},O.prototype.removeAllListeners=function(n){var i=p.prototype.removeAllListeners.apply(this,arguments);return("readable"===n||void 0===n)&&a.default.nextTick(W,this),i},O.prototype.resume=function(){var n=this._readableState;return n.flowing||(u("resume"),n.flowing=!n.readableListening,G(this,n)),n.paused=!1,this},O.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(n){var i=this,o=this._readableState,a=!1;for(var s in n.on("end",function(){if(u("wrapped end"),o.decoder&&!o.ended){var n=o.decoder.end();n&&n.length&&i.push(n)}i.push(null)}),n.on("data",function(s){u("wrapped data"),o.decoder&&(s=o.decoder.write(s)),o.objectMode&&null==s||(o.objectMode||s&&s.length)&&(i.push(s)||(a=!0,n.pause()))}),n)void 0===this[s]&&"function"==typeof n[s]&&(this[s]=function(i){return function(){return n[i].apply(n,arguments)}}(s));for(var f=0;f-1))throw new R(n);return this._writableState.defaultEncoding=n,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(n,i,o){o(new x("_write()"))},T.prototype._writev=null,T.prototype.end=function(n,i,o){var a=this._writableState;return"function"==typeof n?(o=n,n=null,i=null):"function"==typeof i&&(o=i,i=null),null!=n&&this.write(n,i),a.corked&&(a.corked=1,this.uncork()),a.ending||G(this,a,o),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(n){this._writableState&&(this._writableState.destroyed=n)}}),T.prototype.destroy=m.destroy,T.prototype._undestroy=m.undestroy,T.prototype._destroy=function(n,i){i(n)}},531:function(n,i,o){"use strict";function s(n,i,o){return i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n}var f,u=o(134),c=Symbol("lastResolve"),l=Symbol("lastReject"),h=Symbol("error"),d=Symbol("ended"),p=Symbol("lastPromise"),b=Symbol("handlePromise"),y=Symbol("stream");function m(n,i){return{value:n,done:i}}function g(n){var i=n[c];if(null!==i){var o=n[y].read();null!==o&&(n[p]=null,n[c]=null,n[l]=null,i(m(o,!1)))}}function v(n){a.default.nextTick(g,n)}function w(n,i){return function(o,a){n.then(function(){i[d]?o(m(void 0,!0)):i[b](o,a)},a)}}var x=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((s(f={get stream(){return this[y]},next:function(){var n,i=this,o=this[h];if(null!==o)return Promise.reject(o);if(this[d])return Promise.resolve(m(void 0,!0));if(this[y].destroyed)return new Promise(function(n,o){a.default.nextTick(function(){i[h]?o(i[h]):n(m(void 0,!0))})});var s=this[p];if(s)n=new Promise(w(s,this));else{var f=this[y].read();if(null!==f)return Promise.resolve(m(f,!1));n=new Promise(this[b])}return this[p]=n,n}},Symbol.asyncIterator,function(){return this}),s(f,"return",function(){var n=this;return new Promise(function(i,o){n[y].destroy(null,function(n){n?o(n):i(m(void 0,!0))})})}),f),x);n.exports=function(n){var i,o=Object.create(_,(s(i={},y,{value:n,writable:!0}),s(i,c,{value:null,writable:!0}),s(i,l,{value:null,writable:!0}),s(i,h,{value:null,writable:!0}),s(i,d,{value:n._readableState.endEmitted,writable:!0}),s(i,b,{value:function(n,i){var a=o[y].read();a?(o[p]=null,o[c]=null,o[l]=null,n(m(a,!1))):(o[c]=n,o[l]=i)},writable:!0}),i));return o[p]=null,u(n,function(n){if(n&&"ERR_STREAM_PREMATURE_CLOSE"!==n.code){var i=o[l];null!==i&&(o[p]=null,o[c]=null,o[l]=null,i(n)),o[h]=n;return}var a=o[c];null!==a&&(o[p]=null,o[c]=null,o[l]=null,a(m(void 0,!0))),o[d]=!0}),n.on("readable",v.bind(null,o)),o}},137:function(n,i,o){"use strict";function a(n,i){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);i&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),o.push.apply(o,a)}return o}function s(n){for(var i=1;i0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(n){var i={data:n,next:this.head};0===this.length&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(0!==this.length){var n=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(0===this.length)return"";for(var i=this.head,o=""+i.data;i=i.next;)o+=n+i.data;return o}},{key:"concat",value:function(n){if(0===this.length)return h.alloc(0);for(var i=h.allocUnsafe(n>>>0),o=this.head,a=0;o;)b(o.data,i,a),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(n,i){var o;return ns.length?s.length:n;if(f===s.length?a+=s:a+=s.slice(0,n),0==(n-=f)){f===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(f));break}++o}return this.length-=o,a}},{key:"_getBuffer",value:function(n){var i=h.allocUnsafe(n),o=this.head,a=1;for(o.data.copy(i),n-=o.data.length;o=o.next;){var s=o.data,f=n>s.length?s.length:n;if(s.copy(i,i.length-n,0,f),0==(n-=f)){f===s.length?(++a,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=s.slice(f));break}++a}return this.length-=a,i}},{key:p,value:function(n,i){return d(this,s({},i,{depth:0,customInspect:!1}))}}]),n}()},528:function(n){"use strict";function i(n,i){s(n,i),o(n)}function o(n){n._writableState&&!n._writableState.emitClose||(!n._readableState||n._readableState.emitClose)&&n.emit("close")}function s(n,i){n.emit("error",i)}n.exports={destroy:function(n,f){var u=this,c=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return c||l?f?f(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.default.nextTick(s,this,n)):a.default.nextTick(s,this,n)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(n){!f&&n?u._writableState?u._writableState.errorEmitted?a.default.nextTick(o,u):(u._writableState.errorEmitted=!0,a.default.nextTick(i,u,n)):a.default.nextTick(i,u,n):f?(a.default.nextTick(o,u),f(n)):a.default.nextTick(o,u)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(n,i){var o=n._readableState,a=n._writableState;o&&o.autoDestroy||a&&a.autoDestroy?n.destroy(i):n.emit("error",i)}}},134:function(n,i,o){"use strict";var a=o(329).F.ERR_STREAM_PREMATURE_CLOSE;function s(n){var i=!1;return function(){if(!i){i=!0;for(var o=arguments.length,a=Array(o),s=0;s0,function(i){n||(n=i),i&&f.forEach(p),u||(f.forEach(p),s(n))})});return o.reduce(b)}},771:function(n,i,o){"use strict";var a=o(329).F.ERR_INVALID_OPT_VALUE;function s(n,i,o){return null!=n.highWaterMark?n.highWaterMark:i?n[o]:null}n.exports={getHighWaterMark:function(n,i,o,f){var u=s(i,f,o);if(null!=u){if(!(isFinite(u)&&Math.floor(u)===u)||u<0)throw new a(f?o:"highWaterMark",u);return Math.floor(u)}return n.objectMode?16:16384}}},120:function(n,i,o){n.exports=o(203)},56:function(n,i,o){var a=o(181),s=a.Buffer;function f(n,i){for(var o in n)i[o]=n[o]}function u(n,i,o){return s(n,i,o)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?n.exports=a:(f(a,i),i.Buffer=u),u.prototype=Object.create(s.prototype),f(s,u),u.from=function(n,i,o){if("number"==typeof n)throw TypeError("Argument must not be a number");return s(n,i,o)},u.alloc=function(n,i,o){if("number"!=typeof n)throw TypeError("Argument must be a number");var a=s(n);return void 0!==i?"string"==typeof o?a.fill(i,o):a.fill(i):a.fill(0),a},u.allocUnsafe=function(n){if("number"!=typeof n)throw TypeError("Argument must be a number");return s(n)},u.allocUnsafeSlow=function(n){if("number"!=typeof n)throw TypeError("Argument must be a number");return a.SlowBuffer(n)}},854:function(n,i,o){n.exports=s;var a=o(434).EventEmitter;function s(){a.call(this)}o(638)(s,a),s.Readable=o(276),s.Writable=o(732),s.Duplex=o(686),s.Transform=o(586),s.PassThrough=o(512),s.finished=o(134),s.pipeline=o(694),s.Stream=s,s.prototype.pipe=function(n,i){var o=this;function s(i){n.writable&&!1===n.write(i)&&o.pause&&o.pause()}function f(){o.readable&&o.resume&&o.resume()}o.on("data",s),n.on("drain",f),n._isStdio||i&&!1===i.end||(o.on("end",c),o.on("close",l));var u=!1;function c(){u||(u=!0,n.end())}function l(){u||(u=!0,"function"==typeof n.destroy&&n.destroy())}function h(n){if(d(),0===a.listenerCount(this,"error"))throw n}function d(){o.removeListener("data",s),n.removeListener("drain",f),o.removeListener("end",c),o.removeListener("close",l),o.removeListener("error",h),n.removeListener("error",h),o.removeListener("end",d),o.removeListener("close",d),n.removeListener("close",d)}return o.on("error",h),n.on("error",h),o.on("end",d),o.on("close",d),n.on("close",d),n.emit("pipe",o),n}},319:function(n,i,o){"use strict";var a=o(56).Buffer,s=a.isEncoding||function(n){switch((n=""+n)&&n.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 f(n){var i;if(!n)return"utf8";for(;;)switch(n){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 n;default:if(i)return;n=(""+n).toLowerCase(),i=!0}}function u(n){var i=f(n);if("string"!=typeof i&&(a.isEncoding===s||!s(n)))throw Error("Unknown encoding: "+n);return i||n}function c(n){var i;switch(this.encoding=u(n),this.encoding){case"utf16le":this.text=m,this.end=g,i=4;break;case"utf8":this.fillLast=p,i=4;break;case"base64":this.text=v,this.end=w,i=3;break;default:this.write=x,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=a.allocUnsafe(i)}function l(n){return n<=127?0:n>>5==6?2:n>>4==14?3:n>>3==30?4:n>>6==2?-1:-2}function h(n,i,o){var a=i.length-1;if(a=0?(s>0&&(n.lastNeed=s-1),s):--a=0?(s>0&&(n.lastNeed=s-2),s):--a=0?(s>0&&(2===s?s=0:n.lastNeed=s-3),s):0}function d(n,i,o){if((192&i[0])!=128)return n.lastNeed=0,"�";if(n.lastNeed>1&&i.length>1){if((192&i[1])!=128)return n.lastNeed=1,"�";if(n.lastNeed>2&&i.length>2&&(192&i[2])!=128)return n.lastNeed=2,"�"}}function p(n){var i=this.lastTotal-this.lastNeed,o=d(this,n,i);return void 0!==o?o:this.lastNeed<=n.length?(n.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(n.copy(this.lastChar,i,0,n.length),this.lastNeed-=n.length)}function b(n,i){var o=h(this,n,i);if(!this.lastNeed)return n.toString("utf8",i);this.lastTotal=o;var a=n.length-(o-this.lastNeed);return n.copy(this.lastChar,0,a),n.toString("utf8",i,a)}function y(n){var i=n&&n.length?this.write(n):"";return this.lastNeed?i+"�":i}function m(n,i){if((n.length-i)%2==0){var o=n.toString("utf16le",i);if(o){var a=o.charCodeAt(o.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=n[n.length-1],n.toString("utf16le",i,n.length-1)}function g(n){var i=n&&n.length?this.write(n):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,o)}return i}function v(n,i){var o=(n.length-i)%3;return 0===o?n.toString("base64",i):(this.lastNeed=3-o,this.lastTotal=3,1===o?this.lastChar[0]=n[n.length-1]:(this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1]),n.toString("base64",i,n.length-o))}function w(n){var i=n&&n.length?this.write(n):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function x(n){return n.toString(this.encoding)}function _(n){return n&&n.length?this.write(n):""}i.I=c,c.prototype.write=function(n){var i,o;if(0===n.length)return"";if(this.lastNeed){if(void 0===(i=this.fillLast(n)))return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o{var a=n.i(47167),s=n.r(42524).Buffer,f=n.r(12569);function u(n){if(this.buffer=null,this.writable=!0,this.readable=!0,!n)return this.buffer=s.alloc(0),this;if("function"==typeof n.pipe)return this.buffer=s.alloc(0),n.pipe(this),this;if(n.length||"object"==typeof n)return this.buffer=n,this.writable=!1,a.default.nextTick((function(){this.emit("end",n),this.readable=!1,this.emit("close")}).bind(this)),this;throw TypeError("Unexpected data type ("+typeof n+")")}n.r(77398).inherits(u,f),u.prototype.write=function(n){this.buffer=s.concat([this.buffer,s.from(n)]),this.emit("data",n)},u.prototype.end=function(n){n&&this.write(n),this.emit("end",n),this.emit("close"),this.writable=!1,this.readable=!1},i.exports=u},3361,(n,i,o)=>{var a={56:function(n,i,o){var a=o(181),s=a.Buffer;function f(n,i){for(var o in n)i[o]=n[o]}function u(n,i,o){return s(n,i,o)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?n.exports=a:(f(a,i),i.Buffer=u),u.prototype=Object.create(s.prototype),f(s,u),u.from=function(n,i,o){if("number"==typeof n)throw TypeError("Argument must not be a number");return s(n,i,o)},u.alloc=function(n,i,o){if("number"!=typeof n)throw TypeError("Argument must be a number");var a=s(n);return void 0!==i?"string"==typeof o?a.fill(i,o):a.fill(i):a.fill(0),a},u.allocUnsafe=function(n){if("number"!=typeof n)throw TypeError("Argument must be a number");return s(n)},u.allocUnsafeSlow=function(n){if("number"!=typeof n)throw TypeError("Argument must be a number");return a.SlowBuffer(n)}},181:function(i){"use strict";i.exports=n.r(43943)}},s={};function f(n){var i=s[n];if(void 0!==i)return i.exports;var o=s[n]={exports:{}},u=!0;try{a[n](o,o.exports,f),u=!1}finally{u&&delete s[n]}return o.exports}f.ab="/ROOT/node_modules/next/dist/compiled/string_decoder/";var u={};!function(){"use strict";var n=u,i=f(56).Buffer,o=i.isEncoding||function(n){switch((n=""+n)&&n.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 a(n){var i;if(!n)return"utf8";for(;;)switch(n){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 n;default:if(i)return;n=(""+n).toLowerCase(),i=!0}}function s(n){var s=a(n);if("string"!=typeof s&&(i.isEncoding===o||!o(n)))throw Error("Unknown encoding: "+n);return s||n}function c(n){var o;switch(this.encoding=s(n),this.encoding){case"utf16le":this.text=m,this.end=g,o=4;break;case"utf8":this.fillLast=p,o=4;break;case"base64":this.text=v,this.end=w,o=3;break;default:this.write=x,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(o)}function l(n){return n<=127?0:n>>5==6?2:n>>4==14?3:n>>3==30?4:n>>6==2?-1:-2}function h(n,i,o){var a=i.length-1;if(a=0?(s>0&&(n.lastNeed=s-1),s):--a=0?(s>0&&(n.lastNeed=s-2),s):--a=0?(s>0&&(2===s?s=0:n.lastNeed=s-3),s):0}function d(n,i,o){if((192&i[0])!=128)return n.lastNeed=0,"�";if(n.lastNeed>1&&i.length>1){if((192&i[1])!=128)return n.lastNeed=1,"�";if(n.lastNeed>2&&i.length>2&&(192&i[2])!=128)return n.lastNeed=2,"�"}}function p(n){var i=this.lastTotal-this.lastNeed,o=d(this,n,i);return void 0!==o?o:this.lastNeed<=n.length?(n.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(n.copy(this.lastChar,i,0,n.length),this.lastNeed-=n.length)}function b(n,i){var o=h(this,n,i);if(!this.lastNeed)return n.toString("utf8",i);this.lastTotal=o;var a=n.length-(o-this.lastNeed);return n.copy(this.lastChar,0,a),n.toString("utf8",i,a)}function y(n){var i=n&&n.length?this.write(n):"";return this.lastNeed?i+"�":i}function m(n,i){if((n.length-i)%2==0){var o=n.toString("utf16le",i);if(o){var a=o.charCodeAt(o.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=n[n.length-1],n.toString("utf16le",i,n.length-1)}function g(n){var i=n&&n.length?this.write(n):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,o)}return i}function v(n,i){var o=(n.length-i)%3;return 0===o?n.toString("base64",i):(this.lastNeed=3-o,this.lastTotal=3,1===o?this.lastChar[0]=n[n.length-1]:(this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1]),n.toString("base64",i,n.length-o))}function w(n){var i=n&&n.length?this.write(n):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function x(n){return n.toString(this.encoding)}function _(n){return n&&n.length?this.write(n):""}n.StringDecoder=c,c.prototype.write=function(n){var i,o;if(0===n.length)return"";if(this.lastNeed){if(void 0===(i=this.fillLast(n)))return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o{!function(){var __webpack_modules__={285:function(__unused_webpack_module,exports){var indexOf=function(n,i){if(n.indexOf)return n.indexOf(i);for(var o=0;otypeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/next/dist/compiled/vm-browserify/");var __webpack_exports__={};__webpack_modules__[285](0,__webpack_exports__),module.exports=__webpack_exports__}()},86914,(n,i,o)=>{var a=n.i(67034),s=n.i(47167),f={9186:function(n,i,o){var a=i;a.bignum=o(5944),a.define=o(5673).define,a.base=o(8747),a.constants=o(8063),a.decoders=o(2455),a.encoders=o(5555)},5673:function(n,i,o){var a=o(9186),s=o(1638);function f(n,i){this.name=n,this.body=i,this.decoders={},this.encoders={}}i.define=function(n,i){return new f(n,i)},f.prototype._createNamed=function(n){var i;try{i=o(9154).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(n){i=function(n){this._initNamed(n)}}return s(i,n),i.prototype._initNamed=function(i){n.call(this,i)},new i(this)},f.prototype._getDecoder=function(n){return n=n||"der",this.decoders.hasOwnProperty(n)||(this.decoders[n]=this._createNamed(a.decoders[n])),this.decoders[n]},f.prototype.decode=function(n,i,o){return this._getDecoder(i).decode(n,o)},f.prototype._getEncoder=function(n){return n=n||"der",this.encoders.hasOwnProperty(n)||(this.encoders[n]=this._createNamed(a.encoders[n])),this.encoders[n]},f.prototype.encode=function(n,i,o){return this._getEncoder(i).encode(n,o)}},5781:function(n,i,o){var a=o(1638),s=o(8747).Reporter,f=o(181).Buffer;function u(n,i){(s.call(this,i),f.isBuffer(n))?(this.base=n,this.offset=0,this.length=n.length):this.error("Input not Buffer")}function c(n,i){if(Array.isArray(n))this.length=0,this.value=n.map(function(n){return n instanceof c||(n=new c(n,i)),this.length+=n.length,n},this);else if("number"==typeof n){if(!(0<=n&&n<=255))return i.error("non-byte EncoderBuffer value");this.value=n,this.length=1}else if("string"==typeof n)this.value=n,this.length=f.byteLength(n);else{if(!f.isBuffer(n))return i.error("Unsupported type: "+typeof n);this.value=n,this.length=n.length}}a(u,s),i.t=u,u.prototype.save=function(){return{offset:this.offset,reporter:s.prototype.save.call(this)}},u.prototype.restore=function(n){var i=new u(this.base);return i.offset=n.offset,i.length=this.offset,this.offset=n.offset,s.prototype.restore.call(this,n.reporter),i},u.prototype.isEmpty=function(){return this.offset===this.length},u.prototype.readUInt8=function(n){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(n||"DecoderBuffer overrun")},u.prototype.skip=function(n,i){if(!(this.offset+n<=this.length))return this.error(i||"DecoderBuffer overrun");var o=new u(this.base);return o._reporterState=this._reporterState,o.offset=this.offset,o.length=this.offset+n,this.offset+=n,o},u.prototype.raw=function(n){return this.base.slice(n?n.offset:this.offset,this.length)},i.d=c,c.prototype.join=function(n,i){return n||(n=new f(this.length)),i||(i=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(o){o.join(n,i),i+=o.length}):("number"==typeof this.value?n[i]=this.value:"string"==typeof this.value?n.write(this.value,i):f.isBuffer(this.value)&&this.value.copy(n,i),i+=this.length)),n}},8747:function(n,i,o){var a=i;a.Reporter=o(9257).a,a.DecoderBuffer=o(5781).t,a.EncoderBuffer=o(5781).d,a.Node=o(763)},763:function(n,i,o){var a=o(8747).Reporter,s=o(8747).EncoderBuffer,f=o(8747).DecoderBuffer,u=o(7551),c=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c),h=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function d(n,i){var o={};this._baseState=o,o.enc=n,o.parent=i||null,o.children=null,o.tag=null,o.args=null,o.reverseArgs=null,o.choice=null,o.optional=!1,o.any=!1,o.obj=!1,o.use=null,o.useDecoder=null,o.key=null,o.default=null,o.explicit=null,o.implicit=null,o.contains=null,o.parent||(o.children=[],this._wrap())}n.exports=d;var p=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];d.prototype.clone=function(){var n=this._baseState,i={};p.forEach(function(o){i[o]=n[o]});var o=new this.constructor(i.parent);return o._baseState=i,o},d.prototype._wrap=function(){var n=this._baseState;l.forEach(function(i){this[i]=function(){var o=new this.constructor(this);return n.children.push(o),o[i].apply(o,arguments)}},this)},d.prototype._init=function(n){var i=this._baseState;u(null===i.parent),n.call(this),i.children=i.children.filter(function(n){return n._baseState.parent===this},this),u.equal(i.children.length,1,"Root node can have only one child")},d.prototype._useArgs=function(n){var i=this._baseState,o=n.filter(function(n){return n instanceof this.constructor},this);n=n.filter(function(n){return!(n instanceof this.constructor)},this),0!==o.length&&(u(null===i.children),i.children=o,o.forEach(function(n){n._baseState.parent=this},this)),0!==n.length&&(u(null===i.args),i.args=n,i.reverseArgs=n.map(function(n){if("object"!=typeof n||n.constructor!==Object)return n;var i={};return Object.keys(n).forEach(function(o){o==(0|o)&&(o|=0),i[n[o]]=o}),i}))},h.forEach(function(n){d.prototype[n]=function(){throw Error(n+" not implemented for encoding: "+this._baseState.enc)}}),c.forEach(function(n){d.prototype[n]=function(){var i=this._baseState,o=Array.prototype.slice.call(arguments);return u(null===i.tag),i.tag=n,this._useArgs(o),this}}),d.prototype.use=function(n){u(n);var i=this._baseState;return u(null===i.use),i.use=n,this},d.prototype.optional=function(){return this._baseState.optional=!0,this},d.prototype.def=function(n){var i=this._baseState;return u(null===i.default),i.default=n,i.optional=!0,this},d.prototype.explicit=function(n){var i=this._baseState;return u(null===i.explicit&&null===i.implicit),i.explicit=n,this},d.prototype.implicit=function(n){var i=this._baseState;return u(null===i.explicit&&null===i.implicit),i.implicit=n,this},d.prototype.obj=function(){var n=this._baseState,i=Array.prototype.slice.call(arguments);return n.obj=!0,0!==i.length&&this._useArgs(i),this},d.prototype.key=function(n){var i=this._baseState;return u(null===i.key),i.key=n,this},d.prototype.any=function(){return this._baseState.any=!0,this},d.prototype.choice=function(n){var i=this._baseState;return u(null===i.choice),i.choice=n,this._useArgs(Object.keys(n).map(function(i){return n[i]})),this},d.prototype.contains=function(n){var i=this._baseState;return u(null===i.use),i.contains=n,this},d.prototype._decode=function(n,i){var o,a=this._baseState;if(null===a.parent)return n.wrapResult(a.children[0]._decode(n,i));var s=a.default,u=!0,c=null;if(null!==a.key&&(c=n.enterKey(a.key)),a.optional){var l=null;if(null!==a.explicit?l=a.explicit:null!==a.implicit?l=a.implicit:null!==a.tag&&(l=a.tag),null!==l||a.any){if(u=this._peekTag(n,l,a.any),n.isError(u))return u}else{var h=n.save();try{null===a.choice?this._decodeGeneric(a.tag,n,i):this._decodeChoice(n,i),u=!0}catch(n){u=!1}n.restore(h)}}if(a.obj&&u&&(o=n.enterObject()),u){if(null!==a.explicit){var d=this._decodeTag(n,a.explicit);if(n.isError(d))return d;n=d}var p=n.offset;if(null===a.use&&null===a.choice){if(a.any)var h=n.save();var b=this._decodeTag(n,null!==a.implicit?a.implicit:a.tag,a.any);if(n.isError(b))return b;a.any?s=n.raw(h):n=b}if(i&&i.track&&null!==a.tag&&i.track(n.path(),p,n.length,"tagged"),i&&i.track&&null!==a.tag&&i.track(n.path(),n.offset,n.length,"content"),a.any||(s=null===a.choice?this._decodeGeneric(a.tag,n,i):this._decodeChoice(n,i)),n.isError(s))return s;if(a.any||null!==a.choice||null===a.children||a.children.forEach(function(o){o._decode(n,i)}),a.contains&&("octstr"===a.tag||"bitstr"===a.tag)){var y=new f(s);s=this._getUse(a.contains,n._reporterState.obj)._decode(y,i)}}return a.obj&&u&&(s=n.leaveObject(o)),null!==a.key&&(null!==s||!0===u)?n.leaveKey(c,a.key,s):null!==c&&n.exitKey(c),s},d.prototype._decodeGeneric=function(n,i,o){var a=this._baseState;if("seq"===n||"set"===n)return null;if("seqof"===n||"setof"===n)return this._decodeList(i,n,a.args[0],o);if(/str$/.test(n))return this._decodeStr(i,n,o);if("objid"===n&&a.args)return this._decodeObjid(i,a.args[0],a.args[1],o);if("objid"===n)return this._decodeObjid(i,null,null,o);if("gentime"===n||"utctime"===n)return this._decodeTime(i,n,o);else if("null_"===n)return this._decodeNull(i,o);else if("bool"===n)return this._decodeBool(i,o);else if("objDesc"===n)return this._decodeStr(i,n,o);else if("int"===n||"enum"===n)return this._decodeInt(i,a.args&&a.args[0],o);return null!==a.use?this._getUse(a.use,i._reporterState.obj)._decode(i,o):i.error("unknown tag: "+n)},d.prototype._getUse=function(n,i){var o=this._baseState;return o.useDecoder=this._use(n,i),u(null===o.useDecoder._baseState.parent),o.useDecoder=o.useDecoder._baseState.children[0],o.implicit!==o.useDecoder._baseState.implicit&&(o.useDecoder=o.useDecoder.clone(),o.useDecoder._baseState.implicit=o.implicit),o.useDecoder},d.prototype._decodeChoice=function(n,i){var o=this._baseState,a=null,s=!1;return(Object.keys(o.choice).some(function(f){var u=n.save(),c=o.choice[f];try{var l=c._decode(n,i);if(n.isError(l))return!1;a={type:f,value:l},s=!0}catch(i){return n.restore(u),!1}return!0},this),s)?a:n.error("Choice not matched")},d.prototype._createEncoderBuffer=function(n){return new s(n,this.reporter)},d.prototype._encode=function(n,i,o){var a=this._baseState;if(null===a.default||a.default!==n){var s=this._encodeValue(n,i,o);if(void 0!==s&&!this._skipDefault(s,i,o))return s}},d.prototype._encodeValue=function(n,i,o){var s,f=this._baseState;if(null===f.parent)return f.children[0]._encode(n,i||new a);var s=null;if(this.reporter=i,f.optional&&void 0===n)if(null===f.default)return;else n=f.default;var u=null,c=!1;if(f.any)s=this._createEncoderBuffer(n);else if(f.choice)s=this._encodeChoice(n,i);else if(f.contains)u=this._getUse(f.contains,o)._encode(n,i),c=!0;else if(f.children)u=f.children.map(function(o){if("null_"===o._baseState.tag)return o._encode(null,i,n);if(null===o._baseState.key)return i.error("Child should have a key");var a=i.enterKey(o._baseState.key);if("object"!=typeof n)return i.error("Child expected, but input is not object");var s=o._encode(n[o._baseState.key],i,n);return i.leaveKey(a),s},this).filter(function(n){return n}),u=this._createEncoderBuffer(u);else if("seqof"===f.tag||"setof"===f.tag){if(!(f.args&&1===f.args.length))return i.error("Too many args for : "+f.tag);if(!Array.isArray(n))return i.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,u=this._createEncoderBuffer(n.map(function(o){var a=this._baseState;return this._getUse(a.args[0],n)._encode(o,i)},l))}else null!==f.use?s=this._getUse(f.use,o)._encode(n,i):(u=this._encodePrimitive(f.tag,n),c=!0);if(!f.any&&null===f.choice){var h=null!==f.implicit?f.implicit:f.tag,d=null===f.implicit?"universal":"context";null===h?null===f.use&&i.error("Tag could be omitted only for .use()"):null===f.use&&(s=this._encodeComposite(h,c,d,u))}return null!==f.explicit&&(s=this._encodeComposite(f.explicit,!1,"context",s)),s},d.prototype._encodeChoice=function(n,i){var o=this._baseState,a=o.choice[n.type];return a||u(!1,n.type+" not found in "+JSON.stringify(Object.keys(o.choice))),a._encode(n.value,i)},d.prototype._encodePrimitive=function(n,i){var o=this._baseState;if(/str$/.test(n))return this._encodeStr(i,n);if("objid"===n&&o.args)return this._encodeObjid(i,o.reverseArgs[0],o.args[1]);if("objid"===n)return this._encodeObjid(i,null,null);if("gentime"===n||"utctime"===n)return this._encodeTime(i,n);if("null_"===n)return this._encodeNull();else if("int"===n||"enum"===n)return this._encodeInt(i,o.args&&o.reverseArgs[0]);else if("bool"===n)return this._encodeBool(i);else if("objDesc"===n)return this._encodeStr(i,n);else throw Error("Unsupported tag: "+n)},d.prototype._isNumstr=function(n){return/^[0-9 ]*$/.test(n)},d.prototype._isPrintstr=function(n){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(n)}},9257:function(n,i,o){var a=o(1638);function s(n){this._reporterState={obj:null,path:[],options:n||{},errors:[]}}function f(n,i){this.path=n,this.rethrow(i)}i.a=s,s.prototype.isError=function(n){return n instanceof f},s.prototype.save=function(){var n=this._reporterState;return{obj:n.obj,pathLen:n.path.length}},s.prototype.restore=function(n){var i=this._reporterState;i.obj=n.obj,i.path=i.path.slice(0,n.pathLen)},s.prototype.enterKey=function(n){return this._reporterState.path.push(n)},s.prototype.exitKey=function(n){var i=this._reporterState;i.path=i.path.slice(0,n-1)},s.prototype.leaveKey=function(n,i,o){var a=this._reporterState;this.exitKey(n),null!==a.obj&&(a.obj[i]=o)},s.prototype.path=function(){return this._reporterState.path.join("/")},s.prototype.enterObject=function(){var n=this._reporterState,i=n.obj;return n.obj={},i},s.prototype.leaveObject=function(n){var i=this._reporterState,o=i.obj;return i.obj=n,o},s.prototype.error=function(n){var i,o=this._reporterState,a=n instanceof f;if(i=a?n:new f(o.path.map(function(n){return"["+JSON.stringify(n)+"]"}).join(""),n.message||n,n.stack),!o.options.partial)throw i;return a||o.errors.push(i),i},s.prototype.wrapResult=function(n){var i=this._reporterState;return i.options.partial?{result:this.isError(n)?null:n,errors:i.errors}:n},a(f,Error),f.prototype.rethrow=function(n){if(this.message=n+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,f),!this.stack)try{throw Error(this.message)}catch(n){this.stack=n.stack}return this}},8060:function(n,i,o){var a=o(8063);i.tagClass={0:"universal",1:"application",2:"context",3:"private"},i.tagClassByName=a._reverse(i.tagClass),i.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},i.tagByName=a._reverse(i.tag)},8063:function(n,i,o){var a=i;a._reverse=function(n){var i={};return Object.keys(n).forEach(function(o){(0|o)==o&&(o|=0),i[n[o]]=o}),i},a.der=o(8060)},8788:function(n,i,o){var a=o(1638),s=o(9186),f=s.base,u=s.bignum,c=s.constants.der;function l(n){this.enc="der",this.name=n.name,this.entity=n,this.tree=new h,this.tree._init(n.body)}function h(n){f.Node.call(this,"der",n)}function d(n,i){var o=n.readUInt8(i);if(n.isError(o))return o;var a=c.tagClass[o>>6],s=(32&o)==0;if((31&o)==31){var f=o;for(o=0;(128&f)==128;){if(f=n.readUInt8(i),n.isError(f))return f;o<<=7,o|=127&f}}else o&=31;var u=c.tag[o];return{cls:a,primitive:s,tag:o,tagStr:u}}function p(n,i,o){var a=n.readUInt8(o);if(n.isError(a))return a;if(!i&&128===a)return null;if((128&a)==0)return a;var s=127&a;if(s>4)return n.error("length octect is too long");a=0;for(var f=0;f=31?a.error("Multi-octet tag encoding unsupported"):(i||(s|=32),s|=c.tagClassByName[o||"universal"]<<6)}n.exports=l,l.prototype.encode=function(n,i){return this.tree._encode(n,i).join()},a(h,u.Node),h.prototype._encodeComposite=function(n,i,o,a){var f=p(n,i,o,this.reporter);if(a.length<128){var u=new s(2);return u[0]=f,u[1]=a.length,this._createEncoderBuffer([u,a])}for(var c=1,l=a.length;l>=256;l>>=8)c++;var u=new s(2+c);u[0]=f,u[1]=128|c;for(var l=1+c,h=a.length;h>0;l--,h>>=8)u[l]=255&h;return this._createEncoderBuffer([u,a])},h.prototype._encodeStr=function(n,i){if("bitstr"===i)return this._createEncoderBuffer([0|n.unused,n.data]);if("bmpstr"===i){for(var o=new s(2*n.length),a=0;a=40)return this.reporter.error("Second objid identifier OOB");n.splice(0,2,40*n[0]+n[1])}for(var f=0,a=0;a=128;u>>=7)f++}for(var c=new s(f),l=c.length-1,a=n.length-1;a>=0;a--){var u=n[a];for(c[l--]=127&u;(u>>=7)>0;)c[l--]=128|127&u}return this._createEncoderBuffer(c)},h.prototype._encodeTime=function(n,i){var o,a=new Date(n);return"gentime"===i?o=[d(a.getFullYear()),d(a.getUTCMonth()+1),d(a.getUTCDate()),d(a.getUTCHours()),d(a.getUTCMinutes()),d(a.getUTCSeconds()),"Z"].join(""):"utctime"===i?o=[d(a.getFullYear()%100),d(a.getUTCMonth()+1),d(a.getUTCDate()),d(a.getUTCHours()),d(a.getUTCMinutes()),d(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+i+" time is not supported yet"),this._encodeStr(o,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(n,i){if("string"==typeof n){if(!i)return this.reporter.error("String int or enum given, but no values map");if(!i.hasOwnProperty(n))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(n));n=i[n]}if("number"!=typeof n&&!s.isBuffer(n)){var o=n.toArray();!n.sign&&128&o[0]&&o.unshift(0),n=new s(o)}if(s.isBuffer(n)){var a=n.length;0===n.length&&a++;var f=new s(a);return n.copy(f),0===n.length&&(f[0]=0),this._createEncoderBuffer(f)}if(n<128)return this._createEncoderBuffer(n);if(n<256)return this._createEncoderBuffer([0,n]);for(var a=1,u=n;u>=256;u>>=8)a++;for(var f=Array(a),u=f.length-1;u>=0;u--)f[u]=255&n,n>>=8;return 128&f[0]&&f.unshift(0),this._createEncoderBuffer(new s(f))},h.prototype._encodeBool=function(n){return this._createEncoderBuffer(255*!!n)},h.prototype._use=function(n,i){return"function"==typeof n&&(n=n(i)),n._getEncoder("der").tree},h.prototype._skipDefault=function(n,i,o){var a,s=this._baseState;if(null===s.default)return!1;var f=n.join();if(void 0===s.defaultBuffer&&(s.defaultBuffer=this._encodeValue(s.default,i,o).join()),f.length!==s.defaultBuffer.length)return!1;for(a=0;a=49&&u<=54?a|=u-49+10:u>=17&&u<=22?a|=u-17+10:a|=15&u}return a}function c(n,i,o,a){for(var s=0,f=Math.min(n.length,o),u=i;u=49?s+=c-49+10:c>=17?s+=c-17+10:s+=c}return s}f.isBN=function(n){return n instanceof f||null!==n&&"object"==typeof n&&n.constructor.wordSize===f.wordSize&&Array.isArray(n.words)},f.max=function(n,i){return n.cmp(i)>0?n:i},f.min=function(n,i){return 0>n.cmp(i)?n:i},f.prototype._init=function(n,i,o){if("number"==typeof n)return this._initNumber(n,i,o);if("object"==typeof n)return this._initArray(n,i,o);"hex"===i&&(i=16),a(i===(0|i)&&i>=2&&i<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&s++,16===i?this._parseHex(n,s):this._parseBase(n,i,s),"-"===n[0]&&(this.negative=1),this.strip(),"le"===o&&this._initArray(this.toArray(),i,o)},f.prototype._initNumber=function(n,i,o){n<0&&(this.negative=1,n=-n),n<0x4000000?(this.words=[0x3ffffff&n],this.length=1):n<0x10000000000000?(this.words=[0x3ffffff&n,n/0x4000000&0x3ffffff],this.length=2):(a(n<0x20000000000000),this.words=[0x3ffffff&n,n/0x4000000&0x3ffffff,1],this.length=3),"le"===o&&this._initArray(this.toArray(),i,o)},f.prototype._initArray=function(n,i,o){if(a("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=Array(this.length);for(var s,f,u=0;u=0;u-=3)f=n[u]|n[u-1]<<8|n[u-2]<<16,this.words[s]|=f<>>26-c&0x3ffffff,(c+=24)>=26&&(c-=26,s++);else if("le"===o)for(u=0,s=0;u>>26-c&0x3ffffff,(c+=24)>=26&&(c-=26,s++);return this.strip()},f.prototype._parseHex=function(n,i){this.length=Math.ceil((n.length-i)/6),this.words=Array(this.length);for(var o,a,s=0;s=i;s-=6)a=u(n,s,s+6),this.words[o]|=a<>>26-f&4194303,(f+=24)>=26&&(f-=26,o++);s+6!==i&&(a=u(n,i,s+6),this.words[o]|=a<>>26-f&4194303),this.strip()},f.prototype._parseBase=function(n,i,o){this.words=[0],this.length=1;for(var a=0,s=1;s<=0x3ffffff;s*=i)a++;a--,s=s/i|0;for(var f=n.length-o,u=f%a,l=Math.min(f,f-u)+o,h=0,d=o;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var l,h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],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],p=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function b(n){for(var i=Array(n.bitLength()),o=0;o>>s}return i}function y(n,i,o){o.negative=i.negative^n.negative;var a=n.length+i.length|0;o.length=a,a=a-1|0;var s=0|n.words[0],f=0|i.words[0],u=s*f,c=0x3ffffff&u,l=u/0x4000000|0;o.words[0]=c;for(var h=1;h>>26,p=0x3ffffff&l,b=Math.min(h,i.length-1),y=Math.max(0,h-n.length+1);y<=b;y++){var m=h-y|0;d+=(u=(s=0|n.words[m])*(f=0|i.words[y])+p)/0x4000000|0,p=0x3ffffff&u}o.words[h]=0|p,l=0|d}return 0!==l?o.words[h]=0|l:o.length--,o.strip()}f.prototype.toString=function(n,i){if(i=0|i||1,16===(n=n||10)||"hex"===n){for(var o="",s=0,f=0,u=0;u>>24-s&0xffffff)||u!==this.length-1?h[6-l.length]+l+o:l+o,(s+=2)>=26&&(s-=26,u--)}for(0!==f&&(o=f.toString(16)+o);o.length%i!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}if(n===(0|n)&&n>=2&&n<=36){var b=d[n],y=p[n];o="";var m=this.clone();for(m.negative=0;!m.isZero();){var g=m.modn(y).toString(n);o=(m=m.idivn(y)).isZero()?g+o:h[b-g.length]+g+o}for(this.isZero()&&(o="0"+o);o.length%i!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?n+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(n,i){return a(void 0!==l),this.toArrayLike(l,n,i)},f.prototype.toArray=function(n,i){return this.toArrayLike(Array,n,i)},f.prototype.toArrayLike=function(n,i,o){var s,f,u=this.byteLength(),c=o||Math.max(1,u);a(u<=c,"byte array longer than desired length"),a(c>0,"Requested array length <= 0"),this.strip();var l="le"===i,h=new n(c),d=this.clone();if(l){for(f=0;!d.isZero();f++)s=d.andln(255),d.iushrn(8),h[f]=s;for(;f=4096&&(o+=13,i>>>=13),i>=64&&(o+=7,i>>>=7),i>=8&&(o+=4,i>>>=4),i>=2&&(o+=2,i>>>=2),o+i},f.prototype._zeroBits=function(n){if(0===n)return 26;var i=n,o=0;return(8191&i)==0&&(o+=13,i>>>=13),(127&i)==0&&(o+=7,i>>>=7),(15&i)==0&&(o+=4,i>>>=4),(3&i)==0&&(o+=2,i>>>=2),(1&i)==0&&o++,o},f.prototype.bitLength=function(){var n=this.words[this.length-1],i=this._countBits(n);return(this.length-1)*26+i},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,i=0;in.length?this.clone().ior(n):n.clone().ior(this)},f.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},f.prototype.iuand=function(n){var i;i=this.length>n.length?n:this;for(var o=0;on.length?this.clone().iand(n):n.clone().iand(this)},f.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},f.prototype.iuxor=function(n){this.length>n.length?(i=this,o=n):(i=n,o=this);for(var i,o,a=0;an.length?this.clone().ixor(n):n.clone().ixor(this)},f.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},f.prototype.inotn=function(n){a("number"==typeof n&&n>=0);var i=0|Math.ceil(n/26),o=n%26;this._expand(i),o>0&&i--;for(var s=0;s0&&(this.words[s]=~this.words[s]&0x3ffffff>>26-o),this.strip()},f.prototype.notn=function(n){return this.clone().inotn(n)},f.prototype.setn=function(n,i){a("number"==typeof n&&n>=0);var o=n/26|0,s=n%26;return this._expand(o+1),i?this.words[o]=this.words[o]|1<n.length?(o=this,a=n):(o=n,a=this);for(var i,o,a,s=0,f=0;f>>26;for(;0!==s&&f>>26;if(this.length=o.length,0!==s)this.words[this.length]=s,this.length++;else if(o!==this)for(;fn.length?this.clone().iadd(n):n.clone().iadd(this)},f.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var i,o,a=this.iadd(n);return n.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s=this.cmp(n);if(0===s)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(i=this,o=n):(i=n,o=this);for(var f=0,u=0;u>26,this.words[u]=0x3ffffff&a;for(;0!==f&&u>26,this.words[u]=0x3ffffff&a;if(0===f&&u>>13,y=0|u[1],m=8191&y,g=y>>>13,v=0|u[2],w=8191&v,x=v>>>13,_=0|u[3],E=8191&_,S=_>>>13,M=0|u[4],A=8191&M,R=M>>>13,I=0|u[5],k=8191&I,j=I>>>13,T=0|u[6],O=8191&T,N=T>>>13,P=0|u[7],B=8191&P,L=P>>>13,C=0|u[8],D=8191&C,U=C>>>13,$=0|u[9],F=8191&$,z=$>>>13,q=0|c[0],H=8191&q,W=q>>>13,K=0|c[1],G=8191&K,V=K>>>13,Y=0|c[2],X=8191&Y,J=Y>>>13,Z=0|c[3],Q=8191&Z,ee=Z>>>13,et=0|c[4],er=8191&et,en=et>>>13,ei=0|c[5],eo=8191&ei,ea=ei>>>13,es=0|c[6],ef=8191&es,eu=es>>>13,ec=0|c[7],el=8191&ec,eh=ec>>>13,ed=0|c[8],ep=8191&ed,eb=ed>>>13,ey=0|c[9],em=8191&ey,eg=ey>>>13;o.negative=n.negative^i.negative,o.length=19,a=Math.imul(p,H);var ev=(h+a|0)+((8191&(s=(s=Math.imul(p,W))+Math.imul(b,H)|0))<<13)|0;h=((f=Math.imul(b,W))+(s>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,a=Math.imul(m,H),s=(s=Math.imul(m,W))+Math.imul(g,H)|0,f=Math.imul(g,W),a=a+Math.imul(p,G)|0;var ew=(h+a|0)+((8191&(s=(s=s+Math.imul(p,V)|0)+Math.imul(b,G)|0))<<13)|0;h=((f=f+Math.imul(b,V)|0)+(s>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,a=Math.imul(w,H),s=(s=Math.imul(w,W))+Math.imul(x,H)|0,f=Math.imul(x,W),a=a+Math.imul(m,G)|0,s=(s=s+Math.imul(m,V)|0)+Math.imul(g,G)|0,f=f+Math.imul(g,V)|0,a=a+Math.imul(p,X)|0;var ex=(h+a|0)+((8191&(s=(s=s+Math.imul(p,J)|0)+Math.imul(b,X)|0))<<13)|0;h=((f=f+Math.imul(b,J)|0)+(s>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,a=Math.imul(E,H),s=(s=Math.imul(E,W))+Math.imul(S,H)|0,f=Math.imul(S,W),a=a+Math.imul(w,G)|0,s=(s=s+Math.imul(w,V)|0)+Math.imul(x,G)|0,f=f+Math.imul(x,V)|0,a=a+Math.imul(m,X)|0,s=(s=s+Math.imul(m,J)|0)+Math.imul(g,X)|0,f=f+Math.imul(g,J)|0,a=a+Math.imul(p,Q)|0;var e_=(h+a|0)+((8191&(s=(s=s+Math.imul(p,ee)|0)+Math.imul(b,Q)|0))<<13)|0;h=((f=f+Math.imul(b,ee)|0)+(s>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,a=Math.imul(A,H),s=(s=Math.imul(A,W))+Math.imul(R,H)|0,f=Math.imul(R,W),a=a+Math.imul(E,G)|0,s=(s=s+Math.imul(E,V)|0)+Math.imul(S,G)|0,f=f+Math.imul(S,V)|0,a=a+Math.imul(w,X)|0,s=(s=s+Math.imul(w,J)|0)+Math.imul(x,X)|0,f=f+Math.imul(x,J)|0,a=a+Math.imul(m,Q)|0,s=(s=s+Math.imul(m,ee)|0)+Math.imul(g,Q)|0,f=f+Math.imul(g,ee)|0,a=a+Math.imul(p,er)|0;var eE=(h+a|0)+((8191&(s=(s=s+Math.imul(p,en)|0)+Math.imul(b,er)|0))<<13)|0;h=((f=f+Math.imul(b,en)|0)+(s>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,a=Math.imul(k,H),s=(s=Math.imul(k,W))+Math.imul(j,H)|0,f=Math.imul(j,W),a=a+Math.imul(A,G)|0,s=(s=s+Math.imul(A,V)|0)+Math.imul(R,G)|0,f=f+Math.imul(R,V)|0,a=a+Math.imul(E,X)|0,s=(s=s+Math.imul(E,J)|0)+Math.imul(S,X)|0,f=f+Math.imul(S,J)|0,a=a+Math.imul(w,Q)|0,s=(s=s+Math.imul(w,ee)|0)+Math.imul(x,Q)|0,f=f+Math.imul(x,ee)|0,a=a+Math.imul(m,er)|0,s=(s=s+Math.imul(m,en)|0)+Math.imul(g,er)|0,f=f+Math.imul(g,en)|0,a=a+Math.imul(p,eo)|0;var eS=(h+a|0)+((8191&(s=(s=s+Math.imul(p,ea)|0)+Math.imul(b,eo)|0))<<13)|0;h=((f=f+Math.imul(b,ea)|0)+(s>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,a=Math.imul(O,H),s=(s=Math.imul(O,W))+Math.imul(N,H)|0,f=Math.imul(N,W),a=a+Math.imul(k,G)|0,s=(s=s+Math.imul(k,V)|0)+Math.imul(j,G)|0,f=f+Math.imul(j,V)|0,a=a+Math.imul(A,X)|0,s=(s=s+Math.imul(A,J)|0)+Math.imul(R,X)|0,f=f+Math.imul(R,J)|0,a=a+Math.imul(E,Q)|0,s=(s=s+Math.imul(E,ee)|0)+Math.imul(S,Q)|0,f=f+Math.imul(S,ee)|0,a=a+Math.imul(w,er)|0,s=(s=s+Math.imul(w,en)|0)+Math.imul(x,er)|0,f=f+Math.imul(x,en)|0,a=a+Math.imul(m,eo)|0,s=(s=s+Math.imul(m,ea)|0)+Math.imul(g,eo)|0,f=f+Math.imul(g,ea)|0,a=a+Math.imul(p,ef)|0;var eM=(h+a|0)+((8191&(s=(s=s+Math.imul(p,eu)|0)+Math.imul(b,ef)|0))<<13)|0;h=((f=f+Math.imul(b,eu)|0)+(s>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,a=Math.imul(B,H),s=(s=Math.imul(B,W))+Math.imul(L,H)|0,f=Math.imul(L,W),a=a+Math.imul(O,G)|0,s=(s=s+Math.imul(O,V)|0)+Math.imul(N,G)|0,f=f+Math.imul(N,V)|0,a=a+Math.imul(k,X)|0,s=(s=s+Math.imul(k,J)|0)+Math.imul(j,X)|0,f=f+Math.imul(j,J)|0,a=a+Math.imul(A,Q)|0,s=(s=s+Math.imul(A,ee)|0)+Math.imul(R,Q)|0,f=f+Math.imul(R,ee)|0,a=a+Math.imul(E,er)|0,s=(s=s+Math.imul(E,en)|0)+Math.imul(S,er)|0,f=f+Math.imul(S,en)|0,a=a+Math.imul(w,eo)|0,s=(s=s+Math.imul(w,ea)|0)+Math.imul(x,eo)|0,f=f+Math.imul(x,ea)|0,a=a+Math.imul(m,ef)|0,s=(s=s+Math.imul(m,eu)|0)+Math.imul(g,ef)|0,f=f+Math.imul(g,eu)|0,a=a+Math.imul(p,el)|0;var eA=(h+a|0)+((8191&(s=(s=s+Math.imul(p,eh)|0)+Math.imul(b,el)|0))<<13)|0;h=((f=f+Math.imul(b,eh)|0)+(s>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,a=Math.imul(D,H),s=(s=Math.imul(D,W))+Math.imul(U,H)|0,f=Math.imul(U,W),a=a+Math.imul(B,G)|0,s=(s=s+Math.imul(B,V)|0)+Math.imul(L,G)|0,f=f+Math.imul(L,V)|0,a=a+Math.imul(O,X)|0,s=(s=s+Math.imul(O,J)|0)+Math.imul(N,X)|0,f=f+Math.imul(N,J)|0,a=a+Math.imul(k,Q)|0,s=(s=s+Math.imul(k,ee)|0)+Math.imul(j,Q)|0,f=f+Math.imul(j,ee)|0,a=a+Math.imul(A,er)|0,s=(s=s+Math.imul(A,en)|0)+Math.imul(R,er)|0,f=f+Math.imul(R,en)|0,a=a+Math.imul(E,eo)|0,s=(s=s+Math.imul(E,ea)|0)+Math.imul(S,eo)|0,f=f+Math.imul(S,ea)|0,a=a+Math.imul(w,ef)|0,s=(s=s+Math.imul(w,eu)|0)+Math.imul(x,ef)|0,f=f+Math.imul(x,eu)|0,a=a+Math.imul(m,el)|0,s=(s=s+Math.imul(m,eh)|0)+Math.imul(g,el)|0,f=f+Math.imul(g,eh)|0,a=a+Math.imul(p,ep)|0;var eR=(h+a|0)+((8191&(s=(s=s+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;h=((f=f+Math.imul(b,eb)|0)+(s>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,a=Math.imul(F,H),s=(s=Math.imul(F,W))+Math.imul(z,H)|0,f=Math.imul(z,W),a=a+Math.imul(D,G)|0,s=(s=s+Math.imul(D,V)|0)+Math.imul(U,G)|0,f=f+Math.imul(U,V)|0,a=a+Math.imul(B,X)|0,s=(s=s+Math.imul(B,J)|0)+Math.imul(L,X)|0,f=f+Math.imul(L,J)|0,a=a+Math.imul(O,Q)|0,s=(s=s+Math.imul(O,ee)|0)+Math.imul(N,Q)|0,f=f+Math.imul(N,ee)|0,a=a+Math.imul(k,er)|0,s=(s=s+Math.imul(k,en)|0)+Math.imul(j,er)|0,f=f+Math.imul(j,en)|0,a=a+Math.imul(A,eo)|0,s=(s=s+Math.imul(A,ea)|0)+Math.imul(R,eo)|0,f=f+Math.imul(R,ea)|0,a=a+Math.imul(E,ef)|0,s=(s=s+Math.imul(E,eu)|0)+Math.imul(S,ef)|0,f=f+Math.imul(S,eu)|0,a=a+Math.imul(w,el)|0,s=(s=s+Math.imul(w,eh)|0)+Math.imul(x,el)|0,f=f+Math.imul(x,eh)|0,a=a+Math.imul(m,ep)|0,s=(s=s+Math.imul(m,eb)|0)+Math.imul(g,ep)|0,f=f+Math.imul(g,eb)|0,a=a+Math.imul(p,em)|0;var eI=(h+a|0)+((8191&(s=(s=s+Math.imul(p,eg)|0)+Math.imul(b,em)|0))<<13)|0;h=((f=f+Math.imul(b,eg)|0)+(s>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,a=Math.imul(F,G),s=(s=Math.imul(F,V))+Math.imul(z,G)|0,f=Math.imul(z,V),a=a+Math.imul(D,X)|0,s=(s=s+Math.imul(D,J)|0)+Math.imul(U,X)|0,f=f+Math.imul(U,J)|0,a=a+Math.imul(B,Q)|0,s=(s=s+Math.imul(B,ee)|0)+Math.imul(L,Q)|0,f=f+Math.imul(L,ee)|0,a=a+Math.imul(O,er)|0,s=(s=s+Math.imul(O,en)|0)+Math.imul(N,er)|0,f=f+Math.imul(N,en)|0,a=a+Math.imul(k,eo)|0,s=(s=s+Math.imul(k,ea)|0)+Math.imul(j,eo)|0,f=f+Math.imul(j,ea)|0,a=a+Math.imul(A,ef)|0,s=(s=s+Math.imul(A,eu)|0)+Math.imul(R,ef)|0,f=f+Math.imul(R,eu)|0,a=a+Math.imul(E,el)|0,s=(s=s+Math.imul(E,eh)|0)+Math.imul(S,el)|0,f=f+Math.imul(S,eh)|0,a=a+Math.imul(w,ep)|0,s=(s=s+Math.imul(w,eb)|0)+Math.imul(x,ep)|0,f=f+Math.imul(x,eb)|0,a=a+Math.imul(m,em)|0;var ek=(h+a|0)+((8191&(s=(s=s+Math.imul(m,eg)|0)+Math.imul(g,em)|0))<<13)|0;h=((f=f+Math.imul(g,eg)|0)+(s>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,a=Math.imul(F,X),s=(s=Math.imul(F,J))+Math.imul(z,X)|0,f=Math.imul(z,J),a=a+Math.imul(D,Q)|0,s=(s=s+Math.imul(D,ee)|0)+Math.imul(U,Q)|0,f=f+Math.imul(U,ee)|0,a=a+Math.imul(B,er)|0,s=(s=s+Math.imul(B,en)|0)+Math.imul(L,er)|0,f=f+Math.imul(L,en)|0,a=a+Math.imul(O,eo)|0,s=(s=s+Math.imul(O,ea)|0)+Math.imul(N,eo)|0,f=f+Math.imul(N,ea)|0,a=a+Math.imul(k,ef)|0,s=(s=s+Math.imul(k,eu)|0)+Math.imul(j,ef)|0,f=f+Math.imul(j,eu)|0,a=a+Math.imul(A,el)|0,s=(s=s+Math.imul(A,eh)|0)+Math.imul(R,el)|0,f=f+Math.imul(R,eh)|0,a=a+Math.imul(E,ep)|0,s=(s=s+Math.imul(E,eb)|0)+Math.imul(S,ep)|0,f=f+Math.imul(S,eb)|0,a=a+Math.imul(w,em)|0;var ej=(h+a|0)+((8191&(s=(s=s+Math.imul(w,eg)|0)+Math.imul(x,em)|0))<<13)|0;h=((f=f+Math.imul(x,eg)|0)+(s>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,a=Math.imul(F,Q),s=(s=Math.imul(F,ee))+Math.imul(z,Q)|0,f=Math.imul(z,ee),a=a+Math.imul(D,er)|0,s=(s=s+Math.imul(D,en)|0)+Math.imul(U,er)|0,f=f+Math.imul(U,en)|0,a=a+Math.imul(B,eo)|0,s=(s=s+Math.imul(B,ea)|0)+Math.imul(L,eo)|0,f=f+Math.imul(L,ea)|0,a=a+Math.imul(O,ef)|0,s=(s=s+Math.imul(O,eu)|0)+Math.imul(N,ef)|0,f=f+Math.imul(N,eu)|0,a=a+Math.imul(k,el)|0,s=(s=s+Math.imul(k,eh)|0)+Math.imul(j,el)|0,f=f+Math.imul(j,eh)|0,a=a+Math.imul(A,ep)|0,s=(s=s+Math.imul(A,eb)|0)+Math.imul(R,ep)|0,f=f+Math.imul(R,eb)|0,a=a+Math.imul(E,em)|0;var eT=(h+a|0)+((8191&(s=(s=s+Math.imul(E,eg)|0)+Math.imul(S,em)|0))<<13)|0;h=((f=f+Math.imul(S,eg)|0)+(s>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,a=Math.imul(F,er),s=(s=Math.imul(F,en))+Math.imul(z,er)|0,f=Math.imul(z,en),a=a+Math.imul(D,eo)|0,s=(s=s+Math.imul(D,ea)|0)+Math.imul(U,eo)|0,f=f+Math.imul(U,ea)|0,a=a+Math.imul(B,ef)|0,s=(s=s+Math.imul(B,eu)|0)+Math.imul(L,ef)|0,f=f+Math.imul(L,eu)|0,a=a+Math.imul(O,el)|0,s=(s=s+Math.imul(O,eh)|0)+Math.imul(N,el)|0,f=f+Math.imul(N,eh)|0,a=a+Math.imul(k,ep)|0,s=(s=s+Math.imul(k,eb)|0)+Math.imul(j,ep)|0,f=f+Math.imul(j,eb)|0,a=a+Math.imul(A,em)|0;var eO=(h+a|0)+((8191&(s=(s=s+Math.imul(A,eg)|0)+Math.imul(R,em)|0))<<13)|0;h=((f=f+Math.imul(R,eg)|0)+(s>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,a=Math.imul(F,eo),s=(s=Math.imul(F,ea))+Math.imul(z,eo)|0,f=Math.imul(z,ea),a=a+Math.imul(D,ef)|0,s=(s=s+Math.imul(D,eu)|0)+Math.imul(U,ef)|0,f=f+Math.imul(U,eu)|0,a=a+Math.imul(B,el)|0,s=(s=s+Math.imul(B,eh)|0)+Math.imul(L,el)|0,f=f+Math.imul(L,eh)|0,a=a+Math.imul(O,ep)|0,s=(s=s+Math.imul(O,eb)|0)+Math.imul(N,ep)|0,f=f+Math.imul(N,eb)|0,a=a+Math.imul(k,em)|0;var eN=(h+a|0)+((8191&(s=(s=s+Math.imul(k,eg)|0)+Math.imul(j,em)|0))<<13)|0;h=((f=f+Math.imul(j,eg)|0)+(s>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,a=Math.imul(F,ef),s=(s=Math.imul(F,eu))+Math.imul(z,ef)|0,f=Math.imul(z,eu),a=a+Math.imul(D,el)|0,s=(s=s+Math.imul(D,eh)|0)+Math.imul(U,el)|0,f=f+Math.imul(U,eh)|0,a=a+Math.imul(B,ep)|0,s=(s=s+Math.imul(B,eb)|0)+Math.imul(L,ep)|0,f=f+Math.imul(L,eb)|0,a=a+Math.imul(O,em)|0;var eP=(h+a|0)+((8191&(s=(s=s+Math.imul(O,eg)|0)+Math.imul(N,em)|0))<<13)|0;h=((f=f+Math.imul(N,eg)|0)+(s>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,a=Math.imul(F,el),s=(s=Math.imul(F,eh))+Math.imul(z,el)|0,f=Math.imul(z,eh),a=a+Math.imul(D,ep)|0,s=(s=s+Math.imul(D,eb)|0)+Math.imul(U,ep)|0,f=f+Math.imul(U,eb)|0,a=a+Math.imul(B,em)|0;var eB=(h+a|0)+((8191&(s=(s=s+Math.imul(B,eg)|0)+Math.imul(L,em)|0))<<13)|0;h=((f=f+Math.imul(L,eg)|0)+(s>>>13)|0)+(eB>>>26)|0,eB&=0x3ffffff,a=Math.imul(F,ep),s=(s=Math.imul(F,eb))+Math.imul(z,ep)|0,f=Math.imul(z,eb),a=a+Math.imul(D,em)|0;var eL=(h+a|0)+((8191&(s=(s=s+Math.imul(D,eg)|0)+Math.imul(U,em)|0))<<13)|0;h=((f=f+Math.imul(U,eg)|0)+(s>>>13)|0)+(eL>>>26)|0,eL&=0x3ffffff,a=Math.imul(F,em);var eC=(h+a|0)+((8191&(s=(s=Math.imul(F,eg))+Math.imul(z,em)|0))<<13)|0;return h=((f=Math.imul(z,eg))+(s>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,l[0]=ev,l[1]=ew,l[2]=ex,l[3]=e_,l[4]=eE,l[5]=eS,l[6]=eM,l[7]=eA,l[8]=eR,l[9]=eI,l[10]=ek,l[11]=ej,l[12]=eT,l[13]=eO,l[14]=eN,l[15]=eP,l[16]=eB,l[17]=eL,l[18]=eC,0!==h&&(l[19]=h,o.length++),o};function g(n,i,o){o.negative=i.negative^n.negative,o.length=n.length+i.length;for(var a=0,s=0,f=0;f>>26)|0)>>>26,u&=0x3ffffff}o.words[f]=c,a=u,u=s}return 0!==a?o.words[f]=a:o.length--,o.strip()}function v(n,i,o){return(new w).mulp(n,i,o)}function w(n,i){this.x=n,this.y=i}Math.imul||(m=y),f.prototype.mulTo=function(n,i){var o=this.length+n.length;return 10===this.length&&10===n.length?m(this,n,i):o<63?y(this,n,i):o<1024?g(this,n,i):v(this,n,i)},w.prototype.makeRBT=function(n){for(var i=Array(n),o=f.prototype._countBits(n)-1,a=0;a>=1;return a},w.prototype.permute=function(n,i,o,a,s,f){for(var u=0;u>>=1)s++;return 1<>>=13,o[2*u+1]=8191&f,f>>>=13;for(u=2*i;u>=26,i+=(s/0x4000000|0)+(f>>>26),this.words[o]=0x3ffffff&f}return 0!==i&&(this.words[o]=i,this.length++),this},f.prototype.muln=function(n){return this.clone().imuln(n)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(n){var i=b(n);if(0===i.length)return new f(1);for(var o=this,a=0;a=0);var i,o=n%26,s=(n-o)/26,f=0x3ffffff>>>26-o<<26-o;if(0!==o){var u=0;for(i=0;i>>26-o}u&&(this.words[i]=u,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i=0);var s=i?(i-i%26)/26:0,f=n%26,u=Math.min((n-f)/26,this.length),c=0x3ffffff^0x3ffffff>>>f<u)for(this.length-=u,h=0;h=0&&(0!==d||h>=s);h--){var p=0|this.words[h];this.words[h]=d<<26-f|p>>>f,d=p&c}return l&&0!==d&&(l.words[l.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(n,i,o){return a(0===this.negative),this.iushrn(n,i,o)},f.prototype.shln=function(n){return this.clone().ishln(n)},f.prototype.ushln=function(n){return this.clone().iushln(n)},f.prototype.shrn=function(n){return this.clone().ishrn(n)},f.prototype.ushrn=function(n){return this.clone().iushrn(n)},f.prototype.testn=function(n){a("number"==typeof n&&n>=0);var i=n%26,o=(n-i)/26,s=1<=0);var i=n%26,o=(n-i)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=o)return this;if(0!==i&&o++,this.length=Math.min(o,this.length),0!==i){var s=0x3ffffff^0x3ffffff>>>i<=0x4000000;i++)this.words[i]-=0x4000000,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},f.prototype.isubn=function(n){if(a("number"==typeof n),a(n<0x4000000),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(l/0x4000000|0),this.words[s+o]=0x3ffffff&f}for(;s>26,this.words[s+o]=0x3ffffff&f;if(0===c)return this.strip();for(a(-1===c),c=0,s=0;s>26,this.words[s]=0x3ffffff&f;return this.negative=1,this.strip()},f.prototype._wordDiv=function(n,i){var o,a=this.length-n.length,s=this.clone(),u=n,c=0|u.words[u.length-1];0!=(a=26-this._countBits(c))&&(u=u.ushln(a),s.iushln(a),c=0|u.words[u.length-1]);var l=s.length-u.length;if("mod"!==i){(o=new f(null)).length=l+1,o.words=Array(o.length);for(var h=0;h=0;p--){var b=(0|s.words[u.length+p])*0x4000000+(0|s.words[u.length+p-1]);for(b=Math.min(b/c|0,0x3ffffff),s._ishlnsubmul(u,b,p);0!==s.negative;)b--,s.negative=0,s._ishlnsubmul(u,1,p),s.isZero()||(s.negative^=1);o&&(o.words[p]=b)}return o&&o.strip(),s.strip(),"div"!==i&&0!==a&&s.iushrn(a),{div:o||null,mod:s}},f.prototype.divmod=function(n,i,o){var s,u,c;return(a(!n.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===n.negative?(c=this.neg().divmod(n,i),"mod"!==i&&(s=c.div.neg()),"div"!==i&&(u=c.mod.neg(),o&&0!==u.negative&&u.iadd(n)),{div:s,mod:u}):0===this.negative&&0!==n.negative?(c=this.divmod(n.neg(),i),"mod"!==i&&(s=c.div.neg()),{div:s,mod:c.mod}):(this.negative&n.negative)!=0?(c=this.neg().divmod(n.neg(),i),"div"!==i&&(u=c.mod.neg(),o&&0!==u.negative&&u.isub(n)),{div:c.div,mod:u}):n.length>this.length||0>this.cmp(n)?{div:new f(0),mod:this}:1===n.length?"div"===i?{div:this.divn(n.words[0]),mod:null}:"mod"===i?{div:null,mod:new f(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new f(this.modn(n.words[0]))}:this._wordDiv(n,i)},f.prototype.div=function(n){return this.divmod(n,"div",!1).div},f.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},f.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},f.prototype.divRound=function(n){var i=this.divmod(n);if(i.mod.isZero())return i.div;var o=0!==i.div.negative?i.mod.isub(n):i.mod,a=n.ushrn(1),s=n.andln(1),f=o.cmp(a);return f<0||1===s&&0===f?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},f.prototype.modn=function(n){a(n<=0x3ffffff);for(var i=0x4000000%n,o=0,s=this.length-1;s>=0;s--)o=(i*o+(0|this.words[s]))%n;return o},f.prototype.idivn=function(n){a(n<=0x3ffffff);for(var i=0,o=this.length-1;o>=0;o--){var s=(0|this.words[o])+0x4000000*i;this.words[o]=s/n|0,i=s%n}return this.strip()},f.prototype.divn=function(n){return this.clone().idivn(n)},f.prototype.egcd=function(n){a(0===n.negative),a(!n.isZero());var i=this,o=n.clone();i=0!==i.negative?i.umod(n):i.clone();for(var s=new f(1),u=new f(0),c=new f(0),l=new f(1),h=0;i.isEven()&&o.isEven();)i.iushrn(1),o.iushrn(1),++h;for(var d=o.clone(),p=i.clone();!i.isZero();){for(var b=0,y=1;(i.words[0]&y)==0&&b<26;++b,y<<=1);if(b>0)for(i.iushrn(b);b-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(d),u.isub(p)),s.iushrn(1),u.iushrn(1);for(var m=0,g=1;(o.words[0]&g)==0&&m<26;++m,g<<=1);if(m>0)for(o.iushrn(m);m-- >0;)(c.isOdd()||l.isOdd())&&(c.iadd(d),l.isub(p)),c.iushrn(1),l.iushrn(1);i.cmp(o)>=0?(i.isub(o),s.isub(c),u.isub(l)):(o.isub(i),c.isub(s),l.isub(u))}return{a:c,b:l,gcd:o.iushln(h)}},f.prototype._invmp=function(n){a(0===n.negative),a(!n.isZero());var i,o=this,s=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var u=new f(1),c=new f(0),l=s.clone();o.cmpn(1)>0&&s.cmpn(1)>0;){for(var h=0,d=1;(o.words[0]&d)==0&&h<26;++h,d<<=1);if(h>0)for(o.iushrn(h);h-- >0;)u.isOdd()&&u.iadd(l),u.iushrn(1);for(var p=0,b=1;(s.words[0]&b)==0&&p<26;++p,b<<=1);if(p>0)for(s.iushrn(p);p-- >0;)c.isOdd()&&c.iadd(l),c.iushrn(1);o.cmp(s)>=0?(o.isub(s),u.isub(c)):(s.isub(o),c.isub(u))}return 0>(i=0===o.cmpn(1)?u:c).cmpn(0)&&i.iadd(n),i},f.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var i=this.clone(),o=n.clone();i.negative=0,o.negative=0;for(var a=0;i.isEven()&&o.isEven();a++)i.iushrn(1),o.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;o.isEven();)o.iushrn(1);var s=i.cmp(o);if(s<0){var f=i;i=o,o=f}else if(0===s||0===o.cmpn(1))break;i.isub(o)}return o.iushln(a)},f.prototype.invm=function(n){return this.egcd(n).a.umod(n)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(n){return this.words[0]&n},f.prototype.bincn=function(n){a("number"==typeof n);var i=n%26,o=(n-i)/26,s=1<>>26,c&=0x3ffffff,this.words[u]=c}return 0!==f&&(this.words[u]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.prototype.cmpn=function(n){var i,o=n<0;if(0!==this.negative&&!o)return -1;if(0===this.negative&&o)return 1;if(this.strip(),this.length>1)i=1;else{o&&(n=-n),a(n<=0x3ffffff,"Number is too big");var s=0|this.words[0];i=s===n?0:sn.length)return 1;if(this.length=0;o--){var a=0|this.words[o],s=0|n.words[o];if(a!==s){as&&(i=1);break}}return i},f.prototype.gtn=function(n){return 1===this.cmpn(n)},f.prototype.gt=function(n){return 1===this.cmp(n)},f.prototype.gten=function(n){return this.cmpn(n)>=0},f.prototype.gte=function(n){return this.cmp(n)>=0},f.prototype.ltn=function(n){return -1===this.cmpn(n)},f.prototype.lt=function(n){return -1===this.cmp(n)},f.prototype.lten=function(n){return 0>=this.cmpn(n)},f.prototype.lte=function(n){return 0>=this.cmp(n)},f.prototype.eqn=function(n){return 0===this.cmpn(n)},f.prototype.eq=function(n){return 0===this.cmp(n)},f.red=function(n){return new R(n)},f.prototype.toRed=function(n){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},f.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(n){return this.red=n,this},f.prototype.forceRed=function(n){return a(!this.red,"Already a number in reduction context"),this._forceRed(n)},f.prototype.redAdd=function(n){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},f.prototype.redIAdd=function(n){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},f.prototype.redSub=function(n){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},f.prototype.redISub=function(n){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},f.prototype.redShl=function(n){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},f.prototype.redMul=function(n){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},f.prototype.redIMul=function(n){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},f.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(n){return a(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var x={k256:null,p224:null,p192:null,p25519:null};function _(n,i){this.name=n,this.p=new f(i,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(n){if("string"==typeof n){var i=f._prime(n);this.m=i.p,this.prime=i}else a(n.gtn(1),"modulus must be greater than 1"),this.m=n,this.prime=null}function I(n){R.call(this,n),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var n=new f(null);return n.words=Array(Math.ceil(this.n/13)),n},_.prototype.ireduce=function(n){var i,o=n;do this.split(o,this.tmp),i=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength();while(i>this.n)var a=i0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},_.prototype.split=function(n,i){n.iushrn(this.n,0,i)},_.prototype.imulK=function(n){return n.imul(this.k)},s(E,_),E.prototype.split=function(n,i){for(var o=4194303,a=Math.min(n.length,9),s=0;s>>22,f=u}f>>>=22,n.words[s-10]=f,0===f&&n.length>10?n.length-=10:n.length-=9},E.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var i=0,o=0;o>>=26,n.words[o]=s,i=a}return 0!==i&&(n.words[n.length++]=i),n},f._prime=function(n){var i;if(x[n])return x[n];if("k256"===n)i=new E;else if("p224"===n)i=new S;else if("p192"===n)i=new M;else if("p25519"===n)i=new A;else throw Error("Unknown prime "+n);return x[n]=i,i},R.prototype._verify1=function(n){a(0===n.negative,"red works only with positives"),a(n.red,"red works only with red numbers")},R.prototype._verify2=function(n,i){a((n.negative|i.negative)==0,"red works only with positives"),a(n.red&&n.red===i.red,"red works only with red numbers")},R.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},R.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},R.prototype.add=function(n,i){this._verify2(n,i);var o=n.add(i);return o.cmp(this.m)>=0&&o.isub(this.m),o._forceRed(this)},R.prototype.iadd=function(n,i){this._verify2(n,i);var o=n.iadd(i);return o.cmp(this.m)>=0&&o.isub(this.m),o},R.prototype.sub=function(n,i){this._verify2(n,i);var o=n.sub(i);return 0>o.cmpn(0)&&o.iadd(this.m),o._forceRed(this)},R.prototype.isub=function(n,i){this._verify2(n,i);var o=n.isub(i);return 0>o.cmpn(0)&&o.iadd(this.m),o},R.prototype.shl=function(n,i){return this._verify1(n),this.imod(n.ushln(i))},R.prototype.imul=function(n,i){return this._verify2(n,i),this.imod(n.imul(i))},R.prototype.mul=function(n,i){return this._verify2(n,i),this.imod(n.mul(i))},R.prototype.isqr=function(n){return this.imul(n,n.clone())},R.prototype.sqr=function(n){return this.mul(n,n)},R.prototype.sqrt=function(n){if(n.isZero())return n.clone();var i=this.m.andln(3);if(a(i%2==1),3===i){var o=this.m.add(new f(1)).iushrn(2);return this.pow(n,o)}for(var s=this.m.subn(1),u=0;!s.isZero()&&0===s.andln(1);)u++,s.iushrn(1);a(!s.isZero());var c=new f(1).toRed(this),l=c.redNeg(),h=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new f(2*d*d).toRed(this);0!==this.pow(d,h).cmp(l);)d.redIAdd(l);for(var p=this.pow(d,s),b=this.pow(n,s.addn(1).iushrn(1)),y=this.pow(n,s),m=u;0!==y.cmp(c);){for(var g=y,v=0;0!==g.cmp(c);v++)g=g.redSqr();a(v=0;s--){for(var d=i.words[s],p=h-1;p>=0;p--){var b=d>>p&1;if(u!==a[0]&&(u=this.sqr(u)),0===b&&0===c){l=0;continue}c<<=1,c|=b,(++l===o||0===s&&0===p)&&(u=this.mul(u,a[c]),l=0,c=0)}h=26}return u},R.prototype.convertTo=function(n){var i=n.umod(this.m);return i===n?i.clone():i},R.prototype.convertFrom=function(n){var i=n.clone();return i.red=null,i},f.mont=function(n){return new I(n)},s(I,R),I.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},I.prototype.convertFrom=function(n){var i=this.imod(n.mul(this.rinv));return i.red=null,i},I.prototype.imul=function(n,i){if(n.isZero()||i.isZero())return n.words[0]=0,n.length=1,n;var o=n.imul(i),a=o.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=o.isub(a).iushrn(this.shift),f=s;return s.cmp(this.m)>=0?f=s.isub(this.m):0>s.cmpn(0)&&(f=s.iadd(this.m)),f._forceRed(this)},I.prototype.mul=function(n,i){if(n.isZero()||i.isZero())return new f(0)._forceRed(this);var o=n.mul(i),a=o.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=o.isub(a).iushrn(this.shift),u=s;return s.cmp(this.m)>=0?u=s.isub(this.m):0>s.cmpn(0)&&(u=s.iadd(this.m)),u._forceRed(this)},I.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(n=o.nmd(n),this)},1315:function(n,i,o){!function(n,i){"use strict";function a(n,i){if(!n)throw Error(i||"Assertion failed")}function s(n,i){n.super_=i;var o=function(){};o.prototype=i.prototype,n.prototype=new o,n.prototype.constructor=n}function f(n,i,o){if(f.isBN(n))return n;this.negative=0,this.words=null,this.length=0,this.red=null,null!==n&&(("le"===i||"be"===i)&&(o=i,i=10),this._init(n||0,i||10,o||"be"))}"object"==typeof n?n.exports=f:i.BN=f,f.BN=f,f.wordSize=26;try{d=o(181).Buffer}catch(n){}function u(n,i,o){for(var s=0,f=Math.min(n.length,o),u=0,c=i;c=49&&h<=54?h-49+10:h>=17&&h<=22?h-17+10:h,u|=l}return a(!(240&u),"Invalid character in "+n),s}function c(n,i,o,s){for(var f=0,u=0,c=Math.min(n.length,o),l=i;l=49?h-49+10:h>=17?h-17+10:h,a(h>=0&&u"}f.isBN=function(n){return n instanceof f||null!==n&&"object"==typeof n&&n.constructor.wordSize===f.wordSize&&Array.isArray(n.words)},f.max=function(n,i){return n.cmp(i)>0?n:i},f.min=function(n,i){return 0>n.cmp(i)?n:i},f.prototype._init=function(n,i,o){if("number"==typeof n)return this._initNumber(n,i,o);if("object"==typeof n)return this._initArray(n,i,o);"hex"===i&&(i=16),a(i===(0|i)&&i>=2&&i<=36);var s=0;"-"===(n=n.toString().replace(/\s+/g,""))[0]&&s++,16===i?this._parseHex(n,s):this._parseBase(n,i,s),"-"===n[0]&&(this.negative=1),this._strip(),"le"===o&&this._initArray(this.toArray(),i,o)},f.prototype._initNumber=function(n,i,o){n<0&&(this.negative=1,n=-n),n<0x4000000?(this.words=[0x3ffffff&n],this.length=1):n<0x10000000000000?(this.words=[0x3ffffff&n,n/0x4000000&0x3ffffff],this.length=2):(a(n<0x20000000000000),this.words=[0x3ffffff&n,n/0x4000000&0x3ffffff,1],this.length=3),"le"===o&&this._initArray(this.toArray(),i,o)},f.prototype._initArray=function(n,i,o){if(a("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=Array(this.length);for(var s,f,u=0;u=0;u-=3)f=n[u]|n[u-1]<<8|n[u-2]<<16,this.words[s]|=f<>>26-c&0x3ffffff,(c+=24)>=26&&(c-=26,s++);else if("le"===o)for(u=0,s=0;u>>26-c&0x3ffffff,(c+=24)>=26&&(c-=26,s++);return this._strip()},f.prototype._parseHex=function(n,i){this.length=Math.ceil((n.length-i)/6),this.words=Array(this.length);for(var o,a,s=0;s=i;s-=6)a=u(n,s,s+6),this.words[o]|=a<>>26-f&4194303,(f+=24)>=26&&(f-=26,o++);s+6!==i&&(a=u(n,i,s+6),this.words[o]|=a<>>26-f&4194303),this._strip()},f.prototype._parseBase=function(n,i,o){this.words=[0],this.length=1;for(var a=0,s=1;s<=0x3ffffff;s*=i)a++;a--,s=s/i|0;for(var f=n.length-o,u=f%a,l=Math.min(f,f-u)+o,h=0,d=o;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},f.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"u">typeof Symbol&&"function"==typeof Symbol.for?f.prototype[Symbol.for("nodejs.util.inspect.custom")]=h:f.prototype.inspect=h;var d,p=["","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"],b=[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],y=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];f.prototype.toString=function(n,i){if(i=0|i||1,16===(n=n||10)||"hex"===n){for(var o="",s=0,f=0,u=0;u>>24-s&0xffffff)||u!==this.length-1?p[6-l.length]+l+o:l+o,(s+=2)>=26&&(s-=26,u--)}for(0!==f&&(o=f.toString(16)+o);o.length%i!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}if(n===(0|n)&&n>=2&&n<=36){var h=b[n],d=y[n];o="";var m=this.clone();for(m.negative=0;!m.isZero();){var g=m.modrn(d).toString(n);o=(m=m.idivn(d)).isZero()?g+o:p[h-g.length]+g+o}for(this.isZero()&&(o="0"+o);o.length%i!=0;)o="0"+o;return 0!==this.negative&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?n+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},f.prototype.toJSON=function(){return this.toString(16,2)},d&&(f.prototype.toBuffer=function(n,i){return this.toArrayLike(d,n,i)}),f.prototype.toArray=function(n,i){return this.toArrayLike(Array,n,i)};var m=function(n,i){return n.allocUnsafe?n.allocUnsafe(i):new n(i)};function g(n){for(var i=Array(n.bitLength()),o=0;o>>s&1}return i}function v(n,i,o){o.negative=i.negative^n.negative;var a=n.length+i.length|0;o.length=a,a=a-1|0;var s=0|n.words[0],f=0|i.words[0],u=s*f,c=0x3ffffff&u,l=u/0x4000000|0;o.words[0]=c;for(var h=1;h>>26,p=0x3ffffff&l,b=Math.min(h,i.length-1),y=Math.max(0,h-n.length+1);y<=b;y++){var m=h-y|0;d+=(u=(s=0|n.words[m])*(f=0|i.words[y])+p)/0x4000000|0,p=0x3ffffff&u}o.words[h]=0|p,l=0|d}return 0!==l?o.words[h]=0|l:o.length--,o._strip()}f.prototype.toArrayLike=function(n,i,o){this._strip();var s=this.byteLength(),f=o||Math.max(1,s);a(s<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0");var u=m(n,f);return this["_toArrayLike"+("le"===i?"LE":"BE")](u,s),u},f.prototype._toArrayLikeLE=function(n,i){for(var o=0,a=0,s=0,f=0;s>8&255),o>16&255),6===f?(o>24&255),a=0,f=0):(a=u>>>24,f+=2)}if(o=0&&(n[o--]=u>>8&255),o>=0&&(n[o--]=u>>16&255),6===f?(o>=0&&(n[o--]=u>>24&255),a=0,f=0):(a=u>>>24,f+=2)}if(o>=0)for(n[o--]=a;o>=0;)n[o--]=0},Math.clz32?f.prototype._countBits=function(n){return 32-Math.clz32(n)}:f.prototype._countBits=function(n){var i=n,o=0;return i>=4096&&(o+=13,i>>>=13),i>=64&&(o+=7,i>>>=7),i>=8&&(o+=4,i>>>=4),i>=2&&(o+=2,i>>>=2),o+i},f.prototype._zeroBits=function(n){if(0===n)return 26;var i=n,o=0;return(8191&i)==0&&(o+=13,i>>>=13),(127&i)==0&&(o+=7,i>>>=7),(15&i)==0&&(o+=4,i>>>=4),(3&i)==0&&(o+=2,i>>>=2),(1&i)==0&&o++,o},f.prototype.bitLength=function(){var n=this.words[this.length-1],i=this._countBits(n);return(this.length-1)*26+i},f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,i=0;in.length?this.clone().ior(n):n.clone().ior(this)},f.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},f.prototype.iuand=function(n){var i;i=this.length>n.length?n:this;for(var o=0;on.length?this.clone().iand(n):n.clone().iand(this)},f.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},f.prototype.iuxor=function(n){this.length>n.length?(i=this,o=n):(i=n,o=this);for(var i,o,a=0;an.length?this.clone().ixor(n):n.clone().ixor(this)},f.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},f.prototype.inotn=function(n){a("number"==typeof n&&n>=0);var i=0|Math.ceil(n/26),o=n%26;this._expand(i),o>0&&i--;for(var s=0;s0&&(this.words[s]=~this.words[s]&0x3ffffff>>26-o),this._strip()},f.prototype.notn=function(n){return this.clone().inotn(n)},f.prototype.setn=function(n,i){a("number"==typeof n&&n>=0);var o=n/26|0,s=n%26;return this._expand(o+1),i?this.words[o]=this.words[o]|1<n.length?(o=this,a=n):(o=n,a=this);for(var i,o,a,s=0,f=0;f>>26;for(;0!==s&&f>>26;if(this.length=o.length,0!==s)this.words[this.length]=s,this.length++;else if(o!==this)for(;fn.length?this.clone().iadd(n):n.clone().iadd(this)},f.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var i,o,a=this.iadd(n);return n.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var s=this.cmp(n);if(0===s)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(i=this,o=n):(i=n,o=this);for(var f=0,u=0;u>26,this.words[u]=0x3ffffff&a;for(;0!==f&&u>26,this.words[u]=0x3ffffff&a;if(0===f&&u>>13,y=0|u[1],m=8191&y,g=y>>>13,v=0|u[2],w=8191&v,x=v>>>13,_=0|u[3],E=8191&_,S=_>>>13,M=0|u[4],A=8191&M,R=M>>>13,I=0|u[5],k=8191&I,j=I>>>13,T=0|u[6],O=8191&T,N=T>>>13,P=0|u[7],B=8191&P,L=P>>>13,C=0|u[8],D=8191&C,U=C>>>13,$=0|u[9],F=8191&$,z=$>>>13,q=0|c[0],H=8191&q,W=q>>>13,K=0|c[1],G=8191&K,V=K>>>13,Y=0|c[2],X=8191&Y,J=Y>>>13,Z=0|c[3],Q=8191&Z,ee=Z>>>13,et=0|c[4],er=8191&et,en=et>>>13,ei=0|c[5],eo=8191&ei,ea=ei>>>13,es=0|c[6],ef=8191&es,eu=es>>>13,ec=0|c[7],el=8191&ec,eh=ec>>>13,ed=0|c[8],ep=8191&ed,eb=ed>>>13,ey=0|c[9],em=8191&ey,eg=ey>>>13;o.negative=n.negative^i.negative,o.length=19,a=Math.imul(p,H);var ev=(h+a|0)+((8191&(s=(s=Math.imul(p,W))+Math.imul(b,H)|0))<<13)|0;h=((f=Math.imul(b,W))+(s>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,a=Math.imul(m,H),s=(s=Math.imul(m,W))+Math.imul(g,H)|0,f=Math.imul(g,W),a=a+Math.imul(p,G)|0;var ew=(h+a|0)+((8191&(s=(s=s+Math.imul(p,V)|0)+Math.imul(b,G)|0))<<13)|0;h=((f=f+Math.imul(b,V)|0)+(s>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,a=Math.imul(w,H),s=(s=Math.imul(w,W))+Math.imul(x,H)|0,f=Math.imul(x,W),a=a+Math.imul(m,G)|0,s=(s=s+Math.imul(m,V)|0)+Math.imul(g,G)|0,f=f+Math.imul(g,V)|0,a=a+Math.imul(p,X)|0;var ex=(h+a|0)+((8191&(s=(s=s+Math.imul(p,J)|0)+Math.imul(b,X)|0))<<13)|0;h=((f=f+Math.imul(b,J)|0)+(s>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,a=Math.imul(E,H),s=(s=Math.imul(E,W))+Math.imul(S,H)|0,f=Math.imul(S,W),a=a+Math.imul(w,G)|0,s=(s=s+Math.imul(w,V)|0)+Math.imul(x,G)|0,f=f+Math.imul(x,V)|0,a=a+Math.imul(m,X)|0,s=(s=s+Math.imul(m,J)|0)+Math.imul(g,X)|0,f=f+Math.imul(g,J)|0,a=a+Math.imul(p,Q)|0;var e_=(h+a|0)+((8191&(s=(s=s+Math.imul(p,ee)|0)+Math.imul(b,Q)|0))<<13)|0;h=((f=f+Math.imul(b,ee)|0)+(s>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,a=Math.imul(A,H),s=(s=Math.imul(A,W))+Math.imul(R,H)|0,f=Math.imul(R,W),a=a+Math.imul(E,G)|0,s=(s=s+Math.imul(E,V)|0)+Math.imul(S,G)|0,f=f+Math.imul(S,V)|0,a=a+Math.imul(w,X)|0,s=(s=s+Math.imul(w,J)|0)+Math.imul(x,X)|0,f=f+Math.imul(x,J)|0,a=a+Math.imul(m,Q)|0,s=(s=s+Math.imul(m,ee)|0)+Math.imul(g,Q)|0,f=f+Math.imul(g,ee)|0,a=a+Math.imul(p,er)|0;var eE=(h+a|0)+((8191&(s=(s=s+Math.imul(p,en)|0)+Math.imul(b,er)|0))<<13)|0;h=((f=f+Math.imul(b,en)|0)+(s>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,a=Math.imul(k,H),s=(s=Math.imul(k,W))+Math.imul(j,H)|0,f=Math.imul(j,W),a=a+Math.imul(A,G)|0,s=(s=s+Math.imul(A,V)|0)+Math.imul(R,G)|0,f=f+Math.imul(R,V)|0,a=a+Math.imul(E,X)|0,s=(s=s+Math.imul(E,J)|0)+Math.imul(S,X)|0,f=f+Math.imul(S,J)|0,a=a+Math.imul(w,Q)|0,s=(s=s+Math.imul(w,ee)|0)+Math.imul(x,Q)|0,f=f+Math.imul(x,ee)|0,a=a+Math.imul(m,er)|0,s=(s=s+Math.imul(m,en)|0)+Math.imul(g,er)|0,f=f+Math.imul(g,en)|0,a=a+Math.imul(p,eo)|0;var eS=(h+a|0)+((8191&(s=(s=s+Math.imul(p,ea)|0)+Math.imul(b,eo)|0))<<13)|0;h=((f=f+Math.imul(b,ea)|0)+(s>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,a=Math.imul(O,H),s=(s=Math.imul(O,W))+Math.imul(N,H)|0,f=Math.imul(N,W),a=a+Math.imul(k,G)|0,s=(s=s+Math.imul(k,V)|0)+Math.imul(j,G)|0,f=f+Math.imul(j,V)|0,a=a+Math.imul(A,X)|0,s=(s=s+Math.imul(A,J)|0)+Math.imul(R,X)|0,f=f+Math.imul(R,J)|0,a=a+Math.imul(E,Q)|0,s=(s=s+Math.imul(E,ee)|0)+Math.imul(S,Q)|0,f=f+Math.imul(S,ee)|0,a=a+Math.imul(w,er)|0,s=(s=s+Math.imul(w,en)|0)+Math.imul(x,er)|0,f=f+Math.imul(x,en)|0,a=a+Math.imul(m,eo)|0,s=(s=s+Math.imul(m,ea)|0)+Math.imul(g,eo)|0,f=f+Math.imul(g,ea)|0,a=a+Math.imul(p,ef)|0;var eM=(h+a|0)+((8191&(s=(s=s+Math.imul(p,eu)|0)+Math.imul(b,ef)|0))<<13)|0;h=((f=f+Math.imul(b,eu)|0)+(s>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,a=Math.imul(B,H),s=(s=Math.imul(B,W))+Math.imul(L,H)|0,f=Math.imul(L,W),a=a+Math.imul(O,G)|0,s=(s=s+Math.imul(O,V)|0)+Math.imul(N,G)|0,f=f+Math.imul(N,V)|0,a=a+Math.imul(k,X)|0,s=(s=s+Math.imul(k,J)|0)+Math.imul(j,X)|0,f=f+Math.imul(j,J)|0,a=a+Math.imul(A,Q)|0,s=(s=s+Math.imul(A,ee)|0)+Math.imul(R,Q)|0,f=f+Math.imul(R,ee)|0,a=a+Math.imul(E,er)|0,s=(s=s+Math.imul(E,en)|0)+Math.imul(S,er)|0,f=f+Math.imul(S,en)|0,a=a+Math.imul(w,eo)|0,s=(s=s+Math.imul(w,ea)|0)+Math.imul(x,eo)|0,f=f+Math.imul(x,ea)|0,a=a+Math.imul(m,ef)|0,s=(s=s+Math.imul(m,eu)|0)+Math.imul(g,ef)|0,f=f+Math.imul(g,eu)|0,a=a+Math.imul(p,el)|0;var eA=(h+a|0)+((8191&(s=(s=s+Math.imul(p,eh)|0)+Math.imul(b,el)|0))<<13)|0;h=((f=f+Math.imul(b,eh)|0)+(s>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,a=Math.imul(D,H),s=(s=Math.imul(D,W))+Math.imul(U,H)|0,f=Math.imul(U,W),a=a+Math.imul(B,G)|0,s=(s=s+Math.imul(B,V)|0)+Math.imul(L,G)|0,f=f+Math.imul(L,V)|0,a=a+Math.imul(O,X)|0,s=(s=s+Math.imul(O,J)|0)+Math.imul(N,X)|0,f=f+Math.imul(N,J)|0,a=a+Math.imul(k,Q)|0,s=(s=s+Math.imul(k,ee)|0)+Math.imul(j,Q)|0,f=f+Math.imul(j,ee)|0,a=a+Math.imul(A,er)|0,s=(s=s+Math.imul(A,en)|0)+Math.imul(R,er)|0,f=f+Math.imul(R,en)|0,a=a+Math.imul(E,eo)|0,s=(s=s+Math.imul(E,ea)|0)+Math.imul(S,eo)|0,f=f+Math.imul(S,ea)|0,a=a+Math.imul(w,ef)|0,s=(s=s+Math.imul(w,eu)|0)+Math.imul(x,ef)|0,f=f+Math.imul(x,eu)|0,a=a+Math.imul(m,el)|0,s=(s=s+Math.imul(m,eh)|0)+Math.imul(g,el)|0,f=f+Math.imul(g,eh)|0,a=a+Math.imul(p,ep)|0;var eR=(h+a|0)+((8191&(s=(s=s+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;h=((f=f+Math.imul(b,eb)|0)+(s>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,a=Math.imul(F,H),s=(s=Math.imul(F,W))+Math.imul(z,H)|0,f=Math.imul(z,W),a=a+Math.imul(D,G)|0,s=(s=s+Math.imul(D,V)|0)+Math.imul(U,G)|0,f=f+Math.imul(U,V)|0,a=a+Math.imul(B,X)|0,s=(s=s+Math.imul(B,J)|0)+Math.imul(L,X)|0,f=f+Math.imul(L,J)|0,a=a+Math.imul(O,Q)|0,s=(s=s+Math.imul(O,ee)|0)+Math.imul(N,Q)|0,f=f+Math.imul(N,ee)|0,a=a+Math.imul(k,er)|0,s=(s=s+Math.imul(k,en)|0)+Math.imul(j,er)|0,f=f+Math.imul(j,en)|0,a=a+Math.imul(A,eo)|0,s=(s=s+Math.imul(A,ea)|0)+Math.imul(R,eo)|0,f=f+Math.imul(R,ea)|0,a=a+Math.imul(E,ef)|0,s=(s=s+Math.imul(E,eu)|0)+Math.imul(S,ef)|0,f=f+Math.imul(S,eu)|0,a=a+Math.imul(w,el)|0,s=(s=s+Math.imul(w,eh)|0)+Math.imul(x,el)|0,f=f+Math.imul(x,eh)|0,a=a+Math.imul(m,ep)|0,s=(s=s+Math.imul(m,eb)|0)+Math.imul(g,ep)|0,f=f+Math.imul(g,eb)|0,a=a+Math.imul(p,em)|0;var eI=(h+a|0)+((8191&(s=(s=s+Math.imul(p,eg)|0)+Math.imul(b,em)|0))<<13)|0;h=((f=f+Math.imul(b,eg)|0)+(s>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,a=Math.imul(F,G),s=(s=Math.imul(F,V))+Math.imul(z,G)|0,f=Math.imul(z,V),a=a+Math.imul(D,X)|0,s=(s=s+Math.imul(D,J)|0)+Math.imul(U,X)|0,f=f+Math.imul(U,J)|0,a=a+Math.imul(B,Q)|0,s=(s=s+Math.imul(B,ee)|0)+Math.imul(L,Q)|0,f=f+Math.imul(L,ee)|0,a=a+Math.imul(O,er)|0,s=(s=s+Math.imul(O,en)|0)+Math.imul(N,er)|0,f=f+Math.imul(N,en)|0,a=a+Math.imul(k,eo)|0,s=(s=s+Math.imul(k,ea)|0)+Math.imul(j,eo)|0,f=f+Math.imul(j,ea)|0,a=a+Math.imul(A,ef)|0,s=(s=s+Math.imul(A,eu)|0)+Math.imul(R,ef)|0,f=f+Math.imul(R,eu)|0,a=a+Math.imul(E,el)|0,s=(s=s+Math.imul(E,eh)|0)+Math.imul(S,el)|0,f=f+Math.imul(S,eh)|0,a=a+Math.imul(w,ep)|0,s=(s=s+Math.imul(w,eb)|0)+Math.imul(x,ep)|0,f=f+Math.imul(x,eb)|0,a=a+Math.imul(m,em)|0;var ek=(h+a|0)+((8191&(s=(s=s+Math.imul(m,eg)|0)+Math.imul(g,em)|0))<<13)|0;h=((f=f+Math.imul(g,eg)|0)+(s>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,a=Math.imul(F,X),s=(s=Math.imul(F,J))+Math.imul(z,X)|0,f=Math.imul(z,J),a=a+Math.imul(D,Q)|0,s=(s=s+Math.imul(D,ee)|0)+Math.imul(U,Q)|0,f=f+Math.imul(U,ee)|0,a=a+Math.imul(B,er)|0,s=(s=s+Math.imul(B,en)|0)+Math.imul(L,er)|0,f=f+Math.imul(L,en)|0,a=a+Math.imul(O,eo)|0,s=(s=s+Math.imul(O,ea)|0)+Math.imul(N,eo)|0,f=f+Math.imul(N,ea)|0,a=a+Math.imul(k,ef)|0,s=(s=s+Math.imul(k,eu)|0)+Math.imul(j,ef)|0,f=f+Math.imul(j,eu)|0,a=a+Math.imul(A,el)|0,s=(s=s+Math.imul(A,eh)|0)+Math.imul(R,el)|0,f=f+Math.imul(R,eh)|0,a=a+Math.imul(E,ep)|0,s=(s=s+Math.imul(E,eb)|0)+Math.imul(S,ep)|0,f=f+Math.imul(S,eb)|0,a=a+Math.imul(w,em)|0;var ej=(h+a|0)+((8191&(s=(s=s+Math.imul(w,eg)|0)+Math.imul(x,em)|0))<<13)|0;h=((f=f+Math.imul(x,eg)|0)+(s>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,a=Math.imul(F,Q),s=(s=Math.imul(F,ee))+Math.imul(z,Q)|0,f=Math.imul(z,ee),a=a+Math.imul(D,er)|0,s=(s=s+Math.imul(D,en)|0)+Math.imul(U,er)|0,f=f+Math.imul(U,en)|0,a=a+Math.imul(B,eo)|0,s=(s=s+Math.imul(B,ea)|0)+Math.imul(L,eo)|0,f=f+Math.imul(L,ea)|0,a=a+Math.imul(O,ef)|0,s=(s=s+Math.imul(O,eu)|0)+Math.imul(N,ef)|0,f=f+Math.imul(N,eu)|0,a=a+Math.imul(k,el)|0,s=(s=s+Math.imul(k,eh)|0)+Math.imul(j,el)|0,f=f+Math.imul(j,eh)|0,a=a+Math.imul(A,ep)|0,s=(s=s+Math.imul(A,eb)|0)+Math.imul(R,ep)|0,f=f+Math.imul(R,eb)|0,a=a+Math.imul(E,em)|0;var eT=(h+a|0)+((8191&(s=(s=s+Math.imul(E,eg)|0)+Math.imul(S,em)|0))<<13)|0;h=((f=f+Math.imul(S,eg)|0)+(s>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,a=Math.imul(F,er),s=(s=Math.imul(F,en))+Math.imul(z,er)|0,f=Math.imul(z,en),a=a+Math.imul(D,eo)|0,s=(s=s+Math.imul(D,ea)|0)+Math.imul(U,eo)|0,f=f+Math.imul(U,ea)|0,a=a+Math.imul(B,ef)|0,s=(s=s+Math.imul(B,eu)|0)+Math.imul(L,ef)|0,f=f+Math.imul(L,eu)|0,a=a+Math.imul(O,el)|0,s=(s=s+Math.imul(O,eh)|0)+Math.imul(N,el)|0,f=f+Math.imul(N,eh)|0,a=a+Math.imul(k,ep)|0,s=(s=s+Math.imul(k,eb)|0)+Math.imul(j,ep)|0,f=f+Math.imul(j,eb)|0,a=a+Math.imul(A,em)|0;var eO=(h+a|0)+((8191&(s=(s=s+Math.imul(A,eg)|0)+Math.imul(R,em)|0))<<13)|0;h=((f=f+Math.imul(R,eg)|0)+(s>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,a=Math.imul(F,eo),s=(s=Math.imul(F,ea))+Math.imul(z,eo)|0,f=Math.imul(z,ea),a=a+Math.imul(D,ef)|0,s=(s=s+Math.imul(D,eu)|0)+Math.imul(U,ef)|0,f=f+Math.imul(U,eu)|0,a=a+Math.imul(B,el)|0,s=(s=s+Math.imul(B,eh)|0)+Math.imul(L,el)|0,f=f+Math.imul(L,eh)|0,a=a+Math.imul(O,ep)|0,s=(s=s+Math.imul(O,eb)|0)+Math.imul(N,ep)|0,f=f+Math.imul(N,eb)|0,a=a+Math.imul(k,em)|0;var eN=(h+a|0)+((8191&(s=(s=s+Math.imul(k,eg)|0)+Math.imul(j,em)|0))<<13)|0;h=((f=f+Math.imul(j,eg)|0)+(s>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,a=Math.imul(F,ef),s=(s=Math.imul(F,eu))+Math.imul(z,ef)|0,f=Math.imul(z,eu),a=a+Math.imul(D,el)|0,s=(s=s+Math.imul(D,eh)|0)+Math.imul(U,el)|0,f=f+Math.imul(U,eh)|0,a=a+Math.imul(B,ep)|0,s=(s=s+Math.imul(B,eb)|0)+Math.imul(L,ep)|0,f=f+Math.imul(L,eb)|0,a=a+Math.imul(O,em)|0;var eP=(h+a|0)+((8191&(s=(s=s+Math.imul(O,eg)|0)+Math.imul(N,em)|0))<<13)|0;h=((f=f+Math.imul(N,eg)|0)+(s>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,a=Math.imul(F,el),s=(s=Math.imul(F,eh))+Math.imul(z,el)|0,f=Math.imul(z,eh),a=a+Math.imul(D,ep)|0,s=(s=s+Math.imul(D,eb)|0)+Math.imul(U,ep)|0,f=f+Math.imul(U,eb)|0,a=a+Math.imul(B,em)|0;var eB=(h+a|0)+((8191&(s=(s=s+Math.imul(B,eg)|0)+Math.imul(L,em)|0))<<13)|0;h=((f=f+Math.imul(L,eg)|0)+(s>>>13)|0)+(eB>>>26)|0,eB&=0x3ffffff,a=Math.imul(F,ep),s=(s=Math.imul(F,eb))+Math.imul(z,ep)|0,f=Math.imul(z,eb),a=a+Math.imul(D,em)|0;var eL=(h+a|0)+((8191&(s=(s=s+Math.imul(D,eg)|0)+Math.imul(U,em)|0))<<13)|0;h=((f=f+Math.imul(U,eg)|0)+(s>>>13)|0)+(eL>>>26)|0,eL&=0x3ffffff,a=Math.imul(F,em);var eC=(h+a|0)+((8191&(s=(s=Math.imul(F,eg))+Math.imul(z,em)|0))<<13)|0;return h=((f=Math.imul(z,eg))+(s>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,l[0]=ev,l[1]=ew,l[2]=ex,l[3]=e_,l[4]=eE,l[5]=eS,l[6]=eM,l[7]=eA,l[8]=eR,l[9]=eI,l[10]=ek,l[11]=ej,l[12]=eT,l[13]=eO,l[14]=eN,l[15]=eP,l[16]=eB,l[17]=eL,l[18]=eC,0!==h&&(l[19]=h,o.length++),o};function x(n,i,o){o.negative=i.negative^n.negative,o.length=n.length+i.length;for(var a=0,s=0,f=0;f>>26)|0)>>>26,u&=0x3ffffff}o.words[f]=c,a=u,u=s}return 0!==a?o.words[f]=a:o.length--,o._strip()}function _(n,i,o){return x(n,i,o)}function E(n,i){this.x=n,this.y=i}Math.imul||(w=v),f.prototype.mulTo=function(n,i){var o=this.length+n.length;return 10===this.length&&10===n.length?w(this,n,i):o<63?v(this,n,i):o<1024?x(this,n,i):_(this,n,i)},E.prototype.makeRBT=function(n){for(var i=Array(n),o=f.prototype._countBits(n)-1,a=0;a>=1;return a},E.prototype.permute=function(n,i,o,a,s,f){for(var u=0;u>>=1)s++;return 1<>>=13,o[2*u+1]=8191&f,f>>>=13;for(u=2*i;u>=26,o+=(f/0x4000000|0)+(u>>>26),this.words[s]=0x3ffffff&u}return 0!==o&&(this.words[s]=o,this.length++),i?this.ineg():this},f.prototype.muln=function(n){return this.clone().imuln(n)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(n){var i=g(n);if(0===i.length)return new f(1);for(var o=this,a=0;a=0);var i,o=n%26,s=(n-o)/26,f=0x3ffffff>>>26-o<<26-o;if(0!==o){var u=0;for(i=0;i>>26-o}u&&(this.words[i]=u,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i=0);var s=i?(i-i%26)/26:0,f=n%26,u=Math.min((n-f)/26,this.length),c=0x3ffffff^0x3ffffff>>>f<u)for(this.length-=u,h=0;h=0&&(0!==d||h>=s);h--){var p=0|this.words[h];this.words[h]=d<<26-f|p>>>f,d=p&c}return l&&0!==d&&(l.words[l.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},f.prototype.ishrn=function(n,i,o){return a(0===this.negative),this.iushrn(n,i,o)},f.prototype.shln=function(n){return this.clone().ishln(n)},f.prototype.ushln=function(n){return this.clone().iushln(n)},f.prototype.shrn=function(n){return this.clone().ishrn(n)},f.prototype.ushrn=function(n){return this.clone().iushrn(n)},f.prototype.testn=function(n){a("number"==typeof n&&n>=0);var i=n%26,o=(n-i)/26,s=1<=0);var i=n%26,o=(n-i)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=o)return this;if(0!==i&&o++,this.length=Math.min(o,this.length),0!==i){var s=0x3ffffff^0x3ffffff>>>i<=0x4000000;i++)this.words[i]-=0x4000000,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},f.prototype.isubn=function(n){if(a("number"==typeof n),a(n<0x4000000),n<0)return this.iaddn(-n);if(0!==this.negative)return this.negative=0,this.iaddn(n),this.negative=1,this;if(this.words[0]-=n,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(l/0x4000000|0),this.words[s+o]=0x3ffffff&f}for(;s>26,this.words[s+o]=0x3ffffff&f;if(0===c)return this._strip();for(a(-1===c),c=0,s=0;s>26,this.words[s]=0x3ffffff&f;return this.negative=1,this._strip()},f.prototype._wordDiv=function(n,i){var o,a=this.length-n.length,s=this.clone(),u=n,c=0|u.words[u.length-1];0!=(a=26-this._countBits(c))&&(u=u.ushln(a),s.iushln(a),c=0|u.words[u.length-1]);var l=s.length-u.length;if("mod"!==i){(o=new f(null)).length=l+1,o.words=Array(o.length);for(var h=0;h=0;p--){var b=(0|s.words[u.length+p])*0x4000000+(0|s.words[u.length+p-1]);for(b=Math.min(b/c|0,0x3ffffff),s._ishlnsubmul(u,b,p);0!==s.negative;)b--,s.negative=0,s._ishlnsubmul(u,1,p),s.isZero()||(s.negative^=1);o&&(o.words[p]=b)}return o&&o._strip(),s._strip(),"div"!==i&&0!==a&&s.iushrn(a),{div:o||null,mod:s}},f.prototype.divmod=function(n,i,o){var s,u,c;return(a(!n.isZero()),this.isZero())?{div:new f(0),mod:new f(0)}:0!==this.negative&&0===n.negative?(c=this.neg().divmod(n,i),"mod"!==i&&(s=c.div.neg()),"div"!==i&&(u=c.mod.neg(),o&&0!==u.negative&&u.iadd(n)),{div:s,mod:u}):0===this.negative&&0!==n.negative?(c=this.divmod(n.neg(),i),"mod"!==i&&(s=c.div.neg()),{div:s,mod:c.mod}):(this.negative&n.negative)!=0?(c=this.neg().divmod(n.neg(),i),"div"!==i&&(u=c.mod.neg(),o&&0!==u.negative&&u.isub(n)),{div:c.div,mod:u}):n.length>this.length||0>this.cmp(n)?{div:new f(0),mod:this}:1===n.length?"div"===i?{div:this.divn(n.words[0]),mod:null}:"mod"===i?{div:null,mod:new f(this.modrn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new f(this.modrn(n.words[0]))}:this._wordDiv(n,i)},f.prototype.div=function(n){return this.divmod(n,"div",!1).div},f.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},f.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},f.prototype.divRound=function(n){var i=this.divmod(n);if(i.mod.isZero())return i.div;var o=0!==i.div.negative?i.mod.isub(n):i.mod,a=n.ushrn(1),s=n.andln(1),f=o.cmp(a);return f<0||1===s&&0===f?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},f.prototype.modrn=function(n){var i=n<0;i&&(n=-n),a(n<=0x3ffffff);for(var o=0x4000000%n,s=0,f=this.length-1;f>=0;f--)s=(o*s+(0|this.words[f]))%n;return i?-s:s},f.prototype.modn=function(n){return this.modrn(n)},f.prototype.idivn=function(n){var i=n<0;i&&(n=-n),a(n<=0x3ffffff);for(var o=0,s=this.length-1;s>=0;s--){var f=(0|this.words[s])+0x4000000*o;this.words[s]=f/n|0,o=f%n}return this._strip(),i?this.ineg():this},f.prototype.divn=function(n){return this.clone().idivn(n)},f.prototype.egcd=function(n){a(0===n.negative),a(!n.isZero());var i=this,o=n.clone();i=0!==i.negative?i.umod(n):i.clone();for(var s=new f(1),u=new f(0),c=new f(0),l=new f(1),h=0;i.isEven()&&o.isEven();)i.iushrn(1),o.iushrn(1),++h;for(var d=o.clone(),p=i.clone();!i.isZero();){for(var b=0,y=1;(i.words[0]&y)==0&&b<26;++b,y<<=1);if(b>0)for(i.iushrn(b);b-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(d),u.isub(p)),s.iushrn(1),u.iushrn(1);for(var m=0,g=1;(o.words[0]&g)==0&&m<26;++m,g<<=1);if(m>0)for(o.iushrn(m);m-- >0;)(c.isOdd()||l.isOdd())&&(c.iadd(d),l.isub(p)),c.iushrn(1),l.iushrn(1);i.cmp(o)>=0?(i.isub(o),s.isub(c),u.isub(l)):(o.isub(i),c.isub(s),l.isub(u))}return{a:c,b:l,gcd:o.iushln(h)}},f.prototype._invmp=function(n){a(0===n.negative),a(!n.isZero());var i,o=this,s=n.clone();o=0!==o.negative?o.umod(n):o.clone();for(var u=new f(1),c=new f(0),l=s.clone();o.cmpn(1)>0&&s.cmpn(1)>0;){for(var h=0,d=1;(o.words[0]&d)==0&&h<26;++h,d<<=1);if(h>0)for(o.iushrn(h);h-- >0;)u.isOdd()&&u.iadd(l),u.iushrn(1);for(var p=0,b=1;(s.words[0]&b)==0&&p<26;++p,b<<=1);if(p>0)for(s.iushrn(p);p-- >0;)c.isOdd()&&c.iadd(l),c.iushrn(1);o.cmp(s)>=0?(o.isub(s),u.isub(c)):(s.isub(o),c.isub(u))}return 0>(i=0===o.cmpn(1)?u:c).cmpn(0)&&i.iadd(n),i},f.prototype.gcd=function(n){if(this.isZero())return n.abs();if(n.isZero())return this.abs();var i=this.clone(),o=n.clone();i.negative=0,o.negative=0;for(var a=0;i.isEven()&&o.isEven();a++)i.iushrn(1),o.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;o.isEven();)o.iushrn(1);var s=i.cmp(o);if(s<0){var f=i;i=o,o=f}else if(0===s||0===o.cmpn(1))break;i.isub(o)}return o.iushln(a)},f.prototype.invm=function(n){return this.egcd(n).a.umod(n)},f.prototype.isEven=function(){return(1&this.words[0])==0},f.prototype.isOdd=function(){return(1&this.words[0])==1},f.prototype.andln=function(n){return this.words[0]&n},f.prototype.bincn=function(n){a("number"==typeof n);var i=n%26,o=(n-i)/26,s=1<>>26,c&=0x3ffffff,this.words[u]=c}return 0!==f&&(this.words[u]=f,this.length++),this},f.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},f.prototype.cmpn=function(n){var i,o=n<0;if(0!==this.negative&&!o)return -1;if(0===this.negative&&o)return 1;if(this._strip(),this.length>1)i=1;else{o&&(n=-n),a(n<=0x3ffffff,"Number is too big");var s=0|this.words[0];i=s===n?0:sn.length)return 1;if(this.length=0;o--){var a=0|this.words[o],s=0|n.words[o];if(a!==s){as&&(i=1);break}}return i},f.prototype.gtn=function(n){return 1===this.cmpn(n)},f.prototype.gt=function(n){return 1===this.cmp(n)},f.prototype.gten=function(n){return this.cmpn(n)>=0},f.prototype.gte=function(n){return this.cmp(n)>=0},f.prototype.ltn=function(n){return -1===this.cmpn(n)},f.prototype.lt=function(n){return -1===this.cmp(n)},f.prototype.lten=function(n){return 0>=this.cmpn(n)},f.prototype.lte=function(n){return 0>=this.cmp(n)},f.prototype.eqn=function(n){return 0===this.cmpn(n)},f.prototype.eq=function(n){return 0===this.cmp(n)},f.red=function(n){return new j(n)},f.prototype.toRed=function(n){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),n.convertTo(this)._forceRed(n)},f.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(n){return this.red=n,this},f.prototype.forceRed=function(n){return a(!this.red,"Already a number in reduction context"),this._forceRed(n)},f.prototype.redAdd=function(n){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,n)},f.prototype.redIAdd=function(n){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,n)},f.prototype.redSub=function(n){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,n)},f.prototype.redISub=function(n){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,n)},f.prototype.redShl=function(n){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,n)},f.prototype.redMul=function(n){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.mul(this,n)},f.prototype.redIMul=function(n){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,n),this.red.imul(this,n)},f.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(n){return a(this.red&&!n.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,n)};var S={k256:null,p224:null,p192:null,p25519:null};function M(n,i){this.name=n,this.p=new f(i,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function R(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function I(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function j(n){if("string"==typeof n){var i=f._prime(n);this.m=i.p,this.prime=i}else a(n.gtn(1),"modulus must be greater than 1"),this.m=n,this.prime=null}function T(n){j.call(this,n),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new f(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)}M.prototype._tmp=function(){var n=new f(null);return n.words=Array(Math.ceil(this.n/13)),n},M.prototype.ireduce=function(n){var i,o=n;do this.split(o,this.tmp),i=(o=(o=this.imulK(o)).iadd(this.tmp)).bitLength();while(i>this.n)var a=i0?o.isub(this.p):void 0!==o.strip?o.strip():o._strip(),o},M.prototype.split=function(n,i){n.iushrn(this.n,0,i)},M.prototype.imulK=function(n){return n.imul(this.k)},s(A,M),A.prototype.split=function(n,i){for(var o=4194303,a=Math.min(n.length,9),s=0;s>>22,f=u}f>>>=22,n.words[s-10]=f,0===f&&n.length>10?n.length-=10:n.length-=9},A.prototype.imulK=function(n){n.words[n.length]=0,n.words[n.length+1]=0,n.length+=2;for(var i=0,o=0;o>>=26,n.words[o]=s,i=a}return 0!==i&&(n.words[n.length++]=i),n},f._prime=function(n){var i;if(S[n])return S[n];if("k256"===n)i=new A;else if("p224"===n)i=new R;else if("p192"===n)i=new I;else if("p25519"===n)i=new k;else throw Error("Unknown prime "+n);return S[n]=i,i},j.prototype._verify1=function(n){a(0===n.negative,"red works only with positives"),a(n.red,"red works only with red numbers")},j.prototype._verify2=function(n,i){a((n.negative|i.negative)==0,"red works only with positives"),a(n.red&&n.red===i.red,"red works only with red numbers")},j.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):(l(n,n.umod(this.m)._forceRed(this)),n)},j.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},j.prototype.add=function(n,i){this._verify2(n,i);var o=n.add(i);return o.cmp(this.m)>=0&&o.isub(this.m),o._forceRed(this)},j.prototype.iadd=function(n,i){this._verify2(n,i);var o=n.iadd(i);return o.cmp(this.m)>=0&&o.isub(this.m),o},j.prototype.sub=function(n,i){this._verify2(n,i);var o=n.sub(i);return 0>o.cmpn(0)&&o.iadd(this.m),o._forceRed(this)},j.prototype.isub=function(n,i){this._verify2(n,i);var o=n.isub(i);return 0>o.cmpn(0)&&o.iadd(this.m),o},j.prototype.shl=function(n,i){return this._verify1(n),this.imod(n.ushln(i))},j.prototype.imul=function(n,i){return this._verify2(n,i),this.imod(n.imul(i))},j.prototype.mul=function(n,i){return this._verify2(n,i),this.imod(n.mul(i))},j.prototype.isqr=function(n){return this.imul(n,n.clone())},j.prototype.sqr=function(n){return this.mul(n,n)},j.prototype.sqrt=function(n){if(n.isZero())return n.clone();var i=this.m.andln(3);if(a(i%2==1),3===i){var o=this.m.add(new f(1)).iushrn(2);return this.pow(n,o)}for(var s=this.m.subn(1),u=0;!s.isZero()&&0===s.andln(1);)u++,s.iushrn(1);a(!s.isZero());var c=new f(1).toRed(this),l=c.redNeg(),h=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new f(2*d*d).toRed(this);0!==this.pow(d,h).cmp(l);)d.redIAdd(l);for(var p=this.pow(d,s),b=this.pow(n,s.addn(1).iushrn(1)),y=this.pow(n,s),m=u;0!==y.cmp(c);){for(var g=y,v=0;0!==g.cmp(c);v++)g=g.redSqr();a(v=0;s--){for(var d=i.words[s],p=h-1;p>=0;p--){var b=d>>p&1;if(u!==a[0]&&(u=this.sqr(u)),0===b&&0===c){l=0;continue}c<<=1,c|=b,(++l===o||0===s&&0===p)&&(u=this.mul(u,a[c]),l=0,c=0)}h=26}return u},j.prototype.convertTo=function(n){var i=n.umod(this.m);return i===n?i.clone():i},j.prototype.convertFrom=function(n){var i=n.clone();return i.red=null,i},f.mont=function(n){return new T(n)},s(T,j),T.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},T.prototype.convertFrom=function(n){var i=this.imod(n.mul(this.rinv));return i.red=null,i},T.prototype.imul=function(n,i){if(n.isZero()||i.isZero())return n.words[0]=0,n.length=1,n;var o=n.imul(i),a=o.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=o.isub(a).iushrn(this.shift),f=s;return s.cmp(this.m)>=0?f=s.isub(this.m):0>s.cmpn(0)&&(f=s.iadd(this.m)),f._forceRed(this)},T.prototype.mul=function(n,i){if(n.isZero()||i.isZero())return new f(0)._forceRed(this);var o=n.mul(i),a=o.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=o.isub(a).iushrn(this.shift),u=s;return s.cmp(this.m)>=0?u=s.isub(this.m):0>s.cmpn(0)&&(u=s.iadd(this.m)),u._forceRed(this)},T.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(n=o.nmd(n),this)},4259:function(n,i,o){var a;function s(n){this.rand=n}if(n.exports=function(n){return a||(a=new s(null)),a.generate(n)},n.exports.Rand=s,s.prototype.generate=function(n){return this._rand(n)},s.prototype._rand=function(n){if(this.rand.getBytes)return this.rand.getBytes(n);for(var i=new Uint8Array(n),o=0;o>>24]^d[m>>>16&255]^p[g>>>8&255]^b[255&v]^i[w++],u=h[m>>>24]^d[g>>>16&255]^p[v>>>8&255]^b[255&y]^i[w++],c=h[g>>>24]^d[v>>>16&255]^p[y>>>8&255]^b[255&m]^i[w++],l=h[v>>>24]^d[y>>>16&255]^p[m>>>8&255]^b[255&g]^i[w++],y=f,m=u,g=c,v=l;return f=(a[y>>>24]<<24|a[m>>>16&255]<<16|a[g>>>8&255]<<8|a[255&v])^i[w++],u=(a[m>>>24]<<24|a[g>>>16&255]<<16|a[v>>>8&255]<<8|a[255&y])^i[w++],c=(a[g>>>24]<<24|a[v>>>16&255]<<16|a[y>>>8&255]<<8|a[255&m])^i[w++],[f>>>=0,u>>>=0,c>>>=0,l=((a[v>>>24]<<24|a[y>>>16&255]<<16|a[m>>>8&255]<<8|a[255&g])^i[w++])>>>0]}var c=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var n=Array(256),i=0;i<256;i++)i<128?n[i]=i<<1:n[i]=i<<1^283;for(var o=[],a=[],s=[[],[],[],[]],f=[[],[],[],[]],u=0,c=0,l=0;l<256;++l){var h=c^c<<1^c<<2^c<<3^c<<4;h=h>>>8^255&h^99,o[u]=h,a[h]=u;var d=n[u],p=n[d],b=n[p],y=257*n[h]^0x1010100*h;s[0][u]=y<<24|y>>>8,s[1][u]=y<<16|y>>>16,s[2][u]=y<<8|y>>>24,s[3][u]=y,y=0x1010101*b^65537*p^257*d^0x1010100*u,f[0][h]=y<<24|y>>>8,f[1][h]=y<<16|y>>>16,f[2][h]=y<<8|y>>>24,f[3][h]=y,0===u?u=c=1:(u=d^n[n[n[b^d]]],c^=n[n[c]])}return{SBOX:o,INV_SBOX:a,SUB_MIX:s,INV_SUB_MIX:f}}();function h(n){this._key=s(n),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var n=this._key,i=n.length,o=i+6,a=(o+1)*4,s=[],f=0;f>>24,u=(l.SBOX[u>>>24]<<24|l.SBOX[u>>>16&255]<<16|l.SBOX[u>>>8&255]<<8|l.SBOX[255&u])^c[f/i|0]<<24):i>6&&f%i==4&&(u=l.SBOX[u>>>24]<<24|l.SBOX[u>>>16&255]<<16|l.SBOX[u>>>8&255]<<8|l.SBOX[255&u]),s[f]=s[f-i]^u}for(var h=[],d=0;d>>24]]^l.INV_SUB_MIX[1][l.SBOX[b>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[b>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&b]]}this._nRounds=o,this._keySchedule=s,this._invKeySchedule=h},h.prototype.encryptBlockRaw=function(n){return u(n=s(n),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},h.prototype.encryptBlock=function(n){var i=this.encryptBlockRaw(n),o=a.allocUnsafe(16);return o.writeUInt32BE(i[0],0),o.writeUInt32BE(i[1],4),o.writeUInt32BE(i[2],8),o.writeUInt32BE(i[3],12),o},h.prototype.decryptBlock=function(n){var i=(n=s(n))[1];n[1]=n[3],n[3]=i;var o=u(n,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),f=a.allocUnsafe(16);return f.writeUInt32BE(o[0],0),f.writeUInt32BE(o[3],4),f.writeUInt32BE(o[2],8),f.writeUInt32BE(o[1],12),f},h.prototype.scrub=function(){f(this._keySchedule),f(this._invKeySchedule),f(this._key)},n.exports.AES=h},1725:function(n,i,o){var a=o(6313),s=o(5725).Buffer,f=o(1888),u=o(1638),c=o(1267),l=o(6481),h=o(1995);function d(n,i){var o=0;n.length!==i.length&&o++;for(var a=Math.min(n.length,i.length),s=0;s16)throw Error("unable to decrypt data");for(var o=-1;++o16)return i=this.cache.slice(0,16),this.cache=this.cache.slice(16),i}else if(this.cache.length>=16)return i=this.cache.slice(0,16),this.cache=this.cache.slice(16),i;return null},p.prototype.flush=function(){if(this.cache.length)return this.cache},i.createDecipher=function(n,i){var o=f[n.toLowerCase()];if(!o)throw TypeError("invalid suite type");var a=h(i,!1,o.key,o.iv);return y(n,a.key,a.iv)},i.createDecipheriv=y},9780:function(n,i,o){var a=o(8597),s=o(1725),f=o(5725).Buffer,u=o(959),c=o(1888),l=o(6313),h=o(689);function d(n,i,o){c.call(this),this._cache=new b,this._cipher=new l.AES(i),this._prev=f.from(o),this._mode=n,this._autopadding=!0}o(1638)(d,c),d.prototype._update=function(n){this._cache.add(n);for(var i,o,a=[];i=this._cache.get();)o=this._mode.encrypt(this,i),a.push(o);return f.concat(a)};var p=f.alloc(16,16);function b(){this.cache=f.allocUnsafe(0)}function y(n,i,o){var c=a[n.toLowerCase()];if(!c)throw TypeError("invalid suite type");if("string"==typeof i&&(i=f.from(i)),i.length!==c.key/8)throw TypeError("invalid key length "+i.length);if("string"==typeof o&&(o=f.from(o)),"GCM"!==c.mode&&o.length!==c.iv)throw TypeError("invalid iv length "+o.length);return"stream"===c.type?new u(c.module,i,o):"auth"===c.type?new s(c.module,i,o):new d(c.module,i,o)}function m(n,i){var o=a[n.toLowerCase()];if(!o)throw TypeError("invalid suite type");var s=h(i,!1,o.key,o.iv);return y(n,s.key,s.iv)}d.prototype._final=function(){var n=this._cache.flush();if(this._autopadding)return n=this._mode.encrypt(this,n),this._cipher.scrub(),n;if(!n.equals(p))throw this._cipher.scrub(),Error("data not multiple of block length")},d.prototype.setAutoPadding=function(n){return this._autopadding=!!n,this},b.prototype.add=function(n){this.cache=f.concat([this.cache,n])},b.prototype.get=function(){if(this.cache.length>15){var n=this.cache.slice(0,16);return this.cache=this.cache.slice(16),n}return null},b.prototype.flush=function(){for(var n=16-this.cache.length,i=f.allocUnsafe(n),o=-1;++o>>0,0),i.writeUInt32BE(n[1]>>>0,4),i.writeUInt32BE(n[2]>>>0,8),i.writeUInt32BE(n[3]>>>0,12),i}function c(n){this.h=n,this.state=a.alloc(16,0),this.cache=a.allocUnsafe(0)}c.prototype.ghash=function(n){for(var i=-1;++i0;n--)o[n]=o[n]>>>1|(1&o[n-1])<<31;o[0]=o[0]>>>1,i&&(o[0]=-0x1f000000^o[0])}this.state=u(a)},c.prototype.update=function(n){var i;for(this.cache=a.concat([this.cache,n]);this.cache.length>=16;)i=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(i)},c.prototype.final=function(n,i){return this.cache.length&&this.ghash(a.concat([this.cache,s],16)),this.ghash(u([0,n,0,i])),this.state},n.exports=c},1995:function(n){n.exports=function(n){for(var i,o=n.length;o--;)if(255===(i=n.readUInt8(o)))n.writeUInt8(0,o);else{i++,n.writeUInt8(i,o);break}}},1635:function(n,i,o){var a=o(6481);i.encrypt=function(n,i){var o=a(i,n._prev);return n._prev=n._cipher.encryptBlock(o),n._prev},i.decrypt=function(n,i){var o=n._prev;return n._prev=i,a(n._cipher.decryptBlock(i),o)}},4312:function(n,i,o){var a=o(5725).Buffer,s=o(6481);function f(n,i,o){var f=i.length,u=s(i,n._cache);return n._cache=n._cache.slice(f),n._prev=a.concat([n._prev,o?i:u]),u}i.encrypt=function(n,i,o){for(var s,u=a.allocUnsafe(0);i.length;)if(0===n._cache.length&&(n._cache=n._cipher.encryptBlock(n._prev),n._prev=a.allocUnsafe(0)),n._cache.length<=i.length)s=n._cache.length,u=a.concat([u,f(n,i.slice(0,s),o)]),i=i.slice(s);else{u=a.concat([u,f(n,i,o)]);break}return u}},9225:function(n,i,o){var a=o(5725).Buffer;function s(n,i,o){for(var a,s,u,c=-1,l=8,h=0;++c>c%8,n._prev=f(n._prev,o?s:u);return h}function f(n,i){var o=n.length,s=-1,f=a.allocUnsafe(n.length);for(n=a.concat([n,a.from([i])]);++s>7;return f}i.encrypt=function(n,i,o){for(var f=i.length,u=a.allocUnsafe(f),c=-1;++c=0||!o.umod(n.prime1)||!o.umod(n.prime2);)o=new s(f(i));return o}n.exports=c,c.getr=l},6713:function(n,i,o){n.exports=o(3678)},2926:function(n,i,o){var a=o(5725).Buffer,s=o(762),f=o(5486),u=o(1638),c=o(261),l=o(1541),h=o(3678);function d(n){f.Writable.call(this);var i=h[n];if(!i)throw Error("Unknown message digest");this._hashType=i.hash,this._hash=s(i.hash),this._tag=i.id,this._signType=i.sign}function p(n){f.Writable.call(this);var i=h[n];if(!i)throw Error("Unknown message digest");this._hash=s(i.hash),this._tag=i.id,this._signType=i.sign}function b(n){return new d(n)}function y(n){return new p(n)}Object.keys(h).forEach(function(n){h[n].id=a.from(h[n].id,"hex"),h[n.toLowerCase()]=h[n]}),u(d,f.Writable),d.prototype._write=function(n,i,o){this._hash.update(n),o()},d.prototype.update=function(n,i){return"string"==typeof n&&(n=a.from(n,i)),this._hash.update(n),this},d.prototype.sign=function(n,i){this.end();var o=c(this._hash.digest(),n,this._hashType,this._signType,this._tag);return i?o.toString(i):o},u(p,f.Writable),p.prototype._write=function(n,i,o){this._hash.update(n),o()},p.prototype.update=function(n,i){return"string"==typeof n&&(n=a.from(n,i)),this._hash.update(n),this},p.prototype.verify=function(n,i,o){return"string"==typeof i&&(i=a.from(i,o)),this.end(),l(i,this._hash.digest(),n,this._signType,this._tag)},n.exports={Sign:b,Verify:y,createSign:b,createVerify:y}},261:function(n,i,o){var a=o(5725).Buffer,s=o(3256),f=o(640),u=o(2049).ec,c=o(1315),l=o(8012),h=o(6456);function d(n,i){var o=h[i.curve.join(".")];if(!o)throw Error("unknown curve "+i.curve.join("."));var s=new u(o).keyFromPrivate(i.privateKey).sign(n);return a.from(s.toDER())}function p(n,i,o){for(var a,s=i.params.priv_key,f=i.params.p,u=i.params.q,l=i.params.g,h=new c(0),d=m(n,u).mod(u),p=!1,g=y(s,u,n,o);!1===p;)h=w(l,a=v(u,g,o),f,u),0===(p=a.invm(u).imul(d.add(s.mul(h))).mod(u)).cmpn(0)&&(p=!1,h=new c(0));return b(h,p)}function b(n,i){n=n.toArray(),i=i.toArray(),128&n[0]&&(n=[0].concat(n)),128&i[0]&&(i=[0].concat(i));var o=[48,n.length+i.length+4,2,n.length];return o=o.concat(n,[2,i.length],i),a.from(o)}function y(n,i,o,f){if((n=a.from(n.toArray())).length0&&o.ishrn(a),o}function g(n,i){n=(n=m(n,i)).mod(i);var o=a.from(n.toArray());if(o.length=n.cmpn(0)||n.cmp(i)>=i)throw Error("invalid sig")}n.exports=function(n,i,o,f,c){var d=u(o);if("ec"===d.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw Error("wrong public key type");return l(n,i,d)}if("dsa"===d.type){if("dsa"!==f)throw Error("wrong public key type");return h(n,i,d)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw Error("wrong public key type");i=a.concat([c,i]);for(var p=d.modulus.byteLength(),b=[1],y=0;i.length+b.length+2o?i=("rmd160"===n?new l:h(n)).update(i).digest():i.lengthc?i=n(i):i.length0;a--)i+=this._buffer(n,i),o+=this._flushBuffer(s,o);return i+=this._buffer(n,i),s},s.prototype.final=function(n){var i,o;return(n&&(i=this.update(n)),o="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),i)?i.concat(o):o},s.prototype._pad=function(n,i){if(0===i)return!1;for(;i>>1];o=f.r28shl(o,c),s=f.r28shl(s,c),f.pc2(o,s,n.keys,u)}},l.prototype._update=function(n,i,o,a){var s=this._desState,u=f.readUInt32BE(n,i),c=f.readUInt32BE(n,i+4);f.ip(u,c,s.tmp,0),u=s.tmp[0],c=s.tmp[1],"encrypt"===this.type?this._encrypt(s,u,c,s.tmp,0):this._decrypt(s,u,c,s.tmp,0),u=s.tmp[0],c=s.tmp[1],f.writeUInt32BE(o,u,a),f.writeUInt32BE(o,c,a+4)},l.prototype._pad=function(n,i){for(var o=n.length-i,a=i;a>>0,u=y}f.rip(c,u,a,s)},l.prototype._decrypt=function(n,i,o,a,s){for(var u=o,c=i,l=n.keys.length-2;l>=0;l-=2){var h=n.keys[l],d=n.keys[l+1];f.expand(u,n.tmp,0),h^=n.tmp[0],d^=n.tmp[1];var p=f.substitute(h,d),b=f.permute(p),y=u;u=(c^b)>>>0,c=y}f.rip(u,c,a,s)}},4960:function(n,i,o){"use strict";var a=o(7551),s=o(1638),f=o(4309),u=o(8992);function c(n,i){a.equal(i.length,24,"Invalid key length");var o=i.slice(0,8),s=i.slice(8,16),f=i.slice(16,24);"encrypt"===n?this.ciphers=[u.create({type:"encrypt",key:o}),u.create({type:"decrypt",key:s}),u.create({type:"encrypt",key:f})]:this.ciphers=[u.create({type:"decrypt",key:f}),u.create({type:"encrypt",key:s}),u.create({type:"decrypt",key:o})]}function l(n){f.call(this,n);var i=new c(this.type,this.options.key);this._edeState=i}s(l,f),n.exports=l,l.create=function(n){return new l(n)},l.prototype._update=function(n,i,o,a){var s=this._edeState;s.ciphers[0]._update(n,i,o,a),s.ciphers[1]._update(o,a,o,a),s.ciphers[2]._update(o,a,o,a)},l.prototype._pad=u.prototype._pad,l.prototype._unpad=u.prototype._unpad},4569:function(n,i){"use strict";i.readUInt32BE=function(n,i){return(n[0+i]<<24|n[1+i]<<16|n[2+i]<<8|n[3+i])>>>0},i.writeUInt32BE=function(n,i,o){n[0+o]=i>>>24,n[1+o]=i>>>16&255,n[2+o]=i>>>8&255,n[3+o]=255&i},i.ip=function(n,i,o,a){for(var s=0,f=0,u=6;u>=0;u-=2){for(var c=0;c<=24;c+=8)s<<=1,s|=i>>>c+u&1;for(var c=0;c<=24;c+=8)s<<=1,s|=n>>>c+u&1}for(var u=6;u>=0;u-=2){for(var c=1;c<=25;c+=8)f<<=1,f|=i>>>c+u&1;for(var c=1;c<=25;c+=8)f<<=1,f|=n>>>c+u&1}o[a+0]=s>>>0,o[a+1]=f>>>0},i.rip=function(n,i,o,a){for(var s=0,f=0,u=0;u<4;u++)for(var c=24;c>=0;c-=8)s<<=1,s|=i>>>c+u&1,s<<=1,s|=n>>>c+u&1;for(var u=4;u<8;u++)for(var c=24;c>=0;c-=8)f<<=1,f|=i>>>c+u&1,f<<=1,f|=n>>>c+u&1;o[a+0]=s>>>0,o[a+1]=f>>>0},i.pc1=function(n,i,o,a){for(var s=0,f=0,u=7;u>=5;u--){for(var c=0;c<=24;c+=8)s<<=1,s|=i>>c+u&1;for(var c=0;c<=24;c+=8)s<<=1,s|=n>>c+u&1}for(var c=0;c<=24;c+=8)s<<=1,s|=i>>c+u&1;for(var u=1;u<=3;u++){for(var c=0;c<=24;c+=8)f<<=1,f|=i>>c+u&1;for(var c=0;c<=24;c+=8)f<<=1,f|=n>>c+u&1}for(var c=0;c<=24;c+=8)f<<=1,f|=n>>c+u&1;o[a+0]=s>>>0,o[a+1]=f>>>0},i.r28shl=function(n,i){return n<>>28-i};var o=[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];i.pc2=function(n,i,a,s){for(var f=0,u=0,c=o.length>>>1,l=0;l>>o[l]&1;for(var l=c;l>>o[l]&1;a[s+0]=f>>>0,a[s+1]=u>>>0},i.expand=function(n,i,o){var a=0,s=0;a=(1&n)<<5|n>>>27;for(var f=23;f>=15;f-=4)a<<=6,a|=n>>>f&63;for(var f=11;f>=3;f-=4)s|=n>>>f&63,s<<=6;s|=(31&n)<<1|n>>>31,i[o+0]=a>>>0,i[o+1]=s>>>0};var a=[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];i.substitute=function(n,i){for(var o=0,s=0;s<4;s++){var f=n>>>18-6*s&63,u=a[64*s+f];o<<=4,o|=u}for(var s=0;s<4;s++){var f=i>>>18-6*s&63,u=a[256+64*s+f];o<<=4,o|=u}return o>>>0};var s=[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];i.permute=function(n){for(var i=0,o=0;o>>s[o]&1;return i>>>0},i.padSplit=function(n,i,o){for(var a=n.toString(2);a.lengthn;)o.ishrn(1);if(o.isEven()&&o.iadd(c),o.testn(1)||o.iadd(l),i.cmp(l)){if(!i.cmp(h))for(;o.mod(d).cmp(p);)o.iadd(y)}else for(;o.mod(f).cmp(b);)o.iadd(y);if(v(m=o.shrn(1))&&v(o)&&w(m)&&w(o)&&u.test(m)&&u.test(o))return o}}},2049:function(n,i,o){"use strict";var a=i;a.version=o(4497).rE,a.utils=o(3355),a.rand=o(4259),a.curve=o(7942),a.curves=o(7736),a.ec=o(1039),a.eddsa=o(4226)},4285:function(n,i,o){"use strict";var a=o(5944),s=o(3355),f=s.getNAF,u=s.getJSF,c=s.assert;function l(n,i){this.type=n,this.p=new a(i.p,16),this.red=i.prime?a.red(i.prime):a.mont(this.p),this.zero=new a(0).toRed(this.red),this.one=new a(1).toRed(this.red),this.two=new a(2).toRed(this.red),this.n=i.n&&new a(i.n,16),this.g=i.g&&this.pointFromJSON(i.g,i.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var o=this.n&&this.p.div(this.n);!o||o.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(n,i){this.curve=n,this.type=i,this.precomputed=null}n.exports=l,l.prototype.point=function(){throw Error("Not implemented")},l.prototype.validate=function(){throw Error("Not implemented")},l.prototype._fixedNafMul=function(n,i){c(n.precomputed);var o=n._getDoubles(),a=f(i,1,this._bitLength),s=(1<=l;i--)h=(h<<1)+a[i];u.push(h)}for(var d=this.jpoint(null,null,null),p=this.jpoint(null,null,null),b=s;b>0;b--){for(var l=0;l=0;h--){for(var i=0;h>=0&&0===u[h];h--)i++;if(h>=0&&i++,l=l.dblp(i),h<0)break;var d=u[h];c(0!==d),l="affine"===n.type?d>0?l.mixedAdd(s[d-1>>1]):l.mixedAdd(s[-d-1>>1].neg()):d>0?l.add(s[d-1>>1]):l.add(s[-d-1>>1].neg())}return"affine"===n.type?l.toP():l},l.prototype._wnafMulAdd=function(n,i,o,a,s){for(var c=this._wnafT1,l=this._wnafT2,h=this._wnafT3,d=0,p=0;p=1;p-=2){var m=p-1,g=p;if(1!==c[m]||1!==c[g]){h[m]=f(o[m],c[m],this._bitLength),h[g]=f(o[g],c[g],this._bitLength),d=Math.max(h[m].length,d),d=Math.max(h[g].length,d);continue}var v=[i[m],null,null,i[g]];0===i[m].y.cmp(i[g].y)?(v[1]=i[m].add(i[g]),v[2]=i[m].toJ().mixedAdd(i[g].neg())):0===i[m].y.cmp(i[g].y.redNeg())?(v[1]=i[m].toJ().mixedAdd(i[g]),v[2]=i[m].add(i[g].neg())):(v[1]=i[m].toJ().mixedAdd(i[g]),v[2]=i[m].toJ().mixedAdd(i[g].neg()));var w=[-3,-1,-5,-7,0,7,5,1,3],x=u(o[m],o[g]);d=Math.max(x[0].length,d),h[m]=Array(d),h[g]=Array(d);for(var _=0;_=0;p--){for(var R=0;p>=0;){for(var I=!0,_=0;_=0&&R++,M=M.dblp(R),p<0)break;for(var _=0;_0?b=l[_][k-1>>1]:k<0&&(b=l[_][-k-1>>1].neg()),M="affine"===b.type?M.mixedAdd(b):M.add(b))}}for(var p=0;p=Math.ceil((n.bitLength()+1)/i.step)},h.prototype._getDoubles=function(n,i){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var o=[this],a=this,s=0;s":""},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var n=this.x.redSqr(),i=this.y.redSqr(),o=this.z.redSqr();o=o.redIAdd(o);var a=this.curve._mulA(n),s=this.x.redAdd(this.y).redSqr().redISub(n).redISub(i),f=a.redAdd(i),u=f.redSub(o),c=a.redSub(i),l=s.redMul(u),h=f.redMul(c),d=s.redMul(c),p=u.redMul(f);return this.curve.point(l,h,p,d)},h.prototype._projDbl=function(){var n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var u=this.curve._mulA(s),c=u.redAdd(f);if(this.zOne)n=a.redSub(s).redSub(f).redMul(c.redSub(this.curve.two)),i=c.redMul(u.redSub(f)),o=c.redSqr().redSub(c).redSub(c);else{var l=this.z.redSqr(),h=c.redSub(l).redISub(l);n=a.redSub(s).redISub(f).redMul(h),i=c.redMul(u.redSub(f)),o=c.redMul(h)}}else{var u=s.redAdd(f),l=this.curve._mulC(this.z).redSqr(),h=u.redSub(l).redSub(l);n=this.curve._mulC(a.redISub(u)).redMul(h),i=this.curve._mulC(u).redMul(s.redISub(f)),o=u.redMul(h)}return this.curve.point(n,i,o)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(n){var i=this.y.redSub(this.x).redMul(n.y.redSub(n.x)),o=this.y.redAdd(this.x).redMul(n.y.redAdd(n.x)),a=this.t.redMul(this.curve.dd).redMul(n.t),s=this.z.redMul(n.z.redAdd(n.z)),f=o.redSub(i),u=s.redSub(a),c=s.redAdd(a),l=o.redAdd(i),h=f.redMul(u),d=c.redMul(l),p=f.redMul(l),b=u.redMul(c);return this.curve.point(h,d,b,p)},h.prototype._projAdd=function(n){var i,o,a=this.z.redMul(n.z),s=a.redSqr(),f=this.x.redMul(n.x),u=this.y.redMul(n.y),c=this.curve.d.redMul(f).redMul(u),l=s.redSub(c),h=s.redAdd(c),d=this.x.redAdd(this.y).redMul(n.x.redAdd(n.y)).redISub(f).redISub(u),p=a.redMul(l).redMul(d);return this.curve.twisted?(i=a.redMul(h).redMul(u.redSub(this.curve._mulA(f))),o=l.redMul(h)):(i=a.redMul(h).redMul(u.redSub(f)),o=this.curve._mulC(l).redMul(h)),this.curve.point(p,i,o)},h.prototype.add=function(n){return this.isInfinity()?n:n.isInfinity()?this:this.curve.extended?this._extAdd(n):this._projAdd(n)},h.prototype.mul=function(n){return this._hasDoubles(n)?this.curve._fixedNafMul(this,n):this.curve._wnafMul(this,n)},h.prototype.mulAdd=function(n,i,o){return this.curve._wnafMulAdd(1,[this,i],[n,o],2,!1)},h.prototype.jmulAdd=function(n,i,o){return this.curve._wnafMulAdd(1,[this,i],[n,o],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var n=this.z.redInvm();return this.x=this.x.redMul(n),this.y=this.y.redMul(n),this.t&&(this.t=this.t.redMul(n)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(n){return this===n||0===this.getX().cmp(n.getX())&&0===this.getY().cmp(n.getY())},h.prototype.eqXToP=function(n){var i=n.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(i))return!0;for(var o=n.clone(),a=this.curve.redN.redMul(this.z);;){if(o.iadd(this.curve.n),o.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(a),0===this.x.cmp(i))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},7942:function(n,i,o){"use strict";var a=i;a.base=o(4285),a.short=o(2252),a.mont=o(5274),a.edwards=o(3546)},5274:function(n,i,o){"use strict";var a=o(5944),s=o(1638),f=o(4285),u=o(3355);function c(n){f.call(this,"mont",n),this.a=new a(n.a,16).toRed(this.red),this.b=new a(n.b,16).toRed(this.red),this.i4=new a(4).toRed(this.red).redInvm(),this.two=new a(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(n,i,o){f.BasePoint.call(this,n,"projective"),null===i&&null===o?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a(i,16),this.z=new a(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}s(c,f),n.exports=c,c.prototype.validate=function(n){var i=n.normalize().x,o=i.redSqr(),a=o.redMul(i).redAdd(o.redMul(this.a)).redAdd(i);return 0===a.redSqrt().redSqr().cmp(a)},s(l,f.BasePoint),c.prototype.decodePoint=function(n,i){return this.point(u.toArray(n,i),1)},c.prototype.point=function(n,i){return new l(this,n,i)},c.prototype.pointFromJSON=function(n){return l.fromJSON(this,n)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(n,i){return new l(n,i[0],i[1]||n.one)},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var n=this.x.redAdd(this.z).redSqr(),i=this.x.redSub(this.z).redSqr(),o=n.redSub(i),a=n.redMul(i),s=o.redMul(i.redAdd(this.curve.a24.redMul(o)));return this.curve.point(a,s)},l.prototype.add=function(){throw Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(n,i){var o=this.x.redAdd(this.z),a=this.x.redSub(this.z),s=n.x.redAdd(n.z),f=n.x.redSub(n.z).redMul(o),u=s.redMul(a),c=i.z.redMul(f.redAdd(u).redSqr()),l=i.x.redMul(f.redISub(u).redSqr());return this.curve.point(c,l)},l.prototype.mul=function(n){for(var i=n.clone(),o=this,a=this.curve.point(null,null),s=this,f=[];0!==i.cmpn(0);i.iushrn(1))f.push(i.andln(1));for(var u=f.length-1;u>=0;u--)0===f[u]?(o=o.diffAdd(a,s),a=a.dbl()):(a=o.diffAdd(a,s),o=o.dbl());return a},l.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},l.prototype.eq=function(n){return 0===this.getX().cmp(n.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},2252:function(n,i,o){"use strict";var a=o(3355),s=o(5944),f=o(1638),u=o(4285),c=a.assert;function l(n){u.call(this,"short",n),this.a=new s(n.a,16).toRed(this.red),this.b=new s(n.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(n),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function h(n,i,o,a){u.BasePoint.call(this,n,"affine"),null===i&&null===o?(this.x=null,this.y=null,this.inf=!0):(this.x=new s(i,16),this.y=new s(o,16),a&&(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 d(n,i,o,a){u.BasePoint.call(this,n,"jacobian"),null===i&&null===o&&null===a?(this.x=this.curve.one,this.y=this.curve.one,this.z=new s(0)):(this.x=new s(i,16),this.y=new s(o,16),this.z=new s(a,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}f(l,u),n.exports=l,l.prototype._getEndomorphism=function(n){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(n.beta)i=new s(n.beta,16).toRed(this.red);else{var i,o,a,f=this._getEndoRoots(this.p);i=(i=0>f[0].cmp(f[1])?f[0]:f[1]).toRed(this.red)}if(n.lambda)o=new s(n.lambda,16);else{var u=this._getEndoRoots(this.n);0===this.g.mul(u[0]).x.cmp(this.g.x.redMul(i))?o=u[0]:(o=u[1],c(0===this.g.mul(o).x.cmp(this.g.x.redMul(i))))}return a=n.basis?n.basis.map(function(n){return{a:new s(n.a,16),b:new s(n.b,16)}}):this._getEndoBasis(o),{beta:i,lambda:o,basis:a}}},l.prototype._getEndoRoots=function(n){var i=n===this.p?this.red:s.mont(n),o=new s(2).toRed(i).redInvm(),a=o.redNeg(),f=new s(3).toRed(i).redNeg().redSqrt().redMul(o);return[a.redAdd(f).fromRed(),a.redSub(f).fromRed()]},l.prototype._getEndoBasis=function(n){for(var i,o,a,f,u,c,l,h,d,p=this.n.ushrn(Math.floor(this.n.bitLength()/2)),b=n,y=this.n.clone(),m=new s(1),g=new s(0),v=new s(0),w=new s(1),x=0;0!==b.cmpn(0);){var _=y.div(b);h=y.sub(_.mul(b)),d=v.sub(_.mul(m));var E=w.sub(_.mul(g));if(!a&&0>h.cmp(p))i=l.neg(),o=m,a=h.neg(),f=d;else if(a&&2==++x)break;l=h,y=b,b=h,v=m,m=d,w=g,g=E}u=h.neg(),c=d;var S=a.sqr().add(f.sqr());return u.sqr().add(c.sqr()).cmp(S)>=0&&(u=i,c=o),a.negative&&(a=a.neg(),f=f.neg()),u.negative&&(u=u.neg(),c=c.neg()),[{a:a,b:f},{a:u,b:c}]},l.prototype._endoSplit=function(n){var i=this.endo.basis,o=i[0],a=i[1],s=a.b.mul(n).divRound(this.n),f=o.b.neg().mul(n).divRound(this.n),u=s.mul(o.a),c=f.mul(a.a),l=s.mul(o.b),h=f.mul(a.b);return{k1:n.sub(u).sub(c),k2:l.add(h).neg()}},l.prototype.pointFromX=function(n,i){(n=new s(n,16)).red||(n=n.toRed(this.red));var o=n.redSqr().redMul(n).redIAdd(n.redMul(this.a)).redIAdd(this.b),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");var f=a.fromRed().isOdd();return(i&&!f||!i&&f)&&(a=a.redNeg()),this.point(n,a)},l.prototype.validate=function(n){if(n.inf)return!0;var i=n.x,o=n.y,a=this.a.redMul(i),s=i.redSqr().redMul(i).redIAdd(a).redIAdd(this.b);return 0===o.redSqr().redISub(s).cmpn(0)},l.prototype._endoWnafMulAdd=function(n,i,o){for(var a=this._endoWnafT1,s=this._endoWnafT2,f=0;f":""},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(n){if(this.inf)return n;if(n.inf)return this;if(this.eq(n))return this.dbl();if(this.neg().eq(n)||0===this.x.cmp(n.x))return this.curve.point(null,null);var i=this.y.redSub(n.y);0!==i.cmpn(0)&&(i=i.redMul(this.x.redSub(n.x).redInvm()));var o=i.redSqr().redISub(this.x).redISub(n.x),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},h.prototype.dbl=function(){if(this.inf)return this;var n=this.y.redAdd(this.y);if(0===n.cmpn(0))return this.curve.point(null,null);var i=this.curve.a,o=this.x.redSqr(),a=n.redInvm(),s=o.redAdd(o).redIAdd(o).redIAdd(i).redMul(a),f=s.redSqr().redISub(this.x.redAdd(this.x)),u=s.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,u)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(n){return(n=new s(n,16),this.isInfinity())?this:this._hasDoubles(n)?this.curve._fixedNafMul(this,n):this.curve.endo?this.curve._endoWnafMulAdd([this],[n]):this.curve._wnafMul(this,n)},h.prototype.mulAdd=function(n,i,o){var a=[this,i],s=[n,o];return this.curve.endo?this.curve._endoWnafMulAdd(a,s):this.curve._wnafMulAdd(1,a,s,2)},h.prototype.jmulAdd=function(n,i,o){var a=[this,i],s=[n,o];return this.curve.endo?this.curve._endoWnafMulAdd(a,s,!0):this.curve._wnafMulAdd(1,a,s,2,!0)},h.prototype.eq=function(n){return this===n||this.inf===n.inf&&(this.inf||0===this.x.cmp(n.x)&&0===this.y.cmp(n.y))},h.prototype.neg=function(n){if(this.inf)return this;var i=this.curve.point(this.x,this.y.redNeg());if(n&&this.precomputed){var o=this.precomputed,a=function(n){return n.neg()};i.precomputed={naf:o.naf&&{wnd:o.naf.wnd,points:o.naf.points.map(a)},doubles:o.doubles&&{step:o.doubles.step,points:o.doubles.points.map(a)}}}return i},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},f(d,u.BasePoint),l.prototype.jpoint=function(n,i,o){return new d(this,n,i,o)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var n=this.z.redInvm(),i=n.redSqr(),o=this.x.redMul(i),a=this.y.redMul(i).redMul(n);return this.curve.point(o,a)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(n){if(this.isInfinity())return n;if(n.isInfinity())return this;var i=n.z.redSqr(),o=this.z.redSqr(),a=this.x.redMul(i),s=n.x.redMul(o),f=this.y.redMul(i.redMul(n.z)),u=n.y.redMul(o.redMul(this.z)),c=a.redSub(s),l=f.redSub(u);if(0===c.cmpn(0))if(0!==l.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var h=c.redSqr(),d=h.redMul(c),p=a.redMul(h),b=l.redSqr().redIAdd(d).redISub(p).redISub(p),y=l.redMul(p.redISub(b)).redISub(f.redMul(d)),m=this.z.redMul(n.z).redMul(c);return this.curve.jpoint(b,y,m)},d.prototype.mixedAdd=function(n){if(this.isInfinity())return n.toJ();if(n.isInfinity())return this;var i=this.z.redSqr(),o=this.x,a=n.x.redMul(i),s=this.y,f=n.y.redMul(i).redMul(this.z),u=o.redSub(a),c=s.redSub(f);if(0===u.cmpn(0))if(0!==c.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var l=u.redSqr(),h=l.redMul(u),d=o.redMul(l),p=c.redSqr().redIAdd(h).redISub(d).redISub(d),b=c.redMul(d.redISub(p)).redISub(s.redMul(h)),y=this.z.redMul(u);return this.curve.jpoint(p,b,y)},d.prototype.dblp=function(n){if(0===n||this.isInfinity())return this;if(!n)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var i=this,o=0;o=0)return!1;if(o.redIAdd(s),0===this.x.cmp(o))return!0}},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},7736:function(n,i,o){"use strict";var a,s=i,f=o(8044),u=o(7942),c=o(3355).assert;function l(n){"short"===n.type?this.curve=new u.short(n):"edwards"===n.type?this.curve=new u.edwards(n):this.curve=new u.mont(n),this.g=this.curve.g,this.n=this.curve.n,this.hash=n.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(n,i){Object.defineProperty(s,n,{configurable:!0,enumerable:!0,get:function(){var o=new l(i);return Object.defineProperty(s,n,{configurable:!0,enumerable:!0,value:o}),o}})}s.PresetCurve=l,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:f.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:f.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:f.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:f.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:f.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:f.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:f.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{a=o(5827)}catch(n){a=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:f.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})},1039:function(n,i,o){"use strict";var a=o(5944),s=o(3730),f=o(3355),u=o(7736),c=o(4259),l=f.assert,h=o(2632),d=o(4233);function p(n){if(!(this instanceof p))return new p(n);"string"==typeof n&&(l(u.hasOwnProperty(n),"Unknown curve "+n),n=u[n]),n instanceof u.PresetCurve&&(n={curve:n}),this.curve=n.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=n.curve.g,this.g.precompute(n.curve.n.bitLength()+1),this.hash=n.hash||n.curve.hash}n.exports=p,p.prototype.keyPair=function(n){return new h(this,n)},p.prototype.keyFromPrivate=function(n,i){return h.fromPrivate(this,n,i)},p.prototype.keyFromPublic=function(n,i){return h.fromPublic(this,n,i)},p.prototype.genKeyPair=function(n){n||(n={});for(var i=new s({hash:this.hash,pers:n.pers,persEnc:n.persEnc||"utf8",entropy:n.entropy||c(this.hash.hmacStrength),entropyEnc:n.entropy&&n.entropyEnc||"utf8",nonce:this.n.toArray()}),o=this.n.byteLength(),f=this.n.sub(new a(2));;){var u=new a(i.generate(o));if(!(u.cmp(f)>0))return u.iaddn(1),this.keyFromPrivate(u)}},p.prototype._truncateToN=function(n,i){var o=8*n.byteLength()-this.n.bitLength();return(o>0&&(n=n.ushrn(o)),!i&&n.cmp(this.n)>=0)?n.sub(this.n):n},p.prototype.sign=function(n,i,o,f){"object"==typeof o&&(f=o,o=null),f||(f={}),i=this.keyFromPrivate(i,o),n=this._truncateToN(new a(n,16));for(var u=this.n.byteLength(),c=i.getPrivate().toArray("be",u),l=n.toArray("be",u),h=new s({hash:this.hash,entropy:c,nonce:l,pers:f.pers,persEnc:f.persEnc||"utf8"}),p=this.n.sub(new a(1)),b=0;;b++){var y=f.k?f.k(b):new a(h.generate(this.n.byteLength()));if(0>=(y=this._truncateToN(y,!0)).cmpn(1)||y.cmp(p)>=0)continue;var m=this.g.mul(y);if(!m.isInfinity()){var g=m.getX(),v=g.umod(this.n);if(0!==v.cmpn(0)){var w=y.invm(this.n).mul(v.mul(i.getPrivate()).iadd(n));if(0!==(w=w.umod(this.n)).cmpn(0)){var x=!!m.getY().isOdd()|2*(0!==g.cmp(v));return f.canonical&&w.cmp(this.nh)>0&&(w=this.n.sub(w),x^=1),new d({r:v,s:w,recoveryParam:x})}}}}},p.prototype.verify=function(n,i,o,s){n=this._truncateToN(new a(n,16)),o=this.keyFromPublic(o,s);var f=(i=new d(i,"hex")).r,u=i.s;if(0>f.cmpn(1)||f.cmp(this.n)>=0||0>u.cmpn(1)||u.cmp(this.n)>=0)return!1;var c=u.invm(this.n),l=c.mul(n).umod(this.n),h=c.mul(f).umod(this.n);if(!this.curve._maxwellTrick){var p=this.g.mulAdd(l,o.getPublic(),h);return!p.isInfinity()&&0===p.getX().umod(this.n).cmp(f)}var p=this.g.jmulAdd(l,o.getPublic(),h);return!p.isInfinity()&&p.eqXToP(f)},p.prototype.recoverPubKey=function(n,i,o,s){l((3&o)===o,"The recovery param is more than two bits"),i=new d(i,s);var f=this.n,u=new a(n),c=i.r,h=i.s,p=1&o,b=o>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&b)throw Error("Unable to find sencond key candinate");c=b?this.curve.pointFromX(c.add(this.curve.n),p):this.curve.pointFromX(c,p);var y=i.r.invm(f),m=f.sub(u).mul(y).umod(f),g=h.mul(y).umod(f);return this.g.mulAdd(m,c,g)},p.prototype.getKeyRecoveryParam=function(n,i,o,a){if(null!==(i=new d(i,a)).recoveryParam)return i.recoveryParam;for(var s,f=0;f<4;f++){try{s=this.recoverPubKey(n,i,f)}catch(n){continue}if(s.eq(o))return f}throw Error("Unable to find valid recovery factor")}},2632:function(n,i,o){"use strict";var a=o(5944),s=o(3355).assert;function f(n,i){this.ec=n,this.priv=null,this.pub=null,i.priv&&this._importPrivate(i.priv,i.privEnc),i.pub&&this._importPublic(i.pub,i.pubEnc)}n.exports=f,f.fromPublic=function(n,i,o){return i instanceof f?i:new f(n,{pub:i,pubEnc:o})},f.fromPrivate=function(n,i,o){return i instanceof f?i:new f(n,{priv:i,privEnc:o})},f.prototype.validate=function(){var n=this.getPublic();return n.isInfinity()?{result:!1,reason:"Invalid public key"}:n.validate()?n.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"}},f.prototype.getPublic=function(n,i){return("string"==typeof n&&(i=n,n=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),i)?this.pub.encode(i,n):this.pub},f.prototype.getPrivate=function(n){return"hex"===n?this.priv.toString(16,2):this.priv},f.prototype._importPrivate=function(n,i){this.priv=new a(n,i||16),this.priv=this.priv.umod(this.ec.curve.n)},f.prototype._importPublic=function(n,i){if(n.x||n.y){"mont"===this.ec.curve.type?s(n.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&s(n.x&&n.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(n.x,n.y);return}this.pub=this.ec.curve.decodePoint(n,i)},f.prototype.derive=function(n){return n.mul(this.priv).getX()},f.prototype.sign=function(n,i,o){return this.ec.sign(n,this,i,o)},f.prototype.verify=function(n,i){return this.ec.verify(n,i,this)},f.prototype.inspect=function(){return""}},4233:function(n,i,o){"use strict";var a=o(5944),s=o(3355),f=s.assert;function u(n,i){if(n instanceof u)return n;this._importDER(n,i)||(f(n.r&&n.s,"Signature without r or s"),this.r=new a(n.r,16),this.s=new a(n.s,16),void 0===n.recoveryParam?this.recoveryParam=null:this.recoveryParam=n.recoveryParam)}function c(){this.place=0}function l(n,i){var o=n[i.place++];if(!(128&o))return o;var a=15&o;if(0===a||a>4)return!1;for(var s=0,f=0,u=i.place;f>>=0;return!(s<=127)&&(i.place=u,s)}function h(n){for(var i=0,o=n.length-1;!n[i]&&!(128&n[i+1])&&i>>3);for(n.push(128|o);--o;)n.push(i>>>(o<<3)&255);n.push(i)}n.exports=u,u.prototype._importDER=function(n,i){n=s.toArray(n,i);var o=new c;if(48!==n[o.place++])return!1;var f=l(n,o);if(!1===f||f+o.place!==n.length||2!==n[o.place++])return!1;var u=l(n,o);if(!1===u)return!1;var h=n.slice(o.place,u+o.place);if(o.place+=u,2!==n[o.place++])return!1;var d=l(n,o);if(!1===d||n.length!==d+o.place)return!1;var p=n.slice(o.place,d+o.place);if(0===h[0])if(!(128&h[1]))return!1;else h=h.slice(1);if(0===p[0])if(!(128&p[1]))return!1;else p=p.slice(1);return this.r=new a(h),this.s=new a(p),this.recoveryParam=null,!0},u.prototype.toDER=function(n){var i=this.r.toArray(),o=this.s.toArray();for(128&i[0]&&(i=[0].concat(i)),128&o[0]&&(o=[0].concat(o)),i=h(i),o=h(o);!o[0]&&!(128&o[1]);)o=o.slice(1);var a=[2];d(a,i.length),(a=a.concat(i)).push(2),d(a,o.length);var f=a.concat(o),u=[48];return d(u,f.length),u=u.concat(f),s.encode(u,n)}},4226:function(n,i,o){"use strict";var a=o(8044),s=o(7736),f=o(3355),u=f.assert,c=f.parseBytes,l=o(1101),h=o(2164);function d(n){if(u("ed25519"===n,"only tested with ed25519 so far"),!(this instanceof d))return new d(n);var n=s[n].curve;this.curve=n,this.g=n.g,this.g.precompute(n.n.bitLength()+1),this.pointClass=n.point().constructor,this.encodingLength=Math.ceil(n.n.bitLength()/8),this.hash=a.sha512}n.exports=d,d.prototype.sign=function(n,i){n=c(n);var o=this.keyFromSecret(i),a=this.hashInt(o.messagePrefix(),n),s=this.g.mul(a),f=this.encodePoint(s),u=this.hashInt(f,o.pubBytes(),n).mul(o.priv()),l=a.add(u).umod(this.curve.n);return this.makeSignature({R:s,S:l,Rencoded:f})},d.prototype.verify=function(n,i,o){n=c(n),i=this.makeSignature(i);var a=this.keyFromPublic(o),s=this.hashInt(i.Rencoded(),a.pubBytes(),n),f=this.g.mul(i.S());return i.R().add(a.pub().mul(s)).eq(f)},d.prototype.hashInt=function(){for(var n=this.hash(),i=0;i(s>>1)-1?(s>>1)-l:l,f.isubn(c)):c=0,a[u]=c,f.iushrn(1)}return a},a.getJSF=function(n,i){var o=[[],[]];n=n.clone(),i=i.clone();for(var a=0,s=0;n.cmpn(-a)>0||i.cmpn(-s)>0;){var f,u,c=n.andln(3)+a&3,l=i.andln(3)+s&3;if(3===c&&(c=-1),3===l&&(l=-1),(1&c)==0)f=0;else{var h=n.andln(7)+a&7;f=(3===h||5===h)&&2===l?-c:c}if(o[0].push(f),(1&l)==0)u=0;else{var h=i.andln(7)+s&7;u=(3===h||5===h)&&2===c?-l:l}o[1].push(u),2*a===f+1&&(a=1-a),2*s===u+1&&(s=1-s),n.iushrn(1),i.iushrn(1)}return o},a.cachedProperty=function(n,i,o){var a="_"+i;n.prototype[i]=function(){return void 0!==this[a]?this[a]:this[a]=o.call(this)}},a.parseBytes=c,a.intFromLE=function(n){return new s(n,"hex","le")}},689:function(n,i,o){var a=o(5725).Buffer,s=o(3858);n.exports=function(n,i,o,f){if(a.isBuffer(n)||(n=a.from(n,"binary")),i&&(a.isBuffer(i)||(i=a.from(i,"binary")),8!==i.length))throw RangeError("salt should be Buffer with 8 byte length");for(var u=o/8,c=a.alloc(u),l=a.alloc(f||0),h=a.alloc(0);u>0||f>0;){var d=new s;d.update(h),d.update(n),i&&d.update(i),h=d.digest();var p=0;if(u>0){var b=c.length-u;p=Math.min(u,h.length),h.copy(c,b,0,p),u-=p}if(p0){var y=l.length-f,m=Math.min(f,h.length-p);h.copy(l,y,p,p+m),f-=m}}return h.fill(0),{key:c,iv:l}}},2321:function(n,i,o){"use strict";var a=o(5725).Buffer,s=o(5486).Transform;function f(n,i){if(!a.isBuffer(n)&&"string"!=typeof n)throw TypeError(i+" must be a string or a buffer")}function u(n){s.call(this),this._block=a.allocUnsafe(n),this._blockSize=n,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}o(1638)(u,s),u.prototype._transform=function(n,i,o){var a=null;try{this.update(n,i)}catch(n){a=n}o(a)},u.prototype._flush=function(n){var i=null;try{this.push(this.digest())}catch(n){i=n}n(i)},u.prototype.update=function(n,i){if(f(n,"Data"),this._finalized)throw Error("Digest already called");a.isBuffer(n)||(n=a.from(n,i));for(var o=this._block,s=0;this._blockOffset+n.length-s>=this._blockSize;){for(var u=this._blockOffset;u0;++c)this._length[c]+=l,(l=this._length[c]/0x100000000|0)>0&&(this._length[c]-=0x100000000*l);return this},u.prototype._update=function(){throw Error("_update is not implemented")},u.prototype.digest=function(n){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var i=this._digest();void 0!==n&&(i=i.toString(n)),this._block.fill(0),this._blockOffset=0;for(var o=0;o<4;++o)this._length[o]=0;return i},u.prototype._digest=function(){throw Error("_digest is not implemented")},n.exports=u},8044:function(n,i,o){var a=i;a.utils=o(6302),a.common=o(1226),a.sha=o(4857),a.ripemd=o(9956),a.hmac=o(2184),a.sha1=a.sha.sha1,a.sha256=a.sha.sha256,a.sha224=a.sha.sha224,a.sha384=a.sha.sha384,a.sha512=a.sha.sha512,a.ripemd160=a.ripemd.ripemd160},1226:function(n,i,o){"use strict";var a=o(6302),s=o(7551);function f(){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}i.BlockHash=f,f.prototype.update=function(n,i){if(n=a.toArray(n,i),this.pending?this.pending=this.pending.concat(n):this.pending=n,this.pendingTotal+=n.length,this.pending.length>=this._delta8){var o=(n=this.pending).length%this._delta8;this.pending=n.slice(n.length-o,n.length),0===this.pending.length&&(this.pending=null),n=a.join32(n,0,n.length-o,this.endian);for(var s=0;s>>24&255,a[s++]=n>>>16&255,a[s++]=n>>>8&255,a[s++]=255&n}else for(a[s++]=255&n,a[s++]=n>>>8&255,a[s++]=n>>>16&255,a[s++]=n>>>24&255,a[s++]=0,a[s++]=0,a[s++]=0,a[s++]=0,f=8;fthis.blockSize&&(n=(new this.Hash).update(n).digest()),s(n.length<=this.blockSize);for(var i=n.length;i>>3},i.g1_256=function(n){return a(n,17)^a(n,19)^n>>>10}},6302:function(n,i,o){"use strict";var a=o(7551);function s(n,i){return(64512&n.charCodeAt(i))==55296&&!(i<0)&&!(i+1>=n.length)&&(64512&n.charCodeAt(i+1))==56320}function f(n){return(n>>>24|n>>>8&65280|n<<8&0xff0000|(255&n)<<24)>>>0}function u(n){return 1===n.length?"0"+n:n}function c(n){if(7===n.length)return"0"+n;if(6===n.length)return"00"+n;if(5===n.length)return"000"+n;if(4===n.length)return"0000"+n;if(3===n.length)return"00000"+n;else if(2===n.length)return"000000"+n;else if(1===n.length)return"0000000"+n;else return n}i.inherits=o(1638),i.toArray=function(n,i){if(Array.isArray(n))return n.slice();if(!n)return[];var o=[];if("string"==typeof n)if(i){if("hex"===i)for((n=n.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(n="0"+n),f=0;f>6|192:(s(n,f)?(u=65536+((1023&u)<<10)+(1023&n.charCodeAt(++f)),o[a++]=u>>18|240,o[a++]=u>>12&63|128):o[a++]=u>>12|224,o[a++]=u>>6&63|128),o[a++]=63&u|128)}else for(f=0;f>>0;return c},i.split32=function(n,i){for(var o=Array(4*n.length),a=0,s=0;a>>24,o[s+1]=f>>>16&255,o[s+2]=f>>>8&255,o[s+3]=255&f):(o[s+3]=f>>>24,o[s+2]=f>>>16&255,o[s+1]=f>>>8&255,o[s]=255&f)}return o},i.rotr32=function(n,i){return n>>>i|n<<32-i},i.rotl32=function(n,i){return n<>>32-i},i.sum32=function(n,i){return n+i>>>0},i.sum32_3=function(n,i,o){return n+i+o>>>0},i.sum32_4=function(n,i,o,a){return n+i+o+a>>>0},i.sum32_5=function(n,i,o,a,s){return n+i+o+a+s>>>0},i.sum64=function(n,i,o,a){var s=n[i],f=a+n[i+1]>>>0,u=+(f>>0,n[i+1]=f},i.sum64_hi=function(n,i,o,a){return+(i+a>>>0>>0},i.sum64_lo=function(n,i,o,a){return i+a>>>0},i.sum64_4_hi=function(n,i,o,a,s,f,u,c){var l,h=i;return n+o+s+u+(l=0+ +((h=h+a>>>0)>>0)>>0)>>0},i.sum64_4_lo=function(n,i,o,a,s,f,u,c){return i+a+f+c>>>0},i.sum64_5_hi=function(n,i,o,a,s,f,u,c,l,h){var d,p=i;return n+o+s+u+l+(d=0+ +((p=p+a>>>0)>>0)>>0)>>0)>>0},i.sum64_5_lo=function(n,i,o,a,s,f,u,c,l,h){return i+a+f+c+h>>>0},i.rotr64_hi=function(n,i,o){return(i<<32-o|n>>>o)>>>0},i.rotr64_lo=function(n,i,o){return(n<<32-o|i>>>o)>>>0},i.shr64_hi=function(n,i,o){return n>>>o},i.shr64_lo=function(n,i,o){return(n<<32-o|i>>>o)>>>0}},3730:function(n,i,o){"use strict";var a=o(8044),s=o(7356),f=o(7551);function u(n){if(!(this instanceof u))return new u(n);this.hash=n.hash,this.predResist=!!n.predResist,this.outLen=this.hash.outSize,this.minEntropy=n.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var i=s.toArray(n.entropy,n.entropyEnc||"hex"),o=s.toArray(n.nonce,n.nonceEnc||"hex"),a=s.toArray(n.pers,n.persEnc||"hex");f(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(i,o,a)}n.exports=u,u.prototype._init=function(n,i,o){var a=n.concat(i).concat(o);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var s=0;s=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(n.concat(o||[])),this._reseed=1},u.prototype.generate=function(n,i,o,a){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof i&&(a=o,o=i,i=null),o&&(o=s.toArray(o,a||"hex"),this._update(o));for(var f=[];f.length>>32-i}function h(n,i,o,a,s,f,u){return l(n+(i&o|~i&a)+s+f|0,u)+i|0}function d(n,i,o,a,s,f,u){return l(n+(i&a|o&~a)+s+f|0,u)+i|0}function p(n,i,o,a,s,f,u){return l(n+(i^o^a)+s+f|0,u)+i|0}function b(n,i,o,a,s,f,u){return l(n+(o^(i|~a))+s+f|0,u)+i|0}a(c,s),c.prototype._update=function(){for(var n=u,i=0;i<16;++i)n[i]=this._block.readInt32LE(4*i);var o=this._a,a=this._b,s=this._c,f=this._d;o=h(o,a,s,f,n[0],0xd76aa478,7),f=h(f,o,a,s,n[1],0xe8c7b756,12),s=h(s,f,o,a,n[2],0x242070db,17),a=h(a,s,f,o,n[3],0xc1bdceee,22),o=h(o,a,s,f,n[4],0xf57c0faf,7),f=h(f,o,a,s,n[5],0x4787c62a,12),s=h(s,f,o,a,n[6],0xa8304613,17),a=h(a,s,f,o,n[7],0xfd469501,22),o=h(o,a,s,f,n[8],0x698098d8,7),f=h(f,o,a,s,n[9],0x8b44f7af,12),s=h(s,f,o,a,n[10],0xffff5bb1,17),a=h(a,s,f,o,n[11],0x895cd7be,22),o=h(o,a,s,f,n[12],0x6b901122,7),f=h(f,o,a,s,n[13],0xfd987193,12),s=h(s,f,o,a,n[14],0xa679438e,17),a=h(a,s,f,o,n[15],0x49b40821,22),o=d(o,a,s,f,n[1],0xf61e2562,5),f=d(f,o,a,s,n[6],0xc040b340,9),s=d(s,f,o,a,n[11],0x265e5a51,14),a=d(a,s,f,o,n[0],0xe9b6c7aa,20),o=d(o,a,s,f,n[5],0xd62f105d,5),f=d(f,o,a,s,n[10],0x2441453,9),s=d(s,f,o,a,n[15],0xd8a1e681,14),a=d(a,s,f,o,n[4],0xe7d3fbc8,20),o=d(o,a,s,f,n[9],0x21e1cde6,5),f=d(f,o,a,s,n[14],0xc33707d6,9),s=d(s,f,o,a,n[3],0xf4d50d87,14),a=d(a,s,f,o,n[8],0x455a14ed,20),o=d(o,a,s,f,n[13],0xa9e3e905,5),f=d(f,o,a,s,n[2],0xfcefa3f8,9),s=d(s,f,o,a,n[7],0x676f02d9,14),a=d(a,s,f,o,n[12],0x8d2a4c8a,20),o=p(o,a,s,f,n[5],0xfffa3942,4),f=p(f,o,a,s,n[8],0x8771f681,11),s=p(s,f,o,a,n[11],0x6d9d6122,16),a=p(a,s,f,o,n[14],0xfde5380c,23),o=p(o,a,s,f,n[1],0xa4beea44,4),f=p(f,o,a,s,n[4],0x4bdecfa9,11),s=p(s,f,o,a,n[7],0xf6bb4b60,16),a=p(a,s,f,o,n[10],0xbebfbc70,23),o=p(o,a,s,f,n[13],0x289b7ec6,4),f=p(f,o,a,s,n[0],0xeaa127fa,11),s=p(s,f,o,a,n[3],0xd4ef3085,16),a=p(a,s,f,o,n[6],0x4881d05,23),o=p(o,a,s,f,n[9],0xd9d4d039,4),f=p(f,o,a,s,n[12],0xe6db99e5,11),s=p(s,f,o,a,n[15],0x1fa27cf8,16),a=p(a,s,f,o,n[2],0xc4ac5665,23),o=b(o,a,s,f,n[0],0xf4292244,6),f=b(f,o,a,s,n[7],0x432aff97,10),s=b(s,f,o,a,n[14],0xab9423a7,15),a=b(a,s,f,o,n[5],0xfc93a039,21),o=b(o,a,s,f,n[12],0x655b59c3,6),f=b(f,o,a,s,n[3],0x8f0ccc92,10),s=b(s,f,o,a,n[10],0xffeff47d,15),a=b(a,s,f,o,n[1],0x85845dd1,21),o=b(o,a,s,f,n[8],0x6fa87e4f,6),f=b(f,o,a,s,n[15],0xfe2ce6e0,10),s=b(s,f,o,a,n[6],0xa3014314,15),a=b(a,s,f,o,n[13],0x4e0811a1,21),o=b(o,a,s,f,n[4],0xf7537e82,6),f=b(f,o,a,s,n[11],0xbd3af235,10),s=b(s,f,o,a,n[2],0x2ad7d2bb,15),a=b(a,s,f,o,n[9],0xeb86d391,21),this._a=this._a+o|0,this._b=this._b+a|0,this._c=this._c+s|0,this._d=this._d+f|0},c.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 n=f.allocUnsafe(16);return n.writeInt32LE(this._a,0),n.writeInt32LE(this._b,4),n.writeInt32LE(this._c,8),n.writeInt32LE(this._d,12),n},n.exports=c},6821:function(n,i,o){var a=o(5944),s=o(4259);function f(n){this.rand=n||new s.Rand}n.exports=f,f.create=function(n){return new f(n)},f.prototype._randbelow=function(n){var i=Math.ceil(n.bitLength()/8);do var o=new a(this.rand.generate(i));while(o.cmp(n)>=0)return o},f.prototype._randrange=function(n,i){var o=i.sub(n);return n.add(this._randbelow(o))},f.prototype.test=function(n,i,o){var s=n.bitLength(),f=a.mont(n),u=new a(1).toRed(f);i||(i=Math.max(1,s/48|0));for(var c=n.subn(1),l=0;!c.testn(l);l++);for(var h=n.shrn(l),d=c.toRed(f),p=!0;i>0;i--){var b=this._randrange(new a(2),c);o&&o(b);var y=b.toRed(f).redPow(h);if(0!==y.cmp(u)&&0!==y.cmp(d)){for(var m=1;m0;i--){var d=this._randrange(new a(2),u),p=n.gcd(d);if(0!==p.cmpn(1))return p;var b=d.toRed(s).redPow(l);if(0!==b.cmp(f)&&0!==b.cmp(h)){for(var y=1;y>8,u=255&s;f?o.push(f,u):o.push(u)}return o},o.zero2=a,o.toHex=s,o.encode=function(n,i){return"hex"===i?s(n):n}},1907:function(n,i,o){"use strict";var a=o(9186);i.certificate=o(5627),i.RSAPrivateKey=a.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),i.RSAPublicKey=a.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}),i.PublicKey=a.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});var s=a.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())});i.PrivateKey=a.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}),i.EncryptedPrivateKey=a.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}),i.DSAPrivateKey=a.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}),i.DSAparam=a.define("DSAparam",function(){this.int()}),i.ECPrivateKey=a.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())});var f=a.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});i.signature=a.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},5627:function(n,i,o){"use strict";var a=o(9186),s=a.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),f=a.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),u=a.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),c=a.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(u),this.key("subjectPublicKey").bitstr())}),l=a.define("RelativeDistinguishedName",function(){this.setof(f)}),h=a.define("RDNSequence",function(){this.seqof(l)}),d=a.define("Name",function(){this.choice({rdnSequence:this.use(h)})}),p=a.define("Validity",function(){this.seq().obj(this.key("notBefore").use(s),this.key("notAfter").use(s))}),b=a.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),y=a.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(u),this.key("issuer").use(d),this.key("validity").use(p),this.key("subject").use(d),this.key("subjectPublicKeyInfo").use(c),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(b).optional())});n.exports=a.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(y),this.key("signatureAlgorithm").use(u),this.key("signatureValue").bitstr())})},4059:function(n,i,o){var a=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,f=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,u=o(689),c=o(8642),l=o(5725).Buffer;n.exports=function(n,i){var o,h=n.toString(),d=h.match(a);if(d){var p="aes"+d[1],b=l.from(d[2],"hex"),y=l.from(d[3].replace(/[\r\n]/g,""),"base64"),m=u(i,b.slice(0,8),parseInt(d[1],10)).key,g=[],v=c.createDecipheriv(p,m,b);g.push(v.update(y)),g.push(v.final()),o=l.concat(g)}else o=new l(h.match(f)[2].replace(/[\r\n]/g,""),"base64");return{tag:h.match(s)[1],data:o}}},8012:function(n,i,o){var a=o(1907),s=o(7016),f=o(4059),u=o(8642),c=o(4542),l=o(5725).Buffer;function h(n){"object"!=typeof n||l.isBuffer(n)||(i=n.passphrase,n=n.key),"string"==typeof n&&(n=l.from(n));var i,o,s,u=f(n,i),c=u.tag,h=u.data;switch(c){case"CERTIFICATE":s=a.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(!s&&(s=a.PublicKey.decode(h,"der")),o=s.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=a.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw Error("unknown key id "+o)}case"ENCRYPTED PRIVATE KEY":h=d(h=a.EncryptedPrivateKey.decode(h,"der"),i);case"PRIVATE KEY":switch(o=(s=a.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:a.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=a.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw Error("unknown key id "+o)}case"RSA PUBLIC KEY":return a.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return a.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:a.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=a.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw Error("unknown key type "+c)}}function d(n,i){var o=n.algorithm.decrypt.kde.kdeparams.salt,a=parseInt(n.algorithm.decrypt.kde.kdeparams.iters.toString(),10),f=s[n.algorithm.decrypt.cipher.algo.join(".")],h=n.algorithm.decrypt.cipher.iv,d=n.subjectPrivateKey,p=parseInt(f.split("-")[1],10)/8,b=c.pbkdf2Sync(i,o,a,p,"sha1"),y=u.createDecipheriv(f,b,h),m=[];return m.push(y.update(d)),m.push(y.final()),l.concat(m)}n.exports=h,h.signature=a.signature},4542:function(n,i,o){var a=o(6982),s=o(4410),f=o(741),u=o(508);function c(n,i,o,c,l,h){if(s(o,c),n=u(n,f,"Password"),i=u(i,f,"Salt"),"function"==typeof l&&(h=l,l="sha1"),"function"!=typeof h)throw Error("No callback provided to pbkdf2");return a.pbkdf2(n,i,o,c,l,h)}function l(n,i,o,c,l){return s(o,c),n=u(n,f,"Password"),i=u(i,f,"Salt"),l=l||"sha1",a.pbkdf2Sync(n,i,o,c,l)}a.pbkdf2Sync&&-1!==a.pbkdf2Sync.toString().indexOf("keylen, digest")?(i.pbkdf2Sync=l,i.pbkdf2=c):(i.pbkdf2Sync=o(8291),i.pbkdf2=o(9958))},9958:function(i,o,a){var f,u=a(5725).Buffer,c=a(4410),l=a(741),h=a(8291),d=a(508),p=n.g.crypto&&n.g.crypto.subtle,b={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},y=[];function m(i){if(n.g.process&&!n.g.process.browser||!p||!p.importKey||!p.deriveBits)return Promise.resolve(!1);if(void 0!==y[i])return y[i];var o=g(f=f||u.alloc(8),f,10,128,i).then(function(){return!0}).catch(function(){return!1});return y[i]=o,o}function g(n,i,o,a,s){return p.importKey("raw",n,{name:"PBKDF2"},!1,["deriveBits"]).then(function(n){return p.deriveBits({name:"PBKDF2",salt:i,iterations:o,hash:{name:s}},n,a<<3)}).then(function(n){return u.from(n)})}function v(n,i){n.then(function(n){s.default.nextTick(function(){i(null,n)})},function(n){s.default.nextTick(function(){i(n)})})}i.exports=function(i,o,a,f,u,p){"function"==typeof u&&(p=u,u=void 0);var y=b[(u=u||"sha1").toLowerCase()];if(!y||"function"!=typeof n.g.Promise)return s.default.nextTick(function(){var n;try{n=h(i,o,a,f,u)}catch(n){return p(n)}p(null,n)});if(c(a,f),i=d(i,l,"Password"),o=d(o,l,"Salt"),"function"!=typeof p)throw Error("No callback provided to pbkdf2");v(m(y).then(function(n){return n?g(i,o,a,f,y):h(i,o,a,f,u)}),p)}},741:function(n){n.exports="utf-8"},4410:function(n){var i=0x3fffffff;n.exports=function(n,o){if("number"!=typeof n)throw TypeError("Iterations not a number");if(n<0)throw TypeError("Bad iterations");if("number"!=typeof o)throw TypeError("Key length not a number");if(o<0||o>i||o!=o)throw TypeError("Bad key length")}},8291:function(n,i,o){var a={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},s=o(3256),f=o(5725).Buffer,u=o(4410),c=o(741),l=o(508);n.exports=function(n,i,o,h,d){u(o,h),n=l(n,c,"Password"),i=l(i,c,"Salt"),d=d||"sha1";var p=f.allocUnsafe(h),b=f.allocUnsafe(i.length+4);i.copy(b,0,0,i.length);for(var y=0,m=a[d],g=Math.ceil(h/m),v=1;v<=g;v++){b.writeUInt32BE(v,i.length);for(var w=s(d,n).update(b).digest(),x=w,_=1;_=i.length){f++;break}var u=i.slice(2,s-1);if(("0002"!==a.toString("hex")&&!o||"0001"!==a.toString("hex")&&o)&&f++,u.length<8&&f++,f)throw Error("decryption error");return i.slice(s)}function y(n,i){n=d.from(n),i=d.from(i);var o=0,a=n.length;n.length!==i.length&&(o++,a=Math.min(n.length,i.length));for(var s=-1;++sy||new u(i).cmp(l.modulus)>=0)throw Error("decryption error");s=o?h(new u(i),l):c(i,l);var m=d.alloc(y-s.length);if(s=d.concat([m,s],y),4===f)return p(l,s);if(1===f)return b(l,s,o);if(3===f)return s;throw Error("unknown padding")}},6480:function(n,i,o){var a=o(8012),s=o(376),f=o(762),u=o(6228),c=o(8723),l=o(5944),h=o(5037),d=o(640),p=o(5725).Buffer;function b(n,i){var o=n.modulus.byteLength(),a=i.length,h=f("sha1").update(p.alloc(0)).digest(),d=h.length,b=2*d;if(a>o-b-2)throw Error("message too long");var y=p.alloc(o-a-b-2),m=o-d-1,g=s(d),v=c(p.concat([h,y,p.alloc(1,1),i],m),u(g,m)),w=c(g,u(v,d));return new l(p.concat([p.alloc(1),w,v],o))}function y(n,i,o){var a,s=i.length,f=n.modulus.byteLength();if(s>f-11)throw Error("message too long");return a=o?p.alloc(f-s-3,255):m(f-s-3),new l(p.concat([p.from([0,o?1:2]),a,p.alloc(1),i],f))}function m(n){for(var i,o=p.allocUnsafe(n),a=0,f=s(2*n),u=0;a=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return o?d(s,u):h(s,u)}},5037:function(n,i,o){var a=o(5944),s=o(5725).Buffer;n.exports=function(n,i){return s.from(n.toRed(a.mont(i.modulus)).redPow(new a(i.publicExponent)).fromRed().toArray())}},8723:function(n){n.exports=function(n,i){for(var o=n.length,a=-1;++au)throw RangeError("requested too many random bytes");var o=l.allocUnsafe(n);if(n>0)if(n>f)for(var a=0;ad||n<0)throw TypeError("offset must be a uint32");if(n>l||n>i)throw RangeError("offset out of range")}function b(n,i,o){if("number"!=typeof n||n!=n)throw TypeError("size must be a number");if(n>d||n<0)throw TypeError("size must be a uint32");if(n+i>o||n>l)throw RangeError("buffer too small")}function y(i,o,a,s){if(!c.isBuffer(i)&&!(i instanceof n.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof o)s=o,o=0,a=i.length;else if("function"==typeof a)s=a,a=i.length-o;else if("function"!=typeof s)throw TypeError('"cb" argument must be a function');return p(o,i.length),b(a,o,i.length),m(i,o,a,s)}function m(n,i,o,a){var f=new Uint8Array(n.buffer,i,o);return(h.getRandomValues(f),a)?void s.default.nextTick(function(){a(null,n)}):n}function g(i,o,a){if(void 0===o&&(o=0),!c.isBuffer(i)&&!(i instanceof n.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return p(o,i.length),void 0===a&&(a=i.length-o),b(a,o,i.length),m(i,o,a)}h&&h.getRandomValues?(o.randomFill=y,o.randomFillSync=g):(o.randomFill=f,o.randomFillSync=f)},4329:function(n){"use strict";let i={};function o(n,o,a){function s(n,i,a){return"string"==typeof o?o:o(n,i,a)}a||(a=Error);class f extends a{constructor(n,i,o){super(s(n,i,o))}}f.prototype.name=a.name,f.prototype.code=n,i[n]=f}function a(n,i){if(!Array.isArray(n))return`of ${i} ${String(n)}`;{let o=n.length;return(n=n.map(n=>String(n)),o>2)?`one of ${i} ${n.slice(0,o-1).join(", ")}, or `+n[o-1]:2===o?`one of ${i} ${n[0]} or ${n[1]}`:`of ${i} ${n[0]}`}}function s(n,i,o){return n.substr(!o||o<0?0:+o,i.length)===i}function f(n,i,o){return(void 0===o||o>n.length)&&(o=n.length),n.substring(o-i.length,o)===i}function u(n,i,o){return"number"!=typeof o&&(o=0),!(o+i.length>n.length)&&-1!==n.indexOf(i,o)}o("ERR_INVALID_OPT_VALUE",function(n,i){return'The value "'+i+'" is invalid for option "'+n+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(n,i,o){let c,l;if("string"==typeof i&&s(i,"not ")?(c="must not be",i=i.replace(/^not /,"")):c="must be",f(n," argument"))l=`The ${n} ${c} ${a(i,"type")}`;else{let o=u(n,".")?"property":"argument";l=`The "${n}" ${o} ${c} ${a(i,"type")}`}return l+`. Received type ${typeof o}`},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(n){return"The "+n+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(n){return"Cannot call "+n+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(n){return"Unknown encoding: "+n},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),n.exports.F=i},8686:function(n,i,o){"use strict";var a=Object.keys||function(n){var i=[];for(var o in n)i.push(o);return i};n.exports=d;var f=o(7276),u=o(4732);o(1638)(d,f);for(var c=a(u.prototype),l=0;l0)if("string"==typeof i||c.objectMode||Object.getPrototypeOf(i)===b.prototype||(i=m(i)),a)c.endEmitted?I(n,new R):P(n,c,i,!0);else if(c.ended)I(n,new M);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!o?(i=c.decoder.write(i),c.objectMode||0!==i.length?P(n,c,i,!1):z(n,c)):P(n,c,i,!1)}else a||(c.reading=!1,z(n,c));return!c.ended&&(c.length=L?n=L:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function D(n,i){if(n<=0||0===i.length&&i.ended)return 0;if(i.objectMode)return 1;if(n!=n)if(i.flowing&&i.length)return i.buffer.head.data.length;else return i.length;return(n>i.highWaterMark&&(i.highWaterMark=C(n)),n<=i.length)?n:i.ended?i.length:(i.needReadable=!0,0)}function U(n,i){if(u("onEofChunk"),!i.ended){if(i.decoder){var o=i.decoder.end();o&&o.length&&(i.buffer.push(o),i.length+=i.objectMode?1:o.length)}i.ended=!0,i.sync?$(n):(i.needReadable=!1,i.emittedReadable||(i.emittedReadable=!0,F(n)))}}function $(n){var i=n._readableState;u("emitReadable",i.needReadable,i.emittedReadable),i.needReadable=!1,i.emittedReadable||(u("emitReadable",i.flowing),i.emittedReadable=!0,s.default.nextTick(F,n))}function F(n){var i=n._readableState;u("emitReadable_",i.destroyed,i.length,i.ended),!i.destroyed&&(i.length||i.ended)&&(n.emit("readable"),i.emittedReadable=!1),i.needReadable=!i.flowing&&!i.ended&&i.length<=i.highWaterMark,Y(n)}function z(n,i){i.readingMore||(i.readingMore=!0,s.default.nextTick(q,n,i))}function q(n,i){for(;!i.reading&&!i.ended&&(i.length0,i.resumeScheduled&&!i.paused?i.flowing=!0:n.listenerCount("data")>0&&n.resume()}function K(n){u("readable nexttick read 0"),n.read(0)}function G(n,i){i.resumeScheduled||(i.resumeScheduled=!0,s.default.nextTick(V,n,i))}function V(n,i){u("resume",i.reading),i.reading||n.read(0),i.resumeScheduled=!1,n.emit("resume"),Y(n),i.flowing&&!i.reading&&n.read(0)}function Y(n){var i=n._readableState;for(u("flow",i.flowing);i.flowing&&null!==n.read(););}function X(n,i){var o;return 0===i.length?null:(i.objectMode?o=i.buffer.shift():!n||n>=i.length?(o=i.decoder?i.buffer.join(""):1===i.buffer.length?i.buffer.first():i.buffer.concat(i.length),i.buffer.clear()):o=i.buffer.consume(n,i.decoder),o)}function J(n){var i=n._readableState;u("endReadable",i.endEmitted),i.endEmitted||(i.ended=!0,s.default.nextTick(Z,i,n))}function Z(n,i){if(u("endReadableNT",n.endEmitted,n.length),!n.endEmitted&&0===n.length&&(n.endEmitted=!0,i.readable=!1,i.emit("end"),n.autoDestroy)){var o=i._writableState;(!o||o.autoDestroy&&o.finished)&&i.destroy()}}function Q(n,i){for(var o=0,a=n.length;o=o.highWaterMark:o.length>0)||o.ended))return u("read: emitReadable",o.length,o.ended),0===o.length&&o.ended?J(this):$(this),null;if(0===(n=D(n,o))&&o.ended)return 0===o.length&&J(this),null;var s=o.needReadable;return u("need readable",s),(0===o.length||o.length-n0?X(n,o):null)?(o.needReadable=o.length<=o.highWaterMark,n=0):(o.length-=n,o.awaitDrain=0),0===o.length&&(o.ended||(o.needReadable=!0),a!==n&&o.ended&&J(this)),null!==i&&this.emit("data",i),i},O.prototype._read=function(n){I(this,new A("_read()"))},O.prototype.pipe=function(n,i){var o=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=n;break;case 1:a.pipes=[a.pipes,n];break;default:a.pipes.push(n)}a.pipesCount+=1,u("pipe count=%d opts=%j",a.pipesCount,i);var f=i&&!1===i.end||n===s.default.stdout||n===s.default.stderr?w:l;function c(n,i){u("onunpipe"),n===o&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,b())}function l(){u("onend"),n.end()}a.endEmitted?s.default.nextTick(f):o.once("end",f),n.on("unpipe",c);var h=H(o);n.on("drain",h);var p=!1;function b(){u("cleanup"),n.removeListener("close",g),n.removeListener("finish",v),n.removeListener("drain",h),n.removeListener("error",m),n.removeListener("unpipe",c),o.removeListener("end",l),o.removeListener("end",w),o.removeListener("data",y),p=!0,a.awaitDrain&&(!n._writableState||n._writableState.needDrain)&&h()}function y(i){u("ondata");var s=n.write(i);u("dest.write",s),!1===s&&((1===a.pipesCount&&a.pipes===n||a.pipesCount>1&&-1!==Q(a.pipes,n))&&!p&&(u("false write response, pause",a.awaitDrain),a.awaitDrain++),o.pause())}function m(i){u("onerror",i),w(),n.removeListener("error",m),0===d(n,"error")&&I(n,i)}function g(){n.removeListener("finish",v),w()}function v(){u("onfinish"),n.removeListener("close",g),w()}function w(){u("unpipe"),o.unpipe(n)}return o.on("data",y),j(n,"error",m),n.once("close",g),n.once("finish",v),n.emit("pipe",o),a.flowing||(u("pipe resume"),o.resume()),n},O.prototype.unpipe=function(n){var i=this._readableState,o={hasUnpiped:!1};if(0===i.pipesCount)return this;if(1===i.pipesCount)return n&&n!==i.pipes||(n||(n=i.pipes),i.pipes=null,i.pipesCount=0,i.flowing=!1,n&&n.emit("unpipe",this,o)),this;if(!n){var a=i.pipes,s=i.pipesCount;i.pipes=null,i.pipesCount=0,i.flowing=!1;for(var f=0;f0,!1!==a.flowing&&this.resume()):"readable"!==n||a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,u("on readable",a.length,a.reading),a.length?$(this):a.reading||s.default.nextTick(K,this)),o},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(n,i){var o=p.prototype.removeListener.call(this,n,i);return"readable"===n&&s.default.nextTick(W,this),o},O.prototype.removeAllListeners=function(n){var i=p.prototype.removeAllListeners.apply(this,arguments);return("readable"===n||void 0===n)&&s.default.nextTick(W,this),i},O.prototype.resume=function(){var n=this._readableState;return n.flowing||(u("resume"),n.flowing=!n.readableListening,G(this,n)),n.paused=!1,this},O.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(n){var i=this,o=this._readableState,a=!1;for(var s in n.on("end",function(){if(u("wrapped end"),o.decoder&&!o.ended){var n=o.decoder.end();n&&n.length&&i.push(n)}i.push(null)}),n.on("data",function(s){u("wrapped data"),o.decoder&&(s=o.decoder.write(s)),o.objectMode&&null==s||(o.objectMode||s&&s.length)&&(i.push(s)||(a=!0,n.pause()))}),n)void 0===this[s]&&"function"==typeof n[s]&&(this[s]=function(i){return function(){return n[i].apply(n,arguments)}}(s));for(var f=0;f-1))throw new R(n);return this._writableState.defaultEncoding=n,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(n,i,o){o(new x("_write()"))},T.prototype._writev=null,T.prototype.end=function(n,i,o){var a=this._writableState;return"function"==typeof n?(o=n,n=null,i=null):"function"==typeof i&&(o=i,i=null),null!=n&&this.write(n,i),a.corked&&(a.corked=1,this.uncork()),a.ending||G(this,a,o),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(n){this._writableState&&(this._writableState.destroyed=n)}}),T.prototype.destroy=m.destroy,T.prototype._undestroy=m.undestroy,T.prototype._destroy=function(n,i){i(n)}},531:function(n,i,o){"use strict";function a(n,i,o){return i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n}var f,u=o(8134),c=Symbol("lastResolve"),l=Symbol("lastReject"),h=Symbol("error"),d=Symbol("ended"),p=Symbol("lastPromise"),b=Symbol("handlePromise"),y=Symbol("stream");function m(n,i){return{value:n,done:i}}function g(n){var i=n[c];if(null!==i){var o=n[y].read();null!==o&&(n[p]=null,n[c]=null,n[l]=null,i(m(o,!1)))}}function v(n){s.default.nextTick(g,n)}function w(n,i){return function(o,a){n.then(function(){i[d]?o(m(void 0,!0)):i[b](o,a)},a)}}var x=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((a(f={get stream(){return this[y]},next:function(){var n,i=this,o=this[h];if(null!==o)return Promise.reject(o);if(this[d])return Promise.resolve(m(void 0,!0));if(this[y].destroyed)return new Promise(function(n,o){s.default.nextTick(function(){i[h]?o(i[h]):n(m(void 0,!0))})});var a=this[p];if(a)n=new Promise(w(a,this));else{var f=this[y].read();if(null!==f)return Promise.resolve(m(f,!1));n=new Promise(this[b])}return this[p]=n,n}},Symbol.asyncIterator,function(){return this}),a(f,"return",function(){var n=this;return new Promise(function(i,o){n[y].destroy(null,function(n){n?o(n):i(m(void 0,!0))})})}),f),x);n.exports=function(n){var i,o=Object.create(_,(a(i={},y,{value:n,writable:!0}),a(i,c,{value:null,writable:!0}),a(i,l,{value:null,writable:!0}),a(i,h,{value:null,writable:!0}),a(i,d,{value:n._readableState.endEmitted,writable:!0}),a(i,b,{value:function(n,i){var a=o[y].read();a?(o[p]=null,o[c]=null,o[l]=null,n(m(a,!1))):(o[c]=n,o[l]=i)},writable:!0}),i));return o[p]=null,u(n,function(n){if(n&&"ERR_STREAM_PREMATURE_CLOSE"!==n.code){var i=o[l];null!==i&&(o[p]=null,o[c]=null,o[l]=null,i(n)),o[h]=n;return}var a=o[c];null!==a&&(o[p]=null,o[c]=null,o[l]=null,a(m(void 0,!0))),o[d]=!0}),n.on("readable",v.bind(null,o)),o}},1137:function(n,i,o){"use strict";function a(n,i){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);i&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),o.push.apply(o,a)}return o}function s(n){for(var i=1;i0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(n){var i={data:n,next:this.head};0===this.length&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(0!==this.length){var n=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(0===this.length)return"";for(var i=this.head,o=""+i.data;i=i.next;)o+=n+i.data;return o}},{key:"concat",value:function(n){if(0===this.length)return h.alloc(0);for(var i=h.allocUnsafe(n>>>0),o=this.head,a=0;o;)b(o.data,i,a),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(n,i){var o;return ns.length?s.length:n;if(f===s.length?a+=s:a+=s.slice(0,n),0==(n-=f)){f===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(f));break}++o}return this.length-=o,a}},{key:"_getBuffer",value:function(n){var i=h.allocUnsafe(n),o=this.head,a=1;for(o.data.copy(i),n-=o.data.length;o=o.next;){var s=o.data,f=n>s.length?s.length:n;if(s.copy(i,i.length-n,0,f),0==(n-=f)){f===s.length?(++a,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=s.slice(f));break}++a}return this.length-=a,i}},{key:p,value:function(n,i){return d(this,s({},i,{depth:0,customInspect:!1}))}}]),n}()},2528:function(n){"use strict";function i(n,i){a(n,i),o(n)}function o(n){n._writableState&&!n._writableState.emitClose||(!n._readableState||n._readableState.emitClose)&&n.emit("close")}function a(n,i){n.emit("error",i)}n.exports={destroy:function(n,f){var u=this,c=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return c||l?f?f(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,s.default.nextTick(a,this,n)):s.default.nextTick(a,this,n)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(n){!f&&n?u._writableState?u._writableState.errorEmitted?s.default.nextTick(o,u):(u._writableState.errorEmitted=!0,s.default.nextTick(i,u,n)):s.default.nextTick(i,u,n):f?(s.default.nextTick(o,u),f(n)):s.default.nextTick(o,u)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(n,i){var o=n._readableState,a=n._writableState;o&&o.autoDestroy||a&&a.autoDestroy?n.destroy(i):n.emit("error",i)}}},8134:function(n,i,o){"use strict";var a=o(4329).F.ERR_STREAM_PREMATURE_CLOSE;function s(n){var i=!1;return function(){if(!i){i=!0;for(var o=arguments.length,a=Array(o),s=0;s0,function(i){n||(n=i),i&&f.forEach(p),u||(f.forEach(p),s(n))})});return o.reduce(b)}},771:function(n,i,o){"use strict";var a=o(4329).F.ERR_INVALID_OPT_VALUE;function s(n,i,o){return null!=n.highWaterMark?n.highWaterMark:i?n[o]:null}n.exports={getHighWaterMark:function(n,i,o,f){var u=s(i,f,o);if(null!=u){if(!(isFinite(u)&&Math.floor(u)===u)||u<0)throw new a(f?o:"highWaterMark",u);return Math.floor(u)}return n.objectMode?16:16384}}},5120:function(n,i,o){n.exports=o(2203)},5486:function(n,i,o){var a=o(2203);"disable"===s.default.env.READABLE_STREAM&&a?(n.exports=a.Readable,Object.assign(n.exports,a),n.exports.Stream=a):((i=n.exports=o(7276)).Stream=a||i,i.Readable=i,i.Writable=o(4732),i.Duplex=o(8686),i.Transform=o(586),i.PassThrough=o(5512),i.finished=o(8134),i.pipeline=o(694))},8987:function(n,i,o){"use strict";var a=o(181).Buffer,s=o(1638),f=o(2321),u=Array(16),c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[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],d=[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],p=[0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e],b=[0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0];function y(){f.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0}function m(n,i){return n<>>32-i}function g(n,i,o,a,s,f,u,c){return m(n+(i^o^a)+f+u|0,c)+s|0}function v(n,i,o,a,s,f,u,c){return m(n+(i&o|~i&a)+f+u|0,c)+s|0}function w(n,i,o,a,s,f,u,c){return m(n+((i|~o)^a)+f+u|0,c)+s|0}function x(n,i,o,a,s,f,u,c){return m(n+(i&a|o&~a)+f+u|0,c)+s|0}function _(n,i,o,a,s,f,u,c){return m(n+(i^(o|~a))+f+u|0,c)+s|0}s(y,f),y.prototype._update=function(){for(var n,i,o=u,a=0;a<16;++a)o[a]=this._block.readInt32LE(4*a);for(var s=0|this._a,f=0|this._b,y=0|this._c,E=0|this._d,S=0|this._e,M=0|this._a,A=0|this._b,R=0|this._c,I=0|this._d,k=0|this._e,j=0;j<80;j+=1)j<16?(n=g(s,f,y,E,S,o[c[j]],p[0],h[j]),i=_(M,A,R,I,k,o[l[j]],b[0],d[j])):j<32?(n=v(s,f,y,E,S,o[c[j]],p[1],h[j]),i=x(M,A,R,I,k,o[l[j]],b[1],d[j])):j<48?(n=w(s,f,y,E,S,o[c[j]],p[2],h[j]),i=w(M,A,R,I,k,o[l[j]],b[2],d[j])):j<64?(n=x(s,f,y,E,S,o[c[j]],p[3],h[j]),i=v(M,A,R,I,k,o[l[j]],b[3],d[j])):(n=_(s,f,y,E,S,o[c[j]],p[4],h[j]),i=g(M,A,R,I,k,o[l[j]],b[4],d[j])),s=S,S=E,E=m(y,10),y=f,f=n,M=k,k=I,I=m(R,10),R=A,A=i;var T=this._b+y+I|0;this._b=this._c+E+k|0,this._c=this._d+S+M|0,this._d=this._e+s+A|0,this._e=this._a+f+R|0,this._a=T},y.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 n=a.alloc?a.alloc(20):new a(20);return n.writeInt32LE(this._a,0),n.writeInt32LE(this._b,4),n.writeInt32LE(this._c,8),n.writeInt32LE(this._d,12),n.writeInt32LE(this._e,16),n},n.exports=y},5056:function(n,i,o){var a=o(181),s=a.Buffer;function f(n,i){for(var o in n)i[o]=n[o]}function u(n,i,o){return s(n,i,o)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?n.exports=a:(f(a,i),i.Buffer=u),u.prototype=Object.create(s.prototype),f(s,u),u.from=function(n,i,o){if("number"==typeof n)throw TypeError("Argument must not be a number");return s(n,i,o)},u.alloc=function(n,i,o){if("number"!=typeof n)throw TypeError("Argument must be a number");var a=s(n);return void 0!==i?"string"==typeof o?a.fill(i,o):a.fill(i):a.fill(0),a},u.allocUnsafe=function(n){if("number"!=typeof n)throw TypeError("Argument must be a number");return s(n)},u.allocUnsafeSlow=function(n){if("number"!=typeof n)throw TypeError("Argument must be a number");return a.SlowBuffer(n)}},5725:function(n,i,o){var a=o(181),s=a.Buffer;function f(n,i){for(var o in n)i[o]=n[o]}function u(n,i,o){return s(n,i,o)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?n.exports=a:(f(a,i),i.Buffer=u),u.prototype=Object.create(s.prototype),f(s,u),u.from=function(n,i,o){if("number"==typeof n)throw TypeError("Argument must not be a number");return s(n,i,o)},u.alloc=function(n,i,o){if("number"!=typeof n)throw TypeError("Argument must be a number");var a=s(n);return void 0!==i?"string"==typeof o?a.fill(i,o):a.fill(i):a.fill(0),a},u.allocUnsafe=function(n){if("number"!=typeof n)throw TypeError("Argument must be a number");return s(n)},u.allocUnsafeSlow=function(n){if("number"!=typeof n)throw TypeError("Argument must be a number");return a.SlowBuffer(n)}},1007:function(n,i,o){var a=o(5725).Buffer;function s(n,i){this._block=a.alloc(n),this._finalSize=i,this._blockSize=n,this._len=0}s.prototype.update=function(n,i){"string"==typeof n&&(i=i||"utf8",n=a.from(n,i));for(var o=this._block,s=this._blockSize,f=n.length,u=this._len,c=0;c=this._finalSize&&(this._update(this._block),this._block.fill(0));var o=8*this._len;if(o<=0xffffffff)this._block.writeUInt32BE(o,this._blockSize-4);else{var a=o>>>0,s=(o-a)/0x100000000;this._block.writeUInt32BE(s,this._blockSize-8),this._block.writeUInt32BE(a,this._blockSize-4)}this._update(this._block);var f=this._hash();return n?f.toString(n):f},s.prototype._update=function(){throw Error("_update must be implemented by subclass")},n.exports=s},3251:function(n,i,o){var a=n.exports=function(n){var i=a[n=n.toLowerCase()];if(!i)throw Error(n+" is not supported (we accept pull requests)");return new i};a.sha=o(569),a.sha1=o(822),a.sha224=o(5365),a.sha256=o(1380),a.sha384=o(3840),a.sha512=o(7921)},569:function(n,i,o){var a=o(1638),s=o(1007),f=o(5725).Buffer,u=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],c=Array(80);function l(){this.init(),this._w=c,s.call(this,64,56)}function h(n){return n<<5|n>>>27}function d(n){return n<<30|n>>>2}function p(n,i,o,a){return 0===n?i&o|~i&a:2===n?i&o|i&a|o&a:i^o^a}a(l,s),l.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},l.prototype._update=function(n){for(var i=this._w,o=0|this._a,a=0|this._b,s=0|this._c,f=0|this._d,c=0|this._e,l=0;l<16;++l)i[l]=n.readInt32BE(4*l);for(;l<80;++l)i[l]=i[l-3]^i[l-8]^i[l-14]^i[l-16];for(var b=0;b<80;++b){var y=~~(b/20),m=h(o)+p(y,a,s,f)+c+i[b]+u[y]|0;c=f,f=s,s=d(a),a=o,o=m}this._a=o+this._a|0,this._b=a+this._b|0,this._c=s+this._c|0,this._d=f+this._d|0,this._e=c+this._e|0},l.prototype._hash=function(){var n=f.allocUnsafe(20);return n.writeInt32BE(0|this._a,0),n.writeInt32BE(0|this._b,4),n.writeInt32BE(0|this._c,8),n.writeInt32BE(0|this._d,12),n.writeInt32BE(0|this._e,16),n},n.exports=l},822:function(n,i,o){var a=o(1638),s=o(1007),f=o(5725).Buffer,u=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],c=Array(80);function l(){this.init(),this._w=c,s.call(this,64,56)}function h(n){return n<<1|n>>>31}function d(n){return n<<5|n>>>27}function p(n){return n<<30|n>>>2}function b(n,i,o,a){return 0===n?i&o|~i&a:2===n?i&o|i&a|o&a:i^o^a}a(l,s),l.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},l.prototype._update=function(n){for(var i=this._w,o=0|this._a,a=0|this._b,s=0|this._c,f=0|this._d,c=0|this._e,l=0;l<16;++l)i[l]=n.readInt32BE(4*l);for(;l<80;++l)i[l]=h(i[l-3]^i[l-8]^i[l-14]^i[l-16]);for(var y=0;y<80;++y){var m=~~(y/20),g=d(o)+b(m,a,s,f)+c+i[y]+u[m]|0;c=f,f=s,s=p(a),a=o,o=g}this._a=o+this._a|0,this._b=a+this._b|0,this._c=s+this._c|0,this._d=f+this._d|0,this._e=c+this._e|0},l.prototype._hash=function(){var n=f.allocUnsafe(20);return n.writeInt32BE(0|this._a,0),n.writeInt32BE(0|this._b,4),n.writeInt32BE(0|this._c,8),n.writeInt32BE(0|this._d,12),n.writeInt32BE(0|this._e,16),n},n.exports=l},5365:function(n,i,o){var a=o(1638),s=o(1380),f=o(1007),u=o(5725).Buffer,c=Array(64);function l(){this.init(),this._w=c,f.call(this,64,56)}a(l,s),l.prototype.init=function(){return this._a=0xc1059ed8,this._b=0x367cd507,this._c=0x3070dd17,this._d=0xf70e5939,this._e=0xffc00b31,this._f=0x68581511,this._g=0x64f98fa7,this._h=0xbefa4fa4,this},l.prototype._hash=function(){var n=u.allocUnsafe(28);return n.writeInt32BE(this._a,0),n.writeInt32BE(this._b,4),n.writeInt32BE(this._c,8),n.writeInt32BE(this._d,12),n.writeInt32BE(this._e,16),n.writeInt32BE(this._f,20),n.writeInt32BE(this._g,24),n},n.exports=l},1380:function(n,i,o){var a=o(1638),s=o(1007),f=o(5725).Buffer,u=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],c=Array(64);function l(){this.init(),this._w=c,s.call(this,64,56)}function h(n,i,o){return o^n&(i^o)}function d(n,i,o){return n&i|o&(n|i)}function p(n){return(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10)}function b(n){return(n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7)}function y(n){return(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3}function m(n){return(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10}a(l,s),l.prototype.init=function(){return this._a=0x6a09e667,this._b=0xbb67ae85,this._c=0x3c6ef372,this._d=0xa54ff53a,this._e=0x510e527f,this._f=0x9b05688c,this._g=0x1f83d9ab,this._h=0x5be0cd19,this},l.prototype._update=function(n){for(var i=this._w,o=0|this._a,a=0|this._b,s=0|this._c,f=0|this._d,c=0|this._e,l=0|this._f,g=0|this._g,v=0|this._h,w=0;w<16;++w)i[w]=n.readInt32BE(4*w);for(;w<64;++w)i[w]=m(i[w-2])+i[w-7]+y(i[w-15])+i[w-16]|0;for(var x=0;x<64;++x){var _=v+b(c)+h(c,l,g)+u[x]+i[x]|0,E=p(o)+d(o,a,s)|0;v=g,g=l,l=c,c=f+_|0,f=s,s=a,a=o,o=_+E|0}this._a=o+this._a|0,this._b=a+this._b|0,this._c=s+this._c|0,this._d=f+this._d|0,this._e=c+this._e|0,this._f=l+this._f|0,this._g=g+this._g|0,this._h=v+this._h|0},l.prototype._hash=function(){var n=f.allocUnsafe(32);return n.writeInt32BE(this._a,0),n.writeInt32BE(this._b,4),n.writeInt32BE(this._c,8),n.writeInt32BE(this._d,12),n.writeInt32BE(this._e,16),n.writeInt32BE(this._f,20),n.writeInt32BE(this._g,24),n.writeInt32BE(this._h,28),n},n.exports=l},3840:function(n,i,o){var a=o(1638),s=o(7921),f=o(1007),u=o(5725).Buffer,c=Array(160);function l(){this.init(),this._w=c,f.call(this,128,112)}a(l,s),l.prototype.init=function(){return this._ah=0xcbbb9d5d,this._bh=0x629a292a,this._ch=0x9159015a,this._dh=0x152fecd8,this._eh=0x67332667,this._fh=0x8eb44a87,this._gh=0xdb0c2e0d,this._hh=0x47b5481d,this._al=0xc1059ed8,this._bl=0x367cd507,this._cl=0x3070dd17,this._dl=0xf70e5939,this._el=0xffc00b31,this._fl=0x68581511,this._gl=0x64f98fa7,this._hl=0xbefa4fa4,this},l.prototype._hash=function(){var n=u.allocUnsafe(48);function i(i,o,a){n.writeInt32BE(i,a),n.writeInt32BE(o,a+4)}return i(this._ah,this._al,0),i(this._bh,this._bl,8),i(this._ch,this._cl,16),i(this._dh,this._dl,24),i(this._eh,this._el,32),i(this._fh,this._fl,40),n},n.exports=l},7921:function(n,i,o){var a=o(1638),s=o(1007),f=o(5725).Buffer,u=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817],c=Array(160);function l(){this.init(),this._w=c,s.call(this,128,112)}function h(n,i,o){return o^n&(i^o)}function d(n,i,o){return n&i|o&(n|i)}function p(n,i){return(n>>>28|i<<4)^(i>>>2|n<<30)^(i>>>7|n<<25)}function b(n,i){return(n>>>14|i<<18)^(n>>>18|i<<14)^(i>>>9|n<<23)}function y(n,i){return(n>>>1|i<<31)^(n>>>8|i<<24)^n>>>7}function m(n,i){return(n>>>1|i<<31)^(n>>>8|i<<24)^(n>>>7|i<<25)}function g(n,i){return(n>>>19|i<<13)^(i>>>29|n<<3)^n>>>6}function v(n,i){return(n>>>19|i<<13)^(i>>>29|n<<3)^(n>>>6|i<<26)}function w(n,i){return+(n>>>0>>0)}a(l,s),l.prototype.init=function(){return this._ah=0x6a09e667,this._bh=0xbb67ae85,this._ch=0x3c6ef372,this._dh=0xa54ff53a,this._eh=0x510e527f,this._fh=0x9b05688c,this._gh=0x1f83d9ab,this._hh=0x5be0cd19,this._al=0xf3bcc908,this._bl=0x84caa73b,this._cl=0xfe94f82b,this._dl=0x5f1d36f1,this._el=0xade682d1,this._fl=0x2b3e6c1f,this._gl=0xfb41bd6b,this._hl=0x137e2179,this},l.prototype._update=function(n){for(var i=this._w,o=0|this._ah,a=0|this._bh,s=0|this._ch,f=0|this._dh,c=0|this._eh,l=0|this._fh,x=0|this._gh,_=0|this._hh,E=0|this._al,S=0|this._bl,M=0|this._cl,A=0|this._dl,R=0|this._el,I=0|this._fl,k=0|this._gl,j=0|this._hl,T=0;T<32;T+=2)i[T]=n.readInt32BE(4*T),i[T+1]=n.readInt32BE(4*T+4);for(;T<160;T+=2){var O=i[T-30],N=i[T-30+1],P=y(O,N),B=m(N,O),L=g(O=i[T-4],N=i[T-4+1]),C=v(N,O),D=i[T-14],U=i[T-14+1],$=i[T-32],F=i[T-32+1],z=B+U|0,q=P+D+w(z,B)|0;q=(q=q+L+w(z=z+C|0,C)|0)+$+w(z=z+F|0,F)|0,i[T]=q,i[T+1]=z}for(var H=0;H<160;H+=2){q=i[H],z=i[H+1];var W=d(o,a,s),K=d(E,S,M),G=p(o,E),V=p(E,o),Y=b(c,R),X=b(R,c),J=u[H],Z=u[H+1],Q=h(c,l,x),ee=h(R,I,k),et=j+X|0,er=_+Y+w(et,j)|0;er=(er=(er=er+Q+w(et=et+ee|0,ee)|0)+J+w(et=et+Z|0,Z)|0)+q+w(et=et+z|0,z)|0;var en=V+K|0,ei=G+W+w(en,V)|0;_=x,j=k,x=l,k=I,l=c,I=R,c=f+er+w(R=A+et|0,A)|0,f=s,A=M,s=a,M=S,a=o,S=E,o=er+ei+w(E=et+en|0,et)|0}this._al=this._al+E|0,this._bl=this._bl+S|0,this._cl=this._cl+M|0,this._dl=this._dl+A|0,this._el=this._el+R|0,this._fl=this._fl+I|0,this._gl=this._gl+k|0,this._hl=this._hl+j|0,this._ah=this._ah+o+w(this._al,E)|0,this._bh=this._bh+a+w(this._bl,S)|0,this._ch=this._ch+s+w(this._cl,M)|0,this._dh=this._dh+f+w(this._dl,A)|0,this._eh=this._eh+c+w(this._el,R)|0,this._fh=this._fh+l+w(this._fl,I)|0,this._gh=this._gh+x+w(this._gl,k)|0,this._hh=this._hh+_+w(this._hl,j)|0},l.prototype._hash=function(){var n=f.allocUnsafe(64);function i(i,o,a){n.writeInt32BE(i,a),n.writeInt32BE(o,a+4)}return i(this._ah,this._al,0),i(this._bh,this._bl,8),i(this._ch,this._cl,16),i(this._dh,this._dl,24),i(this._eh,this._el,32),i(this._fh,this._fl,40),i(this._gh,this._gl,48),i(this._hh,this._hl,56),n},n.exports=l},7319:function(n,i,o){"use strict";var a=o(5056).Buffer,s=a.isEncoding||function(n){switch((n=""+n)&&n.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 f(n){var i;if(!n)return"utf8";for(;;)switch(n){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 n;default:if(i)return;n=(""+n).toLowerCase(),i=!0}}function u(n){var i=f(n);if("string"!=typeof i&&(a.isEncoding===s||!s(n)))throw Error("Unknown encoding: "+n);return i||n}function c(n){var i;switch(this.encoding=u(n),this.encoding){case"utf16le":this.text=m,this.end=g,i=4;break;case"utf8":this.fillLast=p,i=4;break;case"base64":this.text=v,this.end=w,i=3;break;default:this.write=x,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=a.allocUnsafe(i)}function l(n){return n<=127?0:n>>5==6?2:n>>4==14?3:n>>3==30?4:n>>6==2?-1:-2}function h(n,i,o){var a=i.length-1;if(a=0?(s>0&&(n.lastNeed=s-1),s):--a=0?(s>0&&(n.lastNeed=s-2),s):--a=0?(s>0&&(2===s?s=0:n.lastNeed=s-3),s):0}function d(n,i,o){if((192&i[0])!=128)return n.lastNeed=0,"�";if(n.lastNeed>1&&i.length>1){if((192&i[1])!=128)return n.lastNeed=1,"�";if(n.lastNeed>2&&i.length>2&&(192&i[2])!=128)return n.lastNeed=2,"�"}}function p(n){var i=this.lastTotal-this.lastNeed,o=d(this,n,i);return void 0!==o?o:this.lastNeed<=n.length?(n.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(n.copy(this.lastChar,i,0,n.length),this.lastNeed-=n.length)}function b(n,i){var o=h(this,n,i);if(!this.lastNeed)return n.toString("utf8",i);this.lastTotal=o;var a=n.length-(o-this.lastNeed);return n.copy(this.lastChar,0,a),n.toString("utf8",i,a)}function y(n){var i=n&&n.length?this.write(n):"";return this.lastNeed?i+"�":i}function m(n,i){if((n.length-i)%2==0){var o=n.toString("utf16le",i);if(o){var a=o.charCodeAt(o.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=n[n.length-1],n.toString("utf16le",i,n.length-1)}function g(n){var i=n&&n.length?this.write(n):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,o)}return i}function v(n,i){var o=(n.length-i)%3;return 0===o?n.toString("base64",i):(this.lastNeed=3-o,this.lastTotal=3,1===o?this.lastChar[0]=n[n.length-1]:(this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1]),n.toString("base64",i,n.length-o))}function w(n){var i=n&&n.length?this.write(n):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function x(n){return n.toString(this.encoding)}function _(n){return n&&n.length?this.write(n):""}i.I=c,c.prototype.write=function(n){var i,o;if(0===n.length)return"";if(this.lastNeed){if(void 0===(i=this.fillLast(n)))return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o{"use strict";function a(n){return(n/8|0)+ +(n%8!=0)}var s={ES256:a(256),ES384:a(384),ES512:a(521)};i.exports=function(n){var i=s[n];if(i)return i;throw Error('Unknown algorithm "'+n+'"')}},21762,(n,i,o)=>{"use strict";var a=n.r(42524).Buffer,s=n.r(68679),f=128,u=48,c=2;function l(n){return n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function h(n){if(a.isBuffer(n))return n;if("string"==typeof n)return a.from(n,"base64");throw TypeError("ECDSA signature must be a Base64 string or a Buffer")}function d(n,i,o){for(var a=0;i+a=f&&--a,a}i.exports={derToJose:function(n,i){n=h(n);var o=s(i),d=o+1,p=n.length,b=0;if(n[b++]!==u)throw Error('Could not find expected "seq"');var y=n[b++];if(y===(1|f)&&(y=n[b++]),p-b{"use strict";var a=n.r(43943).Buffer,s=n.r(43943).SlowBuffer;function f(n,i){if(!a.isBuffer(n)||!a.isBuffer(i)||n.length!==i.length)return!1;for(var o=0,s=0;s{var a,s=n.r(42524).Buffer,f=n.r(86914),u=n.r(21762),c=n.r(77398),l='"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".',h="secret must be a string or buffer",d="key must be a string or a buffer",p="key must be a string, a buffer or an object",b="function"==typeof f.createPublicKey;function y(n){if(!s.isBuffer(n)&&"string"!=typeof n&&(!b||"object"!=typeof n||"string"!=typeof n.type||"string"!=typeof n.asymmetricKeyType||"function"!=typeof n.export))throw x(d)}function m(n){if(!s.isBuffer(n)&&"string"!=typeof n&&"object"!=typeof n)throw x(p)}function g(n){if(!s.isBuffer(n)){if("string"==typeof n)return n;if(!b||"object"!=typeof n||"secret"!==n.type||"function"!=typeof n.export)throw x(h)}}function v(n){return n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function w(n){var i=4-(n=n.toString()).length%4;if(4!==i)for(var o=0;o{var a=n.r(43943).Buffer;i.exports=function(n){return"string"==typeof n?n:"number"==typeof n||a.isBuffer(n)?n.toString():JSON.stringify(n)}},78995,(n,i,o)=>{var a=n.r(42524).Buffer,s=n.r(84598),f=n.r(19695),u=n.r(12569),c=n.r(25502),l=n.r(77398);function h(n,i){return a.from(n,i).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function d(n,i,o){o=o||"utf8";var a=h(c(n),"binary"),s=h(c(i),o);return l.format("%s.%s",a,s)}function p(n){var i=n.header,o=n.payload,a=n.secret||n.privateKey,s=n.encoding,u=f(i.alg),c=d(i,o,s),h=u.sign(c,a);return l.format("%s.%s",c,h)}function b(n){var i=n.secret;if(i=null==(i=null==i?n.privateKey:i)?n.key:i,!0===/^hs/i.test(n.header.alg)&&null==i)throw TypeError("secret must be a string or buffer or a KeyObject");var o=new s(i);this.readable=!0,this.header=n.header,this.encoding=n.encoding,this.secret=this.privateKey=this.key=o,this.payload=new s(n.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}l.inherits(b,u),b.prototype.sign=function(){try{var n=p({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",n),this.emit("data",n),this.emit("end"),this.readable=!1,n}catch(n){this.readable=!1,this.emit("error",n),this.emit("close")}},b.sign=p,i.exports=b},17678,(n,i,o)=>{var a=n.r(42524).Buffer,s=n.r(84598),f=n.r(19695),u=n.r(12569),c=n.r(25502),l=n.r(77398),h=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function d(n){return"[object Object]"===Object.prototype.toString.call(n)}function p(n){if(d(n))return n;try{return JSON.parse(n)}catch(n){return}}function b(n){var i=n.split(".",1)[0];return p(a.from(i,"base64").toString("binary"))}function y(n){return n.split(".",2).join(".")}function m(n){return n.split(".")[2]}function g(n,i){i=i||"utf8";var o=n.split(".")[1];return a.from(o,"base64").toString(i)}function v(n){return h.test(n)&&!!b(n)}function w(n,i,o){if(!i){var a=Error("Missing algorithm parameter for jws.verify");throw a.code="MISSING_ALGORITHM",a}var s=m(n=c(n)),u=y(n);return f(i).verify(u,s,o)}function x(n,i){if(i=i||{},!v(n=c(n)))return null;var o=b(n);if(!o)return null;var a=g(n);return("JWT"===o.typ||i.json)&&(a=JSON.parse(a,i.encoding)),{header:o,payload:a,signature:m(n)}}function _(n){var i=(n=n||{}).secret;if(i=null==(i=null==i?n.publicKey:i)?n.key:i,!0===/^hs/i.test(n.algorithm)&&null==i)throw TypeError("secret must be a string or buffer or a KeyObject");var o=new s(i);this.readable=!0,this.algorithm=n.algorithm,this.encoding=n.encoding,this.secret=this.publicKey=this.key=o,this.signature=new s(n.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}l.inherits(_,u),_.prototype.verify=function(){try{var n=w(this.signature.buffer,this.algorithm,this.key.buffer),i=x(this.signature.buffer,this.encoding);return this.emit("done",n,i),this.emit("data",n),this.emit("end"),this.readable=!1,n}catch(n){this.readable=!1,this.emit("error",n),this.emit("close")}},_.decode=x,_.isValid=v,_.verify=w,i.exports=_},72919,(n,i,o)=>{var a=n.r(78995),s=n.r(17678);o.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],o.sign=a.sign,o.verify=s.verify,o.decode=s.decode,o.isValid=s.isValid,o.createSign=function(n){return new a(n)},o.createVerify=function(n){return new s(n)}},39420,(n,i,o)=>{var a=n.r(72919);i.exports=function(n,i){i=i||{};var o=a.decode(n,i);if(!o)return null;var s=o.payload;if("string"==typeof s)try{var f=JSON.parse(s);null!==f&&"object"==typeof f&&(s=f)}catch(n){}return!0===i.complete?{header:o.header,payload:s,signature:o.signature}:s}},80537,(n,i,o)=>{var a=function(n,i){Error.call(this,n),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=n,i&&(this.inner=i)};a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,i.exports=a},34100,(n,i,o)=>{var a=n.r(80537),s=function(n,i){a.call(this,n),this.name="NotBeforeError",this.date=i};s.prototype=Object.create(a.prototype),s.prototype.constructor=s,i.exports=s},59261,(n,i,o)=>{var a=n.r(80537),s=function(n,i){a.call(this,n),this.name="TokenExpiredError",this.expiredAt=i};s.prototype=Object.create(a.prototype),s.prototype.constructor=s,i.exports=s},76775,(n,i,o)=>{var a=1e3,s=6e4,f=36e5,u=864e5,c=6048e5,l=315576e5;function h(n){if(!((n=String(n)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(i){var o=parseFloat(i[1]),h=(i[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return o*l;case"weeks":case"week":case"w":return o*c;case"days":case"day":case"d":return o*u;case"hours":case"hour":case"hrs":case"hr":case"h":return o*f;case"minutes":case"minute":case"mins":case"min":case"m":return o*s;case"seconds":case"second":case"secs":case"sec":case"s":return o*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}function d(n){var i=Math.abs(n);return i>=u?Math.round(n/u)+"d":i>=f?Math.round(n/f)+"h":i>=s?Math.round(n/s)+"m":i>=a?Math.round(n/a)+"s":n+"ms"}function p(n){var i=Math.abs(n);return i>=u?b(n,i,u,"day"):i>=f?b(n,i,f,"hour"):i>=s?b(n,i,s,"minute"):i>=a?b(n,i,a,"second"):n+" ms"}function b(n,i,o,a){var s=i>=1.5*o;return Math.round(n/o)+" "+a+(s?"s":"")}i.exports=function(n,i){i=i||{};var o=typeof n;if("string"===o&&n.length>0)return h(n);if("number"===o&&isFinite(n))return i.long?p(n):d(n);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))}},65981,(n,i,o)=>{var a=n.r(76775);i.exports=function(n,i){var o=i||Math.floor(Date.now()/1e3);if("string"==typeof n){var s=a(n);if(void 0===s)return;return Math.floor(o+s/1e3)}if("number"==typeof n)return o+n}},46039,(n,i,o)=>{"use strict";i.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},9201,(n,i,o)=>{"use strict";var a=n.i(47167);i.exports="object"==typeof a.default&&a.default.env&&a.default.env.NODE_DEBUG&&/\bsemver\b/i.test(a.default.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{}},25488,(n,i,o)=>{"use strict";let{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:f}=n.r(46039),u=n.r(9201),c=(o=i.exports={}).re=[],l=o.safeRe=[],h=o.src=[],d=o.safeSrc=[],p=o.t={},b=0,y="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",f],[y,s]],g=n=>{for(let[i,o]of m)n=n.split(`${i}*`).join(`${i}{0,${o}}`).split(`${i}+`).join(`${i}{1,${o}}`);return n},v=(n,i,o)=>{let a=g(i),s=b++;u(n,s,i),p[n]=s,h[s]=i,d[s]=a,c[s]=new RegExp(i,o?"g":void 0),l[s]=new RegExp(a,o?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`),v("MAINVERSION",`(${h[p.NUMERICIDENTIFIER]})\\.(${h[p.NUMERICIDENTIFIER]})\\.(${h[p.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${h[p.NUMERICIDENTIFIERLOOSE]})\\.(${h[p.NUMERICIDENTIFIERLOOSE]})\\.(${h[p.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${h[p.NONNUMERICIDENTIFIER]}|${h[p.NUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${h[p.NONNUMERICIDENTIFIER]}|${h[p.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASE",`(?:-(${h[p.PRERELEASEIDENTIFIER]}(?:\\.${h[p.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${h[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${h[p.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${y}+`),v("BUILD",`(?:\\+(${h[p.BUILDIDENTIFIER]}(?:\\.${h[p.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${h[p.MAINVERSION]}${h[p.PRERELEASE]}?${h[p.BUILD]}?`),v("FULL",`^${h[p.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${h[p.MAINVERSIONLOOSE]}${h[p.PRERELEASELOOSE]}?${h[p.BUILD]}?`),v("LOOSE",`^${h[p.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${h[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${h[p.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${h[p.XRANGEIDENTIFIER]})(?:\\.(${h[p.XRANGEIDENTIFIER]})(?:\\.(${h[p.XRANGEIDENTIFIER]})(?:${h[p.PRERELEASE]})?${h[p.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${h[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[p.XRANGEIDENTIFIERLOOSE]})(?:${h[p.PRERELEASELOOSE]})?${h[p.BUILD]}?)?)?`),v("XRANGE",`^${h[p.GTLT]}\\s*${h[p.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${h[p.GTLT]}\\s*${h[p.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${a}})(?:\\.(\\d{1,${a}}))?(?:\\.(\\d{1,${a}}))?`),v("COERCE",`${h[p.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",h[p.COERCEPLAIN]+`(?:${h[p.PRERELEASE]})?`+`(?:${h[p.BUILD]})?`+"(?:$|[^\\d])"),v("COERCERTL",h[p.COERCE],!0),v("COERCERTLFULL",h[p.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${h[p.LONETILDE]}\\s+`,!0),o.tildeTrimReplace="$1~",v("TILDE",`^${h[p.LONETILDE]}${h[p.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${h[p.LONETILDE]}${h[p.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${h[p.LONECARET]}\\s+`,!0),o.caretTrimReplace="$1^",v("CARET",`^${h[p.LONECARET]}${h[p.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${h[p.LONECARET]}${h[p.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${h[p.GTLT]}\\s*(${h[p.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${h[p.GTLT]}\\s*(${h[p.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${h[p.GTLT]}\\s*(${h[p.LOOSEPLAIN]}|${h[p.XRANGEPLAIN]})`,!0),o.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${h[p.XRANGEPLAIN]})\\s+-\\s+(${h[p.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${h[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${h[p.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},52145,(n,i,o)=>{"use strict";let a=Object.freeze({loose:!0}),s=Object.freeze({});i.exports=n=>n?"object"!=typeof n?a:n:s},19549,(n,i,o)=>{"use strict";let a=/^[0-9]+$/,s=(n,i)=>{if("number"==typeof n&&"number"==typeof i)return n===i?0:ns(i,n);i.exports={compareIdentifiers:s,rcompareIdentifiers:f}},6423,(n,i,o)=>{"use strict";let a=n.r(9201),{MAX_LENGTH:s,MAX_SAFE_INTEGER:f}=n.r(46039),{safeRe:u,t:c}=n.r(25488),l=n.r(52145),{compareIdentifiers:h}=n.r(19549),d=(n,i)=>{let o=i.split(".");if(o.length>n.length)return!1;for(let i=0;is)throw TypeError(`version is longer than ${s} characters`);a("SemVer",n,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;const o=n.trim().match(i.loose?u[c.LOOSE]:u[c.FULL]);if(!o)throw TypeError(`Invalid Version: ${n}`);if(this.raw=n,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>f||this.major<0)throw TypeError("Invalid major version");if(this.minor>f||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>f||this.patch<0)throw TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let i=+n;if(i>=0&&in.major?1:this.minorn.minor?1:this.patchn.patch)}comparePre(n){if(n instanceof p||(n=new p(n,this.options)),this.prerelease.length&&!n.prerelease.length)return -1;if(!this.prerelease.length&&n.prerelease.length)return 1;if(!this.prerelease.length&&!n.prerelease.length)return 0;let i=0;do{let o=this.prerelease[i],s=n.prerelease[i];if(a("prerelease compare",i,o,s),void 0===o&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===o)return -1;else if(o===s)continue;else return h(o,s)}while(++i)}compareBuild(n){n instanceof p||(n=new p(n,this.options));let i=0;do{let o=this.build[i],s=n.build[i];if(a("build compare",i,o,s),void 0===o&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===o)return -1;else if(o===s)continue;else return h(o,s)}while(++i)}inc(n,i,o){if(n.startsWith("pre")){if(!i&&!1===o)throw Error("invalid increment argument: identifier is empty");if(i){let n=`-${i}`.match(this.options.loose?u[c.PRERELEASELOOSE]:u[c.PRERELEASE]);if(!n||n[1]!==i)throw Error(`invalid identifier: ${i}`)}}switch(n){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",i,o);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",i,o);break;case"prepatch":this.prerelease.length=0,this.inc("patch",i,o),this.inc("pre",i,o);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",i,o),this.inc("pre",i,o);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let n=+!!Number(o);if(0===this.prerelease.length)this.prerelease=[n];else{let a=this.prerelease.length;for(;--a>=0;)"number"==typeof this.prerelease[a]&&(this.prerelease[a]++,a=-2);if(-1===a){if(i===this.prerelease.join(".")&&!1===o)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(i){let a=[i,n];!1===o&&(a=[i]),d(this.prerelease,i)?isNaN(this.prerelease[i.split(".").length])&&(this.prerelease=a):this.prerelease=a}break}default:throw Error(`invalid increment argument: ${n}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}i.exports=p},76293,(n,i,o)=>{"use strict";let a=n.r(6423);i.exports=(n,i,o=!1)=>{if(n instanceof a)return n;try{return new a(n,i)}catch(n){if(!o)return null;throw n}}},82880,(n,i,o)=>{"use strict";let a=n.r(76293);i.exports=(n,i)=>{let o=a(n,i);return o?o.version:null}},89624,(n,i,o)=>{"use strict";let a=n.r(76293);i.exports=(n,i)=>{let o=a(n.trim().replace(/^[=v]+/,""),i);return o?o.version:null}},64894,(n,i,o)=>{"use strict";let a=n.r(6423);i.exports=(n,i,o,s,f)=>{"string"==typeof o&&(f=s,s=o,o=void 0);try{return new a(n instanceof a?n.version:n,o).inc(i,s,f).version}catch(n){return null}}},26285,(n,i,o)=>{"use strict";let a=n.r(76293);i.exports=(n,i)=>{let o=a(n,null,!0),s=a(i,null,!0),f=o.compare(s);if(0===f)return null;let u=f>0,c=u?o:s,l=u?s:o,h=!!c.prerelease.length;if(l.prerelease.length&&!h){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(c))return l.minor&&!l.patch?"minor":"patch"}let d=h?"pre":"";return o.major!==s.major?d+"major":o.minor!==s.minor?d+"minor":o.patch!==s.patch?d+"patch":"prerelease"}},56421,(n,i,o)=>{"use strict";let a=n.r(6423);i.exports=(n,i)=>new a(n,i).major},53246,(n,i,o)=>{"use strict";let a=n.r(6423);i.exports=(n,i)=>new a(n,i).minor},27315,(n,i,o)=>{"use strict";let a=n.r(6423);i.exports=(n,i)=>new a(n,i).patch},66415,(n,i,o)=>{"use strict";let a=n.r(76293);i.exports=(n,i)=>{let o=a(n,i);return o&&o.prerelease.length?o.prerelease:null}},41055,(n,i,o)=>{"use strict";let a=n.r(6423);i.exports=(n,i,o)=>new a(n,o).compare(new a(i,o))},92636,(n,i,o)=>{"use strict";let a=n.r(41055);i.exports=(n,i,o)=>a(i,n,o)},61990,(n,i,o)=>{"use strict";let a=n.r(41055);i.exports=(n,i)=>a(n,i,!0)},80458,(n,i,o)=>{"use strict";let a=n.r(6423);i.exports=(n,i,o)=>{let s=new a(n,o),f=new a(i,o);return s.compare(f)||s.compareBuild(f)}},25379,(n,i,o)=>{"use strict";let a=n.r(80458);i.exports=(n,i)=>n.sort((n,o)=>a(n,o,i))},49864,(n,i,o)=>{"use strict";let a=n.r(80458);i.exports=(n,i)=>n.sort((n,o)=>a(o,n,i))},9982,(n,i,o)=>{"use strict";let a=n.r(41055);i.exports=(n,i,o)=>a(n,i,o)>0},2416,(n,i,o)=>{"use strict";let a=n.r(41055);i.exports=(n,i,o)=>0>a(n,i,o)},74171,(n,i,o)=>{"use strict";let a=n.r(41055);i.exports=(n,i,o)=>0===a(n,i,o)},98042,(n,i,o)=>{"use strict";let a=n.r(41055);i.exports=(n,i,o)=>0!==a(n,i,o)},10712,(n,i,o)=>{"use strict";let a=n.r(41055);i.exports=(n,i,o)=>a(n,i,o)>=0},8696,(n,i,o)=>{"use strict";let a=n.r(41055);i.exports=(n,i,o)=>0>=a(n,i,o)},62813,(n,i,o)=>{"use strict";let a=n.r(74171),s=n.r(98042),f=n.r(9982),u=n.r(10712),c=n.r(2416),l=n.r(8696);i.exports=(n,i,o,h)=>{switch(i){case"===":return"object"==typeof n&&(n=n.version),"object"==typeof o&&(o=o.version),n===o;case"!==":return"object"==typeof n&&(n=n.version),"object"==typeof o&&(o=o.version),n!==o;case"":case"=":case"==":return a(n,o,h);case"!=":return s(n,o,h);case">":return f(n,o,h);case">=":return u(n,o,h);case"<":return c(n,o,h);case"<=":return l(n,o,h);default:throw TypeError(`Invalid operator: ${i}`)}}},26439,(n,i,o)=>{"use strict";let a=n.r(6423),s=n.r(76293),{safeRe:f,t:u}=n.r(25488);i.exports=(n,i)=>{if(n instanceof a)return n;if("number"==typeof n&&(n=String(n)),"string"!=typeof n)return null;let o=null;if((i=i||{}).rtl){let a,s=i.includePrerelease?f[u.COERCERTLFULL]:f[u.COERCERTL];for(;(a=s.exec(n))&&(!o||o.index+o[0].length!==n.length);)o&&a.index+a[0].length===o.index+o[0].length||(o=a),s.lastIndex=a.index+a[1].length+a[2].length;s.lastIndex=-1}else o=n.match(i.includePrerelease?f[u.COERCEFULL]:f[u.COERCE]);if(null===o)return null;let c=o[2],l=o[3]||"0",h=o[4]||"0",d=i.includePrerelease&&o[5]?`-${o[5]}`:"",p=i.includePrerelease&&o[6]?`+${o[6]}`:"";return s(`${c}.${l}.${h}${d}${p}`,i)}},65059,(n,i,o)=>{"use strict";let a=n.r(76293),s=n.r(46039),f=n.r(6423),u=(n,i)=>a(n instanceof f?n.version:n,i),c=(n,i)=>{if(l(i))return n.version;switch(n.prerelease=[],i){case"major":n.minor=0,n.patch=0;break;case"minor":n.patch=0}return n.format()},l=n=>n.startsWith("pre");i.exports=(n,i,o)=>{if(!s.RELEASE_TYPES.includes(i))return null;let a=u(n,o);return a&&c(a,i)}},24960,(n,i,o)=>{"use strict";class a{constructor(){this.max=1e3,this.map=new Map}get(n){let i=this.map.get(n);if(void 0!==i)return this.map.delete(n),this.map.set(n,i),i}delete(n){return this.map.delete(n)}set(n,i){if(!this.delete(n)&&void 0!==i){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(n,i)}return this}}i.exports=a},43639,(n,i,o)=>{"use strict";let a=/\s+/g;class s{constructor(n,i){if(i=u(i),n instanceof s)if(!!i.loose===n.loose&&!!i.includePrerelease===n.includePrerelease)return n;else return new s(n.raw,i);if(n instanceof c)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(a," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const n=this.set[0];if(this.set=this.set.filter(n=>!_(n[0])),0===this.set.length)this.set=[n];else if(this.set.length>1){for(const n of this.set)if(1===n.length&&E(n[0])){this.set=[n];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let n=0;n0&&(this.formatted+="||");let i=this.set[n];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=i[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(n){n=n.replace(x,"");let i=((this.options.includePrerelease&&v)|(this.options.loose&&w))+":"+n,o=f.get(i);if(o)return o;let a=this.options.loose,s=a?d[b.HYPHENRANGELOOSE]:d[b.HYPHENRANGE];l("hyphen replace",n=n.replace(s,L(this.options.includePrerelease))),l("comparator trim",n=n.replace(d[b.COMPARATORTRIM],y)),l("tilde trim",n=n.replace(d[b.TILDETRIM],m)),l("caret trim",n=n.replace(d[b.CARETTRIM],g));let u=n.split(" ").map(n=>M(n,this.options)).join(" ").split(/\s+/).map(n=>B(n,this.options));a&&(u=u.filter(n=>(l("loose invalid filter",n,this.options),!!n.match(d[b.COMPARATORLOOSE])))),l("range list",u);let h=new Map;for(let n of u.map(n=>new c(n,this.options))){if(_(n))return[n];h.set(n.value,n)}h.size>1&&h.has("")&&h.delete("");let p=[...h.values()];return f.set(i,p),p}intersects(n,i){if(!(n instanceof s))throw TypeError("a Range is required");return this.set.some(o=>S(o,i)&&n.set.some(n=>S(n,i)&&o.every(o=>n.every(n=>o.intersects(n,i)))))}test(n){if(!n)return!1;if("string"==typeof n)try{n=new h(n,this.options)}catch(n){return!1}for(let i=0;i"<0.0.0-0"===n.value,E=n=>""===n.value,S=(n,i)=>{let o=!0,a=n.slice(),s=a.pop();for(;o&&a.length;)o=a.every(n=>s.intersects(n,i)),s=a.pop();return o},M=(n,i)=>(l("comp",n=n.replace(d[b.BUILD],""),i),l("caret",n=j(n,i)),l("tildes",n=I(n,i)),l("xrange",n=O(n,i)),l("stars",n=P(n,i)),n),A=n=>!n||"x"===n.toLowerCase()||"*"===n,R=(n,i,o)=>A(n)&&!A(i)||A(i)&&o&&!A(o),I=(n,i)=>n.trim().split(/\s+/).map(n=>k(n,i)).join(" "),k=(n,i)=>{let o=i.loose?d[b.TILDELOOSE]:d[b.TILDE],a=i.includePrerelease?"-0":"";return n.replace(o,(i,o,s,f,u)=>{let c;return l("tilde",n,i,o,s,f,u),A(o)?c="":A(s)?c=`>=${o}.0.0${a} <${+o+1}.0.0-0`:A(f)?c=`>=${o}.${s}.0${a} <${o}.${+s+1}.0-0`:u?(l("replaceTilde pr",u),c=`>=${o}.${s}.${f}-${u} <${o}.${+s+1}.0-0`):c=`>=${o}.${s}.${f} <${o}.${+s+1}.0-0`,l("tilde return",c),c})},j=(n,i)=>n.trim().split(/\s+/).map(n=>T(n,i)).join(" "),T=(n,i)=>{l("caret",n,i);let o=i.loose?d[b.CARETLOOSE]:d[b.CARET],a=i.includePrerelease?"-0":"";return n.replace(o,(i,o,s,f,u)=>{let c;return l("caret",n,i,o,s,f,u),A(o)?c="":A(s)?c=`>=${o}.0.0${a} <${+o+1}.0.0-0`:A(f)?c="0"===o?`>=${o}.${s}.0${a} <${o}.${+s+1}.0-0`:`>=${o}.${s}.0${a} <${+o+1}.0.0-0`:u?(l("replaceCaret pr",u),c="0"===o?"0"===s?`>=${o}.${s}.${f}-${u} <${o}.${s}.${+f+1}-0`:`>=${o}.${s}.${f}-${u} <${o}.${+s+1}.0-0`:`>=${o}.${s}.${f}-${u} <${+o+1}.0.0-0`):(l("no pr"),c="0"===o?"0"===s?`>=${o}.${s}.${f} <${o}.${s}.${+f+1}-0`:`>=${o}.${s}.${f} <${o}.${+s+1}.0-0`:`>=${o}.${s}.${f} <${+o+1}.0.0-0`),l("caret return",c),c})},O=(n,i)=>(l("replaceXRanges",n,i),n.split(/\s+/).map(n=>N(n,i)).join(" ")),N=(n,i)=>{n=n.trim();let o=i.loose?d[b.XRANGELOOSE]:d[b.XRANGE];return n.replace(o,(o,a,s,f,u,c)=>{if(l("xRange",n,o,a,s,f,u,c),R(s,f,u))return n;let h=A(s),d=h||A(f),p=d||A(u),b=p;return"="===a&&b&&(a=""),c=i.includePrerelease?"-0":"",h?o=">"===a||"<"===a?"<0.0.0-0":"*":a&&b?(d&&(f=0),u=0,">"===a?(a=">=",d?(s=+s+1,f=0):f=+f+1,u=0):"<="===a&&(a="<",d?s=+s+1:f=+f+1),"<"===a&&(c="-0"),o=`${a+s}.${f}.${u}${c}`):d?o=`>=${s}.0.0${c} <${+s+1}.0.0-0`:p&&(o=`>=${s}.${f}.0${c} <${s}.${+f+1}.0-0`),l("xRange return",o),o})},P=(n,i)=>(l("replaceStars",n,i),n.trim().replace(d[b.STAR],"")),B=(n,i)=>(l("replaceGTE0",n,i),n.trim().replace(d[i.includePrerelease?b.GTE0PRE:b.GTE0],"")),L=n=>(i,o,a,s,f,u,c,l,h,d,p,b)=>(o=A(a)?"":A(s)?`>=${a}.0.0${n?"-0":""}`:A(f)?`>=${a}.${s}.0${n?"-0":""}`:u?`>=${o}`:`>=${o}${n?"-0":""}`,l=A(h)?"":A(d)?`<${+h+1}.0.0-0`:A(p)?`<${h}.${+d+1}.0-0`:b?`<=${h}.${d}.${p}-${b}`:n?`<${h}.${d}.${+p+1}-0`:`<=${l}`,`${o} ${l}`.trim()),C=(n,i,o)=>{for(let o=0;o0){let a=n[o].semver;if(a.major===i.major&&a.minor===i.minor&&a.patch===i.patch)return!0}return!1}return!0}},48953,(n,i,o)=>{"use strict";let a=Symbol("SemVer ANY");class s{static get ANY(){return a}constructor(n,i){if(i=f(i),n instanceof s)if(!!i.loose===n.loose)return n;else n=n.value;h("comparator",n=n.trim().split(/\s+/).join(" "),i),this.options=i,this.loose=!!i.loose,this.parse(n),this.semver===a?this.value="":this.value=this.operator+this.semver.version,h("comp",this)}parse(n){let i=this.options.loose?u[c.COMPARATORLOOSE]:u[c.COMPARATOR],o=n.match(i);if(!o)throw TypeError(`Invalid comparator: ${n}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new d(o[2],this.options.loose):this.semver=a}toString(){return this.value}test(n){if(h("Comparator.test",n,this.options.loose),this.semver===a||n===a)return!0;if("string"==typeof n)try{n=new d(n,this.options)}catch(n){return!1}return l(n,this.operator,this.semver,this.options)}intersects(n,i){if(!(n instanceof s))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(n.value,i).test(this.value):""===n.operator?""===n.value||new p(this.value,i).test(n.semver):!((i=f(i)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===n.value)||!i.includePrerelease&&(this.value.startsWith("<0.0.0")||n.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&n.operator.startsWith(">")||this.operator.startsWith("<")&&n.operator.startsWith("<")||this.semver.version===n.semver.version&&this.operator.includes("=")&&n.operator.includes("=")||l(this.semver,"<",n.semver,i)&&this.operator.startsWith(">")&&n.operator.startsWith("<")||l(this.semver,">",n.semver,i)&&this.operator.startsWith("<")&&n.operator.startsWith(">"))}}i.exports=s;let f=n.r(52145),{safeRe:u,t:c}=n.r(25488),l=n.r(62813),h=n.r(9201),d=n.r(6423),p=n.r(43639)},47509,(n,i,o)=>{"use strict";let a=n.r(43639);i.exports=(n,i,o)=>{try{i=new a(i,o)}catch(n){return!1}return i.test(n)}},21130,(n,i,o)=>{"use strict";let a=n.r(43639);i.exports=(n,i)=>new a(n,i).set.map(n=>n.map(n=>n.value).join(" ").trim().split(" "))},89609,(n,i,o)=>{"use strict";let a=n.r(6423),s=n.r(43639);i.exports=(n,i,o)=>{let f=null,u=null,c=null;try{c=new s(i,o)}catch(n){return null}return n.forEach(n=>{c.test(n)&&(!f||-1===u.compare(n))&&(u=new a(f=n,o))}),f}},78338,(n,i,o)=>{"use strict";let a=n.r(6423),s=n.r(43639);i.exports=(n,i,o)=>{let f=null,u=null,c=null;try{c=new s(i,o)}catch(n){return null}return n.forEach(n=>{c.test(n)&&(!f||1===u.compare(n))&&(u=new a(f=n,o))}),f}},37468,(n,i,o)=>{"use strict";let a=n.r(6423),s=n.r(43639),f=n.r(9982);i.exports=(n,i)=>{n=new s(n,i);let o=new a("0.0.0");if(n.test(o)||(o=new a("0.0.0-0"),n.test(o)))return o;o=null;for(let i=0;i{let i=new a(n.semver.version);switch(n.operator){case">":0===i.prerelease.length?i.patch++:i.prerelease.push(0),i.raw=i.format();case"":case">=":(!u||f(i,u))&&(u=i);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${n.operator}`)}}),u&&(!o||f(o,u))&&(o=u)}return o&&n.test(o)?o:null}},75337,(n,i,o)=>{"use strict";let a=n.r(43639);i.exports=(n,i)=>{try{return new a(n,i).range||"*"}catch(n){return null}}},72781,(n,i,o)=>{"use strict";let a=n.r(6423),s=n.r(48953),{ANY:f}=s,u=n.r(43639),c=n.r(47509),l=n.r(9982),h=n.r(2416),d=n.r(8696),p=n.r(10712);i.exports=(n,i,o,b)=>{let y,m,g,v,w;switch(n=new a(n,b),i=new u(i,b),o){case">":y=l,m=d,g=h,v=">",w=">=";break;case"<":y=h,m=p,g=l,v="<",w="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(c(n,i,b))return!1;for(let o=0;o{n.semver===f&&(n=new s(">=0.0.0")),u=u||n,c=c||n,y(n.semver,u.semver,b)?u=n:g(n.semver,c.semver,b)&&(c=n)}),u.operator===v||u.operator===w||(!c.operator||c.operator===v)&&m(n,c.semver)||c.operator===w&&g(n,c.semver))return!1}return!0}},26539,(n,i,o)=>{"use strict";let a=n.r(72781);i.exports=(n,i,o)=>a(n,i,">",o)},16638,(n,i,o)=>{"use strict";let a=n.r(72781);i.exports=(n,i,o)=>a(n,i,"<",o)},97071,(n,i,o)=>{"use strict";let a=n.r(43639);i.exports=(n,i,o)=>(n=new a(n,o),i=new a(i,o),n.intersects(i,o))},13782,(n,i,o)=>{"use strict";let a=n.r(47509),s=n.r(41055);i.exports=(n,i,o)=>{let f=[],u=null,c=null,l=n.sort((n,i)=>s(n,i,o));for(let n of l)a(n,i,o)?(c=n,u||(u=n)):(c&&f.push([u,c]),c=null,u=null);u&&f.push([u,null]);let h=[];for(let[n,i]of f)n===i?h.push(n):i||n!==l[0]?i?n===l[0]?h.push(`<=${i}`):h.push(`${n} - ${i}`):h.push(`>=${n}`):h.push("*");let d=h.join(" || "),p="string"==typeof i.raw?i.raw:String(i);return d.length{"use strict";let a=n.r(43639),s=n.r(48953),{ANY:f}=s,u=n.r(47509),c=n.r(41055),l=(n,i,o={})=>{if(n===i)return!0;n=new a(n,o),i=new a(i,o);let s=!1;e:for(let a of n.set){for(let n of i.set){let i=p(a,n,o);if(s=s||null!==i,i)continue e}if(s)return!1}return!0},h=[new s(">=0.0.0-0")],d=[new s(">=0.0.0")],p=(n,i,o)=>{let a,s,l,p,m,g,v;if(n===i)return!0;if(1===n.length&&n[0].semver===f)if(1===i.length&&i[0].semver===f)return!0;else n=o.includePrerelease?h:d;if(1===i.length&&i[0].semver===f)if(o.includePrerelease)return!0;else i=d;let w=new Set;for(let i of n)">"===i.operator||">="===i.operator?a=b(a,i,o):"<"===i.operator||"<="===i.operator?s=y(s,i,o):w.add(i.semver);if(w.size>1)return null;if(a&&s&&((l=c(a.semver,s.semver,o))>0||0===l&&(">="!==a.operator||"<="!==s.operator)))return null;for(let n of w){if(a&&!u(n,String(a),o)||s&&!u(n,String(s),o))return null;for(let a of i)if(!u(n,String(a),o))return!1;return!0}let x=!!s&&!o.includePrerelease&&!!s.semver.prerelease.length&&s.semver,_=!!a&&!o.includePrerelease&&!!a.semver.prerelease.length&&a.semver;for(let n of(x&&1===x.prerelease.length&&"<"===s.operator&&0===x.prerelease[0]&&(x=!1),i)){if(v=v||">"===n.operator||">="===n.operator,g=g||"<"===n.operator||"<="===n.operator,a){if(_&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===_.major&&n.semver.minor===_.minor&&n.semver.patch===_.patch&&(_=!1),">"===n.operator||">="===n.operator){if((p=b(a,n,o))===n&&p!==a)return!1}else if(">="===a.operator&&!n.test(a.semver))return!1}if(s){if(x&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===x.major&&n.semver.minor===x.minor&&n.semver.patch===x.patch&&(x=!1),"<"===n.operator||"<="===n.operator){if((m=y(s,n,o))===n&&m!==s)return!1}else if("<="===s.operator&&!n.test(s.semver))return!1}if(!n.operator&&(s||a)&&0!==l)return!1}return(!a||!g||!!s||0===l)&&(!s||!v||!!a||0===l)&&!_&&!x&&!0},b=(n,i,o)=>{if(!n)return i;let a=c(n.semver,i.semver,o);return a>0?n:a<0||">"===i.operator&&">="===n.operator?i:n},y=(n,i,o)=>{if(!n)return i;let a=c(n.semver,i.semver,o);return a<0?n:a>0||"<"===i.operator&&"<="===n.operator?i:n};i.exports=l},8528,(n,i,o)=>{"use strict";let a=n.r(25488),s=n.r(46039),f=n.r(6423),u=n.r(19549),c=n.r(76293),l=n.r(82880),h=n.r(89624),d=n.r(64894),p=n.r(26285),b=n.r(56421),y=n.r(53246),m=n.r(27315),g=n.r(66415),v=n.r(41055),w=n.r(92636),x=n.r(61990),_=n.r(80458),E=n.r(25379),S=n.r(49864),M=n.r(9982),A=n.r(2416),R=n.r(74171),I=n.r(98042),k=n.r(10712),j=n.r(8696),T=n.r(62813),O=n.r(26439),N=n.r(65059),P=n.r(48953),B=n.r(43639),L=n.r(47509),C=n.r(21130),D=n.r(89609),U=n.r(78338),$=n.r(37468),F=n.r(75337),z=n.r(72781),q=n.r(26539),H=n.r(16638),W=n.r(97071);i.exports={parse:c,valid:l,clean:h,inc:d,diff:p,major:b,minor:y,patch:m,prerelease:g,compare:v,rcompare:w,compareLoose:x,compareBuild:_,sort:E,rsort:S,gt:M,lt:A,eq:R,neq:I,gte:k,lte:j,cmp:T,coerce:O,truncate:N,Comparator:P,Range:B,satisfies:L,toComparators:C,maxSatisfying:D,minSatisfying:U,minVersion:$,validRange:F,outside:z,gtr:q,ltr:H,intersects:W,simplifyRange:n.r(13782),subset:n.r(53877),SemVer:f,re:a.re,src:a.src,tokens:a.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:u.compareIdentifiers,rcompareIdentifiers:u.rcompareIdentifiers}},61274,(n,i,o)=>{var a=n.i(47167);i.exports=n.r(8528).satisfies(a.default.version,">=15.7.0")},12036,(n,i,o)=>{var a=n.i(47167);i.exports=n.r(8528).satisfies(a.default.version,">=16.9.0")},76489,(n,i,o)=>{let a=n.r(61274),s=n.r(12036),f={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},u={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};i.exports=function(n,i){if(!n||!i)return;let o=i.asymmetricKeyType;if(!o)return;let c=f[o];if(!c)throw Error(`Unknown key type "${o}".`);if(!c.includes(n))throw Error(`"alg" parameter for "${o}" key type must be one of: ${c.join(", ")}.`);if(a)switch(o){case"ec":let l=i.asymmetricKeyDetails.namedCurve,h=u[n];if(l!==h)throw Error(`"alg" parameter "${n}" requires curve "${h}".`);break;case"rsa-pss":if(s){let o=parseInt(n.slice(-3),10),{hashAlgorithm:a,mgf1HashAlgorithm:s,saltLength:f}=i.asymmetricKeyDetails;if(a!==`sha${o}`||s!==a)throw Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${n}.`);if(void 0!==f&&f>o>>3)throw Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${n}.`)}}}},18421,(n,i,o)=>{var a=n.i(47167);i.exports=n.r(8528).satisfies(a.default.version,"^6.12.0 || >=8.0.0")},16493,(n,i,o)=>{var a=n.i(67034);let s=n.r(80537),f=n.r(34100),u=n.r(59261),c=n.r(39420),l=n.r(65981),h=n.r(76489),d=n.r(18421),p=n.r(72919),{KeyObject:b,createSecretKey:y,createPublicKey:m}=n.r(86914),g=["RS256","RS384","RS512"],v=["ES256","ES384","ES512"],w=["RS256","RS384","RS512"],x=["HS256","HS384","HS512"];d&&(g.splice(g.length,0,"PS256","PS384","PS512"),w.splice(w.length,0,"PS256","PS384","PS512")),i.exports=function(n,i,o,d){let _,E,S;if("function"!=typeof o||d||(d=o,o={}),o||(o={}),o=Object.assign({},o),_=d||function(n,i){if(n)throw n;return i},o.clockTimestamp&&"number"!=typeof o.clockTimestamp)return _(new s("clockTimestamp must be a number"));if(void 0!==o.nonce&&("string"!=typeof o.nonce||""===o.nonce.trim()))return _(new s("nonce must be a non-empty string"));if(void 0!==o.allowInvalidAsymmetricKeyTypes&&"boolean"!=typeof o.allowInvalidAsymmetricKeyTypes)return _(new s("allowInvalidAsymmetricKeyTypes must be a boolean"));let M=o.clockTimestamp||Math.floor(Date.now()/1e3);if(!n)return _(new s("jwt must be provided"));if("string"!=typeof n)return _(new s("jwt must be a string"));let A=n.split(".");if(3!==A.length)return _(new s("jwt malformed"));try{E=c(n,{complete:!0})}catch(n){return _(n)}if(!E)return _(new s("invalid token"));let R=E.header;if("function"==typeof i){if(!d)return _(new s("verify must be called asynchronous if secret or public key is provided as a callback"));S=i}else S=function(n,o){return o(null,i)};return S(R,function(i,c){let d;if(i)return _(new s("error in secret or public key callback: "+i.message));let S=""!==A[2].trim();if(!S&&c)return _(new s("jwt signature is required"));if(S&&!c)return _(new s("secret or public key must be provided"));if(!S&&!o.algorithms)return _(new s('please specify "none" in "algorithms" to verify unsigned tokens'));if(null!=c&&!(c instanceof b))try{c=m(c)}catch(n){try{c=y("string"==typeof c?a.Buffer.from(c):c)}catch(n){return _(new s("secretOrPublicKey is not valid key material"))}}if(o.algorithms||("secret"===c.type?o.algorithms=x:["rsa","rsa-pss"].includes(c.asymmetricKeyType)?o.algorithms=w:"ec"===c.asymmetricKeyType?o.algorithms=v:o.algorithms=g),-1===o.algorithms.indexOf(E.header.alg))return _(new s("invalid algorithm"));if(R.alg.startsWith("HS")&&"secret"!==c.type)return _(new s(`secretOrPublicKey must be a symmetric key when using ${R.alg}`));if(/^(?:RS|PS|ES)/.test(R.alg)&&"public"!==c.type)return _(new s(`secretOrPublicKey must be an asymmetric key when using ${R.alg}`));if(!o.allowInvalidAsymmetricKeyTypes)try{h(R.alg,c)}catch(n){return _(n)}try{d=p.verify(n,E.header.alg,c)}catch(n){return _(n)}if(!d)return _(new s("invalid signature"));let I=E.payload;if(void 0!==I.nbf&&!o.ignoreNotBefore){if("number"!=typeof I.nbf)return _(new s("invalid nbf value"));if(I.nbf>M+(o.clockTolerance||0))return _(new f("jwt not active",new Date(1e3*I.nbf)))}if(void 0!==I.exp&&!o.ignoreExpiration){if("number"!=typeof I.exp)return _(new s("invalid exp value"));if(M>=I.exp+(o.clockTolerance||0))return _(new u("jwt expired",new Date(1e3*I.exp)))}if(o.audience){let n=Array.isArray(o.audience)?o.audience:[o.audience];if(!(Array.isArray(I.aud)?I.aud:[I.aud]).some(function(i){return n.some(function(n){return n instanceof RegExp?n.test(i):n===i})}))return _(new s("jwt audience invalid. expected: "+n.join(" or ")))}if(o.issuer&&("string"==typeof o.issuer&&I.iss!==o.issuer||Array.isArray(o.issuer)&&-1===o.issuer.indexOf(I.iss)))return _(new s("jwt issuer invalid. expected: "+o.issuer));if(o.subject&&I.sub!==o.subject)return _(new s("jwt subject invalid. expected: "+o.subject));if(o.jwtid&&I.jti!==o.jwtid)return _(new s("jwt jwtid invalid. expected: "+o.jwtid));if(o.nonce&&I.nonce!==o.nonce)return _(new s("jwt nonce invalid. expected: "+o.nonce));if(o.maxAge){if("number"!=typeof I.iat)return _(new s("iat required when maxAge is specified"));let n=l(o.maxAge,I.iat);if(void 0===n)return _(new s('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(M>=n+(o.clockTolerance||0))return _(new u("maxAge exceeded",new Date(1e3*n)))}return!0===o.complete?_(null,{header:R,payload:I,signature:E.signature}):_(null,I)})}},45505,(n,i,o)=>{var a=1/0,s=0x1fffffffffffff,f=17976931348623157e292,u=0/0,c="[object Arguments]",l="[object Function]",h="[object GeneratorFunction]",d="[object String]",p="[object Symbol]",b=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,g=/^0o[0-7]+$/i,v=/^(?:0|[1-9]\d*)$/,w=parseInt;function x(n,i){for(var o=-1,a=n?n.length:0,s=Array(a);++o-1&&n%1==0&&n-1&&n%1==0&&n<=s}function H(n){var i=typeof n;return!!n&&("object"==i||"function"==i)}function W(n){return!!n&&"object"==typeof n}function K(n){return"string"==typeof n||!U(n)&&W(n)&&j.call(n)==d}function G(n){return"symbol"==typeof n||W(n)&&j.call(n)==p}function V(n){return n?(n=X(n))===a||n===-a?(n<0?-1:1)*f:n==n?n:0:0===n?n:0}function Y(n){var i=V(n),o=i%1;return i==i?o?i-o:i:0}function X(n){if("number"==typeof n)return n;if(G(n))return u;if(H(n)){var i="function"==typeof n.valueOf?n.valueOf():n;n=H(i)?i+"":i}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(b,"");var o=m.test(n);return o||g.test(n)?w(n.slice(2),o?2:8):y.test(n)?u:+n}function J(n){return $(n)?P(n):B(n)}function Z(n){return n?A(n,J(n)):[]}i.exports=function(n,i,o,a){n=$(n)?n:Z(n),o=o&&!a?Y(o):0;var s=n.length;return o<0&&(o=N(s+o,0)),K(n)?o<=s&&n.indexOf(i,o)>-1:!!s&&E(n,i,o)>-1}},8618,(n,i,o)=>{var a="[object Boolean]",s=Object.prototype.toString;function f(n){return!!n&&"object"==typeof n}i.exports=function(n){return!0===n||!1===n||f(n)&&s.call(n)==a}},11981,(n,i,o)=>{var a=1/0,s=17976931348623157e292,f=0/0,u="[object Symbol]",c=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,d=/^0o[0-7]+$/i,p=parseInt,b=Object.prototype.toString;function y(n){var i=typeof n;return!!n&&("object"==i||"function"==i)}function m(n){return!!n&&"object"==typeof n}function g(n){return"symbol"==typeof n||m(n)&&b.call(n)==u}function v(n){return n?(n=x(n))===a||n===-a?(n<0?-1:1)*s:n==n?n:0:0===n?n:0}function w(n){var i=v(n),o=i%1;return i==i?o?i-o:i:0}function x(n){if("number"==typeof n)return n;if(g(n))return f;if(y(n)){var i="function"==typeof n.valueOf?n.valueOf():n;n=y(i)?i+"":i}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(c,"");var o=h.test(n);return o||d.test(n)?p(n.slice(2),o?2:8):l.test(n)?f:+n}i.exports=function(n){return"number"==typeof n&&n==w(n)}},51523,(n,i,o)=>{var a="[object Number]",s=Object.prototype.toString;function f(n){return!!n&&"object"==typeof n}i.exports=function(n){return"number"==typeof n||f(n)&&s.call(n)==a}},94425,(n,i,o)=>{var a="[object Object]";function s(n){var i=!1;if(null!=n&&"function"!=typeof n.toString)try{i=!!(n+"")}catch(n){}return i}function f(n,i){return function(o){return n(i(o))}}var u=Object.prototype,c=Function.prototype.toString,l=u.hasOwnProperty,h=c.call(Object),d=u.toString,p=f(Object.getPrototypeOf,Object);function b(n){return!!n&&"object"==typeof n}i.exports=function(n){if(!b(n)||d.call(n)!=a||s(n))return!1;var i=p(n);if(null===i)return!0;var o=l.call(i,"constructor")&&i.constructor;return"function"==typeof o&&o instanceof o&&c.call(o)==h}},23139,(n,i,o)=>{var a="[object String]",s=Object.prototype.toString,f=Array.isArray;function u(n){return!!n&&"object"==typeof n}i.exports=function(n){return"string"==typeof n||!f(n)&&u(n)&&s.call(n)==a}},62976,(n,i,o)=>{var a="Expected a function",s=1/0,f=17976931348623157e292,u=0/0,c="[object Symbol]",l=/^\s+|\s+$/g,h=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,b=parseInt,y=Object.prototype.toString;function m(n,i){var o;if("function"!=typeof i)throw TypeError(a);return n=_(n),function(){return--n>0&&(o=i.apply(this,arguments)),n<=1&&(i=void 0),o}}function g(n){var i=typeof n;return!!n&&("object"==i||"function"==i)}function v(n){return!!n&&"object"==typeof n}function w(n){return"symbol"==typeof n||v(n)&&y.call(n)==c}function x(n){return n?(n=E(n))===s||n===-s?(n<0?-1:1)*f:n==n?n:0:0===n?n:0}function _(n){var i=x(n),o=i%1;return i==i?o?i-o:i:0}function E(n){if("number"==typeof n)return n;if(w(n))return u;if(g(n)){var i="function"==typeof n.valueOf?n.valueOf():n;n=g(i)?i+"":i}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(l,"");var o=d.test(n);return o||p.test(n)?b(n.slice(2),o?2:8):h.test(n)?u:+n}i.exports=function(n){return m(2,n)}},28316,(n,i,o)=>{var a=n.i(67034);let s=n.r(65981),f=n.r(18421),u=n.r(76489),c=n.r(72919),l=n.r(45505),h=n.r(8618),d=n.r(11981),p=n.r(51523),b=n.r(94425),y=n.r(23139),m=n.r(62976),{KeyObject:g,createSecretKey:v,createPrivateKey:w}=n.r(86914),x=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];f&&x.splice(3,0,"PS256","PS384","PS512");let _={expiresIn:{isValid:function(n){return d(n)||y(n)&&n},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(n){return d(n)||y(n)&&n},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(n){return y(n)||Array.isArray(n)},message:'"audience" must be a string or array'},algorithm:{isValid:l.bind(null,x),message:'"algorithm" must be a valid string enum value'},header:{isValid:b,message:'"header" must be an object'},encoding:{isValid:y,message:'"encoding" must be a string'},issuer:{isValid:y,message:'"issuer" must be a string'},subject:{isValid:y,message:'"subject" must be a string'},jwtid:{isValid:y,message:'"jwtid" must be a string'},noTimestamp:{isValid:h,message:'"noTimestamp" must be a boolean'},keyid:{isValid:y,message:'"keyid" must be a string'},mutatePayload:{isValid:h,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:h,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:h,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},E={iat:{isValid:p,message:'"iat" should be a number of seconds'},exp:{isValid:p,message:'"exp" should be a number of seconds'},nbf:{isValid:p,message:'"nbf" should be a number of seconds'}};function S(n,i,o,a){if(!b(o))throw Error('Expected "'+a+'" to be a plain object.');Object.keys(o).forEach(function(s){let f=n[s];if(!f){if(!i)throw Error('"'+s+'" is not allowed in "'+a+'"');return}if(!f.isValid(o[s]))throw Error(f.message)})}function M(n){return S(_,!1,n,"options")}function A(n){return S(E,!0,n,"payload")}let R={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},I=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];i.exports=function(n,i,o,f){"function"==typeof o?(f=o,o={}):o=o||{};let l="object"==typeof n&&!a.Buffer.isBuffer(n),h=Object.assign({alg:o.algorithm||"HS256",typ:l?"JWT":void 0,kid:o.keyid},o.header);function d(n){if(f)return f(n);throw n}if(!i&&"none"!==o.algorithm)return d(Error("secretOrPrivateKey must have a value"));if(null!=i&&!(i instanceof g))try{i=w(i)}catch(n){try{i=v("string"==typeof i?a.Buffer.from(i):i)}catch(n){return d(Error("secretOrPrivateKey is not valid key material"))}}if(h.alg.startsWith("HS")&&"secret"!==i.type)return d(Error(`secretOrPrivateKey must be a symmetric key when using ${h.alg}`));if(/^(?:RS|PS|ES)/.test(h.alg)){if("private"!==i.type)return d(Error(`secretOrPrivateKey must be an asymmetric key when using ${h.alg}`));if(!o.allowInsecureKeySizes&&!h.alg.startsWith("ES")&&void 0!==i.asymmetricKeyDetails&&i.asymmetricKeyDetails.modulusLength<2048)return d(Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${h.alg}`))}if(void 0===n)return d(Error("payload is required"));if(l){try{A(n)}catch(n){return d(n)}o.mutatePayload||(n=Object.assign({},n))}else{let i=I.filter(function(n){return void 0!==o[n]});if(i.length>0)return d(Error("invalid "+i.join(",")+" option for "+typeof n+" payload"))}if(void 0!==n.exp&&void 0!==o.expiresIn)return d(Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(void 0!==n.nbf&&void 0!==o.notBefore)return d(Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{M(o)}catch(n){return d(n)}if(!o.allowInvalidAsymmetricKeyTypes)try{u(h.alg,i)}catch(n){return d(n)}let p=n.iat||Math.floor(Date.now()/1e3);if(o.noTimestamp?delete n.iat:l&&(n.iat=p),void 0!==o.notBefore){try{n.nbf=s(o.notBefore,p)}catch(n){return d(n)}if(void 0===n.nbf)return d(Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(void 0!==o.expiresIn&&"object"==typeof n){try{n.exp=s(o.expiresIn,p)}catch(n){return d(n)}if(void 0===n.exp)return d(Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(R).forEach(function(i){let a=R[i];if(void 0!==o[i]){if(void 0!==n[a])return d(Error('Bad "options.'+i+'" option. The payload already has an "'+a+'" property.'));n[a]=o[i]}});let b=o.encoding||"utf8";if("function"==typeof f)f=f&&m(f),c.createSign({header:h,privateKey:i,payload:n,encoding:b}).once("error",f).once("done",function(n){if(!o.allowInsecureKeySizes&&/^(?:RS|PS)/.test(h.alg)&&n.length<256)return f(Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${h.alg}`));f(null,n)});else{let a=c.sign({header:h,payload:n,secret:i,encoding:b});if(!o.allowInsecureKeySizes&&/^(?:RS|PS)/.test(h.alg)&&a.length<256)throw Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${h.alg}`);return a}}},1952,(n,i,o)=>{i.exports={decode:n.r(39420),verify:n.r(16493),sign:n.r(28316),JsonWebTokenError:n.r(80537),NotBeforeError:n.r(34100),TokenExpiredError:n.r(59261)}},7670,n=>{"use strict";function i(n){var o,a,s="";if("string"==typeof n||"number"==typeof n)s+=n;else if("object"==typeof n)if(Array.isArray(n)){var f=n.length;for(o=0;o{"use strict";let i,o,a="function"==typeof Symbol?Symbol():"_split",s,f=()=>s||R.register(window.gsap),u="u">typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,c=n=>n?"string"==typeof n?c(document.querySelectorAll(n)):"length"in n?Array.from(n).reduce((n,i)=>("string"==typeof i?n.push(...c(i)):n.push(i),n),[]):[n]:[],l=n=>c(n).filter(n=>n&&1===n.nodeType),h=[],d=function(){},p={add:n=>n()},b=/\s+/g,y=RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),m={left:0,top:0,width:0,height:0},g=(n,i)=>{for(;++i{n.innerHTML=i,o?n.setAttribute("aria-label",o):n.removeAttribute("aria-label"),a?n.setAttribute("aria-hidden",a):n.removeAttribute("aria-hidden")},w=(n,i)=>{if(i){let o=new Set(n.join("").match(i)||h),a=n.length,s,f,u,c;if(o.size){for(;--a>-1;)for(u of(f=n[a],o))if(u.startsWith(f)&&u.length>f.length){for(s=0,c=f;u.startsWith(c+=n[a+ ++s])&&c.length"inline"===window.getComputedStyle(n).display&&(n.style.display="inline-block"),_=(n,i,o)=>i.insertBefore("string"==typeof n?document.createTextNode(n):n,o),E=(n,i,o)=>{let a=i[n+"sClass"]||"",{tag:s="div",aria:f="auto",propIndex:u=!1}=i,c="line"===n?"block":"inline-block",l=a.indexOf("++")>-1,h=i=>{let h=document.createElement(s),d=o.length+1;return a&&(h.className=a+(l?" "+a+d:"")),u&&h.style.setProperty("--"+n,d+""),"none"!==f&&h.setAttribute("aria-hidden","true"),"span"!==s&&(h.style.position="relative",h.style.display=c),h.textContent=i,o.push(h),h};return l&&(a=a.replace("++","")),h.collection=o,h},S=(n,i,o,a)=>{let s=E("line",o,a),f=window.getComputedStyle(n).textAlign||"left";return(o,a)=>{let u=s("");for(u.style.textAlign=f,n.insertBefore(u,i[o]);o{var y;let m=Array.from(n.childNodes),g=0,{wordDelimiter:v,reduceWhiteSpace:E=!0,prepareText:S}=i,A=n.getBoundingClientRect(),R=A,I=!E&&"pre"===window.getComputedStyle(n).whiteSpace.substring(0,3),k=0,j=o.collection,T,O,N,P,B,L,C,D,U,$,F,z,q,H,W,K,G,V;for("object"==typeof v?(N=v.delimiter||v,O=v.replaceWith||""):O=""===v?"":v||" ",T=" "!==O;g-1?(L=j[j.length-1]).appendChild(document.createTextNode(a?"":K)):(_(L=o(a?"":K),n,P),k&&1===U&&!C&&L.insertBefore(k,L.firstChild)),a)for(F=u?w([...u.segment(K)].map(n=>n.segment),d):K.match(l)||h,V=0;VR.top&&$.left<=R.left){for(z=n.cloneNode(),q=n.childNodes[0];q&&q!==L;)H=q,q=q.nextSibling,z.appendChild(H);n.parentNode.insertBefore(z,n),s&&x(z)}R=$}(U=B.length?" ":T&&" "===K.slice(-1)?" "+O:O,n,P)}else _(O,n,P);n.removeChild(P),k=0}else 1===P.nodeType&&(c&&c.indexOf(P)>-1?(j.indexOf(P.previousSibling)>-1&&j[j.length-1].appendChild(P),k=P):(M(P,i,o,a,s,f,c,l,d,!0),k=0),s&&x(P))},A=class n{constructor(n,i){this.isSplit=!1,f(),this.elements=l(n),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=i,this.elements.forEach(n=>{var o;!1!==i.overwrite&&(null==(o=n[a])||o._data.orig.filter(({element:i})=>i===n).forEach(v)),n[a]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let o=[],s,u=()=>{let n=o.length,i;for(;n--;){let a=(i=o[n]).element.offsetWidth;if(a!==i.width){i.width=a,this._split();return}}};this._data={orig:o,obs:"u">typeof ResizeObserver&&new ResizeObserver(()=>{clearTimeout(s),s=setTimeout(u,200)})},d(this),this.split(i)}split(n){return(this._ctx||p).add(()=>{this.isSplit&&this.revert(),this.vars=n=n||this.vars||{};let{type:i="chars,words,lines",aria:a="auto",deepSlice:s=!0,smartWrap:f,onSplit:u,autoSplit:h=!1,specialChars:d,mask:p}=this.vars,b=i.indexOf("lines")>-1,v=i.indexOf("chars")>-1,w=i.indexOf("words")>-1,x=v&&!w&&!b,_=d&&("push"in d?RegExp("(?:"+d.join("|")+")","gu"):d),A=_?RegExp(_.source+"|"+y.source,"gu"):y,R=!!n.ignore&&l(n.ignore),{orig:I,animTime:k,obs:j}=this._data,T;(v||w||b)&&(this.elements.forEach((i,o)=>{I[o]={element:i,html:i.innerHTML,ariaL:i.getAttribute("aria-label"),ariaH:i.getAttribute("aria-hidden")},"auto"===a?i.setAttribute("aria-label",(i.textContent||"").trim()):"hidden"===a&&i.setAttribute("aria-hidden","true");let u=[],l=[],h=[],d=v?E("char",n,u):null,p=E("word",n,l),y,k,j,T;if(M(i,n,p,d,x,s&&(b||x),R,A,_,!1),b){let o=c(i.childNodes),a=S(i,o,n,h),s,f=[],u=0,l=o.map(n=>1===n.nodeType?n.getBoundingClientRect():m),d=m,p;for(y=0;yd.top&&p.left{var i;return null==(i=n.parentNode)?void 0:i.removeChild(n)})}if(!w){for(y=0;y{let i=n.cloneNode();return n.replaceWith(i),i.appendChild(n),n.className&&(i.className=n.className.trim().split(" ").map(n=>n+"-mask").join(" ")),i.style.overflow="clip",i}))),this.isSplit=!0,o&&b&&h&&o.addEventListener("loadingdone",this._split),(T=u&&u(this))&&T.totalTime&&(this._data.anim=k?T.totalTime(k):T),b&&h&&this.elements.forEach((n,i)=>{I[i].width=n.offsetWidth,j&&j.observe(n)})}),this}kill(){let{obs:n}=this._data;n&&n.disconnect(),null==o||o.removeEventListener("loadingdone",this._split)}revert(){var n,i;if(this.isSplit){let{orig:o,anim:a}=this._data;this.kill(),o.forEach(v),this.chars.length=this.words.length=this.lines.length=o.length=this.masks.length=0,this.isSplit=!1,a&&(this._data.animTime=a.totalTime(),a.revert()),null==(i=(n=this.vars).onRevert)||i.call(n,this)}return this}static create(i,o){return new n(i,o)}static register(n){(i=i||n||window.gsap)&&(c=i.utils.toArray,d=i.core.context||d),!s&&window.innerWidth>0&&(o=document.fonts,s=!0)}};A.version="3.15.0";let R=A;n.s(["SplitText",0,R])},22016,(n,i,o)=>{"use strict";n.i(47167),Object.defineProperty(o,"__esModule",{value:!0}),function(n,i){for(var o in i)Object.defineProperty(n,o,{enumerable:!0,get:i[o]})}(o,{default:function(){return x},useLinkStatus:function(){return E}});let a=n.r(90809),s=n.r(43476),f=a._(n.r(71645)),u=n.r(95057),c=n.r(8372),l=n.r(18581),h=n.r(18967),d=n.r(5550),p=n.r(88540),b=n.r(91949),y=n.r(73668),m=n.r(9396);function g(n){let i=n.currentTarget.getAttribute("target");return i&&"_self"!==i||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.nativeEvent&&2===n.nativeEvent.which}function v(i,o,a,s,u,c,l,h="none"){if("u">typeof window){let{nodeName:d}=i.currentTarget;if("A"===d.toUpperCase()&&g(i)||i.currentTarget.hasAttribute("download"))return;if(!(0,y.isLocalURL)(o)){s&&(i.preventDefault(),location.replace(o));return}if(i.preventDefault(),c){let n=!1;if(c({preventDefault:()=>{n=!0}}),n)return}let{dispatchNavigateAction:b}=n.r(99781);f.default.startTransition(()=>{b(o,s?"replace":"push",!1===u?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,a.current,l,h)})}}function w(n){return"string"==typeof n?n:(0,u.formatUrl)(n)}function x(n){let i,o,a,[u,p]=(0,f.useOptimistic)(b.IDLE_LINK_STATUS),y=(0,f.useRef)(null),{href:g,as:x,children:E,prefetch:M=null,passHref:A,replace:R,shallow:I,scroll:k,onClick:j,onMouseEnter:T,onTouchStart:O,legacyBehavior:N=!1,onNavigate:P,transitionTypes:B,ref:L,unstable_dynamicOnHover:C,...D}=n;i=E,N&&("string"==typeof i||"number"==typeof i)&&(i=(0,s.jsx)("a",{children:i}));let U=f.default.useContext(c.AppRouterContext),$=!1!==M,F=!1===M?"none":!0===M?"full":"auto",z="none"!==F?S(F):m.FetchStrategy.PPR,q=w(x||g);if(N){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=f.default.Children.only(i)}let H=N?o&&"object"==typeof o&&o.ref:L,W,K=f.default.useCallback(n=>(null!==U&&(y.current=(0,b.mountLinkInstance)(n,q,U,z,$,p,W)),()=>{y.current&&((0,b.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,b.unmountPrefetchableInstance)(n)}),[$,q,U,z,p,W]),G={ref:(0,l.useMergedRef)(K,H),onClick(n){N||"function"!=typeof j||j(n),N&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(n),!U||n.defaultPrevented||v(n,q,y,R,k,P,B,F)},onMouseEnter(n){if(N||"function"!=typeof T||T(n),N&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(n),!U||!$)return;let i=!0===C;(0,b.onNavigationIntent)(n.currentTarget,i)},onTouchStart:function(n){if(N||"function"!=typeof O||O(n),N&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(n),!U||!$)return;let i=!0===C;(0,b.onNavigationIntent)(n.currentTarget,i)}};return(0,h.isAbsoluteUrl)(q)?G.href=q:N&&!A&&("a"!==o.type||"href"in o.props)||(G.href=(0,d.addBasePath)(q)),a=N?f.default.cloneElement(o,G):(0,s.jsx)("a",{...D,...G,children:i}),(0,s.jsx)(_.Provider,{value:u,children:a})}let _=(0,f.createContext)(b.IDLE_LINK_STATUS),E=()=>(0,f.useContext)(_);function S(n){return"auto"===n?m.FetchStrategy.PPR:m.FetchStrategy.Full}("function"==typeof o.default||"object"==typeof o.default&&null!==o.default)&&void 0===o.default.__esModule&&(Object.defineProperty(o.default,"__esModule",{value:!0}),Object.assign(o.default,o),i.exports=o.default)},5500,(n,i,o)=>{"use strict";n.i(47167),Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"Image",{enumerable:!0,get:function(){return S}});let a=n.r(55682),s=n.r(90809),f=n.r(43476),u=s._(n.r(71645)),c=a._(n.r(74080)),l=a._(n.r(25633)),h=n.r(8927),d=n.r(87690),p=n.r(18556),b=n.r(65856),y=a._(n.r(1948)),m=n.r(18581),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function v(n,i,o,a,s,f,u){let c=n?.src;n&&n["data-loaded-src"]!==c&&(n["data-loaded-src"]=c,("decode"in n?n.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(n.parentElement&&n.isConnected){if("empty"!==i&&s(!0),o?.current){let i=new Event("load");Object.defineProperty(i,"target",{writable:!1,value:n});let a=!1,s=!1;o.current({...i,nativeEvent:i,currentTarget:n,target:n,isDefaultPrevented:()=>a,isPropagationStopped:()=>s,persist:()=>{},preventDefault:()=>{a=!0,i.preventDefault()},stopPropagation:()=>{s=!0,i.stopPropagation()}})}a?.current&&a.current(n)}}))}function w(n){return u.use?{fetchPriority:n}:{fetchpriority:n}}"u"{let T=(0,u.useRef)(!1),O=(0,u.useRef)(null);x(()=>{let{current:n}=T,{current:i}=O;n||null===i||(I&&(i.src=i.src),i.complete&&v(i,p,_,E,S,y,A),T.current=!0)},[n,p,_,E,I,y,A]);let N=(0,m.useMergedRef)(j,O);return(0,f.jsx)("img",{...k,...w(d),loading:b,width:s,height:a,decoding:c,"data-nimg":g?"fill":"1",className:l,style:h,sizes:o,srcSet:i,src:n,ref:N,onLoad:n=>{v(n.currentTarget,p,_,E,S,y,A)},onError:n=>{M(!0),"empty"!==p&&S(!0),I&&I(n)}})});function E({isAppRouter:n,imgAttributes:i}){let o={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...w(i.fetchPriority)};return n&&c.default.preload?(c.default.preload(i.src,o),null):(0,f.jsx)(l.default,{children:(0,f.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...o},"__nimg-"+i.src+i.srcSet+i.sizes)})}let S=(0,u.forwardRef)((n,i)=>{let o=!(0,u.useContext)(b.RouterContext),a=(0,u.useContext)(p.ImageConfigContext),s=(0,u.useMemo)(()=>{let n=g||a||d.imageConfigDefault,i=[...n.deviceSizes,...n.imageSizes].sort((n,i)=>n-i),o=n.deviceSizes.sort((n,i)=>n-i),s=n.qualities?.sort((n,i)=>n-i);return{...n,allSizes:i,deviceSizes:o,qualities:s,localPatterns:"u"{m.current=c},[c]);let v=(0,u.useRef)(l);(0,u.useEffect)(()=>{v.current=l},[l]);let[w,x]=(0,u.useState)(!1),[S,M]=(0,u.useState)(!1),{props:A,meta:R}=(0,h.getImgProps)(n,{defaultLoader:y.default,imgConf:s,blurComplete:w,showAltText:S});return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(_,{...A,unoptimized:R.unoptimized,placeholder:R.placeholder,fill:R.fill,onLoadRef:m,onLoadingCompleteRef:v,setBlurComplete:x,setShowAltText:M,sizesInput:n.sizes,ref:i}),R.preload?(0,f.jsx)(E,{isAppRouter:o,imgAttributes:A}):null]})});("function"==typeof o.default||"object"==typeof o.default&&null!==o.default)&&void 0===o.default.__esModule&&(Object.defineProperty(o.default,"__esModule",{value:!0}),Object.assign(o.default,o),i.exports=o.default)},18581,(n,i,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"useMergedRef",{enumerable:!0,get:function(){return s}});let a=n.r(71645);function s(n,i){let o=(0,a.useRef)(null),s=(0,a.useRef)(null);return(0,a.useCallback)(a=>{if(null===a){let n=o.current;n&&(o.current=null,n());let i=s.current;i&&(s.current=null,i())}else n&&(o.current=f(n,a)),i&&(s.current=f(i,a))},[n,i])}function f(n,i){if("function"!=typeof n)return n.current=i,()=>{n.current=null};{let o=n(i);return"function"==typeof o?o:()=>n(null)}}("function"==typeof o.default||"object"==typeof o.default&&null!==o.default)&&void 0===o.default.__esModule&&(Object.defineProperty(o.default,"__esModule",{value:!0}),Object.assign(o.default,o),i.exports=o.default)},70965,(n,i,o)=>{"use strict";function a(n,i){let o=n||75;return i?.qualities?.length?i.qualities.reduce((n,i)=>Math.abs(i-o){"use strict";n.i(47167),Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"default",{enumerable:!0,get:function(){return u}});let a=n.r(70965),s=n.r(43369);function f({config:n,src:i,width:o,quality:u}){let c=(0,s.getDeploymentId)();if(i.startsWith("/")&&!i.startsWith("//"))if(i.includes("/_next/static/immutable")&&!(0,s.getAssetToken)())c=void 0;else{let n=i.indexOf("?");if(-1!==n){let o=new URLSearchParams(i.slice(n+1)),a=o.get("dpl");if(a){c=a,o.delete("dpl");let s=o.toString();i=i.slice(0,n)+(s?"?"+s:"")}}}if(i.startsWith("/")&&i.includes("?")&&n.localPatterns?.length===1&&"**"===n.localPatterns[0].pathname&&""===n.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${i}" is using a query string which is not configured in images.localPatterns. Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,a.findClosestQuality)(u,n);return`${n.path}?url=${encodeURIComponent(i)}&w=${o}&q=${l}${i.startsWith("/")&&c?`&dpl=${c}`:""}`}f.__next_img_default=!0;let u=f},25633,(n,i,o)=>{"use strict";n.i(47167),Object.defineProperty(o,"__esModule",{value:!0}),function(n,i){for(var o in i)Object.defineProperty(n,o,{enumerable:!0,get:i[o]})}(o,{default:function(){return m},defaultHead:function(){return h}});let a=n.r(55682),s=n.r(90809),f=n.r(43476),u=s._(n.r(71645)),c=a._(n.r(98879)),l=n.r(42732);function h(){return[(0,f.jsx)("meta",{charSet:"utf-8"},"charset"),(0,f.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function d(n,i){return"string"==typeof i||"number"==typeof i?n:i.type===u.default.Fragment?n.concat(u.default.Children.toArray(i.props.children).reduce((n,i)=>"string"==typeof i||"number"==typeof i?n:n.concat(i),[])):n.concat(i)}let p=["name","httpEquiv","charSet","itemProp"];function b(){let n=new Set,i=new Set,o=new Set,a={};return s=>{let f=!0,u=!1;if(s.key&&"number"!=typeof s.key&&s.key.indexOf("$")>0){u=!0;let i=s.key.slice(s.key.indexOf("$")+1);n.has(i)?f=!1:n.add(i)}switch(s.type){case"title":case"base":i.has(s.type)?f=!1:i.add(s.type);break;case"meta":for(let n=0,i=p.length;n{let o=n.key||i;return u.default.cloneElement(n,{key:o})})}let m=function({children:n}){let i=(0,u.useContext)(l.HeadManagerContext);return(0,f.jsx)(c.default,{reduceComponentsToState:y,headManager:i,children:n})};("function"==typeof o.default||"object"==typeof o.default&&null!==o.default)&&void 0===o.default.__esModule&&(Object.defineProperty(o.default,"__esModule",{value:!0}),Object.assign(o.default,o),i.exports=o.default)},88143,(n,i,o)=>{"use strict";function a({widthInt:n,heightInt:i,blurWidth:o,blurHeight:s,blurDataURL:f,objectFit:u}){let c=20,l=o?40*o:n,h=s?40*s:i,d=l&&h?`viewBox='0 0 ${l} ${h}'`:"",p=d?"none":"contain"===u?"xMidYMid":"cover"===u?"xMidYMid slice":"none";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${d}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='${c}'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='${c}'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${p}' style='filter: url(%23b);' href="http://approjects.co.za/?big=${f}"/%3E%3C/svg%3E`}Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"getImageBlurSvg",{enumerable:!0,get:function(){return a}})},87690,(n,i,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),function(n,i){for(var o in i)Object.defineProperty(n,o,{enumerable:!0,get:i[o]})}(o,{VALID_LOADERS:function(){return a},imageConfigDefault:function(){return s}});let a=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},8927,(n,i,o)=>{"use strict";n.i(47167),Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"getImgProps",{enumerable:!0,get:function(){return y}});let a=n.r(43369),s=n.r(88143),f=n.r(87690),u=["-moz-initial","fill","none","scale-down",void 0];function c(n){return void 0!==n.default}function l(n){return void 0!==n.src}function h(n){return!!n&&"object"==typeof n&&(c(n)||l(n))}function d(n){return void 0===n?n:"number"==typeof n?Number.isFinite(n)?n:NaN:"string"==typeof n&&/^[0-9]+$/.test(n)?parseInt(n,10):NaN}function p({deviceSizes:n,allSizes:i},o,a){if(a){let o=/(^|\s)(1?\d?\d)vw/g,s=[];for(let n;n=o.exec(a);)s.push(parseInt(n[2]));if(s.length){let o=.01*Math.min(...s);return{widths:i.filter(i=>i>=n[0]*o),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof o?{widths:n,kind:"w"}:{widths:[...new Set([o,2*o].map(n=>i.find(i=>i>=n)||i[i.length-1]))],kind:"x"}}function b({config:n,src:i,unoptimized:o,width:s,quality:f,sizes:u,loader:c}){if(o){if(i.startsWith("/")&&!i.startsWith("//")){let n=(0,a.getDeploymentId)();if(i.includes("/_next/static/immutable")&&!(0,a.getAssetToken)())n=void 0;else if(n){let o=i.indexOf("?");if(-1!==o){let a=new URLSearchParams(i.slice(o+1));a.get("dpl")||(a.append("dpl",n),i=i.slice(0,o)+"?"+a.toString())}else i+=`?dpl=${n}`}}return{src:i,srcSet:void 0,sizes:void 0}}let{widths:l,kind:h}=p(n,s,u),d=l.length-1;return{sizes:u||"w"!==h?u:"100vw",srcSet:l.map((o,a)=>`${c({config:n,src:i,quality:f,width:o})} ${"w"===h?o:a+1}${h}`).join(", "),src:c({config:n,src:i,quality:f,width:l[d]})}}function y({src:n,sizes:i,unoptimized:o=!1,priority:a=!1,preload:l=!1,loading:p,className:m,quality:g,width:v,height:w,fill:x=!1,style:_,overrideSrc:E,onLoad:S,onLoadingComplete:M,placeholder:A="empty",blurDataURL:R,fetchPriority:I,decoding:k="async",layout:j,objectFit:T,objectPosition:O,lazyBoundary:N,lazyRoot:P,...B},L){let C,D,U,{imgConf:$,showAltText:F,blurComplete:z,defaultLoader:q}=L,H=$||f.imageConfigDefault;if("allSizes"in H)C=H;else{let n=[...H.deviceSizes,...H.imageSizes].sort((n,i)=>n-i),i=H.deviceSizes.sort((n,i)=>n-i),o=H.qualities?.sort((n,i)=>n-i);C={...H,allSizes:n,deviceSizes:i,qualities:o}}if(void 0===q)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let W=B.loader||q;delete B.loader,delete B.srcSet;let K="__next_img_default"in W;if(K){if("custom"===C.loader)throw Object.defineProperty(Error(`Image with src "${n}" is missing "loader" prop. Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let n=W;W=i=>{let{config:o,...a}=i;return n(a)}}if(j){"fill"===j&&(x=!0);let n={responsive:"100vw",fill:"100vw"},o={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[j];o&&(_={..._,...o});let a=n[j];a&&!i&&(i=a)}let G="",V=d(v),Y=d(w);if(h(n)){let i=c(n)?n.default:n;if(!i.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(i)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!i.height||!i.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(i)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(D=i.blurWidth,U=i.blurHeight,R=R||i.blurDataURL,G=i.src,!x)if(V||Y){if(V&&!Y){let n=V/i.width;Y=Math.round(i.height*n)}else if(!V&&Y){let n=Y/i.height;V=Math.round(i.width*n)}}else V=i.width,Y=i.height}let X=!a&&!l&&("lazy"===p||void 0===p);(!(n="string"==typeof n?n:G)||n.startsWith("data:")||n.startsWith("blob:"))&&(o=!0,X=!1),C.unoptimized&&(o=!0),K&&!C.dangerouslyAllowSVG&&n.split("?",1)[0].endsWith(".svg")&&(o=!0);let J=d(g),Z=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:T,objectPosition:O}:{},F?{}:{color:"transparent"},_),Q=z||"empty"===A?null:"blur"===A?`url("data:image/svg+xml;charset=utf-8,${(0,s.getImageBlurSvg)({widthInt:V,heightInt:Y,blurWidth:D,blurHeight:U,blurDataURL:R||"",objectFit:Z.objectFit})}")`:`url("${A}")`,ee=u.includes(Z.objectFit)?"fill"===Z.objectFit?"100% 100%":"cover":Z.objectFit,et=Q?{backgroundSize:ee,backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Q}:{},er=b({config:C,src:n,unoptimized:o,width:V,quality:J,sizes:i,loader:W}),en=X?"lazy":p;return{props:{...B,loading:en,fetchPriority:I,width:V,height:Y,decoding:k,className:m,style:{...Z,...et},sizes:er.sizes,srcSet:er.srcSet,src:E||er.src},meta:{unoptimized:o,preload:l||a,placeholder:A,fill:x}}}},18556,(n,i,o)=>{"use strict";n.i(47167),Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"ImageConfigContext",{enumerable:!0,get:function(){return f}});let a=n.r(55682)._(n.r(71645)),s=n.r(87690),f=a.default.createContext(s.imageConfigDefault)},65856,(n,i,o)=>{"use strict";n.i(47167),Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"RouterContext",{enumerable:!0,get:function(){return a}});let a=n.r(55682)._(n.r(71645)).default.createContext(null)},94909,(n,i,o)=>{"use strict";n.i(47167),Object.defineProperty(o,"__esModule",{value:!0}),function(n,i){for(var o in i)Object.defineProperty(n,o,{enumerable:!0,get:i[o]})}(o,{default:function(){return l},getImageProps:function(){return c}});let a=n.r(55682),s=n.r(8927),f=n.r(5500),u=a._(n.r(1948));function c(n){let{props:i}=(0,s.getImgProps)(n,{defaultLoader:u.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[n,o]of Object.entries(i))void 0===o&&delete i[n];return{props:i}}let l=f.Image},57688,(n,i,o)=>{i.exports=n.r(94909)},73668,(n,i,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"isLocalURL",{enumerable:!0,get:function(){return f}});let a=n.r(18967),s=n.r(52817);function f(n){if(!(0,a.isAbsoluteUrl)(n))return!0;try{let i=(0,a.getLocationOrigin)(),o=new URL(n,i);return o.origin===i&&(0,s.hasBasePath)(o.pathname)}catch(n){return!1}}},98183,(n,i,o)=>{"use strict";function a(n){let i={};for(let[o,a]of n.entries()){let n=i[o];void 0===n?i[o]=a:Array.isArray(n)?n.push(a):i[o]=[n,a]}return i}function s(n){return"string"==typeof n?n:("number"!=typeof n||isNaN(n))&&"boolean"!=typeof n?"":String(n)}function f(n){let i=new URLSearchParams;for(let[o,a]of Object.entries(n))if(Array.isArray(a))for(let n of a)i.append(o,s(n));else i.set(o,s(a));return i}function u(n,...i){for(let o of i){for(let i of o.keys())n.delete(i);for(let[i,a]of o.entries())n.append(i,a)}return n}Object.defineProperty(o,"__esModule",{value:!0}),function(n,i){for(var o in i)Object.defineProperty(n,o,{enumerable:!0,get:i[o]})}(o,{assign:function(){return u},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return f}})},95057,(n,i,o)=>{"use strict";n.i(47167),Object.defineProperty(o,"__esModule",{value:!0}),function(n,i){for(var o in i)Object.defineProperty(n,o,{enumerable:!0,get:i[o]})}(o,{formatUrl:function(){return f},formatWithValidation:function(){return c},urlObjectKeys:function(){return u}});let a=n.r(90809)._(n.r(98183)),s=/https?|ftp|gopher|file/;function f(n){let{auth:i,hostname:o}=n,f=n.protocol||"",u=n.pathname||"",c=n.hash||"",l=n.query||"",h=!1;i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",n.host?h=i+n.host:o&&(h=i+(~o.indexOf(":")?`[${o}]`:o),n.port&&(h+=":"+n.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let d=n.search||l&&`?${l}`||"";return f&&!f.endsWith(":")&&(f+=":"),n.slashes||(!f||s.test(f))&&!1!==h?(h="//"+(h||""),u&&"/"!==u[0]&&(u="/"+u)):h||(h=""),c&&"#"!==c[0]&&(c="#"+c),d&&"?"!==d[0]&&(d="?"+d),u=u.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${f}${h}${u}${d}${c}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(n){return f(n)}},98879,(n,i,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"default",{enumerable:!0,get:function(){return c}});let a=n.r(71645),s="u"{}:a.useLayoutEffect,u=s?()=>{}:a.useEffect;function c(n){let{headManager:i,reduceComponentsToState:o}=n;function c(){if(i&&i.mountedInstances){let n=a.Children.toArray(Array.from(i.mountedInstances).filter(Boolean));i.updateHead(o(n))}}return s&&(i?.mountedInstances?.add(n.children),c()),f(()=>(i?.mountedInstances?.add(n.children),()=>{i?.mountedInstances?.delete(n.children)})),f(()=>(i&&(i._pendingUpdate=c),()=>{i&&(i._pendingUpdate=c)})),u(()=>(i&&i._pendingUpdate&&(i._pendingUpdate(),i._pendingUpdate=null),()=>{i&&i._pendingUpdate&&(i._pendingUpdate(),i._pendingUpdate=null)})),null}},18967,(n,i,o)=>{"use strict";n.i(47167),Object.defineProperty(o,"__esModule",{value:!0}),function(n,i){for(var o in i)Object.defineProperty(n,o,{enumerable:!0,get:i[o]})}(o,{DecodeError:function(){return g},MiddlewareNotFoundError:function(){return _},MissingStaticPage:function(){return x},NormalizeError:function(){return v},PageNotFoundError:function(){return w},SP:function(){return y},ST:function(){return m},WEB_VITALS:function(){return a},execOnce:function(){return s},getDisplayName:function(){return h},getLocationOrigin:function(){return c},getURL:function(){return l},isAbsoluteUrl:function(){return u},isResSent:function(){return d},loadGetInitialProps:function(){return b},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return E}});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function s(n){let i,o=!1;return(...a)=>(o||(o=!0,i=n(...a)),i)}let f=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=n=>{let i=n.charCodeAt(0);return!!(i>=65&&i<=90||i>=97&&i<=122)&&f.test(n)};function c(){let{protocol:n,hostname:i,port:o}=window.location;return`${n}//${i}${o?":"+o:""}`}function l(){let{href:n}=window.location,i=c();return n.substring(i.length)}function h(n){return"string"==typeof n?n:n.displayName||n.name||"Unknown"}function d(n){return n.finished||n.headersSent}function p(n){let i=n.split("?");return i[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(i[1]?`?${i.slice(1).join("?")}`:"")}async function b(n,i){let o=i.res||i.ctx&&i.ctx.res;if(!n.getInitialProps)return i.ctx&&i.Component?{pageProps:await b(i.Component,i.ctx)}:{};let a=await n.getInitialProps(i);if(o&&d(o))return a;if(!a)throw Object.defineProperty(Error(`"${h(n)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return a}let y="u">typeof performance,m=y&&["mark","measure","getEntriesByName"].every(n=>"function"==typeof performance[n]);class g extends Error{}class v extends Error{}class w extends Error{constructor(n){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${n}`}}class x extends Error{constructor(n,i){super(),this.message=`Failed to load static file for page: ${n} ${i}`}}class _ extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(n){return JSON.stringify({message:n.message,stack:n.stack})}}]);