1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{92:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(1188)}])},489:e=>{"use strict";let t=e=>"object"==typeof e&&null!==e,r=Symbol("skip"),n=e=>t(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),i=(e,t,o,a=new WeakMap)=>{if(o={deep:!1,target:{},...o},a.has(e))return a.get(e);a.set(e,o.target);let{target:s}=o;delete o.target;let u=e=>e.map(e=>n(e)?i(e,t,o,a):e);if(Array.isArray(e))return u(e);for(let[c,l]of Object.entries(e)){let f=t(c,l,e);if(f===r)continue;let[d,h,{shouldRecurse:p=!0}={}]=f;"__proto__"!==d&&(o.deep&&p&&n(h)&&(h=Array.isArray(h)?u(h):i(h,t,o,a)),s[d]=h)}return s};e.exports=(e,r,n)=>{if(!t(e))throw TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return i(e,r,n)},e.exports.mapObjectSkip=r},650:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(42032);let i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/");return t[0]&&n.IB.includes(t[0])?t[0]:n.q}},1188:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>ed});var n=r(37876);r(6561),r(17203),r(55671);var i=r(28862),o=r(60262),a=r(14232),s=r(14e3),u=r(99742),c="@vercel/speed-insights",l="1.3.1",f=()=>{window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)})};function d(){return"undefined"!=typeof window}function h(){try{let e="production";if("development"===e||"test"===e)return"development"}catch(e){}return"production"}function p(){return"development"===h()}function g(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,n]of e)if(!Array.isArray(n)){let e=b(n);e.test(r)&&(r=r.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=b(n.join("/"));e.test(r)&&(r=r.replace(e,`/[...${t}]`))}return r}catch(t){return e}}function b(e){return RegExp(`/${v(e)}(?=[/?#]|$)`)}function v(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){return e.scriptSrc?e.scriptSrc:p()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js"}function y(e={}){var t;if(!d()||null===e.route)return null;f();let r=m(e);if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn=c+(e.framework?`/${e.framework}`:""),n.dataset.sdkv=l,e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),p()&&!1===e.debug&&(n.dataset.debug="false"),n.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(n),{setRoute:e=>{n.dataset.route=e??void 0}}}function _(){if(void 0!==u&&void 0!==u.env)return u.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function w(e){(0,a.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let t=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(t.current)e.route&&t.current(e.route);else{let r=y({framework:e.framework??"react",basePath:e.basePath??_(),...e});r&&(t.current=r.setRoute)}},[e.route]),null}var S=()=>{let e=(0,s.useParams)(),t=(0,s.useSearchParams)()||new URLSearchParams,r=(0,s.usePathname)();return e?g(r,Object.keys(e).length?e:Object.fromEntries(t.entries())):null};function E(){if(void 0!==u&&void 0!==u.env)return u.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}function x(e){let t=S();return a.createElement(w,{route:t,...e,framework:"next",basePath:E()})}function k(e){return a.createElement(a.Suspense,{fallback:null},a.createElement(x,{...e}))}var A=r(55793),M=r(6919),R=r(42785),T=r(89099),C=r(56808),I=r(43359),O=r(2841),P=r(650),L=r(42032),N=r(8162),D=r(20228);let B=e=>{var t,r;let n=(0,T.useRouter)(),[i,o]=(0,D.Pj)(),s=a.useRef(!0);a.useEffect(()=>{if((0,O.Bd)()){var t,r,a,u,c,l,f;let d=(null==e?void 0:e.locale)||L.q,h=null==e||null==(a=e.story)||null==(r=a.alternates)||null==(t=r.find)?void 0:t.call(r,e=>(0,P.A)(e.full_slug)===L.q),p=((null==h?void 0:h.full_slug)?(null==h?void 0:h.full_slug).replace(RegExp("^".concat(L.q)),""):(d===L.q?n.asPath:n.asPath.replace(new RegExp("^/".concat(d)),""))||"").replace(/\?.+/,""),g=(0,N.Tm)(p),b=(0,N.YO)(g),v=(null==e||null==(c=e.story)||null==(u=c.content)?void 0:u.campaign)||"",m={pageUrl:n.asPath,page_template:null==g?void 0:g.name,page_category:null==b?void 0:b.name,page_campaign:v};if((null==g?void 0:g.name)==="blog"||(null==b?void 0:b.name)==="blog"){let t=new Date(null==e||null==(f=e.story)||null==(l=f.content)?void 0:l.date);m.publish_date_year_month=(0,M.f)(t)?(0,R.GP)(t,"yyyy-MM"):""}else m.publish_date_year_month="";o.set("navHistory",i.navHistory?[...i.navHistory,m]:[m]),(0,N.Sd)({event:N.qM.PAGE_VIEW,...m,country:d}),C.A.getPricingLinkContext()||A.A.trackPage(I.u.PAGE_VIEW.mapProperties({page_category:null==b?void 0:b.name})),s.current?s.current=!1:(0,N.Sd)({event:"Page vue",pageName:n.asPath})}},[e]),a.useEffect(()=>{if((0,O.Bd)()){let e=!1,t=!1,r=()=>{e&&!t&&(t=!0,(0,N.Sd)({event:"first_scroll"}))},n=()=>{window.removeEventListener("scroll",n),e=!0,r()};return window.addEventListener("scroll",n,{passive:!0}),()=>{window.removeEventListener("scroll",n)}}},[]),a.useEffect(()=>{var t,r;if((0,O.Bd)()&&(null==e||null==(r=e.story)||null==(t=r.content)?void 0:t.campaign)==="gc-pr-23-p1"){let e=[.5,.8],t=[],r=()=>{let r=(window.scrollY+window.innerHeight)/document.body.scrollHeight;
1e.forEach(e=>{r>e&&!t.includes(e)&&(t.push(e),(0,N.Sd)({event:N.qM.SCROLL,percent_scrolled:Math.round(100*e)}))})};return window.addEventListener("scroll",r,{passive:!0}),()=>{window.removeEventListener("scroll",r)}}},[null==e||null==(r=e.story)||null==(t=r.content)?void 0:t.campaign])};var j=r(1499);let U=e=>t=>(0,n.jsx)(j.U.Provider,{value:t.pageProps.locale||"en",children:(0,n.jsx)(e,{...t})});var F=r(27238),z=r(57383),H=r(56165),V=r.n(H),q=r(24275),$=r.n(q),G=r(78737),W=r.n(G),K=r(10525),Y=r(46077),X=r(90126),J=r(18658),Z=r(12815),Q=r(25220);let ee="hooks::geolocation",et={source:K.tA.BROWSER,action:"fetch",actionStatus:K.gi.REQUEST},er=()=>{let[e,{set:t}]=(0,D.Pj)();a.useEffect(()=>{var r,n;if(null==(r=e[J._0])?void 0:r.data){et.geolocationId=J._0,et.data=null==(n=e[J._0])?void 0:n.data;return}(0,Q.fS)().then(e=>{var r,n;if(!e){et.action=K.gi.FAILURE;let e="No geolocation data returned";Y.A.logWarning(e,ee,et);return}let i=(0,Q.cs)(e),o=null==e||null==(r=e.country)?void 0:r.name,a=(0,Z.hC)(o),s=(0,Z.Cz)(o);a&&!s&&(0,X.y)(),t(J._0,{data:e,contactPhoneNumber:i,isBronzeCountry:a,isLatamCountry:K.nl.includes(null==e||null==(n=e.country)?void 0:n.code)})}).catch(e=>{et.geolocationId=J._0,et.action=K.gi.FAILURE;let t="Failed to fetch geolocation data";Y.A.logError(t,e,ee,et)})},[t,e])},en="qa-test",ei="--js-qa-test",eo="--js-stroyblok-preview",ea=()=>{a.useEffect(()=>{var e,t,r,n,i,o,a,s,u,c,l;(0,O.Bd)()&&(window.RECAPTCHA_PUBLIC_TOKEN="6LfHYPYZAAAAAEyT3n6PEjsbHwOWLu4GX6OB1HjO"),"undefined"!=typeof document&&(null==(e=(document.cookie||"").split("; ").find(e=>e.startsWith("".concat(en,"="))))?void 0:e.split("=")[1])==="1"&&(null==(s=document.body)||null==(a=s.classList)||null==(o=a.add)||o.call(a,ei)),(0,O.Bd)()&&(null==(i=window)||null==(n=i.location)||null==(r=n.search)||null==(t=r.includes)?void 0:t.call(r,"_storyblok"))&&(null==(l=document.body)||null==(c=l.classList)||null==(u=c.add)||u.call(c,eo))},[])},es=e=>{a.useEffect(()=>{var t;void 0!==(null==(t=document)?void 0:t.documentElement)&&document.documentElement.setAttribute("lang",e.locale)},[e])},eu=e=>{a.useEffect(()=>{let e;return r.e(4068).then(r.bind(r,24068)).then(t=>{let{default:r}=t;e=r()}).catch(console.error),()=>{"function"==typeof e&&e()}},[e])},ec=["adid","ag_id","agid","agname","cid","keyword","hsa_acc","hsa_ad","hsa_cam","hsa_grp","hsa_kw","hsa_mt","hsa_net","hsa_src","hsa_tgt","hsa_ver","hsa","utm_campaign","utm_content","utm_medium","utm_source","utm_term","gcl_id","gclid","storylane_demo"],el=()=>{a.useEffect(()=>{var e,t;if((0,O.Bd)()&&(null==(e=window.location)?void 0:e.search)&&"function"==typeof(null==(t=window.sessionStorage)?void 0:t.setItem)){let e=new URLSearchParams(window.location.search);for(let t of ec){let r=e.get(t);r&&window.sessionStorage.setItem(t,r)}}},[])};function ef(e){let{Component:t,pageProps:r}=e;B(r),er(),eu(r),es(r),(0,F.uC)({pageProps:r}),el(),ea(),(0,z.Km)();let{key:o,...a}=r;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(k,{}),(0,n.jsx)(i.iX,{growthbook:z.ry,children:(0,n.jsx)("span",{className:"".concat(V().variable," ").concat($().variable," ").concat(W().variable),children:(0,n.jsx)(t,{...a})})})]})}(0,o.YV)({accessToken:"nCkQYStIUxTmW75ayBhmaAtt",apiOptions:{maxRetries:3,timeout:5},use:[o.YB],components:{}}),A.A.init();let ed=(0,D.Ay)(U(ef))},1499:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});let n=r(14232).createContext("en")},1643:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var u,c=this;if("function"!=typeof c||r.apply(c)!==i)throw TypeError(t+c);for(var l=a(arguments,1),f=function(){if(this instanceof u){var t=c.apply(this,o(l,arguments));return Object(t)===t?t:this}return c.apply(e,o(l,arguments))},d=n(0,c.length-l.length),h=[],p=0;p<d;p++)h[p]="$"+p;if(u=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(f),c.prototype){var g=function(){};g.prototype=c.prototype,u.prototype=new g,g.prototype=null}return u}},1737:(e,t,r)=>{"use strict";
1var n=r(28419),i=r(71938),o=r(34140);e.exports=function(){return o(n,i,arguments)}},2002:e=>{"use strict";e.exports=Math.abs},2496:e=>{"use strict";e.exports=Math.floor},2841:(e,t,r)=>{"use strict";r.d(t,{Bd:()=>n,KV:()=>i,YG:()=>a,bU:()=>o});let n=()=>!0,i=()=>!0,o=()=>!1,a=()=>!1},3800:(e,t,r)=>{"use strict";r.d(t,{WD:()=>a,_w:()=>i,u1:()=>o});var n=r(91040);function i(e){var t,r;return"object"!=typeof e||null===e?null:n.A.isAxiosError(e)?null!=(r=null==(t=e.response)?void 0:t.status)?r:null:"statusCode"in e&&"number"==typeof e.statusCode?e.statusCode:null}function o(e){let t="An unexpected error occurred";if(n.A.isAxiosError(e)){var r,i,o,a,s;return null!=(s=null!=(a=null==(o=e.response)||null==(i=o.data)||null==(r=i.error)?void 0:r.message)?a:e.message)?s:t}return e instanceof Error||"object"==typeof e&&null!==e&&"message"in e&&"string"==typeof e.message?e.message:"string"==typeof e?e:t}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if(e instanceof Error&&e.stack)return e.stack.split("\n").slice(0,t).join("\n")}},4317:(e,t,r)=>{"use strict";r.d(t,{_P:()=>o,my:()=>n,w4:()=>i});let n=6048e5,i=864e5,o=Symbol.for("constructDateFrom")},4902:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n,Tt:()=>i,YH:()=>a,fX:()=>s,sH:()=>o});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?r(e.value):i(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())})}function a(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(s){if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}Object.create;function s(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError},5391:e=>{"use strict";e.exports=EvalError},6307:e=>{"use strict";let t=(function*(){}).constructor;e.exports=()=>t},6561:()=>{},6768:(e,t,r)=>{"use strict";var n=r(97264),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},u=function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};function c(e){return"[object Array]"===i.call(e)}e.exports=function(e,t,r){var i;if(!n(t))throw TypeError("iterator must be a function");arguments.length>=3&&(i=r),c(e)?a(e,t,i):"string"==typeof e?s(e,t,i):u(e,t,i)}},6919:(e,t,r)=>{"use strict";function n(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}r.d(t,{f:()=>o});var i=r(48901);function o(e){return!(!n(e)&&"number"!=typeof e||isNaN(+(0,i.a)(e)))}},7430:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let n=r(88365)._(r(14232)),i=n.default.createContext(null);function o(e){let t=(0,n.useContext)(i);t&&t(e)}},8162:(e,t,r)=>{"use strict";r.d(t,{LH:()=>A,MB:()=>k,Mc:()=>d,Sd:()=>S,Tm:()=>E,YO:()=>x,a$:()=>p,ed:()=>R,m9:()=>f,qM:()=>l,tA:()=>M});var n=r(76728),i=r(27238),o=r(2841);let a="aircallDataLayer",s="_dataLayerQueue",u="_cookieSystemLoadState",c="_onCookieConsentUpdate",l={PAGE_VIEW:"PageView",USERS_INTERACTIONS:"users_interactions",FORMS_INTERACTIONS:"forms_interactions",FORM_CONVERSION:"form_conversion",SCROLL:"scroll"},f={CLICK:"click",AUDIO_START_PLAYING:"audio_start_playing",AUDIO_PLAYING_PROGRESS:"audio_playing_progress",WISTIA_PROGRESS:"wistia_progress"},d={HEADER:{name:"header",querySelector:'div[class^="Navigation_TopHeader"]'},MENU:{name:"menu",querySelector:'header[class^="Navigation_Navigation"] div[class^="wrapper"]'},IN_CONTENT:{name:"in content"},FOOTER:{name:"footer",querySelector:'footer[class^="Footer_Footer"]'}},h=d.IN_CONTENT,p={HOME_PAGE:{name:"home page",firstSlugs:[""]},CONVERSION:{name:"conversion",firstSlugs:["signup","request-a-demo","thank-you","get-started"],startsWith:["products/ai"]},PRICING:{name:"pricing",firstSlugs:["pricing"]},DOWNLOAD:{name:"download",firstSlugs:["download"]},AGENT:{name:"agent",firstSlugs:["agent"]},VS_COMPETITORS:{name:"vs competitors",startsWith:["c/aircall-vs"]},CAREERS:{name:"careers",firstSlugs:["careers"]},TRUST:{name:"trust",firstSlugs:["trust"]},REVIEWS:{name:"reviews",firstSlugs:["reviews"]},PEOPLE:{name:"people",firstSlugs:["people"]},LEGAL:{name:"legal",firstSlugs:["privacy","candidate-privacy-notice","privacy-faqs","privacy-rights-form","integration-terms","terms-of-use","dpa"]},SECURITY:{name:"security",firstSlugs:["secutity"]},FEATURES:{name:"features",firstSlugs:["call-center-software-features","fonctionnalites-standard-telephonique-virtuel"]},SOLUTION:{name:"solution",firstSlugs:["solution","industry","industries","inbound-call-center-software","cloud-phone-solution","managing-remote-teams","call-center-software","outbound-call-center-software","business-phone-system","nonprofits"]},PAID_LP:{name:"paid lp",firstSlugs:["c"]},BLOG:{name:"blog",firstSlugs:["blog"]},CUSTOMER_STORIES:{name:"customer stories",firstSlugs:["customer-stories"]},GLOSSARY:{name:"glossary",firstSlugs:["glossary"]},SALES_HUB:{name:"sales hub",firstSlugs:["sales-hub"]},CONTENT_DOWNLOAD:{name:"content download",firstSlugs:["guides","gc22-h2-roi-calculator"],fullSlugs:["c/forrester-study","guides/gc22-h2-forrester-study","news/aircall-forrester-report"]},MARKETPLACE:{name:"marketplace",firstSlugs:["call-center-software-integrations","integrations"]},PROFESSIONAL_SERVICES:{name:"professional services",firstSlugs:["professional-services"]},SPEEDTEST:{name:"speedtest",firstSlugs:["speedtest"]},ONBOARDING:{name:"onboarding",firstSlugs:["onboarding"]},QUALITY:{name:"quality",firstSlugs:["quality-and-reliability"]},PARTNER_STORIES:{name:"partner stories",firstSlugs:["partner-stories"]},PARTNER:{name:"partner",firstSlugs:["partners"]},PARTNER_LP:{name:"partner lp",firstSlugs:["p"]},SITEMAP:{name:"sitemap",firstSlugs:["sitemap"]},CONTACT:{name:"contact",firstSlugs:["contact"]}},g={HOME_PAGE:{name:"home page",templates:[p.HOME_PAGE]},REVENUE:{name:"revenue",templates:[p.CONVERSION,p.PRICING,p.PAID_LP,p.VS_COMPETITORS,p.PARTNER_LP]},CORPORATE:{name:"corporate",templates:[p.CAREERS,p.PEOPLE,p.LEGAL]},PRODUCT:{name:"product",templates:[p.FEATURES,p.SOLUTION,p.AGENT,p.TRUST,p.DOWNLOAD,p.REVIEWS,p.SECURITY,p.PROFESSIONAL_SERVICES,p.QUALITY]},CONTENT_HUB:{name:"content hub",templates:[p.BLOG,p.CUSTOMER_STORIES,p.GLOSSARY,p.SALES_HUB,p.CONTENT_DOWNLOAD]},GLOBAL_COMPAIGN:{name:"global campaign",templates:[p.FORRESTER]},INTEGRATION:{name:"integration",templates:[p.MARKETPLACE]},RESOURCES:{name:"resources",templates:[p.SPEEDTEST,p.ONBOARDING]},PARTNERSHIP:{name:"partnership",templates:[p.PARTNER_STORIES,p.PARTNER]},MISCELLANEOUS:{name:"miscellaneous",templates:[p.SITEMAP]},CONTACT:{name:"contact",templates:[p.CONTACT]}},b=e=>{(0,o.Bd)()&&(window[a]=window[a]||[],window[a].push(e))},v=()=>{if((0,o.Bd)()&&void 0!==window[s]){for(let e of window[s])b(e);delete window[s]}},m=e=>{(0,o.Bd)()&&(void 0===window[s]&&(window[s]=[]),window[s].push(e))},y=()=>!!(0,o.Bd)()&&!!window[u]&&!!window.OneTrust&&(0,i.Jb)().filter(e=>![i.TA.NECESSARY].includes(e)).length>=1,_=()=>{(0,o.Bd)()&&(window[u]=!0,y()&&v(),(0,i.uK)())},w={[l.PAGE_VIEW]:{pageUrl:"",page_template:"",page_category:"",page_campaign:"",country:""},[l.USERS_INTERACTIONS]:{interaction_area:"",interaction_type:"",interaction_name:"",video_progress:"",wistia_video_id:""},[l.FORM_CONVERSION]:{form_name:"",form_id:"",form_type:"",form_initiator:"",formData:"",value:"",company_
1size:"",company_crm:"",licenses_number:"",amplitude:"",debug_uuid:"",debug_timestamp:""},[l.FORMS_INTERACTIONS]:{interaction_type:"",form_name:"",form_type:"",step_index:"",step_name:"",value:"",form_initiator:""}},S=e=>{if((0,o.Bd)()){window[c]=_;let t={...w[e.event]||{},...e};y()?(v(),b(t)):m(t)}},E=e=>{if("string"!=typeof e)return{name:""};if(["","en"].includes(e=e.replace(/^\//,"").replace(/\/(\?.*)?$/,"")))return p.HOME_PAGE;let t={startsWith:Object.values(p).filter(e=>e.startsWith),fullSlugs:Object.values(p).filter(e=>e.fullSlugs),firstSlugs:Object.values(p).filter(e=>e.firstSlugs)},r=null;(r=t.startsWith.find(t=>t.startsWith.find(t=>e.startsWith(t))))||(r=t.fullSlugs.find(t=>t.fullSlugs.includes(e)));let n=e.split("/")[0];return r||(r=t.firstSlugs.find(e=>e.firstSlugs.includes(n))),r||{name:""}},x=e=>Object.values(g).find(t=>t.templates.find(t=>e===t))||{name:""},k=(e,t)=>Object.values(d).find(r=>{var n;if(!r.querySelector)return!1;let i=e.querySelector(r.querySelector);return null==i||null==(n=i.contains)?void 0:n.call(i,t)})||h,A=e=>"string"!=typeof e?null:/.+\.aircall\.(io|co)/.test(e)?/^(?:\w+\:\/\/)?([^\/]+)([^\?]*)\??(.*)$/.exec(e)[1].split(":/")[0]:null,M=e=>"string"==typeof e?(0,n.TF)(e.toLowerCase().trim().replace(/[`'â"]/g,"-")):"",R=e=>{var t,r,n,i,a;let s=null==(r=window)||null==(t=r.location)?void 0:t.pathname;if(e){let t=e.slice().reverse().find(e=>(null==e?void 0:e.pageUrl)!==s);if(t)return M(t.page_template)}return(0,o.Bd)()?M(null==(n=E(null==(a=window)||null==(i=a.location)?void 0:i.pathname))?void 0:n.name):""}},10221:(e,t,r)=>{"use strict";var n=r(65225);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},10525:(e,t,r)=>{"use strict";r.d(t,{Ne:()=>i,gi:()=>a,nl:()=>n,nt:()=>s,tA:()=>o});let n=["AG","AR","BB","BO","BR","BS","BZ","CO","CR","CU","DM","DO","EC","GD","GT","GY","HN","HT","JM","KN","LC","MX","NI","PA","PE","PY","SR","TT","UY","VC","VE"],i="[email protected]",o=Object.freeze({BROW
1SER:"browser",SERVER:"server"}),a=Object.freeze({REQUEST:"request",SUCCESS:"success",REJECTION:"rejection",FAILURE:"failure"}),s={STAGING:"pe49450036_form_submission_custom_event",PRODUCTION:"pe48407761_form_submission_custom_event"}},10916:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return n}}),r(18804).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12815:(e,t,r)=>{"use strict";r.d(t,{Cz:()=>o,hC:()=>a});let n=["United States","France","United Kingdom","Germany","Australia","Spain","Canada","Singapore","Mexico","Netherlands","Switzerland","Israel","Belgium","Austria","Chile","Sweden","Lithuania","Finland","Peru","Italy","New Zealand","Denmark","Latvia","Hong Kong","Czech Republic","Estonia","Colombia","Poland","Ireland","Malaysia","Portugal","Slovenia","Romania","Norway","Greece","Hungary"],i=["Luxembourg","Bulgaria","Cyprus","Malta"];function o(e){return!!e&&i.includes(e)}function a(e){try{var t;if(!e||(null==(t=window)?void 0:t.Cypress))return!1;return!n.includes(e)}catch(e){return!1}}},14e3:(e,t,r)=>{e.exports=r(94397)},15773:(e,t,r)=>{"use strict";var n=r(96081).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=g,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=b,this.end=v,t=3;break;default:this.write=m,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function m(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},17203:()=>{},18658:(e,t,r)=>{"use strict";r.d(t,{_0:()=>n,pq:()=>i,zY:()=>o});
1let n="geolocation-region",i={FR:{raw:"+33176360695",formatted:"+33 1 76 36 06 95"},AU:{raw:"+61284172226",formatted:"+61 2 8417 2226"},DE:{raw:"+493030808459",formatted:"+49 3030 808459"},BR:{raw:"+551146806714",formatted:"+55 11 4680-6714"},US:{raw:"+18882406923",formatted:"+1 888 240-6923"},ES:{raw:"+34911239609",formatted:"+34 911 239 609"},GB:{raw:"+442033187154",formatted:"+44 20 3318 7154"},CH:{raw:"+41435086954",formatted:"+41 43 508 69 54"},CO:{raw:"+56225823559",formatted:"+56 2 25823559"},NL:{raw:"+31852081002",formatted:"+31 85 208 1002"},DK:{raw:"+4589871699",formatted:"+45 89 87 16 99"},AT:{raw:"+43720882114",formatted:"+43 720 882114"},IL:{raw:"+97237208185",formatted:"+972 37 208 185"},BE:{raw:"+3228081925",formatted:"+32 28 08 19 25"},SE:{raw:"+46844680664",formatted:"+46 84 468 06 64"},SG:{raw:"+6531581024",formatted:"+65 3158 1024"}},o=i.US},19975:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return o}});let n=r(66336),i=r(23428);function o(e){if((0,i.isNextRouterError)(e)||(0,n.isBailoutToCSRError)(e))throw e;e instanceof Error&&"cause"in e&&o(e.cause)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20228:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u,Pj:()=>s});var n=r(37876),i=r(14232);let o={},a=i.createContext([{},{}]),s=()=>i.useContext(a),u=e=>t=>{let[r,s]=i.useState(o),u={set:i.useCallback((e,t)=>{s(r=>{let n=Object.assign({},r);return n[e]=t,n})},[s])};return(0,n.jsx)(a.Provider,{value:[r,u],children:(0,n.jsx)(e,{...t})})}},22182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{UnrecognizedActionError:function(){return r},unstable_isUnrecognizedActionError:function(){return n}});class r extends Error{constructor(...e){super(...e),this.name="UnrecognizedActionError"}}function n(e){return!!(e&&"object"==typeof e&&e instanceof r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23411:(e,t,r)=>{"use strict";var n=r(80985),i=r(98857),o=r(66530),a=r(1737);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},24275:e=>{e.exports={style:{fontFamily:"'itcGaramondStd', 'itcGaramondStd Fallback', serif"},className:"__className_80dcf6",variable:"__variable_80dcf6"}},25220:(e,t,r)=>{"use strict";r.d(t,{fS:()=>n.A,cs:()=>o});var n=r(72472),i=r(18658);let o=e=>{var t;return i.pq[null==e||null==(t=e.country)?void 0:t.code]||i.zY}},27238:(e,t,r)=>{"use strict";r.d(t,{Jb:()=>h,TA:()=>s,Wh:()=>g,al:()=>c,nT:()=>d,uC:()=>b,uK:()=>p});var n=r(14232),i=r(1499),o=r(2841);let a="--is-on-privacy-policy-page",s={NECESSARY:"necessary_cookies",PERFORMANCE:"performance_cookies",FUNCTIONAL:"functional_cookies",TARGETING:"targeting_cookies"};s.NECESSARY,s.PERFORMANCE,s.FUNCTIONAL,s.TARGETING;let u="OptanonActiveGroups",c="cookie-consent-popup",l=()=>{var e,t,r,n,i,s,u,c,l,f,d;if((0,o.Bd)()&&"undefined"!=typeof document&&"undefined"!=typeof Optanon&&"function"==typeof(null==(e=Optanon)?void 0:e.GetDomainData)&&(null==(t=document)?void 0:t.body)){let e=null==(i=Optanon)||null==(n=i.GetDomainData)||null==(r=n.call(i))?void 0:r.AboutLink,t=(null==(u=document)||null==(s=u.location)?void 0:s.pathname)===e;null==(d=document)||null==(f=d.body)||null==(l=f.classList)||null==(c=l[t?"add":"remove"])||c.call(l,a)}},f=[],d=e=>{f.push(e)},h=()=>{let e=[];return(0,o.Bd)()&&"string"==typeof window[u]&&(window[u].includes(",C0001,")&&e.push(s.NECESSARY),window[u].includes(",C0002,")&&e.push(s.PERFORMANCE),window[u].includes(",C0003,")&&e.push(s.FUNCTIONAL),window[u].includes(",C0004,")&&e.push(s.TARGETING)),e},p=()=>
1{(0,o.Bd)()&&"string"==typeof window[u]&&f.forEach(e=>{"function"==typeof e&&e()}),l()},g=()=>{var e;(0,o.Bd)()&&"undefined"!=typeof Optanon&&"function"==typeof(null==(e=Optanon)?void 0:e.ToggleInfoDisplay)&&Optanon.ToggleInfoDisplay()},b=e=>{let{pageProps:t}=e,r=n.useContext(i.U);n.useEffect(()=>{if((0,o.Bd)()&&"undefined"!=typeof Optanon){var e,t;null==(t=Optanon)||null==(e=t.changeLanguage)||e.call(t)}},[r]),n.useEffect(l,[t])}},27239:(e,t,r)=>{"use strict";var n=r(98857),i=r(71742),o=r(65865),a=r(10221);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===u&&f?f.writable:!u});else if(!l&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},28419:(e,t,r)=>{"use strict";var n=r(1643);e.exports=Function.prototype.bind||n},28862:(e,t,r)=>{"use strict";r.d(t,{NN:()=>tT,iX:()=>tL,Br:()=>tO});var n,i,o=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,a={revert:function(){}},s=new Map,u=new Set;function c(e){return"html"===e?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[e]}}function l(e){var t=s.get(e);return t||(t={element:e,attributes:{}},s.set(e,t)),t}function f(e,t,r,n,i){var o=r(e),a={isDirty:!1,originalValue:o,virtualValue:o,mutations:[],el:e,_positionTimeout:null,observer:new MutationObserver(function(){if("position"!==t||!a._positionTimeout){"position"===t&&(a._positionTimeout=setTimeout(function(){a._positionTimeout=null},1e3));var n=r(e);("position"!==t||n.parentNode!==a.virtualValue.parentNode||n.insertBeforeNode!==a.virtualValue.insertBeforeNode)&&n!==a.virtualValue&&(a.originalValue=n,i(a))}}),mutationRunner:i,setValue:n,getCurrentValue:r};return"position"===t&&e.parentNode?a.observer.observe(e.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):a.observer.observe(e,c(t)),a}function d(e,t){var r=t.getCurrentValue(t.el);t.virtualValue=e,e&&"string"!=typeof e?r&&e.parentNode===r.parentNode&&e.insertBeforeNode===r.insertBeforeNode||(t.isDirty=!0,L()):e!==r&&(t.isDirty=!0,L())}function h(e){var t=e.originalValue;e.mutations.forEach(function(e){return t=e.mutate(t)}),d(I(t),e)}function p(e){var t=new Set(e.originalValue.split(/\s+/).filter(Boolean));e.mutations.forEach(function(e){return e.mutate(t)}),d(Array.from(t).filter(Boolean).join(" "),e)}function g(e){var t=e.originalValue;e.mutations.forEach(function(e){return t=e.mutate(t)}),d(t,e)}function b(e){var t=e.parentSelector,r=e.insertBeforeSelector,n=document.querySelector(t);if(!n)return null;var i=r?document.querySelector(r):null;return r&&!i?null:{parentNode:n,insertBeforeNode:i}}function v(e){var t=e.originalValue;e.mutations.forEach(function(e){t=b(e.mutate())||t}),d(t,e)}var m=function(e){return e.innerHTML},y=function(e,t){return e.innerHTML=t};function _(e){var t=l(e);return t.html||(t.html=f(e,"html",m,y,h)),t.html}var w=function(e){return{parentNode:e.parentElement,insertBeforeNode:e.nextElementSibling}},S=function(e,t){(!t.insertBeforeNode||t.parentNode.contains(t.insertBeforeNode))&&t.parentNode.insertBefore(e,t.insertBeforeNode)};function E(e){var t=l(e);return t.position||(t.position=f(e,"position",w,S,v)),t.position}var x=function(e,t){return t?e.className=t:e.removeAttribute("class")},k=function(e){return e.className};function A(e){var t=l(e);return t.classes||(t.classes=f(e,"class",k,x,p)),t.classes}var M=function(e){return function(t){var r;return null!=(r=t.getAttribute(e))?r:null}},R=function(e){return function(t,r){return null!==r?t.setAttribute(e,r):t.removeAttribute(e)}};function T(e,t){var r=l(e);return r.attributes[t]||(r.attributes[t]=f(e,t,M(t),R(t),g)),r.attributes[t]}function C(e,t){var r,n,i,o,a,u,c,l,f,d=s.get(e);d&&("html"===t?(null==(r=d.html)||null==(n=r.observer)||n.disconnect(),delete d.html):"class"===t?(null==(i=d.classes)||null==(o=i.observer)||o.disconnect(),delete d.classes):"position"===t?(null==(a=d.position)||null==(u=a.observer)||u.disconnect(),delete d.position):(null==(c=d.attributes)||null==(l=c[t])||null==(f=l.observer)||f.disconnect(),delete d.attributes[t]))}function I(e){return n||(n=document.createElement("div")),n.innerHTML=e,n.innerHTML}function O(e,t,r){if(r.isDirty){r.isDirty=!1;var n=r.virtualValue;r.mutations.length||C(e,t),r.setValue(e,n)}}function P(e,t){e.html&&O(t,"html",e.html),e.classes&&O(t,"class",e.classes),e.position&&O(t,"position",e.position),Object.keys(e.attributes).forEac
1h(function(r){O(t,r,e.attributes[r])})}function L(){s.forEach(P)}function N(e,t){var r=null;"html"===e.kind?r=_(t):"class"===e.kind?r=A(t):"attribute"===e.kind?r=T(t,e.attribute):"position"===e.kind&&(r=E(t)),r&&(r.mutations.push(e),r.mutationRunner(r))}function D(e,t){var r=null;if("html"===e.kind?r=_(t):"class"===e.kind?r=A(t):"attribute"===e.kind?r=T(t,e.attribute):"position"===e.kind&&(r=E(t)),r){var n=r.mutations.indexOf(e);-1!==n&&r.mutations.splice(n,1),r.mutationRunner(r)}}function B(e){if("position"!==e.kind||1!==e.elements.size){var t=new Set(e.elements),r=document.querySelectorAll(e.selector);r.forEach(function(r){t.has(r)||(e.elements.add(r),N(e,r))})}}function j(e){e.elements.forEach(function(t){return D(e,t)}),e.elements.clear(),u.delete(e)}function U(){u.forEach(B)}function F(e){return"undefined"==typeof document?a:(u.add(e),B(e),{revert:function(){j(e)}})}function z(e,t){return F({kind:"html",elements:new Set,mutate:t,selector:e})}function H(e,t){return F({kind:"position",elements:new Set,mutate:t,selector:e})}function V(e,t){return F({kind:"class",elements:new Set,mutate:t,selector:e})}function q(e,t,r){return o.test(t)?"class"===t||"className"===t?V(e,function(e){var t=r(Array.from(e).join(" "));e.clear(),t&&t.split(/\s+/g).filter(Boolean).forEach(function(t){return e.add(t)})}):F({kind:"attribute",attribute:t,elements:new Set,mutate:r,selector:e}):a}function $(e){var t=e.selector,r=e.action,n=e.value,i=e.attribute,o=e.parentSelector,s=e.insertBeforeSelector;if("html"===i){if("append"===r)return z(t,function(e){return e+(null!=n?n:"")});else if("set"===r)return z(t,function(){return null!=n?n:""})}
1else if("class"===i){if("append"===r)return V(t,function(e){n&&e.add(n)});else if("remove"===r)return V(t,function(e){n&&e.delete(n)});else if("set"===r)return V(t,function(e){e.clear(),n&&e.add(n)})}else if("position"===i){if("set"===r&&o)return H(t,function(){return{insertBeforeSelector:s,parentSelector:o}})}else if("append"===r)return q(t,i,function(e){return null!==e?e+(null!=n?n:""):null!=n?n:""});else if("set"===r)return q(t,i,function(){return null!=n?n:""});else if("remove"===r)return q(t,i,function(){return null});return a}!function(){"undefined"!=typeof document&&(i||(i=new MutationObserver(function(){U()})),U(),i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}))}();let G={declarative:$},W={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};function K(e){let t=0x811c9dc5,r=e.length;for(let n=0;n<r;n++)t^=e.charCodeAt(n),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return t>>>0}function Y(e,t,r){return 2===r?K(K(e+t)+"")%1e4/1e4:1===r?K(t+e)%1e3/1e3:null}function X(e){return e<=0?[]:Array(e).fill(1/e)}function J(e,t){return e>=t[0]&&e<t[1]}function Z(e,t){let r=Y("__"+t[0],e,1);return null!==r&&r>=t[1]&&r<t[2]}function Q(e,t){for(let r=0;r<t.length;r++)if(J(e,t[r]))return r;return -1}function ee(e){try{let t=e.replace(/([^\\])\//g,"$1\\/");return new RegExp(t)}catch(e){console.error(e);return}}function et(e,t){if(!t.length)return!1;let r=!1,n=!1;for(let i=0;i<t.length;i++){let o=ei(e,t[i].type,t[i].pattern);if(!1===t[i].include){if(o)return!1}else r=!0,o&&(n=!0)}return n||!r}function er(e,t,r){try{let n=t.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");return r&&(n="\\/?"+n.replace(/(^\/|\/$)/g,"")+"\\/?"),RegExp("^"+n+"$","i").test(e)}catch(e){return!1}}function en(e,t){try{let r=new URL(t.replace(/^([^:/?]*)\./i,"https://$1.").replace(/\*/g,"_____"),"https://_____"),n=[[e.host,r.host,!1],[e.pathname,r.pathname,!0]];return r.hash&&n.push([e.hash,r.hash,!1]),r.searchParams.forEach((t,r)=>{n.push([e.searchParams.get(r)||"",t,!1])}),!n.some(e=>!er(e[0],e[1],e[2]))}catch(e){return!1}}function ei(e,t,r){try{let n=new URL(e,"https://_");if("regex"===t){let e=ee(r);if(!e)return!1;return e.test(n.href)||e.test(n.href.substring(n.origin.length))}if("simple"===t)return en(n,r);return!1}catch(e){return!1}}function eo(e,t,r){(t=void 0===t?1:t)<0?t=0:t>1&&(t=1);let n=X(e);(r=r||n).length!==e&&(r=n);let i=r.reduce((e,t)=>t+e,0);(i<.99||i>1.01)&&(r=n);let o=0;return r.map(e=>{let r=o;return o+=e,[r,r+t*e]})}function ea(e,t,r){if(!t)return null;let n=t.split("?")[1];if(!n)return null;let i=n.replace(/#.*/,"").split("&").map(e=>e.split("=",2)).filter(([t])=>t===e).map(([,e])=>parseInt(e));return i.length>0&&i[0]>=0&&i[0]<r?i[0]:null}function es(e){try{return e()}catch(e){return console.error(e),!1}}let eu=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0));async function ec(e,t,r){if(t=t||"",!(r=r||globalThis.crypto&&globalThis.crypto.subtle||W.SubtleCrypto))throw Error("No SubtleCrypto implementation found");try{let n=await r.importKey("raw",eu(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[i,o]=e.split("."),a=await r.decrypt({
1name:"AES-CBC",iv:eu(i)},n,eu(o));return new TextDecoder().decode(a)}catch(e){throw Error("Failed to decrypt")}}function el(e){return"string"==typeof e?e:JSON.stringify(e)}function ef(e){"number"==typeof e&&(e+=""),e&&"string"==typeof e||(e="0");let t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return 3===t.length&&t.push("~"),t.map(e=>e.match(/^[0-9]+$/)?e.padStart(5," "):e).join("-")}function ed(){let e;try{e="1.6.5"}catch(t){e=""}return e}function eh(e,t){let r,n;try{r=new URL(e),n=new URL(t)}catch(e){return console.error(`Unable to merge query strings: ${e}`),t}return r.searchParams.forEach((e,t)=>{n.searchParams.has(t)||n.searchParams.set(t,e)}),n.toString()}function ep(e){return"object"==typeof e&&null!==e}function eg(e){return e.urlPatterns&&e.variations.some(e=>ep(e)&&"urlRedirect"in e)?"redirect":e.variations.some(e=>ep(e)&&(e.domMutations||"js"in e||"css"in e))?"visual":"unknown"}async function eb(e,t){return new Promise(r=>{let n,i=!1,o=e=>{i||(i=!0,n&&clearTimeout(n),r(e||null))};t&&(n=setTimeout(()=>o(),t)),e.then(e=>o(e)).catch(()=>o())})}let ev={staleTTL:6e4,maxAge:144e5,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:2e4,disableCache:!1},em=W,ey={fetchFeaturesCall:({host:e,clientKey:t,headers:r})=>em.fetch(`${e}/api/features/${t}`,{headers:r}),fetchRemoteEvalCall:({host:e,clientKey:t,payload:r,headers:n})=>{let i={method:"POST",headers:{"Content-Type":"application/json",...n},body:JSON.stringify(r)};return em.fetch(`${e}/api/eval/${t}`,i)},eventSourceCall:({host:e,clientKey:t,headers:r})=>r?new em.EventSource(`${e}/sub/${t}`,{headers:r}):new em.EventSource(`${e}/sub/${t}`),startIdleListener:()=>{let e;if("undefined"==typeof window||"undefined"==typeof document)return;let t=()=>{"visible"===document.visibilityState?(window.clearTimeout(e),eI()):"hidden"===document.visibilityState&&(e=window.setTimeout(eC,ev.idleStreamInterval))};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(em.localStorage=globalThis.localStorage)}catch(e){}let e_=new Map,ew=!1,eS=new Map,eE=new Map,ex=new Map,ek=new Set;function eA(e){Object.assign(ev,e),ev.backgroundSync||eG()}async function eM({instance:e,timeout:t,skipCache:r,allowStale:n,backgroundSync:i}){return i||(ev.backgroundSync=!1),eP({instance:e,allowStale:n,timeout:t,skipCache:r})}function eR(e){let t=eL(e),r=e_.get(t)||new Set;r.add(e),e_.set(t,r)}function eT(e){e_.forEach(t=>t.delete(e))}function eC(){ex.forEach(e=>{e&&(e.state="idle",eV(e))})}function eI(){ex.forEach(e=>{e&&"idle"===e.state&&eq(e)})}async function eO(){try{if(!em.localStorage)return;await em.localStorage.setItem(ev.cacheKey,JSON.stringify(Array.from(eS.entries())))}catch(e){}}async function eP({instance:e,allowStale:t,timeout:r,skipCache:n}){let i=eL(e),o=eN(e),a=new Date,s=new Date(a.getTime()-ev.maxAge+ev.staleTTL);await eD();let u=ev.disableCache||n?void 0:eS.get(o);return u&&(t||u.staleAt>a)&&u.staleAt>s?(u.sse&&ek.add(i),u.staleAt<a?eF(e):ez(e),{data:u.data,success:!0,source:"cache"}):await eb(eF(e),r)||{data:null,success:!1,source:"timeout",error:Error("Timeout")}}function eL(e){let[t,r]=e.getApiInfo();return`${t}||${r}`}function eN(e){let t=eL(e);if(!("isRemoteEval"in e)||!e.isRemoteEval())return t;let r=e.getAttributes(),n=e.getCacheKeyAttributes()||Object.keys(e.getAttributes()),i={};n.forEach(e=>{i[e]=r[e]});let o=e.getForcedVariations(),a=e.getUrl();return`${t}||${JSON.stringify({ca:i,fv:o,url:a})}`}async function eD(){if(!ew){ew=!0;try{if(em.localStorage){let e=await em.localStorage.getItem(ev.cacheKey);if(!ev.disableCache&&e){let t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach(([e,t])=>{eS.set(e,{...t,staleAt:new Date(t.staleAt)})}),eB()}}}catch(e){}if(!ev.disableIdleStreams){let e=ey.startIdleListener();e&&(ey.stopIdleListener=e)}}}function eB(){let e=Array.from(eS.entries()).map(([e,t])=>({key:e,staleAt:t.staleAt.getTime()})).sort((e,t)=>e.staleAt-t.staleAt),t=Math.min(Math.max(0,eS.size-ev.maxEntries),eS.size);for(let r=0;r<t;r++)eS.delete(e[r].key)}function ej(e,t,r){let n=r.dateUpdated||"",i=new Date(Date.now()+ev.staleTTL),o=ev.disableCache?void 0:eS.get(t);if(o&&n&&o.version===n){o.staleAt=i,eO();return}ev.disableCache||(eS.set(t,{data:r,version:n,staleAt:i,sse:ek.has(e)}),eB()),eO();let a=e_.get(e);
1a&&a.forEach(e=>eU(e,r))}async function eU(e,t){await e.setPayload(t||e.getPayload())}async function eF(e){let{apiHost:t,apiRequestHeaders:r}=e.getApiHosts(),n=e.getClientKey(),i="isRemoteEval"in e&&e.isRemoteEval(),o=eL(e),a=eN(e),s=eE.get(a);return s||(s=(i?ey.fetchRemoteEvalCall({host:t,clientKey:n,payload:{attributes:e.getAttributes(),forcedVariations:e.getForcedVariations(),forcedFeatures:Array.from(e.getForcedFeatures().entries()),url:e.getUrl()},headers:r}):ey.fetchFeaturesCall({host:t,clientKey:n,headers:r})).then(e=>{if(!e.ok)throw Error(`HTTP error: ${e.status}`);return"enabled"===e.headers.get("x-sse-support")&&ek.add(o),e.json()}).then(t=>(ej(o,a,t),ez(e),eE.delete(a),{data:t,success:!0,source:"network"})).catch(e=>(eE.delete(a),{data:null,source:"error",success:!1,error:e})),eE.set(a,s)),s}function ez(e,t=!1){let r=eL(e),n=eN(e),{streamingHost:i,streamingHostRequestHeaders:o}=e.getApiHosts(),a=e.getClientKey();if(t&&ek.add(r),ev.backgroundSync&&ek.has(r)&&em.EventSource){if(ex.has(r))return;let e={src:null,host:i,clientKey:a,headers:o,cb:t=>{try{if("features-updated"===t.type){let e=e_.get(r);e&&e.forEach(e=>{eF(e)})}else if("features"===t.type){let e=JSON.parse(t.data);ej(r,n,e)}e.errors=0}catch(t){eH(e)}},errors:0,state:"active"};ex.set(r,e),eq(e)}}function eH(e){if("idle"!==e.state&&(e.errors++,e.errors>3||e.src&&2===e.src.readyState)){let t=Math.pow(3,e.errors-3)*(1e3+1e3*Math.random());eV(e),setTimeout(()=>{["idle","active"].includes(e.state)||eq(e)},Math.min(t,3e5))}}function eV(e){e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null,"active"===e.state&&(e.state="disabled"))}function eq(e){e.src=ey.eventSourceCall({host:e.host,clientKey:e.clientKey,headers:e.headers}),e.state="active",e.src.addEventListener("features",e.cb),e.src.addEventListener("features-updated",e.cb),e.src.onerror=()=>eH(e),e.src.onopen=()=>{e.errors=0}}function e$(e,t){eV(e),ex.delete(t)}function eG(){ek.clear(),ex.forEach(e$),e_.clear(),ey.stopIdleListener()}function eW(e,t){if(t.streaming){if(!e.getClientKey())throw Error("Must specify clientKey to enable streaming");t.payload&&ez(e,!0),eR(e)}}let eK={};function eY(e,t,r){for(let[n,i]of(r=r||{},Object.entries(t)))switch(n){case"$or":if(!e4(e,i,r))return!1;break;case"$nor":if(e4(e,i,r))return!1;break;case"$and":if(!e5(e,i,r))return!1;break;case"$not":if(eY(e,i,r))return!1;break;default:if(!eZ(i,eX(e,n),r))return!1}return!0}function eX(e,t){let r=t.split("."),n=e;for(let e=0;e<r.length;e++)if(!n||"object"!=typeof n||!(r[e]in n))return null;else n=n[r[e]];return n}function eJ(e,t=!1){let r=`${e}${t?"/i":""}`;return eK[r]||(eK[r]=new RegExp(e.replace(/([^\\])\//g,"$1\\/"),t?"i":void 0)),eK[r]}function eZ(e,t,r,n=!1){if("string"==typeof e)return n?String(t).toLowerCase()===e.toLowerCase():t+""===e;if("number"==typeof e)return+t===e;if("boolean"==typeof e)return null!==t&&!!t===e;if(null===e)return null===t;if(Array.isArray(e)||!eQ(e))return JSON.stringify(t)===JSON.stringify(e);for(let n in e)if(!e6(n,t,e[n],r))return!1;return!0}function eQ(e){let t=Object.keys(e);return t.length>0&&t.filter(e=>"$"===e[0]).length===t.length}function e0(e){if(null===e)return"null";if(Array.isArray(e))return"array";let t=typeof e;return["string","number","boolean","object","undefined"].includes(t)?t:"unknown"}function e1(e,t,r){if(!Array.isArray(e))return!1;let n=eQ(t)?e=>eZ(t,e,r):e=>eY(e,t,r);for(let t=0;t<e.length;t++)if(e[t]&&n(e[t]))return!0;return!1}function e2(e,t,r=!1){if(r){let r=e=>"string"==typeof e?e.toLowerCase():e;return Array.isArray(e)?e.some(e=>t.some(t=>r(e)===r(t))):t.some(t=>r(e)===r(t))}return Array.isArray(e)?e.some(e=>t.includes(e)):t.includes(e)}function e3(e,t,r,n=!1){if(!Array.isArray(e))return!1;for(let i=0;i<t.length;i++){let o=!1;for(let a=0;a<e.length;a++)if(eZ(t[i],e[a],r,n)){o=!0;break}if(!o)return!1}return!0}function e6(e,t,r,n){switch(e){case"$veq":return ef(t)===ef(r);case"$vne":return ef(t)!==ef(r);case"$vgt":return ef(t)>ef(r);case"$vgte":return ef(t)>=ef(r);case"$vlt":return ef(t)<ef(r);case"$vlte":return ef(t)<=ef(r);case"$eq":return t===r;case"$ne":return t!==r;case"$lt":return t<r;
1case"$lte":return t<=r;case"$gt":return t>r;case"$gte":return t>=r;case"$exists":return r?null!=t:null==t;case"$in":if(!Array.isArray(r))return!1;return e2(t,r);case"$ini":if(!Array.isArray(r))return!1;return e2(t,r,!0);case"$inGroup":return e2(t,n[r]||[]);case"$notInGroup":return!e2(t,n[r]||[]);case"$nin":if(!Array.isArray(r))return!1;return!e2(t,r);case"$nini":if(!Array.isArray(r))return!1;return!e2(t,r,!0);case"$not":return!eZ(r,t,n);case"$size":if(!Array.isArray(t))return!1;return eZ(r,t.length,n);case"$elemMatch":return e1(t,r,n);case"$all":if(!Array.isArray(r))return!1;return e3(t,r,n);case"$alli":if(!Array.isArray(r))return!1;return e3(t,r,n,!0);case"$regex":try{return eJ(r).test(t)}catch(e){return!1}case"$regexi":try{return eJ(r,!0).test(t)}catch(e){return!1}case"$type":return e0(t)===r;default:return console.error("Unknown operator: "+e),!1}}function e4(e,t,r){if(!t.length)return!0;for(let n=0;n<t.length;n++)if(eY(e,t[n],r))return!0;return!1}function e5(e,t,r){for(let n=0;n<t.length;n++)if(!eY(e,t[n],r))return!1;return!0}let e8="Feature Evaluated",e9="Experiment Viewed";function e7(e){let t=new Map;return e.global.forcedFeatureValues&&e.global.forcedFeatureValues.forEach((e,r)=>t.set(r,e)),e.user.forcedFeatureValues&&e.user.forcedFeatureValues.forEach((e,r)=>t.set(r,e)),t}function te(e){return e.global.forcedVariations&&e.user.forcedVariations?{...e.global.forcedVariations,...e.user.forcedVariations}:e.global.forcedVariations?e.global.forcedVariations:e.user.forcedVariations?e.user.forcedVariations:{}}async function tt(e){try{await e()}catch(e){}}function tr(e,t,r){if(e.user.trackedExperiments){let n=tA(t,r);if(e.user.trackedExperiments.has(n))return[];e.user.trackedExperiments.add(n)}e.user.enableDevMode&&e.user.devLogs&&e.user.devLogs.push({experiment:t,result:r,timestamp:Date.now().toString(),logType:"experiment"});let n=[];if(e.global.trackingCallback){let i=e.global.trackingCallback;n.push(tt(()=>i(t,r,e.user)))}if(e.user.trackingCallback){let i=e.user.trackingCallback;n.push(tt(()=>i(t,r)))}if(e.global.eventLogger){let i=e.global.eventLogger;n.push(tt(()=>i(e9,{experimentId:t.key,variationId:r.key,hashAttribute:r.hashAttribute,hashValue:r.hashValue},e.user)))}return n}function tn(e,t,r){if(e.user.trackedFeatureUsage){let n=JSON.stringify(r.value);if(e.user.trackedFeatureUsage[t]===n)return;e.user.trackedFeatureUsage[t]=n,e.user.enableDevMode&&e.user.devLogs&&e.user.devLogs.push({featureKey:t,result:r,timestamp:Date.now().toString(),logType:"feature"})}if(e.global.onFeatureUsage){let n=e.global.onFeatureUsage;tt(()=>n(t,r,e.user))}if(e.user.onFeatureUsage){let n=e.user.onFeatureUsage;tt(()=>n(t,r))}if(e.global.eventLogger){let n=e.global.eventLogger;tt(()=>n(e8,{feature:t,source:r.source,value:r.value,ruleId:"defaultValue"===r.source?"$default":r.ruleId||"",variationId:r.experimentResult?r.experimentResult.key:""},e.user))}}function ti(e,t){if(t.stack.evaluatedFeatures.has(e))return ta(t,e,null,"cyclicPrerequisite");t.stack.evaluatedFeatures.add(e),t.stack.id=e;let r=e7(t);if(r.has(e))return ta(t,e,r.get(e),"override");if(!t.global.features||!t.global.features[e])return ta(t,e,null,"unknownFeature");let n=t.global.features[e];if(n.rules){let r=new Set(t.stack.evaluatedFeatures);e:for(let i of n.rules){if(i.parentConditions)for(let n of i.parentConditions){t.stack.evaluatedFeatures=new Set(r);let i=ti(n.id,t);if("cyclicPrerequisite"===i.source)return ta(t,e,null,"cyclicPrerequisite");if(!eY({value:i.value},n.condition||{})){if(n.gate)return ta(t,e,null,"prerequisite");continue e}}if(i.filters&&tc(i.filters,t))continue;if("force"in i){if(i.condition&&!tu(i.condition,t)||!tl(t,i.seed||e,i.hashAttribute,t.user.saveStickyBucketAssignmentDoc&&!i.disableStickyBucketing?i.fallbackAttribute:void 0,i.range,i.coverage,i.hashVersion))continue;return i.tracks&&i.tracks.forEach(e=>{!tr(t,e.experiment,e.result).length&&t.global.saveDeferredTrack&&t.global.saveDeferredTrack({experiment:e.experiment,result:e.result})}),ta(t,e,i.force,"force",i.id)}if(!i.variations)continue;let n={variations:i.variations,key:i.key||e};"coverage"in i&&(n.coverage=i.coverage),i.weights&&(n.weights=i.weights),i.hashAttribute&&(n.hashAttribute=i.hashAttribute),i.fallbackAttribute&&(n.fallbackAttribute=i.fallbackAttribute),i.disableStickyBucketing&&(n.disableStickyBucketing=i.disableStickyBucketing),void 0!==i.bucketVersion&&(n.bucketVersion=i.bucketVersion),void 0!==i.minBucketVersion&&(n.minBucketVersion=i.minBucketVersion),i.namespace&&(n.namespace=i.namespace),i.meta&&(n.meta=i.meta),i.ranges&&(n.ranges=i.ranges),i.name&&(n.name=i.name),i.phase&&(n.phase=i.phase),i.seed&&(n.seed=i.seed),i.hashVersion&&(n.hashVersion=i.hashVersion),i.filters&&(n.filters=i.filters),i.condition&&(n.condition=i.condition);let{result:o}=to(n,e,t);if(t.global.onExperimentEval&&t.global.onExperimentEval(n,o),o.inExperiment&&!o.passthrough)return ta(t,e,o.value,"experiment",i.id,n,o)}}return ta(t,e,void 0===n.defaultValue?null:n.defaultValue,"defaultValue")}function to(e,t,r){let n=e.key,i=e.variations.length;if(i<2||!1===r.global.enabled||!1===r.user.enabled||(e=td(e,r)).urlPatterns&&!et(r.user.url||"",e.urlPatterns))return{result:tf(r,e,-1,!1,t)};let o=ea(n,r.user.url||"",i);if(null!==o)return{result:tf(r,e,o,!1,t)};let a=te(r);if(n in a)return{result:tf(r,e,a[n],!1,t)};if("draft"===e.status||!1===e.active)return{result:tf(r,e,-1,!1,t)};let{hashAttribute:s,hashValue:u}=th(r,e.hashAttribute,r.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing?e.fallbackAttribute:void 0);if(!u)return{result:tf(r,e,-1,!1,t)};let c=-1,l=!1,f=!1;if(r.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing){let{variation:t,versionIsBlocked:n}=tb({ctx:r,expKey:e.key,expBucketVersion:e.bucketVersion,expHashAttribute:e.hashAttribute,expFallbackAttribute:e.fallbackAttribute,expMinBucketVersion:e.minBucketVersion,expMeta:e.meta});l=t>
1=0,c=t,f=!!n}if(!l){if(e.filters){if(tc(e.filters,r))return{result:tf(r,e,-1,!1,t)}}else if(e.namespace&&!Z(u,e.namespace))return{result:tf(r,e,-1,!1,t)};if(e.include&&!es(e.include)||e.condition&&!tu(e.condition,r))return{result:tf(r,e,-1,!1,t)};if(e.parentConditions){let n=new Set(r.stack.evaluatedFeatures);for(let i of e.parentConditions){r.stack.evaluatedFeatures=new Set(n);let o=ti(i.id,r);if("cyclicPrerequisite"===o.source||!eY({value:o.value},i.condition||{}))return{result:tf(r,e,-1,!1,t)}}}if(e.groups&&!tg(e.groups,r))return{result:tf(r,e,-1,!1,t)}}if(e.url&&!tp(e.url,r))return{result:tf(r,e,-1,!1,t)};let d=Y(e.seed||n,u,e.hashVersion||1);if(null===d)return{result:tf(r,e,-1,!1,t)};if(l||(c=Q(d,e.ranges||eo(i,void 0===e.coverage?1:e.coverage,e.weights))),f)return{result:tf(r,e,-1,!1,t,void 0,!0)};if(c<0)return{result:tf(r,e,-1,!1,t)};if("force"in e)return{result:tf(r,e,void 0===e.force?-1:e.force,!1,t)};if(r.global.qaMode||r.user.qaMode||"stopped"===e.status)return{result:tf(r,e,-1,!1,t)};let h=tf(r,e,c,!0,t,d,l);if(r.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing){let{changed:t,key:n,doc:i}=t_(r,s,el(u),{[tv(e.key,e.bucketVersion)]:h.key});t&&(r.user.stickyBucketAssignmentDocs=r.user.stickyBucketAssignmentDocs||{},r.user.stickyBucketAssignmentDocs[n]=i,r.user.saveStickyBucketAssignmentDoc(i))}let p=tr(r,e,h);0===p.length&&r.global.saveDeferredTrack&&r.global.saveDeferredTrack({experiment:e,result:h});let g=p.length?1===p.length?p[0]:Promise.all(p).then(()=>{}):void 0;return"changeId"in e&&e.changeId&&r.global.recordChangeId&&r.global.recordChangeId(e.changeId),{result:h,trackingCall:g}}function ta(e,t,r,n,i,o,a){let s={value:r,on:!!r,off:!r,source:n,ruleId:i||""};return o&&(s.experiment=o),a&&(s.experimentResult=a),"override"!==n&&tn(e,t,s),s}function ts(e){return{...e.user.attributes,...e.user.attributeOverrides}}function tu(e,t){return eY(ts(t),e,t.global.savedGroups||{})}function tc(e,t){return e.some(e=>{let{hashValue:r}=th(t,e.attribute);if(!r)return!0;let n=Y(e.seed,r,e.hashVersion||2);return null===n||!e.ranges.some(e=>J(n,e))})}function tl(e,t,r,n,i,o,a){if(!i&&void 0===o)return!0;if(!i&&0===o)return!1;let{hashValue:s}=th(e,r,n);if(!s)return!1;let u=Y(t,s,a||1);return null!==u&&(i?J(u,i):void 0===o||u<=o)}function tf(e,t,r,n,i,o,a){let s=!0;(r<0||r>=t.variations.length)&&(r=0,s=!1);let{hashAttribute:u,hashValue:c}=th(e,t.hashAttribute,e.user.saveStickyBucketAssignmentDoc&&!t.disableStickyBucketing?t.fallbackAttribute:void 0),l=t.meta?t.meta[r]:{},f={key:l.key||""+r,featureId:i,inExperiment:s,hashUsed:n,variationId:r,value:t.variations[r],hashAttribute:u,hashValue:c,stickyBucketUsed:!!a};return l.name&&(f.name=l.name),void 0!==o&&(f.bucket=o),l.passthrough&&(f.passthrough=l.passthrough),f}function td(e,t){let r=e.key,n=t.global.overrides;return n&&n[r]&&"string"==typeof(e=Object.assign({},e,n[r])).url&&(e.url=ee(e.url)),e}function th(e,t,r){let n=t||"id",i="",o=ts(e);return o[n]&&(i=o[n]),!i&&r&&(o[r]&&(i=o[r]),i&&(n=r)),{hashAttribute:n,hashValue:i}}function tp(e,t){let r=t.user.url;if(!r)return!1;let n=r.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!(e.test(r)||e.test(n))}function tg(e,t){let r=t.global.groups||{};for(let t=0;t<e.length;t++)if(r[e[t]])return!0;return!1}function tb({ctx:e,expKey:t,expBucketVersion:r,expHashAttribute:n,expFallbackAttribute:i,expMinBucketVersion:o,expMeta:a}){o=o||0,n=n||"id",a=a||[];let s=tv(t,r=r||0),u=ty(e,n,i);if(o>0){for(let e=0;e<o;e++)if(void 0!==u[tv(t,e)])return{variation:-1,versionIsBlocked:!0}}let c=u[s];if(void 0===c)return{variation:-1};let l=a.findIndex(e=>e.key===c);return l<0?{variation:-1}:{variation:l}}function tv(e,t){return t=t||0,`${e}__${t}`}function tm(e,t){return`${e}||${t}`}function ty(e,t,r){if(!e.user.stickyBucketAssignmentDocs)return{};let{hashAttribute:n,hashValue:i}=th(e,t),o=tm(n,el(i)),{hashAttribute:a,hashValue:s}=th(e,r),u=s?tm(a,el(s)):null,c={};return u&&e.user.stickyBucketAssignmentDocs[u]&&Object.assign(c,e.user.stickyBucketAssignmentDocs[u].assignments||{}),e.user.stickyBucketAssignmentDocs[o]&&Object.assign(c,e.user.stickyBucketAssignmentDocs[o].assignments||{}),c}function t_(e,t,r,n){let i=tm(t,r),o=e.user.stickyBucketAssignmentDocs&&e.user.stickyBucketAssignmentDocs[i]&&e.user.stickyBucketAssignmentDocs[i].assignments||{},a={...o,...n},s=JSON.stringify(o)!==JSON.stringify(a);return{key:i,doc:{attributeName:t,attributeValue:r,assignments:a},changed:s}}function tw(e,t){let r=new Set,n=t&&t.features?t.features:e.global.features||{},i=t&&t.experiments?t.experiments:e.global.experiments||[];
1return Object.keys(n).forEach(e=>{let t=n[e];if(t.rules)for(let e of t.rules)e.variations&&(r.add(e.hashAttribute||"id"),e.fallbackAttribute&&r.add(e.fallbackAttribute))}),i.map(e=>{r.add(e.hashAttribute||"id"),e.fallbackAttribute&&r.add(e.fallbackAttribute)}),Array.from(r)}async function tS(e,t,r){let n=tE(e,r);return t.getAllAssignments(n)}function tE(e,t){let r={};return tw(e,t).forEach(t=>{let{hashValue:n}=th(e,t);r[t]=el(n)}),r}async function tx(e,t,r){if((e={...e}).encryptedFeatures){try{e.features=JSON.parse(await ec(e.encryptedFeatures,t,r))}catch(e){console.error(e)}delete e.encryptedFeatures}if(e.encryptedExperiments){try{e.experiments=JSON.parse(await ec(e.encryptedExperiments,t,r))}catch(e){console.error(e)}delete e.encryptedExperiments}if(e.encryptedSavedGroups){try{e.savedGroups=JSON.parse(await ec(e.encryptedSavedGroups,t,r))}catch(e){console.error(e)}delete e.encryptedSavedGroups}return e}function tk(e){let t=e.apiHost||"https://cdn.growthbook.io";return{apiHost:t.replace(/\/*$/,""),streamingHost:(e.streamingHost||t).replace(/\/*$/,""),apiRequestHeaders:e.apiHostRequestHeaders,streamingHostRequestHeaders:e.streamingHostRequestHeaders}}function tA(e,t){return t.hashAttribute+t.hashValue+e.key+t.variationId}let tM="undefined"!=typeof window&&"undefined"!=typeof document,tR=ed();class tT{constructor(e){if(e=e||{},this.version=tR,this._options=this.context=e,this._renderer=e.renderer||null,this._trackedExperiments=new Set,this._completedChangeIds=new Set,this._trackedFeatures={},this.debug=!!e.debug,this._subscriptions=new Set,this.ready=!1,this._assigned=new Map,this._activeAutoExperiments=new Map,this._triggeredExpKeys=new Set,this._initialized=!1,this._redirectedUrl="",this._deferredTrackingCalls=new Map,this._autoExperimentsAllowed=!e.disableExperimentsOnLoad,this._destroyCallbacks=[],this.logs=[],this.log=this.log.bind(this),this._saveDeferredTrack=this._saveDeferredTrack.bind(this),this._onExperimentEval=this._onExperimentEval.bind(this),this._fireSubscriptions=this._fireSubscriptions.bind(this),this._recordChangedId=this._recordChangedId.bind(this),e.remoteEval){if(e.decryptionKey)throw Error("Encryption is not available for remoteEval");if(!e.clientKey)throw Error("Missing clientKey");let t=!1;try{t=!!new URL(e.apiHost||"").hostname.match(/growthbook\.io$/i)}catch(e){}if(t)throw Error("Cannot use remoteEval on GrowthBook Cloud")}else if(e.cacheKeyAttributes)throw Error("cacheKeyAttributes are only used for remoteEval");if(e.stickyBucketService){let t=e.stickyBucketService;this._saveStickyBucketAssignmentDoc=e=>t.saveAssignments(e)}if(e.plugins)for(let t of e.plugins)t(this);if(e.features&&(this.ready=!0),tM&&e.enableDevMode&&(window._growthbook=this,document.dispatchEvent(new Event("gbloaded"))),e.experiments&&(this.ready=!0,this._updateAllAutoExperiments()),this._options.stickyBucketService&&this._options.stickyBucketAssignmentDocs)for(let e in this._options.stickyBucketAssignmentDocs){let t=this._options.stickyBucketAssignmentDocs[e];t&&this._options.stickyBucketService.saveAssignments(t).catch(()=>{})}this.ready&&this.refreshStickyBuckets(this.getPayload())}async setPayload(e){this._payload=e;let t=await tx(e,this._options.decryptionKey);this._decryptedPayload=t,await this.refreshStickyBuckets(t),t.features&&(this._options.features=t.features),t.savedGroups&&(this._options.savedGroups=t.savedGroups),t.experiments&&(this._options.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,this._render()}initSync(e){this._initialized=!0;let t=e.payload;if(t.encryptedExperiments||t.encryptedFeatures)throw Error("initSync does not support encrypted payloads");return this._options.stickyBucketService&&!this._options.stickyBucketAssignmentDocs&&(this._options.stickyBucketAssignmentDocs=this.generateStickyBucketAssignmentDocsSync(this._options.stickyBucketService,t)),this._payload=t,this._decryptedPayload=t,t.features&&(this._options.features=t.features),t.experiments&&(this._options.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,eW(this,e),this}async init(e){if(this._initialized=!0,(e=e||{}).cacheSettings&&eA(e.cacheSettings),e.payload)return await this.setPayload(e.payload),eW(this,e),{success:!0,source:"init"};{let{data:t,...r}=await this._refresh({...e,allowStale:!0});return eW(this,e),await this.setPayload(t||{}),r}}async loadFeatures(e){e=e||{},await this.init({skipCache:e.skipCache,timeout:e.timeout,streaming:(this._options.backgroundSync??!0)&&(e.autoRefresh||this._options.subscribeToChanges)})}async refreshFeatures(e){let t=await this._refresh({...e||{},allowStale:!1});t.data&&await this.setPayload(t.data)}
1getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){return tk(this._options)}getClientKey(){return this._options.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}isRemoteEval(){return this._options.remoteEval||!1}getCacheKeyAttributes(){return this._options.cacheKeyAttributes}async _refresh({timeout:e,skipCache:t,allowStale:r,streaming:n}){if(!this._options.clientKey)throw Error("Missing clientKey");return eM({instance:this,timeout:e,skipCache:t||this._options.disableCache,allowStale:r,backgroundSync:n??this._options.backgroundSync??!0})}_render(){if(this._renderer)try{this._renderer()}catch(e){console.error("Failed to render",e)}}setFeatures(e){this._options.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,t,r){let n=await ec(e,t||this._options.decryptionKey,r);this.setFeatures(JSON.parse(n))}setExperiments(e){this._options.experiments=e,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(e,t,r){let n=await ec(e,t||this._options.decryptionKey,r);this.setExperiments(JSON.parse(n))}async setAttributes(e){if(this._options.attributes=e,this._options.stickyBucketService&&await this.refreshStickyBuckets(),this._options.remoteEval)return void await this._refreshForRemoteEval();this._render(),this._updateAllAutoExperiments()}async updateAttributes(e){return this.setAttributes({...this._options.attributes,...e})}async setAttributeOverrides(e){if(this._options.attributeOverrides=e,this._options.stickyBucketService&&await this.refreshStickyBuckets(),this._options.remoteEval)return void await this._refreshForRemoteEval();this._render(),this._updateAllAutoExperiments()}async setForcedVariations(e){if(this._options.forcedVariations=e||{},this._options.remoteEval)return void await this._refreshForRemoteEval();this._render(),this._updateAllAutoExperiments()}setForcedFeatures(e){this._options.forcedFeatureValues=e,this._render()}async setURL(e){if(e!==this._options.url){if(this._options.url=e,this._redirectedUrl="",this._options.remoteEval){await this._refreshForRemoteEval(),this._updateAllAutoExperiments(!0);return}this._updateAllAutoExperiments(!0)}}getAttributes(){return{...this._options.attributes,...this._options.attributeOverrides}}getForcedVariations(){return this._options.forcedVariations||{}}getForcedFeatures(){return this._options.forcedFeatureValues||new Map}getStickyBucketAssignmentDocs(){return this._options.stickyBucketAssignmentDocs||{}}getUrl(){return this._options.url||""}getFeatures(){return this._options.features||{}}getExperiments(){return this._options.experiments||[]}getCompletedChangeIds(){return Array.from(this._completedChangeIds)}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}async _refreshForRemoteEval(){if(!this._options.remoteEval||!this._initialized)return;let e=await this._refresh({allowStale:!1});e.data&&await this.setPayload(e.data)}getAllResults(){return new Map(this._assigned)}onDestroy(e){this._destroyCallbacks.push(e)}isDestroyed(){return!!this._destroyed}destroy(e){e=e||{},this._destroyed=!0,this._destroyCallbacks.forEach(e=>{try{e()}catch(e){console.error(e)}}),this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._completedChangeIds.clear(),this._deferredTrackingCalls.clear(),this._trackedFeatures={},this._destroyCallbacks=[],this._payload=void 0,this._saveStickyBucketAssignmentDoc=void 0,eT(this),e.destroyAllStreams&&eG(),this.logs=[],tM&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach(e=>{e.undo()}),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(e){this._renderer=e}forceVariation(e,t){if(this._options.forcedVariations=this._options.forcedVariations||{},this._options.forcedVariations[e]=t,this._options.remoteEval)return void this._refreshForRemoteEval();this._updateAllAutoExperiments(),this._render()}run(e){let{result:t}=to(e,null,this._getEvalContext());return this._onExperimentEval(e,t),t}triggerExperiment(e){return(this._triggeredExpKeys.add(e),this._options.experiments)?this._options.experiments.filter(t=>t.key===e).map(e=>this._runAutoExperiment(e)).filter(e=>null!==e):null}triggerAutoExperiments(){this._autoExperimentsAllowed=!0,this._updateAllAutoExperiments(!0)}_getEvalContext(){return{user:this._getUserContext(),global:this._getGlobalContext(),stack:{evaluatedFeatures:new Set}}}_getUserContext(){return{attributes:this._options.user?{...this._options.user,...this._options.attributes}:this._options.attributes,enableDevMode:this._options.enableDevMode,blockedCh
1angeIds:this._options.blockedChangeIds,stickyBucketAssignmentDocs:this._options.stickyBucketAssignmentDocs,url:this._getContextUrl(),forcedVariations:this._options.forcedVariations,forcedFeatureValues:this._options.forcedFeatureValues,attributeOverrides:this._options.attributeOverrides,saveStickyBucketAssignmentDoc:this._saveStickyBucketAssignmentDoc,trackingCallback:this._options.trackingCallback,onFeatureUsage:this._options.onFeatureUsage,devLogs:this.logs,trackedExperiments:this._trackedExperiments,trackedFeatureUsage:this._trackedFeatures}}_getGlobalContext(){return{features:this._options.features,experiments:this._options.experiments,log:this.log,enabled:this._options.enabled,qaMode:this._options.qaMode,savedGroups:this._options.savedGroups,groups:this._options.groups,overrides:this._options.overrides,onExperimentEval:this._onExperimentEval,recordChangeId:this._recordChangedId,saveDeferredTrack:this._saveDeferredTrack,eventLogger:this._options.eventLogger}}_runAutoExperiment(e,t){let r,n,i=this._activeAutoExperiments.get(e);if(e.manual&&!this._triggeredExpKeys.has(e.key)&&!i)return null;this._isAutoExperimentBlockedByContext(e)?r=tf(this._getEvalContext(),e,-1,!1,""):({result:r,trackingCall:n}=to(e,null,this._getEvalContext()),this._onExperimentEval(e,r));let o=JSON.stringify(r.value);if(!t&&r.inExperiment&&i&&i.valueHash===o)return r;if(i&&this._undoActiveAutoExperiment(e),r.inExperiment){let t=eg(e);if("redirect"===t&&r.value.urlRedirect&&e.urlPatterns){let t=e.persistQueryString?eh(this._getContextUrl(),r.value.urlRedirect):r.value.urlRedirect;if(et(t,e.urlPatterns))return this.log("Skipping redirect because original URL matches redirect URL",{id:e.key}),r;this._redirectedUrl=t;let{navigate:i,delay:o}=this._getNavigateFunction();if(i)if(tM)Promise.all([...n?[eb(n,this._options.maxNavigateDelay??1e3)]:[],new Promise(e=>window.setTimeout(e,this._options.navigateDelay??o))]).then(()=>{try{i(t)}catch(e){console.error(e)}});else try{i(t)}catch(e){console.error(e)}}else if("visual"===t){let t=this._options.applyDomChangesCallback?this._options.applyDomChangesCallback(r.value):this._applyDOMChanges(r.value);t&&this._activeAutoExperiments.set(e,{undo:t,valueHash:o})}}return r}_undoActiveAutoExperiment(e){let t=this._activeAutoExperiments.get(e);t&&(t.undo(),this._activeAutoExperiments.delete(e))}_updateAllAutoExperiments(e){if(!this._autoExperimentsAllowed)return;let t=this._options.experiments||[],r=new Set(t);for(let n of(this._activeAutoExperiments.forEach((e,t)=>{r.has(t)||(e.undo(),this._activeAutoExperiments.delete(t))}),t)){let t=this._runAutoExperiment(n,e);if(t&&t.inExperiment&&"redirect"===eg(n))break}}_onExperimentEval(e,t){let r=this._assigned.get(e.key);this._assigned.set(e.key,{experiment:e,result:t}),this._subscriptions.size>0&&this._fireSubscriptions(e,t,r)}_fireSubscriptions(e,t,r){r&&r.result.inExperiment===t.inExperiment&&r.result.variationId===t.variationId||this._subscriptions.forEach(r=>{try{r(e,t)}catch(e){console.error(e)}})}_recordChangedId(e){this._completedChangeIds.add(e)}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,t){let r=this.evalFeature(e).value;return null===r?t:r}feature(e){return this.evalFeature(e)}evalFeature(e){return ti(e,this._getEvalContext())}log(e,t){this.debug&&(this._options.log?this._options.log(e,t):console.log(e,t))}getDeferredTrackingCalls(){return Array.from(this._deferredTrackingCalls.values())}setDeferredTrackingCalls(e){this._deferredTrackingCalls=new Map(e.filter(e=>e&&e.experiment&&e.result).map(e=>[tA(e.experiment,e.result),e]))}async fireDeferredTrackingCalls(){if(!this._options.trackingCallback)return;let e=[];this._deferredTrackingCalls.forEach(t=>{t&&t.experiment&&t.result?e.push(this._options.trackingCallback(t.experiment,t.result)):console.error("Invalid deferred tracking call",{call:t})}),this._deferredTrackingCalls.clear(),await Promise.all(e)}setTrackingCallback(e){this._options.trackingCallback=e,this.fireDeferredTrackingCalls()}setFeatureUsageCallback(e){this._options.onFeatureUsage=e}setEventLogger(e){this._options.eventLogger=e}async logEvent(e,t){if(this._destroyed)return void console.error("Cannot log event to destroyed GrowthBook instance");if(this._options.enableDevMode&&this.logs.push({eventName:e,properties:t,timestamp:Date.now().toString(),logType:"event"}),this._options.eventLogger)try{await this._options.eventLogger(e,t||{},this._getUserContext())}catch(e){console.error(e)}else console.error("No event logger configured")}_saveDeferredTrack(e){this._deferredTrackingCalls.set(tA(e.experiment,e.result),e)}_getContextUrl(){return this._options.url||(tM?window.location.href:"")}_isAutoExperimentBlockedByContext(e){let t=eg(e);if("visual"===t){if(this._options.disableVisualExperiments||this._options.disableJs
1Injection&&e.variations.some(e=>e.js))return!0}else{if("redirect"!==t||this._options.disableUrlRedirectExperiments)return!0;try{let t=new URL(this._getContextUrl());for(let r of e.variations){if(!r||!r.urlRedirect)continue;let e=new URL(r.urlRedirect);if(this._options.disableCrossOriginUrlRedirectExperiments&&(e.protocol!==t.protocol||e.host!==t.host))return!0}}catch(t){return this.log("Error parsing current or redirect URL",{id:e.key,error:t}),!0}}return!!(e.changeId&&(this._options.blockedChangeIds||[]).includes(e.changeId))}getRedirectUrl(){return this._redirectedUrl}_getNavigateFunction(){return this._options.navigate?{navigate:this._options.navigate,delay:0}:tM?{navigate:e=>{window.location.replace(e)},delay:100}:{navigate:null,delay:0}}_applyDOMChanges(e){if(!tM)return;let t=[];if(e.css){let r=document.createElement("style");r.innerHTML=e.css,document.head.appendChild(r),t.push(()=>r.remove())}if(e.js){let r=document.createElement("script");r.innerHTML=e.js,this._options.jsInjectionNonce&&(r.nonce=this._options.jsInjectionNonce),document.head.appendChild(r),t.push(()=>r.remove())}return e.domMutations&&e.domMutations.forEach(e=>{t.push(G.declarative(e).revert)}),()=>{t.forEach(e=>e())}}async refreshStickyBuckets(e){if(this._options.stickyBucketService){let t=this._getEvalContext(),r=await tS(t,this._options.stickyBucketService,e);this._options.stickyBucketAssignmentDocs=r}}generateStickyBucketAssignmentDocsSync(e,t){if(!("getAllAssignmentsSync"in e))return void console.error("generating StickyBucketAssignmentDocs docs requires StickyBucketServiceSync");let r=tE(this._getEvalContext(),t);return e.getAllAssignmentsSync(r)}inDevMode(){return!!this._options.enableDevMode}}var tC=r(14232);let tI=tC.createContext({});function tO(e,t){return tP().getFeatureValue(e,t)}function tP(){let{growthbook:e}=tC.useContext(tI);if(!e)throw Error("Missing or invalid GrowthBookProvider");return e}let tL=({children:e,growthbook:t})=>{let[r,n]=tC.useState(0);return tC.useEffect(()=>{if(t&&t.setRenderer)return t.setRenderer(()=>{n(e=>e+1)}),()=>{t.setRenderer(()=>{})}},[t]),tC.createElement(tI.Provider,{value:{growthbook:t}},e)}},29351:e=>{"use strict";e.exports=Error},30237:(e,t,r)=>{var n=r(99742),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!E(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])w(s)||!A(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var u=n.env.NODE_DEBUG;s=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_(r)?n.showHidden=r:r&&t._extend(n,r),x(n.showHidden)&&(n.showHidden=!1),x(n.depth)&&(n.depth=2),x(n.colors)&&(n.colors=!1),x(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function f(e,t){return e}function d(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&T(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return E(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),u=d(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),R(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return g(r);
1if(0===s.length){if(T(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(k(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(M(r))return e.stylize(Date.prototype.toString.call(r),"date");if(R(r))return g(r)}var l="",f=!1,_=["{","}"];if(y(r)&&(f=!0,_=["[","]"]),T(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),k(r)&&(l=" "+RegExp.prototype.toString.call(r)),M(r)&&(l=" "+Date.prototype.toUTCString.call(r)),R(r)&&(l=" "+g(r)),0===s.length&&(!f||0==r.length))return _[0]+l+_[1];if(n<0)if(k(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),i=f?b(e,r,n,u,s):s.map(function(t){return v(e,r,n,u,t,f)}),e.seen.pop(),m(i,l,_)}function p(e,t){if(x(t))return e.stylize("undefined","undefined");if(E(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return S(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):w(t)?e.stylize("null","null"):void 0}function g(e){return"["+Error.prototype.toString.call(e)+"]"}function b(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)L(t,String(a))?o.push(v(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(v(e,t,r,n,i,!0))}),o}function v(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),L(n,i)||(a="["+i+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=w(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),x(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function y(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function w(e){return null===e}function S(e){return"number"==typeof e}function E(e){return"string"==typeof e}function x(e){return void 0===e}function k(e){return A(e)&&"[object RegExp]"===C(e)}function A(e){return"object"==typeof e&&null!==e}function M(e){return A(e)&&"[object Date]"===C(e)}function R(e){return A(e)&&("[object Error]"===C(e)||e instanceof Error)}function T(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function I(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(44470),t.isArray=y,t.isBoolean=_,t.isNull=w,t.isNullOrUndefined=function(e){return null==e},t.isNumber=S,t.isString=E,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=k,t.types.isRegExp=k,t.isObject=A,t.isDate=M,t.types.isDate=M,t.isError=R,t.types.isNativeError=R,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(59101);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[I(e.getHours()),I(e.getMinutes()),I(e.getSeconds())].join(":");return[e.getDate(),O[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=r(93570),t._extend=function(e,t){if(!t||!A(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var N="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(N&&e[N]){var t=e[N];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,
1configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),N&&Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=N,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){n.nextTick(a.bind(null,null,e))},function(e){n.nextTick(D.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},31787:(e,t,r)=>{"use strict";var n=r(6768),i=r(65200),o=r(23411),a=r(73442),s=r(10221),u=r(34816),c=a("Object.prototype.toString"),l=r(48744)(),f="undefined"==typeof globalThis?r.g:globalThis,d=i(),h=a("String.prototype.slice"),p=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},g={__proto__:null};l&&s&&u?n(d,function(e){var t=new f[e];
1if(Symbol.toStringTag in t&&u){var r=u(t),n=s(r,Symbol.toStringTag);if(!n&&r&&(n=s(u(r),Symbol.toStringTag)),n&&n.get){var i=o(n.get);g["$"+e]=i}}}):n(d,function(e){var t=new f[e],r=t.slice||t.set;if(r){var n=o(r);g["$"+e]=n}});var b=function(e){var t=!1;return n(g,function(r,n){if(!t)try{"$"+r(e)===n&&(t=h(n,1))}catch(e){}}),t},v=function(e){var t=!1;return n(g,function(r,n){if(!t)try{r(e),t=h(n,1)}catch(e){}}),t};e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!l){var t=h(c(e),8,-1);return p(d,t)>-1?t:"Object"===t&&v(e)}return s?b(e):null}},32545:(e,t,r)=>{var n="/",i=r(99742);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))u=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(709),a=r(337);r(782)(l,o);for(var s=n(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||i.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=i;var n=r(170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=T,T.ReadableState=R,n(361).EventEmitter;var o,a,s,u,c,l=function(e,t){return e.listeners(t).length},f=n(678),d=n(300).Buffer,h=r.g.Uint8Array||function(){};function p(e){return d.from(e)}function g(e){return d.isBuffer(e)||e instanceof h}var b=n(837);a=b&&b.debuglog?b.debuglog("stream"):function(){};var v=n(379),m=n(25),y=n(776).getHighWaterMark,_=n(646).q,w=_.ERR_INVALID_ARG_TYPE,S=_.ERR_STREAM_PUSH_AFTER_EOF,E=_.ERR_METHOD_NOT_IMPLEMENT
vendor: 22,717 bytes, line 1
1ED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(T,f);var k=m.errorOrDestroy,A=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function R(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",r),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function T(e){if(o=o||n(403),!(this instanceof T))return new T(e);var t=this instanceof o;this._readableState=new R(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function C(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,D(e,s);else if(i||(o=O(s,t)),o)k(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=p(t)),n)s.endEmitted?k(e,new x):I(e,s,t,!0);else if(s.ended)k(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?I(e,s,t,!1):U(e,s)):I(e,s,t,!1)}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function I(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&B(e)),U(e,t)}function O(e,t){var r;return g(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=m.destroy,T.prototype._undestroy=m.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=d.from(e,t),t=""),r=!0),C(this,e,t,!1,r)},T.prototype.unshift=function(e){return C(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var P=0x40000000;function L(e){return e>=P?e=P:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function N(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=L(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function D(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?B(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}function B(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(j,e))}function j(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(e)}function U(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(F,e,t))}function F(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function z(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,G(e))}}function H(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function V(e){a("readable nexttick read 0"),e.read(0)}function q(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick($,e,t))}function $(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),G(e),t.flowing&&!t.reading&&e.read(0)}function G(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function W(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function K(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Y,t,e))}function Y(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function X(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}T.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?K(this):B(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&K(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=N(n,r))),null===(t=e>0?W(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&K(this)),null!==t&&this.emit("data",t),t},T.prototype._read=function(e){k(this,new E("_read()"))},T.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?v:u;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function u(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var c=z(r);e.on("drain",c);var f=!1;function d(){a("cleanup"),e.removeListener("close",g),e.removeListener("finish",b),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",v),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==X(n.pipes,e))&&!f&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),v(),e.removeListener("error",p),0===l(e,"error")&&k(e,t)}function g(){e.removeListener("finish",b),v()}function b(){a("onfinish"),e.removeListener("close",g),v()}function v(){a("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",g),e.once("finish",b),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=X(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},T.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?B(this):n.reading||i.nextTick(V,this)),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(H,this),r},T.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(H,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,q(this,e)),e.paused=!1,this},T.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(871)),u(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=W,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(e,t){return void 0===c&&(c=n(727)),c(T,e,t)})},170:function(e,t,r){"use strict";e.exports=l;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){$(t,e)}}e.exports=R,R.WritableState=M;var a,s,u={deprecate:n(769)},c=n(678),l=n(300).Buffer,f=r.g.Uint8Array||function(){};function d(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof f}var p=n(25),g=n(776).getHighWaterMark,b=n(646).q,v=b.ERR_INVALID_ARG_TYPE,m=b.ERR_METHOD_NOT_IMPLEMENTED,y=b.ERR_MULTIPLE_CALLBACK,_=b.ERR_STREAM_CANNOT_PIPE,w=b.ERR_STREAM_DESTROYED,S=b.ERR_STREAM_NULL_VALUES,E=b.ERR_STREAM_WRITE_AFTER_END,x=b.ERR_UNKNOWN_ENCODING,k=p.errorOrDestroy;function A(){}function M(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=g(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){D(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function R(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(R,this))return new R(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function T(e,t){var r=new E;k(e,r),i.nextTick(t,r)}function C(e,t,r,n){var o;return null===r?o=new S:"string"==typeof r||t.objectMode||(o=new v("chunk",["string","Buffer"],r)),!o||(k(e,o),i.nextTick(n,o),!1)}function I(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function O(e,t,r,n,i,o){if(!r){var a=I(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else P(e,t,!1,s,n,i,o);return u}function P(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function L(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(V,e,t),e._writableState.errorEmitted=!0,k(e,n)):(o(n),e._writableState.errorEmitted=!0,k(e,n),V(e,t))}function N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function D(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new y;if(N(r),t)L(e,r,n,t,o);else{var a=F(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||U(e,r),n?i.nextTick(B,e,r,a,o):B(e,r,a,o)}}function B(e,t,r,n){r||j(e,t),t.pendingcb--,n(),V(e,t)}function j(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function U(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,P(e,t,!0,t.length,n,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:u.length;if(P(e,t,!1,f,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function F(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function z(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),V(e,t)})}function H(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(z,e,t)))}function V(e,t){var r=F(t);if(r&&(H(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function q(e,t,r){t.ending=!0,V(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function $(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(R,c),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(R,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===R&&e&&e._writableState instanceof M}})):s=function(e){return e instanceof this},R.prototype.pipe=function(){k(this,new _)},R.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!l.isBuffer(e)&&(e=d(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=A),n.ending?T(this,r):(o||C(this,n,e,r))&&(n.pendingcb++,i=O(this,n,o,e,t,r)),i},R.prototype.cork=function(){this._writableState.corked++},R.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||U(this,e))},R.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(R.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),R.prototype._write=function(e,t,r){r(new m("_write()"))},R.prototype._writev=null,R.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||q(this,n,r),this},Object.defineProperty(R.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),R.prototype.destroy=p.destroy,R.prototype._undestroy=p.undestroy,R.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function b(e){i.nextTick(g,e)}function v(e,t){return function(r,n){e.then(function(){if(t[l])return void r(p(void 0,!0));t[d](r,n)},n)}}var m=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[c]?r(t[c]):e(p(void 0,!0))})});var n=this[f];if(n)e=new Promise(v(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[d])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e)return void r(e);t(p(void 0,!0))})})}),o),m);e.exports=function(e){var t,r=Object.create(y,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,d,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",b.bind(null,r)),r}},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 4,150 bytes, line 1
1t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var c=r(300).Buffer,l=r(837).inspect,f=l&&l.custom||"inspect";function d(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(n,this,e)):i.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?a._writableState?a._writableState.errorEmitted?i.nextTick(r,a):(a._writableState.errorEmitted=!0,i.nextTick(t,a,e)):i.nextTick(t,a,e):o?(i.nextTick(r,a),o(e)):i.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";
vendor: 2,421 bytes, line 1
1var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var u=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,l=function(){e.writable||d()},f=e._writableState&&e._writableState.finished,d=function(){c=!1,f=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,c||r.call(e)},g=function(t){r.call(e,t)},b=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!f?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},v=function(){e.req.on("finish",d)};return a(e)?(e.on("complete",d),e.on("abort",b),e.req?v():e.on("request",v)):c&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",g),e.on("close",b),function(){e.removeListener("complete",d),e.removeListener("abort",b),e.removeListener("request",v),e.req&&e.req.removeListener("finish",d),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",b)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
1var u=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function c(){return l.apply(this,arguments)}function l(){return(l=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?c():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,c())},o}},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function l(e,t,o,a){a=n(a);var u=!1;e.on("close",function(){u=!0}),void 0===i&&(i=r(698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);u=!0,a()});var l=!1;return function(t){if(!u&&!l){if(l=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function f(e){e()}function d(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}e.exports=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return l(t,a,n>0,function(t){e||(e=t),t&&o.forEach(f),a||(o.forEach(f),i(e))})});return r.reduce(d)}},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",c),e.on("error",c),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
1case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=g,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=b,this.end=v,t=3;break;default:this.write=m,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function m(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function e(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}},300:function(e){"use strict";e.exports=r(82909)},361:function(e){"use strict";e.exports=r(69319)},781:function(e){"use strict";e.exports=r(69319).EventEmitter},837:function(e){"use strict";e.exports=r(30237)}},o={};function a(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},i=!0;try{t[e](n,n.exports,a),i=!1}finally{i&&delete o[e]}return n.exports}a.ab=n+"/",e.exports=a(173)}()},33341:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return n}});let n=r(19975).unstable_rethrow;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34140:(e,t,r)=>{"use strict";var n=r(28419),i=r(71938),o=r(66958);e.exports=r(78121)||n.call(o,i)},34816:(e,t,r)=>{"use strict";var n=r(86558),i=r(61664),o=r(55450);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},35145:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(4317);function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&n._P in e?e[n._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},35302:(e,t,r)=>{"use strict";var n=r(48744)(),i=r(73442)("Object.prototype.toString"),o=function(e){return(!n||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},36668:(e,t,r)=>{"use strict";let n=r(489),{snakeCase:i}=r(62241),o={}.constructor;function a(e,t){return e.some(function(e){return"string"==typeof e?e===t:e.test(t)})}function s(e,t,r){return r.shouldRecurse?{shouldRecurse:r.shouldRecurse(e,t)}:void 0}e.exports=function(e,t){if(Array.isArray(e)){if(e.some(e=>e.constructor!==o))throw Error("obj must be array of plain objects")}else if(e.constructor!==o)throw Error("obj must be an plain object");let r=(t=Object.assign({deep:!0,exclude:[],parsingOptions:{}},t)).snakeCase||(e=>i(e,t.parsingOptions));return n(e,function(e,n){return[a(t.exclude,e)?e:r(e),n,s(e,n,t)]},t)}},37788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return l},RedirectType:function(){return i.RedirectType},forbidden:function(){return a.forbidden},notFound:function(){return o.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect},unauthorized:function(){return s.unauthorized},unstable_isUnrecognizedActionError:function(){return f},unstable_rethrow:function(){return u.unstable_rethrow}});let n=r(94091),i=r(86500),o=r(56153),a=r(10916),s=r(56533),u=r(33341);class c extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class l extends URLSearchParams{append(){throw new c}delete(){throw new c}set(){throw new c}sort(){throw new c}}function f(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38870:module=>{var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);
1this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},41760:e=>{"use strict";e.exports=Math.max},42032:(e,t,r)=>{"use strict";r.d(t,{IB:()=>n,c4:()=>o,g0:()=>a,q:()=>i});let n=["en","en-au","en-gb","es-mx","fr","de","es","it"],i="en",o=["en","en-gb","en-au","fr","de","es","es-mx","it"],a=["en","en-gb","en-au","fr","de","es","es-mx","it"]},42504:e=>{"use strict";e.exports=Math.pow},42785:(e,t,r)=>{"use strict";r.d(t,{GP:()=>ew});let n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=(e,t,r)=>{let i,o=n[e];if(i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null==r?void 0:r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i};function o(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}let a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:a,defaultWidth:"full"}),dateTime:o({formats:s,defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l=(e,t,r,n)=>c[e];function f(e){return(t,r)=>{let n;if("formatting"===((null==r?void 0:r.context)?String(r.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==r?void 0:r.width)?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==r?void 0:r.width)?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}let d={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},h={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},p={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]},g={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},b={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},v={ordinalNumber:(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:f({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:f({values:d,defaultWidth:"wide",argumentCallback:e=>e-1}),month:f({values:h,defaultWidth:"wide"}),day:f({values:p,defaultWidth:"wide"}),dayPeriod:f({values:g,defaultWidth:"wide",formattingValues:b,defaultFormattingWidth:"wide"})};function m(e){return function(t){let r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;let s=a[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?_(u,e=>e.test(s)):y(u,e=>e.test(s));return r=e.valueCallback?e.valueCallback(c):c,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(s.length)}}}function y(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function _(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}let w={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},S={any:[/^b/i,/^(a|c)/i]},E={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},x={any:[/1/i,/2/i,/3/i,/4/i]},k={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},A={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},M={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},R={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},T={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},C={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},I={code:"en-US",formatDistance:i,formatLong:u,formatRelative:l,localize:v,match:{ordinalNumber:function(e){return function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;let i=n[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:m({matchPatterns:w,defaultMatchWidth:"wide",parsePatterns:S,defaultParseWidth:"any"}),quarter:m({matchPatterns:E,defaultMatchWidth:"wide",parsePatterns:x,defaultParseWidth:"any",valueCallback:e=>e+1}),month:m({matchPatterns:k,defaultMatchWidth:"wide",parsePatterns:A,defaultParseWidth:"any"}),day:m({matchPatterns:M,defaultMatchWidth:"wide",parsePatterns:R,defaultParseWidth:"any"}),dayPeriod:m({matchPatterns:T,defaultMatchWidth:"any",parsePatterns:C,defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},O={};function P(){return O}var L=r(48901);function N(e){let t=(0,L.a)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),e-r}var D=r(35145);function B(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let i=D.w.bind(null,e||r.find(e=>"object"==typeof e));return r.map(i)}var j=r(4317);function U(e,t){let r=(0,L.a)(e,null==t?void 0:t.in);return r.setHours(0,0,0,0),r}function F(e,t,r){let[n,i]=B(null==r?void 0:r.in,e,t),o=U(n),a=U(i);return Math.round((o-N(o)-(a-N(a)))/j.w4)}function z(e,t){let r=(0,L.a)(e,null==t?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function H(e,t){let r=(0,L.a)(e,null==t?void 0:t.in);return F(r,z(r))+1}function V(e,t){var r,n,i,o,a,s,u,c;let l=P(),f=null!=(c=null!=(u=null!=(s=null!=(a=null==t?void 0:t.weekStartsOn)?a:null==t||null==(n=t.locale)||null==(r=n.options)?void 0:r.weekStartsOn)?s:l.weekStartsOn)?u:null==(o=l.locale)||null==(i=o.options)?void 0:i.weekStartsOn)?c:0,d=(0,L.a)(e,null==t?void 0:t.in),h=d.getDay(),p=7*(h<f)+h-f;return d.setDate(d.getDate()-p),d.setHours(0,0,0,0),d}function q(e,t){return V(e,{...t,weekStartsOn:1}
1)}function $(e,t){let r=(0,L.a)(e,null==t?void 0:t.in),n=r.getFullYear(),i=(0,D.w)(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);let o=q(i),a=(0,D.w)(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);let s=q(a);return r.getTime()>=o.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function G(e,t){let r=$(e,t),n=(0,D.w)((null==t?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),q(n)}function W(e,t){let r=(0,L.a)(e,null==t?void 0:t.in);return Math.round((q(r)-G(r))/j.my)+1}function K(e,t){var r,n,i,o,a,s,u,c;let l=(0,L.a)(e,null==t?void 0:t.in),f=l.getFullYear(),d=P(),h=null!=(c=null!=(u=null!=(s=null!=(a=null==t?void 0:t.firstWeekContainsDate)?a:null==t||null==(n=t.locale)||null==(r=n.options)?void 0:r.firstWeekContainsDate)?s:d.firstWeekContainsDate)?u:null==(o=d.locale)||null==(i=o.options)?void 0:i.firstWeekContainsDate)?c:1,p=(0,D.w)((null==t?void 0:t.in)||e,0);p.setFullYear(f+1,0,h),p.setHours(0,0,0,0);let g=V(p,t),b=(0,D.w)((null==t?void 0:t.in)||e,0);b.setFullYear(f,0,h),b.setHours(0,0,0,0);let v=V(b,t);return+l>=+g?f+1:+l>=+v?f:f-1}function Y(e,t){var r,n,i,o,a,s,u,c;let l=P(),f=null!=(c=null!=(u=null!=(s=null!=(a=null==t?void 0:t.firstWeekContainsDate)?a:null==t||null==(n=t.locale)||null==(r=n.options)?void 0:r.firstWeekContainsDate)?s:l.firstWeekContainsDate)?u:null==(o=l.locale)||null==(i=o.options)?void 0:i.firstWeekContainsDate)?c:1,d=K(e,t),h=(0,D.w)((null==t?void 0:t.in)||e,0);return h.setFullYear(d,0,f),h.setHours(0,0,0,0),V(h,t)}function X(e,t){let r=(0,L.a)(e,null==t?void 0:t.in);return Math.round((V(r,t)-Y(r,t))/j.my)+1}function J(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}let Z={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return J("yy"===t?n%100:n,t.length)},M(e,t){let r=e.getMonth();return"M"===t?String(r+1):J(r+1,2)},d:(e,t)=>J(e.getDate(),t.length),a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>J(e.getHours()%12||12,t.length),H:(e,t)=>J(e.getHours(),t.length),m:(e,t)=>J(e.getMinutes(),t.length),s:(e,t)=>J(e.getSeconds(),t.length),S(e,t){let r=t.length;return J(Math.trunc(e.getMilliseconds()*Math.pow(10,r-3)),t.length)}},Q={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ee={G:function(e,t,r){let n=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){let t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return Z.y(e,t)},Y:function(e,t,r,n){let i=K(e,n),o=i>0?i:1-i;return"YY"===t?J(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):J(o,t.length)},R:function(e,t){return J($(e),t.length)},u:function(e,t){return J(e.getFullYear(),t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return J(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return J(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return Z.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return J(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let i=X(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):J(i,t.length)},I:function(e,t,r){let n=W(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):J(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):Z.d(e,t)},D:function(e,t,r){let n=H(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):J(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return J(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return J(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return J(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n,i=e.getHours();switch(n=12===i?Q.noon:0===i?Q.midnight:i/12>
1=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n,i=e.getHours();switch(n=i>=17?Q.evening:i>=12?Q.afternoon:i>=4?Q.morning:Q.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return Z.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):Z.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):J(n,t.length)},k:function(e,t,r){let n=e.getHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):J(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Z.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Z.s(e,t)},S:function(e,t){return Z.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return er(n);case"XXXX":case"XX":return en(n);default:return en(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return er(n);case"xxxx":case"xx":return en(n);default:return en(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+et(n,":");default:return"GMT"+en(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+et(n,":");default:return"GMT"+en(n,":")}},t:function(e,t,r){return J(Math.trunc(e/1e3),t.length)},T:function(e,t,r){return J(+e,t.length)}};function et(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+t+J(o,2)}function er(e,t){return e%60==0?(e>0?"-":"+")+J(Math.abs(e)/60,2):en(e,t)}function en(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e>0?"-":"+",n=Math.abs(e);return r+J(Math.trunc(n/60),2)+t+J(n%60,2)}let ei=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},eo=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ea=(e,t)=>{let r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return ei(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",ei(i,t)).replace("{{time}}",eo(o,t))},es={p:eo,P:ea},eu=/^D+$/,ec=/^Y+$/,el=["D","DD","YY","YYYY"];function ef(e){return eu.test(e)}function ed(e){return ec.test(e)}function eh(e,t,r){let n=ep(e,t,r);if(console.warn(n),el.includes(e))throw RangeError(n)}function ep(e,t,r){let n="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(n," to the input `").
1concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}var eg=r(6919);let eb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ev=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,em=/^'([^]*?)'?$/,ey=/''/g,e_=/[a-zA-Z]/;function ew(e,t,r){var n,i,o,a,s,u,c,l,f,d,h,p,g,b,v,m,y,_;let w=P(),S=null!=(d=null!=(f=null==r?void 0:r.locale)?f:w.locale)?d:I,E=null!=(b=null!=(g=null!=(p=null!=(h=null==r?void 0:r.firstWeekContainsDate)?h:null==r||null==(i=r.locale)||null==(n=i.options)?void 0:n.firstWeekContainsDate)?p:w.firstWeekContainsDate)?g:null==(a=w.locale)||null==(o=a.options)?void 0:o.firstWeekContainsDate)?b:1,x=null!=(_=null!=(y=null!=(m=null!=(v=null==r?void 0:r.weekStartsOn)?v:null==r||null==(u=r.locale)||null==(s=u.options)?void 0:s.weekStartsOn)?m:w.weekStartsOn)?y:null==(l=w.locale)||null==(c=l.options)?void 0:c.weekStartsOn)?_:0,k=(0,L.a)(e,null==r?void 0:r.in);if(!(0,eg.f)(k))throw RangeError("Invalid time value");let A=t.match(ev).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,es[t])(e,S.formatLong):e}).join("").match(eb).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:eS(e)};if(ee[t])return{isToken:!0,value:e};if(t.match(e_))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});S.localize.preprocessor&&(A=S.localize.preprocessor(k,A));let M={firstWeekContainsDate:E,weekStartsOn:x,locale:S};return A.map(n=>{if(!n.isToken)return n.value;let i=n.value;return(!(null==r?void 0:r.useAdditionalWeekYearTokens)&&ed(i)||!(null==r?void 0:r.useAdditionalDayOfYearTokens)&&ef(i))&&eh(i,t,String(e)),(0,ee[i[0]])(k,i,S.localize,M)}).join("")}function eS(e){let t=e.match(em);return t?t[1].replace(ey,"'"):e}},43359:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});let n={FORM_CONVERSION:{name:"form_conversion",mapProperties:e=>e},EHAWK_SCORE_OBTAINED:{name:"ehawk_score_obtained",mapProperties:e=>e},FORM_STEP_COMPLETED:{name:"form_step_completed",mapProperties:e=>e},PAGE_VIEW:{name:"page_view",mapProperties:e=>e},TRIAL_SELECTED:{name:"trial_selected",mapProperties:e=>e},TRIAL_START_SUCCESS:{name:"trial_start_success",mapProperties:e=>e},TRIAL_ERROR:{name:"trial_error",mapProperties:e=>e},FORM_SUBMISSION_FAILED_INVALID_DOMAIN:{name:"form_submission_failed_invalid_domain",mapProperties:e=>e},DEMO_SELECTED:{name:"demo_selected",mapProperties:e=>e},DEMO_ERROR:{name:"demo_error",mapProperties:e=>e},DEMO_SCHEDULED:{name:"demo_scheduled",mapProperties:e=>e},DEMO_DISMISSED:{name:"demo_dismissed",mapProperties:e=>e},POST_FORM_ACTION:{name:"post_form_action",mapProperties:e=>e},USER_INTERACTION:{name:"user_interaction",mapProperties:e=>e},SIGN_UP_CLICKED:{name:"sign_up_clicked",mapProperties:e=>e},LINK_CLICKED:{name:"link_clicked",mapProperties:e=>e},GET_STARTED_CTA_CLICKED:{name:"get_started_cta_clicked",mapProperties:e=>e},FORM_SUBMISSION:{name:"form_submission",mapProperties:e=>e},MARKETO_FORM_SUBMISSION:{name:"marketo_form_submission",mapProperties:e=>e},FORM_SUBMISSION_ERROR:{name:"form_submission_error",mapProperties:e=>e},MARKETO_FORM_ERROR:{name:"marketo_form_error",mapProperties:e=>e},GET_STARTED_SHOW_TRIAL_CTA_ONLY:{name:"get_started_show_trial_cta_only",mapProperties:e=>e},GET_STARTED_SHOW_TRIAL_AND_DEMO_CTA:{name:"get_started_show_trial_and_demo_cta",mapProperties:e=>e},GET_STARTED_SHOW_ACCOUNT_VERIFICATION:{name:"get_started_show_account_verification",mapProperties:e=>e},FORM_STEP_VIEWED:{name:"form_step_viewed",mapProperties:e=>e},TALK_TO_SALES_SHOW_ACCOUNT_VERIFICATION:{name:"talk_to_sales_show_account_verification",mapProperties:e=>e},TALK_TO_SALES_SHOW_TRIAL_CTA:{name:"talk_to_sales_show_trial_cta",mapProperties:e=>e},TALK_TO_SALES_SHOW_ERROR:{name:"talk_to_sales_show_error",mapProperties:e=>e},TALK_TO_SALES_BRANCHING:{name:"talk_to_sales_branching",mapProperties:e=>e},EXPERIMENT_VIEWED:{name:"experiment_viewed",mapProperties:e=>e},PRICING_BILLING_TOGGLE_CHANGED:{name:"pricing_billing_toggle_changed",mapProperties:e=>e},PRICING_LICENSE_COUNT_ADJUSTED:{name:"pricing_license_count_adjusted",mapProperties:e=>e},PRICING_COUNTRY_CHANGED:{name:"pricing_country_changed",mapProperties:e=>e},PRICING_PLAN_SEE_MORE_CLICKED:{name:"pricing_plan_see_more_clicked",mapProperties:e=>e},PRICING_COMPARISON_TABLE_EXPANDED:{name:"pricing_comparison_table_expanded",mapProperties:e=>e}
vendor: 5,865 bytes, line 1
1,PRICING_CHAT_WIDGET_OPENED:{name:"pricing_chat_widget_opened",mapProperties:e=>e}}},44470:(e,t,r)=>{"use strict";var n=r(35302),i=r(96512),o=r(31787),a=r(53706);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(c)var g=s(Symbol.prototype.valueOf);function b(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===l(e)}function m(e){return"[object Set]"===l(e)}function y(e){return"[object WeakMap]"===l(e)}function _(e){return"[object WeakSet]"===l(e)}function w(e){return"[object ArrayBuffer]"===l(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===l(e)}function x(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||x(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},m.working="undefined"!=typeof Set&&m(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(m.working?m(e):e instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(y.working?y(e):e instanceof WeakMap)},_.working="undefined"!=typeof WeakSet&&_(new WeakSet),t.isWeakSet=function(e){return _(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=S,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===l(e)}function M(e){return void 0!==k&&(void 0===A.working&&(A.working=A(new k)),A.working?A(e):e instanceof k)}function R(e){return b(e,f)}function T(e){return b(e,d)}function C(e){return b(e,h)}function I(e){return u&&b(e,p)}function O(e){return c&&b(e,g)}t.isSharedArrayBuffer=M,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=R,t.isStringObject=T,t.isBooleanObject=C,t.isBigIntObject=I,t.isSymbolObject=O,t.isBoxedPrimitive=function(e){return R(e)||T(e)||C(e)||I(e)||O(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||M(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},45525:(e,t,r)=>{"use strict";var n,i=r(52468),o=r(29351),a=r(5391),s=r(55502),u=r(72130),c=r(71742),l=r(65865),f=r(73305),d=r(2002),h=r(2496),p=r(41760),g=r(54366),b=r(42504),v=r(87962),m=r(80611),y=Function,_=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=r(10221),S=r(98857),E=function(){throw new l},x=w?function(){try{return arguments.callee,E}catch(e){try{return w(arguments,"callee").get}catch(e){return E}}}():E,k=r(95295)(),A=r(34816),M=r(61664),R=r(86558),T=r(71938),C=r(66958),I={},O="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":k&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":k&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&A?A(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&A?A(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&A?A(""[Symbol.iterator]()):n,"%Symbol%":k?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":x,"%TypedArray%":O,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":T,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":M,"%Math.abs%":d,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":b,"%Math.round%":v,"%Math.sign%":m,"%Reflect.getPrototypeOf%":R};if(A)try{null.error}catch(e){var L=A(A(e));P["%Error.prototype%"]=L}var N=function e(t){var r;if("%AsyncFunction%"===t)r=_("async function () {}");else if("%GeneratorFunction%"===t)r=_("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=_("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&A&&(r=A(i.prototype))}return P[t]=r,r},D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=r(28419),j=r(71355),U=B.call(C,Array.prototype.concat),F=B.call(T,Array.prototype.splice),z=B.call(C,String.prototype.replace),H=B.call(C,String.prototype.slice),V=B.call(C,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,G=function(e){var t=H(e,0,1),r=H(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return z(e,q,function(e,t,r,i){n[n.length]=r?z(i,$,"$1"):t||e}),n},W=function(e,t){var r,n=e;if(j(D,n)&&(n="%"+(r=D[n])[0]+"%"),j(P,n)){var i=P[n];if(i===I&&(i=N(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=G(e),n=r.length>0?r[0]:"",i=W("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],F(r,U([0,1],u)));for(var f=1,d=!0;f<r.length;f+=1){var h=r[f],p=H(h,0,1),g=H(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&d||(s=!0),n+="."+h,j(P,o="%"+n+"%"))a=P[o];
1else if(null!=a){if(!(h in a)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&f+1>=r.length){var b=w(a,h);a=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:a[h]}else d=j(a,h),a=a[h];d&&!s&&(P[o]=a)}}return a}},46077:(e,t,r)=>{"use strict";r.d(t,{A:()=>dZ});var n,i,o,a,s,u,c,l,f,d,h,p,g,b,v,m,y,_,w,S,E,x,k,A,M,R,T,C={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},I=console,O={};Object.keys(C).forEach(function(e){O[e]=I[e]});var P="Datadog Browser SDK:",L={debug:O.debug.bind(I,P),log:O.log.bind(I,P),info:O.info.bind(I,P),warn:O.warn.bind(I,P),error:O.error.bind(I,P)},N="https://docs.datadoghq.com",D="".concat(N,"/real_user_monitoring/browser/troubleshooting"),B="More details:";function j(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{return e.apply(void 0,r)}catch(e){L.error(t,e)}}}var U=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},F=!1;function z(e){n=e}function H(e){F=e}function V(e,t,r){var i=r.value;r.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(n?q(i):i).apply(this,e)}}function q(e){return function(){return $(e,this,arguments)}}function $(e,t,r){try{return e.apply(t,r)}catch(e){if(G(e),n)try{n(e)}catch(e){G(e)}}}function G(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];F&&L.error.apply(L,U(["[MONITOR]"],e,!1))}function W(e,t){return -1!==e.indexOf(t)}function K(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach(function(e){return t.push(e)});else for(var r=0;r<e.length;r++)t.push(e[r]);return t}function Y(e,t){for(var r=0;r<e.length;r+=1){var n=e[r];if(t(n,r))return n}}function X(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(t(n,r,e))return n}}function J(e,t){Array.prototype.forEach.call(e,t)}function Z(e){return Object.keys(e).map(function(t){return e[t]})}function Q(e){return Object.keys(e).map(function(t){return[t,e[t]]})}function ee(e,t){return e.slice(0,t.length)===t}function et(e,t){return e.slice(-t.length)===t}function er(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}),e}function en(e){var t=er({version:"5.35.1",onReady:function(e){e()}},e);return Object.defineProperty(t,"_setDebug",{get:function(){return H},enumerable:!1}),t}function ei(e,t,r){var n=e[t];n&&!n.q&&n.version&&L.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=r,n&&n.q&&n.q.forEach(function(e){return j(e,"onReady callback threw an error:")()})}function eo(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}var ea=1024,es=1048576,eu=/[^\u0000-\u007F]/;function ec(e){return eu.test(e)?void 0!==window.TextEncoder?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function el(e){for(var t=new Uint8Array(e.reduce(function(e,t){return e+t.length},0)),r=0,n=0,i=e;n<i.length;n++){var o=i[n];t.set(o,r),r+=o.length}return t}function ef(e,t){var r,n=eo();return n.Zone&&"function"==typeof n.Zone.__symbol__&&(r=e[n.Zone.__symbol__(t)]),r||(r=e[t]),r}function ed(e,t){return ef(eo(),"setTimeout")(q(e),t)}function eh(e){ef(eo(),"clearTimeout")(e)}function ep(e,t){return ef(eo(),"setInterval")(q(e),t)}function eg(e){ef(eo(),"clearInterval")(e)}function eb(e,t,r){var n,i,o=!r||void 0===r.leading||r.leading,a=!r||void 0===r.trailing||r.trailing,s=!1;return{throttled:function(){for(var r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];if(s){n=r;return}o?e.apply(void 0,r):n=r,s=!0,i=ed(function(){a&&n&&e.apply(void 0,n),s=!1,n=void 0},t)},cancel:function(){eh(i),s=!1,n=void 0}}}function ev(){}function em(e,t,r){if("object"!=typeof e||null===e)return JSON.stringify(e);var n=ey(Object.prototype),i=ey(Array.prototype),o=ey(Object.getPrototypeOf(e)),a=ey(e);try{return JSON.stringify(e,t,r)}catch(e){return"<error: unable to serialize object>"}finally{n(),i(),o(),a()}}function ey(e){var t=e,r=t.toJSON;return r?(delete t.toJSON,function(){t.toJSON=r}):ev}function e_(e){return er({},e)}function ew(e,t){return Object.keys(e).some(function(r){return e[r]===t})}function eS(e){return 0===Object.keys(e).length}function eE(e,t){for(var r={},n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];r[o]=t(e[o])}return r}var ex=3072,ek=16384,eA=200;function eM(e){void 0===e&&(e=2);var t=new Map,r=!1;
1function n(n){if(void 0===n&&(n=0),!r&&0!==e){var i=2===e?ex:ek,o=n;t.forEach(function(e){o+=e.getBytesCount()}),o>i&&(eT(i),r=!0)}}return{createDetachedTracker:function(){var e=eR(function(){return n(e.getBytesCount())});return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,eR(n)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,n())},getCompressionStatus:function(){return e},stop:function(){t.forEach(function(e){return e.stop()}),t.clear()}}}function eR(e){var t=0,r=eb(function(r){t=ec(em(r)),e()},eA),n=r.throttled,i=r.cancel,o=function(){i(),t=0};return{updateCustomerData:function(e){eS(e)?o():n(e)},resetCustomerData:o,getBytesCount:function(){return t},stop:function(){i()}}}function eT(e){L.warn("Customer data exceeds the recommended ".concat(e/ea,"KiB threshold. ").concat(B," ").concat(D,"/#customer-data-exceeds-the-recommended-threshold-warning"))}function eC(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function eI(e,t,r){if(void 0===r&&(r=eL()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var n=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,n)}if(!r.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],o=0;o<t.length;++o)i[o]=eI(i[o],t[o],r);return i}var a="object"===eC(e)?e:{};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=eI(a[s],t[s],r));return a}}function eO(e){return eI(void 0,e)}function eP(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0,i=t;n<i.length;n++){var o=i[n];null!=o&&(e=eI(e,o))}return e}function eL(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var r=e.has(t);return r||e.add(t),r}}}var t=[];return{hasAlreadyBeenSeen:function(e){var r=t.indexOf(e)>=0;return r||t.push(e),r}}}var eN=225280,eD="$",eB=3;function ej(e,t){void 0===t&&(t=eN);var r=ey(Object.prototype),n=ey(Array.prototype),i=[],o=new WeakMap,a=eU(e,eD,void 0,i,o),s=JSON.stringify(a),u=s?s.length:0;if(u>t)return void eV(t,"discarded",e);for(;i.length>0&&u<t;){var c=i.shift(),l=0;if(Array.isArray(c.source))for(var f=0;f<c.source.length;f++){var d=eU(c.source[f],c.path,f,i,o);if(void 0!==d?u+=JSON.stringify(d).length:u+=4,u+=l,l=1,u>t){eV(t,"truncated",e);break}c.target[f]=d}else for(var f in c.source)if(Object.prototype.hasOwnProperty.call(c.source,f)){var d=eU(c.source[f],c.path,f,i,o);if(void 0!==d&&(u+=JSON.stringify(d).length+l+f.length+eB,l=1),u>t){eV(t,"truncated",e);break}c.target[f]=d}}return r(),n(),a}function eU(e,t,r,n,i){var o=eH(e);if(!o||"object"!=typeof o)return eF(o);var a=ez(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=e;if(i.has(s))return"[Reference seen at ".concat(i.get(s),"]");var u=void 0!==r?"".concat(t,".").concat(r):t,c=Array.isArray(o)?[]:{};return i.set(s,u),n.push({source:o,target:c,path:u}),c}function eF(e){return"bigint"==typeof e?"[BigInt] ".concat(e.toString()):"function"==typeof e?"[Function] ".concat(e.name||"unknown"):"symbol"==typeof e?"[Symbol] ".concat(e.description||e.toString()):e}function ez(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}function eH(e){var t=e;if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(e){}return e}function eV(e,t,r){L.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),r)}var eq=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){t.observers=t.observers.filter(function(t){return e!==t}),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach(function(t){return t(e)})},e}();function e$(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new eq(function(t){var r=e.map(function(e){return e.subscribe(function(e){return t.notify(e)})});return function(){return r.forEach(function(e){return e.unsubscribe()})}})}function eG(e){var t={},r=new eq,n={getContext:function(){return eO(t)},setContext:function(i){"object"===eC(i)?(t=ej(i),null==e||e.updateCustomerData(t)):n.clearContext(),r.notify()},setContextProperty:function(n,i){t[n]=ej(i),null==e||e.updateCustomerData(t),r.notify()},removeContextProperty:function(n){delete t[n],null==e||e.updateCustomerData(t),r.notify()},clearContext:function(){t={}
1,null==e||e.resetCustomerData(),r.notify()},changeObservable:r};return n}var eW={GRANTED:"granted",NOT_GRANTED:"not-granted"};function eK(e){var t=new eq;return{tryToInit:function(t){e||(e=t)},update:function(r){e=r,t.notify()},isGranted:function(){return e===eW.GRANTED},observable:t}}function eY(e,t,r,n,i){return eX(e,t,[r],n,i)}function eX(e,t,r,n,i){var o=void 0===i?{}:i,a=o.once,s=o.capture,u=o.passive,c=q(function(t){(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(a&&h(),n(t))}),l=u?{capture:s,passive:u}:s,f=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,d=ef(f,"addEventListener");function h(){var e=ef(f,"removeEventListener");r.forEach(function(r){return e.call(t,r,c,l)})}return r.forEach(function(e){return d.call(t,e,c,l)}),{stop:h}}var eJ="_dd_c",eZ=[];function eQ(e,t,r,n){var i=e0(r,n);function o(){t.setContext(s())}function a(){localStorage.setItem(i,JSON.stringify(t.getContext()))}function s(){var e=localStorage.getItem(i);return null!==e?JSON.parse(e):{}}eZ.push(eY(e,window,"storage",function(e){i===e.key&&o()})),t.changeObservable.subscribe(a),t.setContext(eP(s(),t.getContext()))}function e0(e,t){return"".concat(eJ,"_").concat(e,"_").concat(t)}var e1="?";function e2(e){var t=[],r=to(e,"stack"),n=String(e);return r&&ee(r,n)&&(r=r.slice(n.length)),r&&r.split("\n").forEach(function(e){var r=e8(e)||e7(e)||tt(e)||ti(e);r&&(!r.func&&r.line&&(r.func=e1),t.push(r))}),{message:to(e,"message"),name:to(e,"name"),stack:t}}var e3="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",e6="(?::(\\d+))",e4=RegExp("^\\s*at (.*?) ?\\(".concat(e3).concat(e6,"?").concat(e6,"?\\)?\\s*$"),"i"),e5=new RegExp("\\((\\S*)".concat(e6).concat(e6,"\\)"));function e8(e){var t=e4.exec(e);if(t){var r=t[2]&&0===t[2].indexOf("native"),n=t[2]&&0===t[2].indexOf("eval"),i=e5.exec(t[2]);return n&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:r?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||e1,line:t[3]?+t[3]:void 0,url:r?void 0:t[2]}}}var e9=RegExp("^\\s*at ?".concat(e3).concat(e6,"?").concat(e6,"??\\s*$"),"i");function e7(e){var t=e9.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:e1,line:t[2]?+t[2]:void 0,url:t[1]}}var te=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function tt(e){var t=te.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||e1,line:+t[3],url:t[2]}}var tr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,tn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function ti(e){var t=tr.exec(e);if(t){var r=t[3]&&t[3].indexOf(" > eval")>-1,n=tn.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||e1,line:t[4]?+t[4]:void 0,url:t[3]}}}function to(e,t){if("object"==typeof e&&e&&t in e){var r=e[t];return"string"==typeof r?r:void 0}}function ta(e,t,r,n){var i=[{url:t,column:n,line:r}],o=tu(e);return{name:o.name,message:o.message,stack:i}}var ts=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function tu(e){var t,r,n;return"[object String]"===({}).toString.call(e)&&(r=(t=ts.exec(e))[1],n=t[2]),{name:r,message:n}}function tc(){var e,t=2,r=Error();if(!r.stack)try{throw r}catch(e){}return $(function(){var n=e2(r);n.stack=n.stack.slice(t),e=tl(n)}),e}function tl(e){var t=tf(e);return e.stack.forEach(function(e){var r="?"===e.func?"<anonymous>":e.func,n=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",i=e.line?":".concat(e.line):"",o=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(r).concat(n," @ ").concat(e.url).concat(i).concat(o)}),t}function tf(e){return"".concat(e.name||"Error",": ").concat(e.message)}var td="No stack, consider using an instance of Error";function th(e){var t=e.stackTrace,r=e.originalError,n=e.handlingStack,i=e.startClocks,o=e.nonErrorPrefix,a=e.source,s=e.handling,u=tm(r),c=tp(t,u,o,r),l=tg(u,t)?tl(t):td,f=u?ty(r,a):void 0,d=t?t.name:void 0,h=tb(r);return{startClocks:i,source:a,handling:s,handlingStack:n,originalError:r,type:d,message:c,stack:l,causes:f,fingerprint:h}}function tp(e,t,r,n){return(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:t?"Empty message":"".concat(r," ").concat(em(ej(n)))}function tg(e,t){return void 0!==t&&(!!e||t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url))}function tb(e){return tm(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function tv(e){var t;return null==(t=/@ (.+)/.exec(e))?void 0:t[1]}function tm(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}function ty(e,t){for(var r=e,n=[];tm(null==r?void 0:r.cause)&&n.length<10;){var i=e2(r.cause);n.push({message:r.cause.message,source:t,type:null==i?void 0:i.name,stack:i&&tl(i)}),r=r.cause}return n.length?n:void 0}!function(e){e.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",e.REMOTE_CONFIGURATION="remote_configuration",e.LONG_ANIMATION_FRAME="long_animation_frame",e.ANONYMOUS_USER_TRACKING="anonymous_user_tracking",e.ACTION_NAME_MASKING="action_name_masking",e.CONSISTENT_TRACE_SAMPLING="consistent_trace_sampling",e.DELAY_VIEWPORT_COLLECTION="delay_viewport_collection"}(i||(i={}));var t_=new Set;function tw(e){Array.isArray(e)&&tS(e.filter(function(e){return ew(i,e)}))}function tS(e){e.forEach(function(e){t_.add(e)})}function tE(e){return t_.has(e)}function tx(){return t_}var tk="datad0g.com",tA="dd0g-gov.com",tM="datadoghq.com",tR="datadoghq.eu",tT="pci.browser-intake-datadoghq.com",tC=["ddsource","ddtags"];function tI(e){return 0!==e&&100*Math.random()<=e}function tO(e,t){return+e.toFixed(t)}function tP(e){return tL(e)&&e>=0&&e<=100}function tL(e){return"number"==typeof e}var tN=1e3,tD=6e4,tB=36e5,tj=31536e6;function tU(e){return{relative:e,timeStamp:tz(e)}}function tF(e){return{relative:tJ(e),timeStamp:e}}function tz(e){var t=tq()-performance.now();return t>t0()?Math.round(tX(t,e)):tZ(e)}function tH(){return Math.round(tq()-tX(t0(),performance.now()))}function tV(e){return tL(e)?tO(1e6*e,0):e}function tq(){return new Date().getTime()}function t$(){return tq()}function tG(){return performance.now()}function tW(){return{relative:tG(),timeStamp:t$()}}function tK(){return{relative:0,timeStamp:t0()}}function tY(e,t){return t-e}function tX(e,t){return e+t}function tJ(e){return e-t0()}function tZ(e){return Math.round(tX(t0(),e))}function tQ(e){return e<tj}function t0(){return void 0===o&&(o=performance.timing.navigationStart),o}function t1(e,t){var r=window.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}function t2(){var e,t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:null==(e=t.connection)?void 0:e.effectiveType}}function t3(e){var t=new Set;return e.forEach(function(e){return t.add(e)}),K(t)}function t6(e,t){var r=e.indexOf(t);r>=0&&e.splice(r,1)}var t4=500;function t5(){var e=[];return{add:function(t){e.push(t)>t4&&e.splice(0,1)},remove:function(t){t6(e,t)},drain:function(t){e.forEach(function(e){return e(t)}),e.length=0}}}var t8={log:"log",configuration:"configuration",usage:"usage"},t9=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],t7=["ddog-gov.com"],re=t5(),rt=function(e){re.add(function(){return rt(e)})};function rr(e,t){var r,n,i=new eq,o=new Set,a=!W(t7,t.site)&&tI(t.telemetrySampleRate),s=((r={})[t8.log]=a,r[t8.configuration]=a&&tI(t.telemetryConfigurationSampleRate),r[t8.usage]=a&&tI(t.telemetryUsageSampleRate),r),u=rn();function c(e,t,r){return eP({type:"telemetry",date:t$(),service:e,version:"5.35.1",source:"browser",_dd:{format_version:2},telemetry:eP(t,{runtime_env:r,connectivity:t2(),sdk_setup:"npm"}),experimental_features:K(tx())},void 0!==n?n():{})}return rt=function(r){var n=em(r);if(s[r.type]&&o.size<t.maxTelemetryEventsPerPage&&!o.has(n)){var a=c(e,r,u);i.notify(a),t1("telemetry",a),o.add(n)}},z(rs),{setContextProvider:function(e){n=e},observable:i,enabled:a}}function rn(){return{is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self}}function ri(){re.drain()}function ro(e){return e.site===tk}function ra(e,t){G(C.debug,e,t),rt(er({type:t8.log,message:e,status:"debug"},t))}function rs(e,t){rt(er({type:t8.log,status:"error"},rl(e),t))}function ru(e){rt({type:t8.configuration,configuration:e})}function rc(e){rt({type:t8.usage,usage:e})}function rl(e){if(tm(e)){var t=e2(e);return{error:{kind:t.name,stack:tl(rf(t))},message:t.message}}return{error:{stack:td},message:"".concat("Uncaught"," ").concat(em(e))}}function rf(e){return e.stack=e.stack.filter(function(e){return!e.url||t9.some(function(t){return ee(e.url,t)})}),e}function rd(e){var t=er({},e);return["id","name","email"].forEach(function(e){e in t&&(t[e]=String(t[e]))}),t}function rh(e){var t="object"===eC(e);return t||L.error("Unsupported user:",e),t}function rp(){return Math.floor(0x20000000000000*Math.random()).toString(36)}function rg(e,t){t.silentMultipleInit||L.error("".concat(e," is already initialized."))}var rb={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function rv(e,t,r){var n=r.getHandler(),i=Array.isArray(n)?n:[n];return ry[e]>=ry[r.getLevel()]&&W(i,t)}var rm={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},ry=((a={})[rm.ok]=0,a[rm.debug]=1,a[rm.info]=2,a[rm.notice]=4,a[rm.warn]=5,a[rm.error]=6,a[rm.critical]=7,a[rm.alert]=8,a[rm.emerg]=9,a);function r_(e,t){var r=(void 0===t?{}:t).includeMessage,n=void 0!==r&&r;return{stack:e.stack,kind:e.type,message:n?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var rw=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},rS={console:"console",http:"http"},rE=Object.keys(rm),rx=function(){function e(e,t,r,n,i,o){void 0===n&&(n=rS.http),void 0===i&&(i=rm.debug),void 0===o&&(o={}),this.handleLogStrategy=e,this.handlerType=n,this.level=i,this.contextManager=eG(t),this.contextManager.setContext(o),r&&this.contextManager.setContextProperty("logger",{name:r})}return e.prototype.logImplementation=function(e,t,r,n,i){void 0===r&&(r=rm.info);var o,a=ej(t);o=null!=n?eP({error:r_(th({stackTrace:tm(n)?e2(n):void 0,originalError:n,nonErrorPrefix:"Provided",source:rb.LOGGER,handling:"handled",startClocks:tW()}),{includeMessage:!0})},a):a,this.handleLogStrategy({message:ej(e),context:o,status:r},this,i)},e.prototype.log=function(e,t,r,n){var i;void 0===r&&(r=rm.info),rv(r,rS.http,this)&&(i=tc()),this.logImplementation(e,t,r,n,i)},e.prototype.setContext=function(e){this.contextManager.setContext(e)},e.prototype.getContext=function(){return this.contextManager.getContext()},e.prototype.setContextProperty=function(e,t){this.contextManager.setContextProperty(e,t)},e.prototype.removeContextProperty=function(e){this.contextManager.removeContextProperty(e)},e.prototype.clearContext=function(){this.contextManager.clearContext()},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},rw([V],e.prototype,"logImplementation",null),e}();function rk(e){return function(t,r,n){var i;rv(e,rS.http,this)&&(i=tc()),this.logImplementation(t,r,e,n,i)}}function rA(e,t){return{view:{referrer:document.referrer,url:window.location.href},context:e.getContext(),user:t.getContext()}}function rM(){var e=rC();if(e)return{getCapabilities:function(){var t;return JSON.parse((null==(t=e.getCapabilities)?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null==(t=e.getPrivacyLevel)?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,r,n){var i=n?{id:n}:void 0;e.send(JSON.stringify({eventType:t,event:r,view:i}))}}}function rR(e){var t=rM();return!!t&&W(t.getCapabilities(),e)}function rT(e){void 0===e&&(e=null==(t=eo().location)?void 0:t.hostname);var t,r=rM();return!!r&&r.getAllowedWebViewHosts().some(function(t){return e===t||et(e,".".concat(t))})}function rC(){return eo().DatadogEventBridge}function rI(e,t,r,n){var i=(void 0===n?{}:n).computeHandlingStack,o=e[t];if("function"!=typeof o)if(!(t in e&&ee(t,"on")))return{stop:ev};else o=ev;var a=!1,s=function(){if(a)return o.apply(this,arguments);var e,t=K(arguments);$(r,null,[{target:this,parameters:t,onPostCall:function(t){e=t},handlingStack:i?tc():void 0}]);var n=o.apply(this,t);return e&&$(e,null,[n]),n};return e[t]=s,{stop:function(){a=!0,e[t]===s&&(e[t]=o)}}}function rO(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t);if(!n||!n.set||!n.configurable)return{stop:ev};var i=ev,o=function(e,t){ed(function(){o!==i&&r(e,t)},0)},a=function(e){n.set.call(this,e),o(this,e)};
1return Object.defineProperty(e,t,{set:a}),{stop:function(){var r;(null==(r=Object.getOwnPropertyDescriptor(e,t))?void 0:r.set)===a&&Object.defineProperty(e,t,n),o=i}}}function rP(e){return rD(e,location.href).href}function rL(e){try{return!!rD(e)}catch(e){return!1}}function rN(e){var t=rD(e).pathname;return"/"===t[0]?t:"/".concat(t)}function rD(e,t){var r=rj();if(r)try{return void 0!==t?new r(e,t):new r(e)}catch(r){throw Error("Failed to construct URL: ".concat(String(r)," ").concat(em({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw Error("Invalid URL: '".concat(e,"'"));var n=document,i=n.createElement("a");if(void 0!==t){var o=(n=document.implementation.createHTMLDocument("")).createElement("base");o.href=t,n.head.appendChild(o),n.body.appendChild(i)}return i.href=e,i}rx.prototype.ok=rk(rm.ok),rx.prototype.debug=rk(rm.debug),rx.prototype.info=rk(rm.info),rx.prototype.notice=rk(rm.notice),rx.prototype.warn=rk(rm.warn),rx.prototype.error=rk(rm.error),rx.prototype.critical=rk(rm.critical),rx.prototype.alert=rk(rm.alert),rx.prototype.emerg=rk(rm.emerg);var rB=URL;function rj(){if(void 0===s)try{var e=new rB("http://test/path");s="http://test/path"===e.href}catch(e){s=!1}return s?rB:void 0}function rU(){return u||(u=rF()),u}function rF(){return new eq(function(e){if(window.fetch){var t=rI(window,"fetch",function(t){return rz(t,e)},{computeHandlingStack:!0}).stop;return t}})}function rz(e,t){var r=e.parameters,n=e.onPostCall,i=e.handlingStack,o=r[0],a=r[1],s=a&&a.method;void 0===s&&o instanceof Request&&(s=o.method);var u=void 0!==s?String(s).toUpperCase():"GET",c=o instanceof Request?o.url:rP(String(o)),l={state:"start",init:a,input:o,method:u,startClocks:tW(),url:c,handlingStack:i};t.notify(l),r[0]=l.input,r[1]=l.init,n(function(e){return rH(t,e,l)})}function rH(e,t,r){var n=r;function i(t){n.state="resolve",er(n,t),e.notify(n)}t.then(q(function(e){i({response:e,responseType:e.type,status:e.status,isAborted:!1})}),q(function(e){var t,r;i({status:0,isAborted:(null==(r=null==(t=n.init)?void 0:t.signal)?void 0:r.aborted)||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})}))}function rV(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,rV)}var rq=/([\w-]+)\s*=\s*([^;]+)/g;function r$(e,t){for(rq.lastIndex=0;;){var r=rq.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function rG(e){var t=new Map;for(rq.lastIndex=0;;){var r=rq.exec(e);if(r)t.set(r[1],r[2]);else break}return t}function rW(e,t,r){void 0===r&&(r="");var n=e.charCodeAt(t-1),i=n>=55296&&n<=56319?t+1:t;return e.length<=i?e:"".concat(e.slice(0,i)).concat(r)}function rK(){return 0===rJ()}function rY(){return 1===rJ()}function rX(){return 2===rJ()}function rJ(){return null!=c?c:c=rZ()}function rZ(e){void 0===e&&(e=window);var t,r=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(r)?1:(null==(t=e.navigator.vendor)?void 0:t.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?2:3*!e.document.documentMode}function rQ(e,t,r,n){void 0===r&&(r=0);var i=new Date;i.setTime(i.getTime()+r);var o="expires=".concat(i.toUTCString()),a=n&&n.crossSite?"none":"strict",s=n&&n.domain?";domain=".concat(n.domain):"",u=n&&n.secure?";secure":"",c=n&&n.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(u).concat(c)}function r0(e){return r$(document.cookie,e)}function r1(e){return l||(l=rG(document.cookie)),l.get(e)}function r2(e,t){rQ(e,"",0,t)}function r3(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(rV()),r="test";rQ(t,r,tD,e);var n=r0(t)===r;return r2(t,e),n}catch(e){return L.error(e),!1}}function r6(){if(void 0===f){for(var e="dd_site_test_".concat(rV()),t="test",r=window.location.hostname.split("."),n=r.pop();r.length&&!r0(e);)rQ(e,t,tN,{domain:n="".concat(r.pop(),".").concat(n)});r2(e,{domain:n}),f=n}return f}var r4="_dd_s",r5=4*tB,r8=15*tD,r9=tj,r7={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},ne=/^([a-zA-Z]+)=([a-z0-9-]+)$/,nt="&";function nr(e){return!!e&&(-1!==e.indexOf(nt)||ne.test(e))}var nn="1";function ni(e){var t={isExpired:nn};return tE(i.ANONYMOUS_USER_TRACKING)&&((null==e?void 0:e.anonymousId)?t.anonymousId=null==e?void 0:e.anonymousId:t.anonymousId=rp()),t}function no(e){return eS(e)}function na(e){return!no(e)}function ns(e){return void 0!==e.isExpired||!nu(e)}
1function nu(e){return(void 0===e.created||tq()-Number(e.created)<r5)&&(void 0===e.expire||tq()<Number(e.expire))}function nc(e){e.expire=String(tq()+r8)}function nl(e){return Q(e).map(function(e){var t=e[0],r=e[1];return"anonymousId"===t?"aid=".concat(r):"".concat(t,"=").concat(r)}).join(nt)}function nf(e){var t={};return nr(e)&&e.split(nt).forEach(function(e){var r=ne.exec(e);if(null!==r){var n=r[1],i=r[2];"aid"===n?t.anonymousId=i:t[n]=i}}),t}var nd="_dd",nh="_dd_r",np="_dd_l",ng="rum",nb="logs";function nv(e){if(!r1(r4)){var t=r1(nd),r=r1(nh),n=r1(np),i={};t&&(i.id=t),n&&/^[01]$/.test(n)&&(i[nb]=n),r&&/^[012]$/.test(r)&&(i[ng]=r),na(i)&&(nc(i),e.persistSession(i))}}function nm(e){var t=nE(e);return r3(t)?{type:r7.COOKIE,cookieOptions:t}:void 0}function ny(e){var t={isLockEnabled:rY(),persistSession:n_(e),retrieveSession:nS,expireSession:function(t){return nw(e,t)}};return nv(t),t}function n_(e){return function(t){rQ(r4,nl(t),r8,e)}}function nw(e,t){rQ(r4,nl(ni(t)),tE(i.ANONYMOUS_USER_TRACKING)?r9:r5,e)}function nS(){return nf(r0(r4))}function nE(e){var t={};return t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=r6()),t}var nx="_dd_test_";function nk(){try{var e=rV(),t="".concat(nx).concat(e);localStorage.setItem(t,e);var r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:r7.LOCAL_STORAGE}:void 0}catch(e){return}}function nA(){return{isLockEnabled:!1,persistSession:nM,retrieveSession:nR,expireSession:nT}}function nM(e){localStorage.setItem(r4,nl(e))}function nR(){return nf(localStorage.getItem(r4))}function nT(e){nM(ni(e))}var nC=10,nI=100,nO=[];function nP(e,t,r){void 0===r&&(r=0);var n,i,o=t.isLockEnabled,a=t.persistSession,s=t.expireSession,u=function(e){return a(er({},e,{lock:i}))},c=function(){var e=t.retrieveSession(),r=e.lock;return e.lock&&delete e.lock,{session:e,lock:r}};if(d||(d=e),e!==d)return void nO.push(e);if(o&&r>=nI)return void nN(t);var l=c();if(o&&(l.lock||(i=rV(),u(l.session),(l=c()).lock!==i)))return void nL(e,t,r);var f=e.process(l.session);if(o&&(l=c()).lock!==i)return void nL(e,t,r);if(f&&(ns(f)?s(f):(nc(f),o?u(f):a(f))),o&&!(f&&ns(f))){if((l=c()).lock!==i)return void nL(e,t,r);a(l.session),f=l.session}null==(n=e.after)||n.call(e,f||l.session),nN(t)}function nL(e,t,r){ed(function(){nP(e,t,r+1)},nC)}function nN(e){d=void 0;var t=nO.shift();t&&nP(t,e)}var nD=tN;function nB(e){switch(e.sessionPersistence){case r7.COOKIE:return nm(e);case r7.LOCAL_STORAGE:return nk();case void 0:var t=nm(e);return!t&&e.allowFallbackToLocalStorage&&(t=nk()),t;default:L.error("Invalid session persistence '".concat(String(e.sessionPersistence),"'"))}}function nj(e,t,r){var n,i=new eq,o=new eq,a=new eq,s=e.type===r7.COOKIE?ny(e.cookieOptions):nA(),u=s.expireSession,c=ep(h,nD);g();var l=eb(function(){nP({process:function(e){if(!no(e)){var t=p(e);return b(t),t}},after:function(e){na(e)&&!v()&&_(e),n=e}},s)},nD),f=l.throttled,d=l.cancel;function h(){nP({process:function(e){return ns(e)?ni(e):void 0},after:p},s)}function p(e){return ns(e)&&(e=ni(e)),v()&&(m(e)?y():(a.notify({previousState:n,newState:e}),n=e)),e}function g(){nP({process:function(e){if(no(e))return ni(e)},after:function(e){n=e}},s)}function b(e){if(no(e))return!1;var n=r(e[t]),i=n.trackingType,o=n.isTracked;e[t]=i,delete e.isExpired,o&&!e.id&&(e.id=rV(),e.created=String(tq()))}function v(){return void 0!==n[t]}function m(e){return n.id!==e.id||n[t]!==e[t]}function y(){n=ni(n),o.notify()}function _(e){n=e,i.notify()}return{expandOrRenewSession:f,expandSession:function(){nP({process:function(e){return v()?p(e):void 0}},s)},getSession:function(){return n},renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a,restartSession:g,expire:function(){d(),u(n),p(ni(n))},stop:function(){eg(c)},updateSessionState:function(e){nP({process:function(t){return er({},t,e)},after:p},s)}}}function nU(e,t,r){var n=nF(e,t);return{build:function(i,o){return n(nH(e,t,r,i,o))},urlPrefix:n(""),trackType:t}}function nF(e,t){var r="/api/v2/".concat(t),n=e.proxy;if("string"==typeof n){var i=rP(n);return function(e){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(r,"?").concat(e)))}}if("function"==typeof n)return function(e){return n({path:r,parameters:e})};var o=nz(t,e);return function(e){return"https://".concat(o).concat(r,"?").concat(e)}}function nz(e,t){var r=t.site,n=void 0===r?tM:r,i=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&n===tM)return tT;if(i&&n===tM)return"".concat(i,".").concat(tM);if(n===tA)return"http-intake.logs.".concat(n);var o=n.split("."),a=o.pop();return"browser-intake-".concat(o.join("-"),".").concat(a)}function nH(e,t,r,n,i){var o=e.clientToken,a=e.internalAnalyticsSubdomain,s=i.retry,u=i.encoding,c=["sdk_version:".concat("5.35.1"),"api:".concat(n)].concat(r);s&&c.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var l=["ddsource=browser","ddtags=".concat(encodeURIComponent(c.join(","))),"dd-api-key=".concat(o),"dd-evp-origin-version=".concat(encodeURIComponent("5.35.1")),"dd-evp-origin=browser","dd-request-id=".concat(rV())];return u&&l.push("dd-evp-encoding=".concat(u)),"rum"===t&&l.push("batch_time=".concat(t$())),a&&l.reverse(),l.join("&")}var nV=200;function nq(e){var t=e.env,r=e.service,n=e.version,i=e.datacenter,o=[];return t&&o.push(n$("env",t)),r&&o.push(n$("service",r)),n&&o.push(n$("version",n)),i&&o.push(n$("datacenter",i)),o}function n$(e,t){var r=nV-e.length-1;(t.length>r||nG(t))&&L.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. ").concat(B," ").concat(N,"/getting_started/tagging/#defining-tags"));var n=t.replace(/,/g,"_");return"".concat(e,":").concat(n)}function nG(e){return!!nW()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e)}function nW(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}function nK(e){var t=e.site||tM,r=nq(e),n=nY(e,r);return er({replica:nX(e,r),site:t},n)}function nY(e,t){return{logsEndpointBuilder:nU(e,"logs",t),rumEndpointBuilder:nU(e,"rum",t),sessionReplayEndpointBuilder:nU(e,"replay",t)}}function nX(e,t){if(e.replica){var r=er({},e,{site:tM,clientToken:e.replica.clientToken}),n={logsEndpointBuilder:nU(r,"logs",t),rumEndpointBuilder:nU(r,"rum",t)};return er({applicationId:e.replica.applicationId},n)}}function nJ(e){return tC.every(function(t){return W(e,t)})}var nZ={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},nQ={ALL:"all",SAMPLED:"sampled"};function n0(e,t){return null==e||"string"==typeof e||(L.error("".concat(t," must be defined as a string")),!1)}function n1(e){return!e||"string"!=typeof e||!!/(datadog|ddog|datad0g|dd0g)/.test(e)||(L.error("Site should be a valid Datadog site. ".concat(B," ").concat(N,"/getting_started/site/.")),!1)}function n2(e,t){return void 0===e||!!tP(e)||(L.error("".concat(t," Sample Rate should be a number between 0 and 100")),!1)}function n3(e){var t,r,n,i,o;return e&&e.clientToken?n1(e.site)&&n2(e.sessionSampleRate,"Session")&&n2(e.telemetrySampleRate,"Telemetry")&&n2(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&n2(e.telemetryUsageSampleRate,"Telemetry Usage")&&n0(e.version,"Version")&&n0(e.env,"Env")&&n0(e.service,"Service")?void 0===e.trackingConsent||ew(eW,e.trackingConsent)?er({beforeSend:e.beforeSend&&j(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:nB(e),sessionSampleRate:null!=(t=e.sessionSampleRate)?t:100,telemetrySampleRate:null!=(r=e.telemetrySampleRate)?r:20,telemetryConfigurationSampleRate:null!=(n=e.telemetryConfigurationSampleRate)?n:5,telemetryUsageSampleRate:null!=(i=e.telemetryUsageSampleRate)?i:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!=(o=e.trackingConsent)?o:eW.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*ea,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*tN,batchMessagesLimit:50,messageBytesLimit:256*ea},nK(e)):void L.error('Tracking Consent should be either "granted" or "not-granted"'):void 0:void L.error("Client Token is not configured, we will not send any data.")}function n6(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_cross_site_session_cookie:e.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,session_persistence:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent}}var n4={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function n5(e,t){var r=[];W(t,n4.cspViolation)&&r.push(n9(e));var n=t.filter(function(e){return e!==n4.cspViolation});return n.length&&r.push(n8(n)),e$.apply(void 0,r)}function n8(e){return new eq(function(t){if(window.ReportingObserver){var r=q(function(e,r){return e.forEach(function(e){return t.notify(n7(e))})}),n=new window.ReportingObserver(r,{types:e,buffered:!0});return n.observe(),function(){n.disconnect()}}})}function n9(e){return new eq(function(t){return eY(e,document,"securitypolicyviolation",function(e){t.notify(ie(e))}).stop})}function n7(e){var t=e.type,r=e.body;return it({type:r.id,message:"".concat(t,": ").concat(r.message),originalError:e,stack:ir(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}function ie(e){var t="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return it({type:e.effectiveDirective,message:"".concat(n4.cspViolation,": ").concat(t),originalError:e,csp:{dis
1position:e.disposition},stack:ir(e.effectiveDirective,e.originalPolicy?"".concat(t,' of the policy "').concat(rW(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function it(e){return er({startClocks:tW(),source:rb.REPORT,handling:"unhandled"},e)}function ir(e,t,r,n,i){return r?tl({name:e,message:t,stack:[{func:"?",url:r,line:null!=n?n:void 0,column:null!=i?i:void 0}]}):void 0}var ii=32*ea;function io(e){!0===e.usePciIntake&&e.site&&"datadoghq.com"!==e.site&&L.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");var t=n3(e),r=ia(e.forwardConsoleLogs,Z(C),"Forward Console Logs"),n=ia(e.forwardReports,Z(n4),"Forward Reports");if(t&&r&&n)return e.forwardErrorsToLogs&&!W(r,C.error)&&r.push(C.error),er({forwardErrorsToLogs:!1!==e.forwardErrorsToLogs,forwardConsoleLogs:r,forwardReports:n,requestErrorResponseLengthLimit:ii,sendLogsAfterSessionExpiration:!!e.sendLogsAfterSessionExpiration},t)}function ia(e,t,r){return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every(function(e){return W(t,e)})?"all"===e?t:t3(e):void L.error("".concat(r,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'))}function is(e){var t=n6(e);return er({forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,send_logs_after_session_expiration:e.sendLogsAfterSessionExpiration},t)}function iu(e,t,r){var n,i,o=t5(),a=t.observable.subscribe(s);function s(){if(i&&n&&t.isGranted()){a.unsubscribe();var e=r(n,i);o.drain(e)}}return{init:function(e){if(!e)return void L.error("Missing configuration");if(tw(e.enableExperimentalFeatures),rT()&&(e=ic(e)),n=e,i)return void rg("DD_LOGS",e);var r=io(e);r&&(i=r,rU().subscribe(ev),t.tryToInit(r.trackingConsent),s())},get initConfiguration(){return n},getInternalContext:ev,handleLog:function(t,r,n,i,a){void 0===i&&(i=e()),void 0===a&&(a=t$()),o.add(function(e){return e.handleLog(t,r,n,i,a)})}}}function ic(e){return er({},e,{clientToken:"empty"})}var il="logs";function id(e){var t=eM(),r=eG(t.getOrCreateTracker(2)),n=eG(t.getOrCreateTracker(1)),i=eK();function o(){return rA(r,n)}var a=iu(o,i,function(t,s){t.storeContextsAcrossPages&&(eQ(s,r,il,2),eQ(s,n,il,1));var u=e(t,s,o,i);return a=ih(t,u),u}),s={};return en({logger:new rx(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.handleLog.apply(a,e)},t.createDetachedTracker()),init:q(function(e){return a.init(e)}),setTrackingConsent:q(function(e){i.update(e),rc({feature:"set-tracking-consent",tracking_consent:e})}),getGlobalContext:q(function(){return r.getContext()}),setGlobalContext:q(function(e){return r.setContext(e)}),setGlobalContextProperty:q(function(e,t){return r.setContextProperty(e,t)}),removeGlobalContextProperty:q(function(e){return r.removeContextProperty(e)}),clearGlobalContext:q(function(){return r.clearContext()}),createLogger:q(function(e,r){return void 0===r&&(r={}),s[e]=new rx(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.handleLog.apply(a,e)},t.createDetachedTracker(),ej(e),r.handler,r.level,ej(r.context)),s[e]}),getLogger:q(function(e){return s[e]}),getInitConfiguration:q(function(){return eO(a.initConfiguration)}),getInternalContext:q(function(e){return a.getInternalContext(e)}),setUser:q(function(e){rh(e)&&n.setContext(rd(e))}),getUser:q(function(){return n.getContext()}),setUserProperty:q(function(e,t){var r,i=rd(((r={})[e]=t,r))[e];n.setContextProperty(e,i)}),removeUserProperty:q(function(e){return n.removeContextProperty(e)}),clearUser:q(function(){return n.clearContext()})})}function ih(e,t){return er({init:function(e){rg("DD_LOGS",e)},initConfiguration:e},t)}var ip={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function ig(e){return new eq(function(t){var r=eX(e,window,["visibilitychange","freeze"],function(e){"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:ip.HIDDEN}):"freeze"===e.type&&t.notify({reason:ip.FROZEN})},{capture:!0}).stop,n=eY(e,window,"beforeunload",function(){t.notify({reason:ip.UNLOADING})}).stop;return function(){r(),n()}})}function ib(e){return W(Z(ip),e)}var iv="datadog-synthetics-public-id",im="datadog-synthetics-result-id",iy="datadog-synthetics-injects-rum";function i_(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||r1(iy))}function iw(){var e=window._DATADOG_SYNTHETICS_PUBLIC_ID||r1(iv);return"string"==typeof e?e:void 0}function iS(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||r1(im);return"string"==typeof e?e:void 0}var iE=1/0,ix=tD;function ik(e){var t=e.expireDelay,r=e.maxEntries,n=[],i=ep(function(){return o()},ix);function o(){for(var e=tG()-t;n.length>0&&n[n.length-1].endTime<e;)n.pop()}return{add:function(e,t){var i={value:e,startTime:t,endTime:iE,remove:function(){t6(n,i)},close:function(e){i.endTime=e}};return r&&n.length>=r&&n.pop(),n.unshift(i),i},find:function(e,t){void 0===e&&(e=iE),void 0===t&&(t={returnInactive:!1});for(var r=0,i=n;r<i.length;r++){var o=i[r];if(o.startTime<=e){if(t.returnInactive||e<=o.endTime)return o.value;break}}},closeActive:function(e){var t=n[0];t&&t.endTime===iE&&t.close(e)},findAll:function(e,t){void 0===e&&(e=iE),void 0===t&&(t=0);var r=tX(e,t);return n.filter(function(t){return t.startTime<=r&&e<=t.endTime}).map(function(e){return e.value})},reset:function(){n=[]},stop:function(){eg(i)}}}var iA=tD,iM=r5,iR=[];function iT(e,t,r,n){var i=new eq,o=new eq,a=nj(e.sessionStoreStrategyType,t,r);iR.push(function(){return a.stop()});var s=ik({expireDelay:iM});function u(){return{id:a.getSession().id,trackingType:a.getSession()[t],isReplayForced:!!a.getSession().forcedReplay,anonymousId:a.getSession().anonymousId}}return iR.push(function(){return s.stop()}
1),a.renewObservable.subscribe(function(){s.add(u(),tG()),i.notify()}),a.expireObservable.subscribe(function(){o.notify(),s.closeActive(tG())}),a.expandOrRenewSession(),s.add(u(),tK().relative),n.observable.subscribe(function(){n.isGranted()?a.expandOrRenewSession():a.expire()}),iC(e,function(){n.isGranted()&&a.expandOrRenewSession()}),iI(e,function(){return a.expandSession()}),iO(e,function(){return a.restartSession()}),{findSession:function(e,t){return s.find(e,t)},renewObservable:i,expireObservable:o,sessionStateUpdateObservable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}function iC(e,t){var r=eX(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0}).stop;iR.push(r)}function iI(e,t){var r=function(){"visible"===document.visibilityState&&t()},n=eY(e,document,"visibilitychange",r).stop;iR.push(n);var i=ep(r,iA);iR.push(function(){eg(i)})}function iO(e,t){var r=eY(e,window,"resume",t,{capture:!0}).stop;iR.push(r)}var iP="logs";function iL(e,t){var r=iT(e,iP,function(t){return iB(e,t)},t);return{findTrackedSession:function(e,t){void 0===t&&(t={returnInactive:!1});var n=r.findSession(e,t);return n&&"1"===n.trackingType?{id:n.id}:void 0},expireObservable:r.expireObservable}}function iN(e){var t="1"===iD(e)?{}:void 0;return{findTrackedSession:function(){return t},expireObservable:new eq}}function iD(e){return tI(e.sessionSampleRate)?"1":"0"}function iB(e,t){var r=ij(t)?t:iD(e);return{trackingType:r,isTracked:"1"===r}}function ij(e){return"0"===e||"1"===e}function iU(e,t,r){var n=0,i=!1;return{isLimitReached:function(){if(0===n&&ed(function(){n=0},tD),(n+=1)<=t||i)return i=!1,!1;if(n===t+1){i=!0;try{r({message:"Reached max number of ".concat(e,"s by minute: ").concat(t),source:rb.AGENT,startClocks:tW()})}finally{i=!1}}return!0}}}var iF=!1;function iz(e){var t=window;if(i_()){var r=n(t.DD_RUM_SYNTHETICS);return r||iF||(iF=!0,ra("Logs sent before RUM is injected by the synthetics worker",{testId:iw(),resultId:iS()})),r}return n(t.DD_RUM);function n(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}function iH(e,t,r,n,i){var o=rE.concat(["custom"]),a={};o.forEach(function(e){a[e]=iU(e,t.eventRateLimiterThreshold,i)}),r.subscribe(0,function(i){var o,s,u=i.rawLogsEvent,c=i.messageContext,l=void 0===c?void 0:c,f=i.savedCommonContext,d=void 0===f?void 0:f,h=i.domainContext,p=tJ(u.date),g=e.findTrackedSession(p);if(g||t.sendLogsAfterSessionExpiration&&e.findTrackedSession(p,{returnInactive:!0})){var b=d||n(),v=eP({service:t.service,session_id:g?g.id:void 0,session:g?{id:g.id}:void 0,usr:eS(b.user)?void 0:b.user,view:b.view},b.context,iz(p),u,l);(null==(o=t.beforeSend)?void 0:o.call(t,v,h))===!1||v.origin!==rb.AGENT&&(null!=(s=a[v.status])?s:a.custom).isLimitReached()||r.notify(1,v)}})}var iV={};function iq(e){var t=e.map(function(e){return iV[e]||(iV[e]=i$(e)),iV[e]});return e$.apply(void 0,t)}function i$(e){return new eq(function(t){var r=I[e];return I[e]=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r.apply(console,n);var o=tc();$(function(){t.notify(iG(n,e,o))})},function(){I[e]=r}})}function iG(e,t,r){var n,i=e.map(function(e){return iW(e)}).join(" ");if(t===C.error){var o=Y(e,tm);n={stack:o?tl(e2(o)):void 0,fingerprint:tb(o),causes:o?ty(o,"console"):void 0,startClocks:tW(),message:i,source:rb.CONSOLE,handling:"handled",handlingStack:r}}return{api:t,message:i,error:n,handlingStack:r}}function iW(e){return"string"==typeof e?ej(e):tm(e)?tf(e2(e)):em(ej(e),void 0,2)}var iK=((h={})[C.log]=rm.info,h[C.debug]=rm.debug,h[C.info]=rm.info,h[C.warn]=rm.warn,h[C.error]=rm.error,h);function iY(e,t){var r=iq(e.forwardConsoleLogs).subscribe(function(e){var r={rawLogsEvent:{date:t$(),message:e.message,origin:rb.CONSOLE,error:e.error&&r_(e.error),status:iK[e.api]},domainContext:{handlingStack:e.handlingStack}};t.notify(0,r)});return{stop:function(){r.unsubscribe()}}}function iX(e,t){var r=n5(e,e.forwardReports).subscribe(function(e){var r,n=e.message,i="deprecation"===e.originalError.type?rm.warn:rm.error;i===rm.error?r=r_(e):e.stack&&(n+=" Found in ".concat(tv(e.stack))),t.notify(0,{rawLogsEvent:{date:t$(),message:n,origin:rb.REPORT,error:r,status:i}})});return{stop:function(){r.unsubscribe()}}}var iJ=new WeakMap;function iZ(e){return p||(p=iQ(e)),p}function iQ(e){return new eq(function(t){var r=rI(XMLHttpRequest.prototype,"open",i0).stop,n=rI(XMLHttpRequest.prototype,"send",function(r){i1(r,e,t)},{computeHandlingStack:!0}).stop,i=rI(XMLHttpRequest.prototype,"abort",i2).stop;return function(){r(),n(),i()}})}function i0(e){var t=e.target,r=e.parameters,n=r[0],i=r[1];iJ.set(t,{state:"open",method:String(n).toUpperCase(),url:rP(String(i))})}function i1(e,t,r){var n=e.target,i=e.handlingStack,o=iJ.get(n);if(o){var a=o;a.state="start",a.startClocks=tW(),a.isAborted=!1,a.xhr=n,a.handlingStack=i;var s=!1,u=rI(n,"onreadystatechange",function(){n.readyState===XMLHttpRequest.DONE&&c()}).stop,c=function(){if(l(),u(),!s){s=!0;var e=o;e.state="complete",e.duration=tY(a.startClocks.timeStamp,t$()),e.status=n.status,r.notify(e_(e))}},l=eY(t,n,"loadend",c).stop;r.notify(a)}}function i2(e){var t=e.target,r=iJ.get(t);r&&(r.isAborted=!0)}function i3(e){return e>=500}function i6(e){try{return e.clone()}catch(e){return}}function i4(e,t,r){var n=e.getReader(),i=[],o=0;function a(){n.read().then(q(function(e){if(e.done)return void s();r.collectStreamBody&&i.push(e.value),(o+=e.value.length)>r.bytesLimit?s():a()}),q(function(e){return t(e)}))}function s(){if(n.cancel().catch(ev),r.collectStreamBody){if(1===i.length)s=i[0];else{var e,a,s=new Uint8Array(o),u=0;
1i.forEach(function(e){s.set(e,u),u+=e.length})}e=s.slice(0,r.bytesLimit),a=s.length>r.bytesLimit}t(void 0,e,a)}a()}function i5(e,t){if(!e.forwardErrorsToLogs)return{stop:ev};var r=iZ(e).subscribe(function(e){"complete"===e.state&&i("xhr",e)}),n=rU().subscribe(function(e){"resolve"===e.state&&i("fetch",e)});function i(r,n){!nJ(n.url)&&(oe(n)||i3(n.status))&&("xhr"in n?i8(n.xhr,e,i):n.response?i7(n.response,e,i):n.error&&i9(n.error,e,i));function i(e){var i={isAborted:n.isAborted,handlingStack:n.handlingStack};t.notify(0,{rawLogsEvent:{message:"".concat(or(r)," error ").concat(n.method," ").concat(n.url),date:n.startClocks.timeStamp,error:{stack:e||"Failed to load",handling:void 0},http:{method:n.method,status_code:n.status,url:n.url},status:rm.error,origin:rb.NETWORK},domainContext:i})}}return{stop:function(){r.unsubscribe(),n.unsubscribe()}}}function i8(e,t,r){r("string"==typeof e.response?ot(e.response,t):e.response)}function i9(e,t,r){r(ot(tl(e2(e)),t))}function i7(e,t,r){var n=i6(e);n&&n.body?window.TextDecoder?on(n.body,t.requestErrorResponseLengthLimit,function(e,t){e?r("Unable to retrieve response: ".concat(e)):r(t)}):n.text().then(q(function(e){return r(ot(e,t))}),q(function(e){return r("Unable to retrieve response: ".concat(e))})):r()}function oe(e){return 0===e.status&&"opaque"!==e.responseType}function ot(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}function or(e){return"xhr"===e?"XHR":"Fetch"}function on(e,t,r){i4(e,function(e,t,n){if(e)r(e);else{var i=new TextDecoder().decode(t);n&&(i+="..."),r(void 0,i)}},{bytesLimit:t,collectStreamBody:!0})}function oi(e){var t=function(t,r){var n=th({stackTrace:t,originalError:r,startClocks:tW(),nonErrorPrefix:"Uncaught",source:rb.SOURCE,handling:"unhandled"});e.notify(n)},r=oo(t).stop,n=oa(t).stop;return{stop:function(){r(),n()}}}function oo(e){return rI(window,"onerror",function(t){var r,n=t.parameters,i=n[0],o=n[1],a=n[2],s=n[3],u=n[4];e(r=tm(u)?e2(u):ta(i,o,a,s),null!=u?u:i)})}function oa(e){return rI(window,"onunhandledrejection",function(t){var r=t.parameters[0].reason||"Empty reason";e(e2(r),r)})}function os(e,t){if(!e.forwardErrorsToLogs)return{stop:ev};var r=new eq,n=oi(r).stop,i=r.subscribe(function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:r_(e),origin:rb.SOURCE,status:rm.error}})});return{stop:function(){n(),i.unsubscribe()}}}var ou=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var r=this.callbacks[e];r&&r.forEach(function(e){return e(t)})},e.prototype.subscribe=function(e,t){var r=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){r.callbacks[e]=r.callbacks[e].filter(function(e){return t!==e})}}},e}(),oc=ou;function ol(e){return{handleLog:function(t,r,n,i,o){var a=eP(r.getContext(),t.context);if(rv(t.status,rS.console,r)&&od(t,a),rv(t.status,rS.http,r)){var s={rawLogsEvent:{date:o||t$(),message:t.message,status:t.status,origin:rb.LOGGER},messageContext:a,savedCommonContext:i};n&&(s.domainContext={handlingStack:n}),e.notify(0,s)}}}}var of=((g={})[rm.ok]=C.debug,g[rm.debug]=C.debug,g[rm.info]=C.info,g[rm.notice]=C.info,g[rm.warn]=C.warn,g[rm.error]=C.error,g[rm.critical]=C.error,g[rm.alert]=C.error,g[rm.emerg]=C.error,g);function od(e,t){var r=e.status,n=e.message;O[of[r]].call(I,n,t)}function oh(e){var t=e.encoder,r=e.request,n=e.flushController,i=e.messageBytesLimit,o={},a=n.flushObservable.subscribe(function(e){return f(e)});function s(e,r,i){n.notifyBeforeAddMessage(r),void 0!==i?(o[i]=e,n.notifyAfterAddMessage()):t.write(t.isEmpty?e:"\n".concat(e),function(e){n.notifyAfterAddMessage(e-r)})}function u(e){return void 0!==e&&void 0!==o[e]}function c(e){var r=o[e];delete o[e];var i=t.estimateEncodedBytesCount(r);n.notifyAfterRemoveMessage(i)}function l(e,r){var n=em(e),o=t.estimateEncodedBytesCount(n);if(o>=i)return void L.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(i,"KB. ").concat(B," ").concat(D,"/#technical-limitations"));u(r)&&c(r),s(n,o,r)}function f(e){var n=Z(o).join("\n");o={};var i=ib(e.reason),a=i?r.sendOnExit:r.send;if(i&&t.isAsync){var s=t.finishSync();s.outputBytesCount&&a(op(s));
1var u=[s.pendingData,n].filter(Boolean).join("\n");u&&a({data:u,bytesCount:ec(u)})}else n&&t.write(t.isEmpty?n:"\n".concat(n)),t.finish(function(e){a(op(e))})}return{flushController:n,add:l,upsert:l,stop:a.unsubscribe}}function op(e){var t;return{data:t="string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}var og=80*ea,ob=32,ov=3*es,om=tD,oy=tN;function o_(e,t,r,n,i){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?oS(e,t,r,{onSuccess:function(){return oE(0,t,r,n,i)},onFailure:function(){t.queuedPayloads.enqueue(e),ow(t,r,n,i)}}):t.queuedPayloads.enqueue(e)}function ow(e,t,r,n){2===e.transportStatus&&ed(function(){oS(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=oy,oE(1,e,t,r,n)},onFailure:function(){e.currentBackoffTime=Math.min(om,2*e.currentBackoffTime),ow(e,t,r,n)}})},e.currentBackoffTime)}function oS(e,t,r,n){var i=n.onSuccess,o=n.onFailure;t.bandwidthMonitor.add(e),r(e,function(r){t.bandwidthMonitor.remove(e),ox(r)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:r.status},o()):(t.transportStatus=0,i())})}function oE(e,t,r,n,i){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:"Reached max ".concat(n," events size queued for upload: ").concat(ov/es,"MiB"),source:rb.AGENT,startClocks:tW()}),t.queueFullReported=!0);var o=t.queuedPayloads;for(t.queuedPayloads=oA();o.size()>0;)o_(o.dequeue(),t,r,n,i)}function ox(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||i3(e.status))}function ok(){return{transportStatus:0,currentBackoffTime:oy,bandwidthMonitor:oM(),queuedPayloads:oA(),queueFullReported:!1}}function oA(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=ov}}}function oM(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=og&&this.ongoingRequestCount<ob},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}}}function oR(e,t,r){var n=ok(),i=function(r,n){return oO(e,t,r,n)};return{send:function(t){o_(t,n,i,e.trackType,r)},sendOnExit:function(r){oT(e,t,r)}}}function oT(e,t,r){if(navigator.sendBeacon&&r.bytesCount<t)try{var n=e.build("beacon",r);if(navigator.sendBeacon(n,r.data))return}catch(e){oI(e)}oL(e.build("xhr",r),r.data)}var oC=!1;function oI(e){oC||(oC=!0,rs(e))}function oO(e,t,r,n){oP()&&r.bytesCount<t?fetch(e.build("fetch",r),{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then(q(function(e){return null==n?void 0:n({status:e.status,type:e.type})}),q(function(){oL(e.build("xhr",r),r.data,n)})):oL(e.build("xhr",r),r.data,n)}function oP(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}function oL(e,t,r){var n=new XMLHttpRequest;n.open("POST",e,!0),t instanceof Blob&&n.setRequestHeader("Content-Type",t.type),eY({allowUntrustedEvents:!0},n,"loadend",function(){null==r||r({status:n.status})},{once:!0}),n.send(t)}function oN(e){var t,r=e.messagesLimit,n=e.bytesLimit,i=e.durationLimit,o=e.pageExitObservable,a=e.sessionExpireObservable,s=o.subscribe(function(e){return d(e.reason)}),u=a.subscribe(function(){return d("session_expire")}),c=new eq(function(){return function(){s.unsubscribe(),u.unsubscribe()}}),l=0,f=0;function d(e){if(0!==f){var t=f,r=l;f=0,l=0,p(),c.notify({reason:e,messagesCount:t,bytesCount:r})}}function h(){void 0===t&&(t=ed(function(){d("duration_limit")},i))}function p(){eh(t),t=void 0}return{flushObservable:c,get messagesCount(){return f},notifyBeforeAddMessage:function(e){l+e>=n&&d("bytes_limit"),f+=1,l+=e,h()},notifyAfterAddMessage:function(e){void 0===e&&(e=0),l+=e,f>=r?d("messages_limit"):l>=n&&d("bytes_limit")},notifyAfterRemoveMessage:function(e){l-=e,0==(f-=1)&&p()}}}function oD(e,t,r,n,i,o,a){void 0===a&&(a=oh);var s=c(e,t),u=r&&c(e,r);function c(e,t){var r=t.endpoint,s=t.encoder;return a({encoder:s,request:oR(r,e.batchBytesLimit,n),flushController:oN({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:i,sessionExpireOb
1servable:o}),messageBytesLimit:e.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),s.add(e),u&&t&&u.add(r.transformMessage?r.transformMessage(e):e)},upsert:function(e,t){s.upsert(e,t),u&&u.upsert(r.transformMessage?r.transformMessage(e):e,t)},stop:function(){s.stop(),u&&u.stop()}}}function oB(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(r,n){var i=ec(r);t+=i,e+=r,n&&n(i)},finish:function(e){e(this.finishSync())},finishSync:function(){var r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount:function(e){return e.length}}}function oj(e,t,r,n,i){var o=oD(e,{endpoint:e.logsEndpointBuilder,encoder:oB()},e.replica&&{endpoint:e.replica.logsEndpointBuilder,encoder:oB()},r,n,i.expireObservable);return t.subscribe(1,function(e){o.add(e)}),o}function oU(e){var t=rM();e.subscribe(1,function(e){t.send("log",e)})}function oF(e){return{get:function(t){var r=e.findTrackedSession(t);if(r)return{session_id:r.id}}}}function oz(e){return function(t){e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:rb.AGENT,status:rm.error}}),ra("Error reported to customer",{"error.message":t.message})}}function oH(e,t,r,n,i){var o=rr("browser-logs-sdk",t);o.setContextProvider(function(){var e,t,r,n,o,a;return{application:{id:null==(e=iz())?void 0:e.application_id},session:{id:null==(t=i.findTrackedSession())?void 0:t.id},view:{id:null==(n=null==(r=iz())?void 0:r.view)?void 0:n.id},action:{id:null==(a=null==(o=iz())?void 0:o.user_action)?void 0:a.id}}});var a=[];if(rT()){var s=rM(),u=o.observable.subscribe(function(e){return s.send("internal_telemetry",e)});a.push(function(){return u.unsubscribe()})}else{var c=oD(t,{endpoint:t.rumEndpointBuilder,encoder:oB()},t.replica&&{endpoint:t.replica.rumEndpointBuilder,encoder:oB()},r,n,i.expireObservable);a.push(function(){return c.stop()});var l=o.observable.subscribe(function(e){return c.add(e,ro(t))});a.push(function(){return l.unsubscribe()})}return ri(),ru(is(e)),{telemetry:o,stop:function(){a.forEach(function(e){return e()})}}}var oV=id(function(e,t,r,n){var i=new oc,o=[];i.subscribe(1,function(e){return t1("logs",e)});var a=oz(i),s=ig(t),u=!t.sessionStoreStrategyType||rT()||i_()?iN(t):iL(t,n),c=oH(e,t,a,s,u).stop;o.push(function(){return c()}),i5(t,i),os(t,i),iY(t,i),iX(t,i);var l=ol(i).handleLog;if(iH(u,t,i,r,a),rT())oU(i);else{var f=oj(t,i,a,s,u).stop;o.push(function(){return f()})}return{handleLog:l,getInternalContext:oF(u).get,stop:function(){o.forEach(function(e){return e()})}}});function oq(e,t,r){return{context:e.getContext(),user:t.getContext(),hasReplay:!!r.isRecording()||void 0}}function o$(){return{vitalsByName:new Map,vitalsByReference:new WeakMap}}function oG(e,t,r){function n(e){return!t.wasInPageStateDuringPeriod("frozen",e.startClocks.relative,e.duration)}function i(t){n(t)&&e.notify(12,oX(t,!0))}return{addDurationVital:i,startDurationVital:function(e,t){return void 0===t&&(t={}),oW(r,e,t)},stopDurationVital:function(e,t){void 0===t&&(t={}),oK(i,r,e,t)}}}function oW(e,t,r){var n=e.vitalsByName,i=e.vitalsByReference;void 0===r&&(r={});var o={name:t,startClocks:tW(),context:r.context,description:r.description},a={__dd_vital_reference:!0};return n.set(t,o),i.set(a,o),a}function oK(e,t,r,n){var i=t.vitalsByName,o=t.vitalsByReference;void 0===n&&(n={});var a="string"==typeof r?i.get(r):o.get(r);a&&(e(oY(a,a.startClocks,n,tW())),"string"==typeof r?i.delete(r):o.delete(r))}function oY(e,t,r,n){var i;return{name:e.name,type:"duration",startClocks:t,duration:tY(t.timeStamp,n.timeStamp),context:eP(e.context,r.context),description:null!=(i=r.description)?i:e.description}}function oX(e,t){var r={date:e.startClocks.timeStamp,vital:{id:rV(),type:e.type,name:e.name,duration:tV(e.duration),description:e.description},type:"vital"};return t&&(r._dd={vital:{computed_value:!0}}),{rawRumEvent:r,startTime:e.startClocks.relative,customerContext:e.context,domainContext:{}}}function oJ(e){var t=eC(e);return"string"===t||"function"===t||e instanceof RegExp}function oZ(e,t,r){return void 0===r&&(r=!1),e.some(function(e){try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.test(t);if("string"==typeof e)return r?ee(t,e):e===t}catch(e){L.error(e)}return!1})}function oQ(){return window.crypto||window.msCrypto}function o0(){return o2(64)}function o1(){return o2(63)}function o2(e){return b||(b=tE(i.CONSISTENT_TRACE_SAMPLING)&&o3()?o6:o4),b(e)}function o3(){try{return crypto.getRandomValues(new BigUint64Array(1)),!0}catch(e){return!1}}function o6(e){var t=crypto.getRandomValues(new BigUint64Array(1))[0];return 63===e&&(t>>=BigInt("1")),t}function o4(e){var t=oQ().getRandomValues(new Uint32Array(2));return 63===e&&(t[t.length-1]>>>=1),{toString:function(e){void 0===e&&(e=10);var r=t[1],n=t[0],i="";do{var o=r%e*0x100000000+n;r=Math.floor(r/e),n=Math.floor(o/e),i=(o%e).toString(e)+i}while(r||n);return i}}}function o5(e){var t=e.toString(16);return Array(17-t.length).join("0")+t}function o8(e,t){if(100===t)return!0;
1if(0===t)return!1;if("bigint"!=typeof e)return tI(t);var r=BigInt("1111111111111111111"),n=BigInt("0x10000000000000000");return Number(e*r%n)<=t/100*Number(n)}function o9(e){var t=e;return"object"===eC(t)&&oJ(t.match)&&Array.isArray(t.propagatorTypes)}function o7(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function ae(e,t){return{clearTracingIfNeeded:o7,traceFetch:function(r){return at(e,r,t,function(e){var t;if(r.input instanceof Request&&!(null==(t=r.init)?void 0:t.headers))r.input=new Request(r.input),Object.keys(e).forEach(function(t){r.input.headers.append(t,e[t])});else{r.init=e_(r.init);var n=[];r.init.headers instanceof Headers?r.init.headers.forEach(function(e,t){n.push([t,e])}):Array.isArray(r.init.headers)?r.init.headers.forEach(function(e){n.push(e)}):r.init.headers&&Object.keys(r.init.headers).forEach(function(e){n.push([e,r.init.headers[e]])}),r.init.headers=n.concat(Q(e))}})},traceXhr:function(r,n){return at(e,r,t,function(e){Object.keys(e).forEach(function(t){n.setRequestHeader(t,e[t])})})}}}function at(e,t,r,n){if(ar()&&r.findTrackedSession()){var i=Y(e.allowedTracingUrls,function(e){return oZ([e.match],t.url,!0)});if(i){var o=o0();t.traceSampled=o8(o,e.traceSampleRate),(t.traceSampled||e.traceContextInjection===nQ.ALL)&&(t.traceId=o,t.spanId=o1(),n(an(t.traceId,t.spanId,t.traceSampled,i.propagatorTypes)))}}}function ar(){return void 0!==oQ()}function an(e,t,r,n){var i={};return n.forEach(function(n){switch(n){case"datadog":er(i,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":e.toString()});break;case"tracecontext":er(i,{traceparent:"00-0000000000000000".concat(o5(e),"-").concat(o5(t),"-0").concat(r?"1":"0")});break;case"b3":er(i,{b3:"".concat(o5(e),"-").concat(o5(t),"-").concat(r?"1":"0")});break;case"b3multi":er(i,{"X-B3-TraceId":o5(e),"X-B3-SpanId":o5(t),"X-B3-Sampled":r?"1":"0"})}}),i}ei(eo(),"DD_LOGS",oV);var ai=["tracecontext","datadog"];function ao(e){if(!e.applicationId)return void L.error("Application ID is not configured, no RUM data will be collected.");if(n2(e.sessionReplaySampleRate,"Session Replay")&&n2(e.traceSampleRate,"Trace")){if(void 0!==e.excludedActivityUrls&&!Array.isArray(e.excludedActivityUrls))return void L.error("Excluded Activity Urls should be an array");var t,r,n,i=aa(e);if(i){var o=n3(e);if(o){var a=null!=(t=e.sessionReplaySampleRate)?t:0;return er({applicationId:e.applicationId,version:e.version||void 0,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:a,startSessionReplayRecordingManually:void 0!==e.startSessionReplayRecordingManually?!!e.startSessionReplayRecordingManually:0===a,traceSampleRate:null!=(r=e.traceSampleRate)?r:100,rulePsr:tL(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:i,excludedActivityUrls:null!=(n=e.excludedActivityUrls)?n:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!e.trackUserInteractions,trackViewsManually:!!e.trackViewsManually,trackResources:!!e.trackResources,trackLongTasks:!!e.trackLongTasks,subdomain:e.subdomain,defaultPrivacyLevel:ew(nZ,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:nZ.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:ew(nQ,e.traceContextInjection)?e.traceContextInjection:nQ.ALL,plugins:e.plugins||[]},o)}}}}function aa(e){if(void 0===e.allowedTracingUrls)return[];if(!Array.isArray(e.allowedTracingUrls))return void L.error("Allowed Tracing URLs should be an array");if(0!==e.allowedTracingUrls.length&&void 0===e.service)return void L.error("Service needs to be configured when tracing is enabled");var t=[];return e.allowedTracingUrls.forEach(function(e){oJ(e)?t.push({match:e,propagatorTypes:ai}):o9(e)?t.push(e):L.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e)}),t}function as(e){var t=new Set;return Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0&&e.allowedTracingUrls.forEach(function(e){oJ(e)?ai.forEach(function(e){return t.add(e)}):"object"===eC(e)&&Array.isArray(e.propagatorTypes)&&e.propagatorTypes.forEac
1h(function(e){return t.add(e)})}),K(t)}function au(e){var t,r=n6(e);return er({session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0,selected_tracing_propagators:as(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(e.excludedActivityUrls)&&e.excludedActivityUrls.length>0,use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,plugins:null==(t=e.plugins)?void 0:t.map(function(e){var t;return er({name:e.name},null==(t=e.getConfigurationTelemetry)?void 0:t.call(e))})},r)}var ac="https://d3uc069fcn7uxw.cloudfront.net/configuration";function al(e,t){ad(e,function(r){t(af(e,r))})}function af(e,t){return er({},e,t)}function ad(e,t){var r=new XMLHttpRequest;eY(e,r,"load",function(){200===r.status?t(JSON.parse(r.responseText)):ah()}),eY(e,r,"error",function(){ah()}),r.open("GET","".concat(ac,"/").concat(encodeURIComponent(e.remoteConfigurationId),".json")),r.send()}function ah(){L.error("Error fetching the remote configuration.")}function ap(e,t,r){if(e)for(var n=0,i=e;n<i.length;n++){var o=i[n][t];o&&o(r)}}function ag(e,t,r,n,o){var a,s,u,c,l=e.ignoreInitIfSyntheticsWillInjectRum,f=e.startDeflateWorker,d=t5(),h=r.observable.subscribe(p);function p(){if(u&&c&&r.isGranted()){if(h.unsubscribe(),c.trackViewsManually){if(!a)return;d.remove(a.callback),e=a.options}var e,t=o(c,s,e);d.drain(t)}}function g(e){var t=rT();if(t&&(e=ab(e)),u=e,ru(au(e)),c)return void rg("DD_RUM",e);var n=ao(e);if(n){if(!t&&!n.sessionStoreStrategyType)return void L.warn("No storage available for session. We will not send any data.");if(n.compressIntakeRequests&&!t&&f&&!(s=f(n,"Datadog RUM",ev)))return;c=n,rU().subscribe(ev),r.tryToInit(n.trackingConsent),p()}}var b=function(e){d.add(function(t){return t.addDurationVital(e)})};return{init:function(e,t){if(!e)return void L.error("Missing configuration");tw(e.enableExperimentalFeatures),u=e,l&&i_()||(ap(e.plugins,"onInit",{initConfiguration:e,publicApi:t}),e.remoteConfigurationId&&tE(i.REMOTE_CONFIGURATION)?al(e,g):g(e))},get initConfiguration(){return u},getInternalContext:ev,stopSession:ev,addTiming:function(e,t){void 0===t&&(t=t$()),d.add(function(r){return r.addTiming(e,t)})},startView:function(e,t){void 0===t&&(t=tW());var r=function(r){r.startView(e,t)};d.add(r),a||(a={options:e,callback:r},p())},setViewName:function(e){d.add(function(t){return t.setViewName(e)})},setViewContext:function(e){d.add(function(t){return t.setViewContext(e)})},setViewContextProperty:function(e,t){d.add(function(r){return r.setViewContextProperty(e,t)})},addAction:function(e,r){void 0===r&&(r=t()),d.add(function(t){return t.addAction(e,r)})},addError:function(e,r){void 0===r&&(r=t()),d.add(function(t){return t.addError(e,r)})},addFeatureFlagEvaluation:function(e,t){d.add(function(r){return r.addFeatureFlagEvaluation(e,t)})},startDurationVital:function(e,t){return oW(n,e,t)},stopDurationVital:function(e,t){oK(b,n,e,t)},addDurationVital:b}}function ab(e){var t,r;return er({},e,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!=(t=e.defaultPrivacyLevel)?t:null==(r=rM())?void 0:r.getPrivacyLevel()})}var av="rum";function am(e,t,r){void 0===r&&(r={});var n=eM(0),i=eG(n.getOrCreateTracker(2)),o=eG(n.getOrCreateTracker(1)),a=eK(),s=o$();function u(){return oq(i,o,t)}var c=ag(r,u,a,s,function(l,f,d){l.storeContextsAcrossPages&&(eQ(l,i,av,2),eQ(l,o,av,1)),n.setCompressionStatus(f?1:2);var h=e(l,t,n,u,d,f&&r.createDeflateEncoder?function(e){return r.createDeflateEncoder(l,f,e)}:oB,a,s);return t.onRumStart(h.lifeCycle,l,h.session,h.viewHistory,f),c=ay(c,h),h}),l=q(function(e){var t="object"==typeof e?e:{name:e};t.context&&n.getOrCreateTracker(3).updateCustomerData(t.context),c.startView(t),rc({feature:"start-view"})}),f=en({init:q(function(e){c.init(e,f)}),setTrackingConsent:q(function(e){a.update(e),rc({feature:"set-tracking-consent",tracking_consent:e})}
1),setViewName:q(function(e){c.setViewName(e)}),setViewContext:q(function(e){c.setViewContext(e)}),setViewContextProperty:q(function(e,t){c.setViewContextProperty(e,t)}),setGlobalContext:q(function(e){i.setContext(e),rc({feature:"set-global-context"})}),getGlobalContext:q(function(){return i.getContext()}),setGlobalContextProperty:q(function(e,t){i.setContextProperty(e,t),rc({feature:"set-global-context"})}),removeGlobalContextProperty:q(function(e){return i.removeContextProperty(e)}),clearGlobalContext:q(function(){return i.clearContext()}),getInternalContext:q(function(e){return c.getInternalContext(e)}),getInitConfiguration:q(function(){return eO(c.initConfiguration)}),addAction:function(e,t){var r=tc();$(function(){c.addAction({name:ej(e),context:ej(t),startClocks:tW(),type:"custom",handlingStack:r}),rc({feature:"add-action"})})},addError:function(e,t){var r=tc();$(function(){c.addError({error:e,handlingStack:r,context:ej(t),startClocks:tW()}),rc({feature:"add-error"})})},addTiming:q(function(e,t){c.addTiming(ej(e),t)}),setUser:q(function(e){rh(e)&&o.setContext(rd(e)),rc({feature:"set-user"})}),getUser:q(function(){return o.getContext()}),setUserProperty:q(function(e,t){var r,n=rd(((r={})[e]=t,r))[e];o.setContextProperty(e,n),rc({feature:"set-user"})}),removeUserProperty:q(function(e){return o.removeContextProperty(e)}),clearUser:q(function(){return o.clearContext()}),startView:l,stopSession:q(function(){c.stopSession(),rc({feature:"stop-session"})}),addFeatureFlagEvaluation:q(function(e,t){c.addFeatureFlagEvaluation(ej(e),ej(t)),rc({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:q(function(){return t.getSessionReplayLink()}),startSessionReplayRecording:q(function(e){t.start(e),rc({feature:"start-session-replay-recording",force:e&&e.force})}),stopSessionReplayRecording:q(function(){return t.stop()}),addDurationVital:q(function(e,t){rc({feature:"add-duration-vital"}),c.addDurationVital({name:ej(e),type:"duration",startClocks:tF(t.startTime),duration:t.duration,context:ej(t&&t.context),description:ej(t&&t.description)})}),startDurationVital:q(function(e,t){return rc({feature:"start-duration-vital"}),c.startDurationVital(ej(e),{context:ej(t&&t.context),description:ej(t&&t.description)})}),stopDurationVital:q(function(e,t){rc({feature:"stop-duration-vital"}),c.stopDurationVital("string"==typeof e?ej(e):e,{context:ej(t&&t.context),description:ej(t&&t.description)})})});return f}function ay(e,t){return er({init:function(e){rg("DD_RUM",e)},initConfiguration:e.initConfiguration},t)}function a_(){var e=aw();return new eq(function(t){if(e){var r=new e(q(function(){return t.notify()}));return r.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return r.disconnect()}}})}function aw(){var e,t=window;if(t.Zone&&(e=ef(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){var r=ef(new t.MutationObserver(ev),"originalInstance");e=r&&r.constructor}return e||(e=t.MutationObserver),e}function aS(){var e=new eq,t=rI(window,"open",function(){return e.notify()}).stop;return{observable:e,stop:t}}function aE(){var e=iw(),t=iS();if(e&&t)return{test_id:e,result_id:t,injected:i_()}}function ax(e,t,r){var n=eO(e),i=r(n);return Q(t).forEach(function(t){var r=t[0],i=t[1],o=ak(n,r),a=eC(o);a===i?aA(e,r,ej(o)):"object"===i&&("undefined"===a||"null"===a)&&aA(e,r,{})}),i}function ak(e,t){for(var r=e,n=0,i=t.split(".");n<i.length;n++){var o=i[n];if(!aR(r,o))return;r=r[o]}return r}function aA(e,t,r){for(var n=e,i=t.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!aM(n))return;o!==i.length-1?n=n[a]:n[a]=r}}function aM(e){return"object"===eC(e)}function aR(e,t){return aM(e)&&Object.prototype.hasOwnProperty.call(e,t)}var aT={"view.name":"string","view.url":"string","view.referrer":"string"},aC={context:"object"},aI={service:"string",version:"string"};function aO(e,t,r,n,o,a,s,u,c,l){(f={}).view=er({},aC,aT),f.error=er({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},aC,aT,aI),f.resource=er({"resource.url":"string"},tE(i.WRITABLE_RESOURCE_GRAPHQL)?{"resource.graphql":"object"}:{},aC,aT,aI),f.action=er({"action.target.name":"string"},aC,aT,aI),f.long_task=er({},aC,aT),f.vital=er({},aC,aT),v=f;var f,d,h=((d={}).error=iU("error",e.eventRateLimiterThreshold,l),d.action=iU("action",e.eventRateLimiterThreshold,l),d.vital=iU("vital",e.eventRateLimiterThreshold,l),d),p=aE();t.subscribe(12,function(l){var f=l.startTime,d=l.rawRumEvent,g=l.domainContext,b=l.savedCommonContext,v=l.customerContext,m=n.findView(f),y=o.findUrl(f),_=r.findTrackedSession(f);if(_&&m&&y){var w=b||c(),S=a.findActionId(f),E=eP({_dd:{format_version:2,drift:tH(),configuration:{session_sample_rate:tO(e.sessionSampleRate,3),session_replay_sample_rate:tO(e.sessionReplaySampleRate,3)},browser_sdk_version:rT()?"5.35.1":void 0},application:{id:e.applicationId},date:t$(),service:m.service||e.service,version:m.version||e.version,source:"browser",session:{id:_.id,type:p?"synthetics":u.get()?"ci_test":"user"},view:{id:m.id,name:m.name,url:y.url,referrer:y.referrer},action:aL(d)&&S?{id:S}:void 0,synthetics:p,ci_test:u.get(),display:s.get(),connectivity:t2()},d);E.context=eP(w.context,m.context,v),"has_replay"in E.session||(E.session.has_replay=w.hasReplay),"view"===E.type&&(E.session.sampled_for_replay=1===_.sessionReplay),tE(i.ANONYMOUS_USER_TRACKING)&&!w.user.anonymous_id&&(w.user.anonymous_id=_.anonymousId),eS(w.user)||(E.usr=w.user),aP(E,e.beforeSend,g,h)&&(eS(E.context)&&delete E.context,t.notify(13,E))}})}function aP(e,t,r,n){if(t){var i,o=ax(e,v[e.type],function(e){return t(e,r)});if(!1===o&&"view"!==e.type)return!1;!1===o&&L.warn("Can't dismiss view events using beforeSend!")}return!(null==(i=n[e.type])?void 0:i.isLimitReached())}function aL(e){return -1!==["error","resource","long_task"].indexOf(e.type)}function aN(e,t,r,n,i){return{get:function(o){var a=r.findView(o),s=i.findUrl(o),u=t.findTrackedSession(o);if(u&&a&&s){var c=n.findActionId(o);return{application_id:e,session_id:u.id,user_action:c?{id:c}:void 0,view:{id:a.id,name:a.name,referrer:s.referrer,url:s.url}}}}}}var aD=ou,aB=r5;function aj(e){var t=ik({expireDelay:aB});function r(e){return{service:e.service,version:e.version,context:e.context,id:e.id,name:e.name,startClocks:e.startClocks}}return e.subscribe(1,function(e){t.add(r(e),e.startClocks.relative)}),e.subscribe(6,function(e){var r=e.endClocks;t.closeActive(r.relative)}),e.subscribe(3,function(e){var r=t.find(e.startClocks.relative);r&&e.name&&(r.name=e.name),r&&e.context&&(r.context=e.context)}),e.subscribe(10,function(){t.reset()}),{findView:function(e){return t.find(e)},stop:function(){t.stop()}}}var aU="initial_document",aF=[["document",function(e){return aU===e}],["xhr",function(e){return"xmlhttprequest"===e}],["fetch",function(e){return"fetch"===e}],["beacon",function(e){return"beacon"===e}],["css",function(e,t){return/\.css$/i.test(t)}],["js",function(e,t){return/\.js$/i.test(t)}],["image",function(e,t){return W(["image","img","icon"],e)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)}],["font",function(e,t){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(t)}],["media",function(e,t){return W(["audio","video"],e)||null!==/\.(mp3|mp4)$/i.exec(t)}]];function az(e){var t=e.name;if(!rL(t))return ra('Failed to construct URL for "'.concat(e.name,'"')),"other";for(var r=rN(t),n=0,i=aF;n<i.length;n++){var o=i[n],a=o[0];if((0,o[1])(e.initiatorType,r))return a}return"other"}function aH(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=1;r<e.length;r+=1)if(e[r-1]>e[r])return!1;return!0}function aV(e){return"xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType}function aq(e){var t=e.duration,r=e.startTime,n=e.responseEnd;return 0===t&&r<n?tV(tY(r,n)):tV(t)}function a$(e){if(aW(e)){var t=e.startTime,r=e.fetchStart,n=e.workerStart,i=e.redirectStart,o=e.redirectEnd,a=e.domainLookupStart,s=e.domainLookupEnd,u=e.connectStart,c=e.secureConnectionStart,l=e.connectEnd,f=e.requestStart,d=e.responseStart,h=e.responseEnd,p={download:aY(t,d,h),first_byte:aY(t,f,d)};return 0<n&&n<r&&(p.worker=aY(t,n,r)),r<l&&(p.connect=aY(t,u,l),u<=c&&c<=l&&(p.ssl=aY(t,c,l))),r<s&&(p.dns=aY(t,a,s)),t<o&&(p.redirect=aY(t,i,o)),p}}function aG(e){return e.duration>=0}function aW(e){var t=aH(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),r=!aK(e)||aH(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart);return t&&r}function aK(e){return e.redirectEnd>e.startTime}function aY(e,t,r){if(e<=t&&t<=r)return{duration:tV(tY(t,r)),start:tV(tY(e,t))}}function aX(e){return""===e.nextHopProtocol?void 0:e.nextHopProtocol}function aJ(e){return""===e.deliveryType?"other":e.deliveryType}function aZ(e){if(e.startTime<e.responseStart){var t=e.encodedBodySize,r=e.decodedBodySize;return{size:r,encoded_body_size:t,decoded_body_size:r,transfer_size:e.transferSize}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function aQ(e){return e&&!nJ(e)}var a0=/data:(.+)?(;base64)?,/g,a1=24e3;function a2(e){if(e.length<=a1);else if("data:"===e.substring(0,5))return e=e.substring(0,a1),!0;return!1}function a3(e){return"".concat(e.match(a0)[0],"[...]")}var a6=1;function a4(e,t,r){var n=ae(t,r);a5(e,t,n),a8(e,n)}function a5(e,t,r){var n=iZ(t).subscribe(function(t){var n=t;if(aQ(n.url))switch(n.state){case"start":r.traceXhr(n,n.xhr),n.requestIndex=a9(),e.notify(7,{requestIndex:n.requestIndex,url:n.url});break;case"complete":r.clearTracingIfNeeded(n),e.notify(8,{duration:n.duration,method:n.method,requestIndex:n.requestIndex,spanId:n.spanId,startClocks:n.startClocks,status:n.status,traceId:n.traceId,traceSampled:n.traceSampled,type:"xhr",url:n.url,xhr:n.xhr,isAborted:n.isAborted,handlingStack:n.handlingStack})}});return{stop:function(){return n.unsubscribe()}}}function a8(e,t){var r=rU().subscribe(function(r){var n=r;if(aQ(n.url))switch(n.state){case"start":t.traceFetch(n),n.requestIndex=a9(),e.notify(7,{requestIndex:n.requestIndex,url:n.url});break;case"resolve":a7(n,function(r){t.clearTracingIfNeeded(n),e.notify(8,{duration:r,method:n.method,requestIndex:n.requestIndex,responseType:n.responseType,spanId:n.spanId,startClocks:n.startClocks,status:n.status,traceId:n.traceId,traceSampled:n.traceSampled,type:"fetch",url:n.url,response:n.response,init:n.init,input:n.input,isAborted:n.isAborted,handlingStack:n.handlingStack})})}});return{stop:function(){return r.unsubscribe()}}}function a9(){var e=a6;return a6+=1,e}function a7(e,t){var r=e.response&&i6(e.response);r&&r.body?i4(r.body,function(){t(tY(e.startClocks.timeStamp,t$()))},{bytesLimit:1/0,collectStreamBody:!1}):t(tY(e.startClocks.timeStamp,t$()))}function se(e){return tL(e)&&e<0?void 0:e}
1function st(e){var t=e.lifeCycle,r=e.isChildEvent,n=e.onChange,i=void 0===n?ev:n,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=t.subscribe(13,function(e){var t;if("view"!==e.type&&"vital"!==e.type&&r(e))switch(e.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,e.action.frustration&&(o.frustrationCount+=e.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":(null==(t=e._dd)?void 0:t.discarded)||(o.resourceCount+=1,i())}});return{stop:function(){a.unsubscribe()},eventCounts:o}}function sr(e,t){var r=tq(),n=!1,i=eX(e,window,["click","mousedown","keydown","touchstart","pointerdown"],function(t){if(t.cancelable){var r={entryType:"first-input",processingStart:tG(),processingEnd:tG(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};"pointerdown"===t.type?o(e,r):a(r)}},{passive:!0,capture:!0}).stop;return{stop:i};function o(e,t){eX(e,window,["pointerup","pointercancel"],function(e){"pointerup"===e.type&&a(t)},{once:!0})}function a(e){if(!n){n=!0,i();var o=e.processingStart-e.startTime;o>=0&&o<tq()-r&&t(e)}}}function sn(e,t){return new eq(function(r){if(window.PerformanceObserver){var n,i,o=function(e){var t=ss(e);t.length>0&&r.notify(t)},a=!0,s=new PerformanceObserver(q(function(e){a?n=ed(function(){return o(e.getEntries())}):o(e.getEntries())}));try{s.observe(t)}catch(e){if(W([m.RESOURCE,m.NAVIGATION,m.LONG_TASK,m.PAINT],t.type)){t.buffered&&(n=ed(function(){return o(performance.getEntriesByType(t.type))}));try{s.observe({entryTypes:[t.type]})}catch(e){return}}}return a=!1,si(e),sa(m.FIRST_INPUT)||t.type!==m.FIRST_INPUT||(i=sr(e,function(e){o([e])}).stop),function(){s.disconnect(),i&&i(),eh(n)}}})}function si(e){return!y&&so()&&"addEventListener"in performance&&(y=eY(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),function(){null==y||y.stop()}}function so(){return void 0!==window.performance&&"getEntries"in performance}function sa(e){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(e)}function ss(e){return e.filter(function(e){return!su(e)})}function su(e){return e.entryType===m.RESOURCE&&(!aQ(e.name)||!aG(e))}!function(e){e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.LONG_ANIMATION_FRAME="long-animation-frame",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource"}(m||(m={}));var sc=100,sl=100;function sf(e,t,r,n,i,o){return sd(sh(e,t,r,n),i,o)}function sd(e,t,r){var n,i=!1,o=ed(q(function(){return c({hadActivity:!1})}),sc),a=void 0!==r?ed(q(function(){return c({hadActivity:!0,end:t$()})}),r):void 0,s=e.subscribe(function(e){var t=e.isBusy;eh(o),eh(n);var r=t$();t||(n=ed(q(function(){return c({hadActivity:!0,end:r})}),sl))}),u=function(){i=!0,eh(o),eh(n),eh(a),s.unsubscribe()};function c(e){i||(u(),t(e))}return{stop:u}}function sh(e,t,r,n){return new eq(function(i){var o,a=[],s=0;return a.push(t.subscribe(u),r.subscribe(u),sn(n,{type:m.RESOURCE}).subscribe(function(e){e.some(function(e){return!sp(n,e.name)})&&u()}),e.subscribe(7,function(e){sp(n,e.url)||(void 0===o&&(o=e.requestIndex),s+=1,u())}),e.subscribe(8,function(e){sp(n,e.url)||void 0===o||e.requestIndex<o||(s-=1,u())})),function(){a.forEach(function(e){return e.unsubscribe()})};function u(){i.notify({isBusy:s>0})}})}function sp(e,t){return oZ(e.excludedActivityUrls,t)}function sg(e){return window.CSS&&window.CSS.escape?window.CSS.escape(e):e.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,t){return t?"\0"===e?"�":"".concat(e.slice(0,-1),"\\").concat(e.charCodeAt(e.length-1).toString(16)," "):"\\".concat(e)})}function sb(e,t){return e.matches?e.matches(t):!!e.msMatchesSelector&&e.msMatchesSelector(t)}function sv(e){if(e.parentElement)return e.parentElement;for(;e.parentNode;){if(e.parentNode.nodeType===Node.ELEMENT_NODE)return e.parentNode;e=e.parentNode}return null}function sm(e){if(e.classList)return e.classList;var t=(e.getAttribute("class")||"").trim();return t?t.split(/\s+/):[]}var sy=1,s_=function(){function e(e){var t=this;this.map=new WeakMap,e&&e.forEach(function(e){return t.map.set(e,sy)})}return e.prototype.add=function(e){return this.map.set(e,sy),this},e.prototype.delete=function(e){return this.map.delete(e)},e.prototype.has=function(e){return this.map.has(e)},e}();
1function sw(e){return e.nodeType===Node.TEXT_NODE}function sS(e){return e.nodeType===Node.COMMENT_NODE}function sE(e){return e.nodeType===Node.ELEMENT_NODE}function sx(e){return sE(e)&&!!e.shadowRoot}function sk(e){var t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&sE(t.host)}function sA(e){return e.childNodes.length>0||sx(e)}function sM(e,t){for(var r=e.firstChild;r;)t(r),r=r.nextSibling;sx(e)&&t(e.shadowRoot)}function sR(e){return sk(e)?e.host:e.parentNode}var sT={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:nZ.ALLOW,MASK:nZ.MASK,MASK_USER_INPUT:nZ.MASK_USER_INPUT},sC="data-dd-privacy",sI="hidden",sO="dd-privacy-",sP="***",sL="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",sN={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},sD="x";function sB(e,t,r){if(r&&r.has(e))return r.get(e);var n=sR(e),i=n?sB(n,t,r):t,o=sj(sU(e),i);return r&&r.set(e,o),o}function sj(e,t){switch(t){case sT.HIDDEN:case sT.IGNORE:return t}switch(e){case sT.ALLOW:case sT.MASK:case sT.MASK_USER_INPUT:case sT.HIDDEN:case sT.IGNORE:return e;default:return t}}function sU(e){if(sE(e)){if("BASE"===e.tagName)return sT.ALLOW;if("INPUT"===e.tagName){var t=e;if("password"===t.type||"email"===t.type||"tel"===t.type||"hidden"===t.type)return sT.MASK;var r=t.getAttribute("autocomplete");if(r&&(r.startsWith("cc-")||r.endsWith("-password")))return sT.MASK}if(sb(e,s$(sT.HIDDEN)))return sT.HIDDEN;if(sb(e,s$(sT.MASK)))return sT.MASK;if(sb(e,s$(sT.MASK_USER_INPUT)))return sT.MASK_USER_INPUT;if(sb(e,s$(sT.ALLOW)))return sT.ALLOW;if(sq(e))return sT.IGNORE}}function sF(e,t){switch(t){case sT.MASK:case sT.HIDDEN:case sT.IGNORE:return!0;case sT.MASK_USER_INPUT:return sw(e)?sz(e.parentNode):sz(e);default:return!1}}function sz(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;var t=e;if("INPUT"===t.tagName)switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!sN[t.tagName]}var sH=function(e){return e.replace(/\S/g,sD)};function sV(e,t,r){var n,i=null==(n=e.parentElement)?void 0:n.tagName,o=e.textContent||"";if(!t||o.trim()){var a=r,s="SCRIPT"===i;if(s)o=sP;else if(a===sT.HIDDEN)o=sP;else if(sF(e,a))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?sP:sH(o);return o}}function sq(e){if("SCRIPT"===e.nodeName)return!0;if("LINK"===e.nodeName){var t=i("rel");return/preload|prefetch/i.test(t)&&"script"===i("as")||"shortcut icon"===t||"icon"===t}if("META"===e.nodeName){var r=i("name"),t=i("rel"),n=i("property");return/^msapplication-tile(image|color)$/.test(r)||"application-name"===r||"icon"===t||"apple-touch-icon"===t||"shortcut icon"===t||"keywords"===r||"description"===r||/^(og|twitter|fb):/.test(n)||/^(og|twitter):/.test(r)||"pinterest"===r||"robots"===r||"googlebot"===r||"b
1ingbot"===r||e.hasAttribute("http-equiv")||"author"===r||"generator"===r||"framework"===r||"publisher"===r||"progid"===r||/^article:/.test(n)||/^product:/.test(n)||"google-site-verification"===r||"yandex-verification"===r||"csrf-token"===r||"p:domain_verify"===r||"verify-v1"===r||"verification"===r||"shopify-checkout-api-token"===r}function i(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}function s$(e){return"[".concat(sC,'="').concat(e,'"], .').concat(sO).concat(e)}var sG="data-dd-action-name",sW="Masked Element";function sK(e,t,r){var n=t.enablePrivacyForActionName,i=t.actionNameAttribute,o=sY(e,sG)||i&&sY(e,i);return o?{name:o,nameSource:"custom_attribute"}:r===sT.MASK?{name:sW,nameSource:"mask_placeholder"}:sQ(e,i,sX,n)||sQ(e,i,sJ,n)||{name:"",nameSource:"blank"}}function sY(e,t){if(s9())r=e.closest("[".concat(t,"]"));else for(var r,n=e;n;){if(n.hasAttribute(t)){r=n;break}n=sv(n)}if(r){var i=r.getAttribute(t);return s1(s0(i.trim()))}}var sX=[function(e,t,r){if(s8()){if("labels"in e&&e.labels&&e.labels.length>0)return s6(e.labels[0],t)}else if(e.id){var n=e.ownerDocument&&Y(e.ownerDocument.querySelectorAll("label"),function(t){return t.htmlFor===e.id});return n&&s6(n,t,r)}},function(e){if("INPUT"===e.nodeName){var t=e,r=t.getAttribute("type");if("button"===r||"submit"===r||"reset"===r)return{name:t.value,nameSource:"text_content"}}},function(e,t,r){if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return s6(e,t,r)},function(e){return s3(e,"aria-label")},function(e,t,r){var n=e.getAttribute("aria-labelledby");if(n)return{name:n.split(/\s+/).map(function(t){return s2(e,t)}).filter(function(e){return!!e}).map(function(e){return s4(e,t,r)}).join(" "),nameSource:"text_content"}},function(e){return s3(e,"alt")},function(e){return s3(e,"name")},function(e){return s3(e,"title")},function(e){return s3(e,"placeholder")},function(e,t){if("options"in e&&e.options.length>0)return s6(e.options[0],t)}],sJ=[function(e,t,r){return s6(e,t,r)}],sZ=10;function sQ(e,t,r,n){for(var i=e,o=0;o<=sZ&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(var a=0,s=r;a<s.length;a++){var u=(0,s[a])(i,t,n);if(u){var c=u.name,l=u.nameSource,f=c&&c.trim();if(f)return{name:s1(s0(f)),nameSource:l}}}if("FORM"===i.nodeName)break;i=sv(i),o+=1}}function s0(e){return e.replace(/\s+/g," ")}function s1(e){return e.length>100?"".concat(rW(e,100)," [...]"):e}function s2(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}function s3(e,t){return{name:e.getAttribute(t)||"",nameSource:"standard_attribute"}}function s6(e,t,r){return{name:s4(e,t,r)||"",nameSource:"text_content"}}function s4(e,t,r){if(!e.isContentEditable){if("innerText"in e){var n=e.innerText,i=function(t){for(var r=e.querySelectorAll(t),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return s5()||i("script, style"),i("[".concat(sG,"]")),t&&i("[".concat(t,"]")),r&&i("".concat(s$(sT.HIDDEN),", ").concat(s$(sT.MASK))),n}return e.textContent}}function s5(){return!rK()}function s8(){return void 0===_&&(_="labels"in HTMLInputElement.prototype),_}function s9(){return void 0===w&&(w="closest"in HTMLElement.prototype),w}var s7=[sG,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],ue=[us,ui],ut=[us,uo,ua];function ur(e,t){if(up(e)){for(var r,n=e;n&&"HTML"!==n.nodeName;){var i=uc(n,ue,ul,t,r);if(i)return i;r=uc(n,ut,uf,t,r)||ud(uu(n),r),n=sv(n)}return r}}function un(e){return/[0-9]/.test(e)}function ui(e){if(e.id&&!un(e.id))return"#".concat(sg(e.id))}function uo(e){if("BODY"!==e.tagName)for(var t=sm(e),r=0;r<t.length;r+=1){var n=t[r];if(!un(n))return"".concat(sg(e.tagName),".").concat(sg(n))}}function ua(e){return sg(e.tagName)}function us(e,t){if(t){var r=o(t);if(r)return r}for(var n=0,i=s7;n<i.length;n++){var r=o(i[n]);if(r)return r}function o(t){if(e.hasAttribute(t))return"".concat(sg(e.tagName),"[").concat(t,'="').concat(sg(e.getAttribute(t)),'"]')}}function uu(e){for(var t=sv(e).firstElementChild,r=1;t&&t!==e;)t.tagName===e.tagName&&(r+=1),t=t.nextElementSibling;return"".concat(sg(e.tagName),":nth-of-type(").concat(r,")")}function uc(e,t,r,n,i){for(var o=0,a=t;o<a.length;o++){var s=(0,a[o])(e,n);
1if(s&&r(e,s,i))return ud(s,i)}}function ul(e,t,r){return 1===e.ownerDocument.querySelectorAll(ud(t,r)).length}function uf(e,t,r){if(void 0===r)n=function(e){return sb(e,t)};else{var n,i=uh()?ud("".concat(t,":scope"),r):ud(t,r);n=function(e){return null!==e.querySelector(i)}}for(var o=sv(e).firstElementChild;o;){if(o!==e&&n(o))return!1;o=o.nextElementSibling}return!0}function ud(e,t){return t?"".concat(e,">").concat(t):e}function uh(){if(void 0===S)try{document.querySelector(":scope"),S=!0}catch(e){S=!1}return S}function up(e){return"isConnected"in e?e.isConnected:e.ownerDocument.documentElement.contains(e)}var ug=tN,ub=100;function uv(e,t){var r,n=[],i=0;function o(e){e.stopObservable.subscribe(a),n.push(e),eh(r),r=ed(s,ug)}function a(){1===i&&n.every(function(e){return e.isStopped()})&&(i=2,t(n))}function s(){eh(r),0===i&&(i=1,a())}return o(e),{tryAppend:function(e){return 0===i&&(n.length>0&&!um(n[n.length-1].event,e.event)?(s(),!1):(o(e),!0))},stop:function(){s()}}}function um(e,t){return e.target===t.target&&uy(e,t)<=ub&&e.timeStamp-t.timeStamp<=ug}function uy(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function u_(e,t){var r,n,i=t.onPointerDown,o=t.onPointerUp,a={selection:!1,input:!1,scroll:!1},s=[eY(e,window,"pointerdown",function(e){uS(e)&&(r=uw(),a={selection:!1,input:!1,scroll:!1},n=i(e))},{capture:!0}),eY(e,window,"selectionchange",function(){r&&uw()||(a.selection=!0)},{capture:!0}),eY(e,window,"scroll",function(){a.scroll=!0},{capture:!0,passive:!0}),eY(e,window,"pointerup",function(e){if(uS(e)&&n){var t=a;o(n,e,function(){return t}),n=void 0}},{capture:!0}),eY(e,window,"input",function(){a.input=!0},{capture:!0})];return{stop:function(){s.forEach(function(e){return e.stop()})}}}function uw(){var e=window.getSelection();return!e||e.isCollapsed}function uS(e){return e.target instanceof Element&&!1!==e.isPrimary}var uE=3;function ux(e,t){if(uk(e))return t.addFrustration("rage_click"),e.some(uM)&&t.addFrustration("dead_click"),t.hasError&&t.addFrustration("error_click"),{isRage:!0};var r=e.some(function(e){return e.getUserActivity().selection});return e.forEach(function(e){e.hasError&&e.addFrustration("error_click"),uM(e)&&!r&&e.addFrustration("dead_click")}),{isRage:!1}}function uk(e){if(e.some(function(e){return e.getUserActivity().selection||e.getUserActivity().scroll}))return!1;for(var t=0;t<e.length-(uE-1);t+=1)if(e[t+uE-1].event.timeStamp-e[t].event.timeStamp<=tN)return!0;return!1}var uA='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function uM(e){return!e.hasPageActivity&&!e.getUserActivity().input&&!e.getUserActivity().scroll&&!sb(e.event.target,uA)}var uR=10*tN,uT=new Map;function uC(e){var t=uT.get(e);return uT.delete(e),t}function uI(e,t){uT.set(e,t),uT.forEach(function(e,t){tY(t,tG())>uR&&uT.delete(t)})}var uO=5*tD;function uP(e,t,r,n){var i,o=ik({expireDelay:uO}),a=new eq;e.subscribe(10,function(){o.reset()}),e.subscribe(5,c);var s=u_(n,{onPointerDown:function(i){return uL(n,e,t,i,r)},onPointerUp:function(i,s,c){uN(n,e,t,r,o,a,u,i.clickActionBase,s,c,i.hadActivityOnPointerDown)}}).stop;return{stop:function(){c(),a.notify(),s()},actionContexts:{findActionId:function(e){return o.findAll(e)}}};function u(e){if(!i||!i.tryAppend(e)){var t=e.clone();i=uv(e,function(e){uj(e,t)})}}function c(){i&&i.stop()}}function uL(e,t,r,n,i){var o=e.enablePrivacyForActionName?sB(n.target,e.defaultPrivacyLevel):sT.ALLOW;if(o!==sT.HIDDEN){var a=uD(n,o,e),s=!1;return sf(t,r,i,e,function(e){s=e.hadActivity},sc),{clickActionBase:a,hadActivityOnPointerDown:function(){return s}}}}function uN(e,t,r,n,i,o,a,s,u,c,l){var f,d=uB(t,i,c,s,u);a(d);var h=null==(f=null==s?void 0:s.target)?void 0:f.selector;h&&uI(u.timeStamp,h);var p=sf(t,r,n,e,function(e){e.hadActivity&&e.end<d.startClocks.timeStamp?d.discard():e.hadActivity?d.stop(e.end):l()?d.stop(d.startClocks.timeStamp):d.stop()},uR).stop,g=t.subscribe(5,function(e){var t=e.endClocks;d.stop(t.timeStamp)}),b=o.subscribe(function(){d.stop()});d.stopObservable.subscribe(function(){g.unsubscribe(),p(),b.unsubscribe()})}function uD(e,t,r){var n=e.target.getBoundingClientRect(),i=ur(e.target,r.actionNameAttribute);i&&uI(e.timeStamp,i);var o=sK(e.target,r,t);return{type:"click",target:{width:Math.round(n.width),height:Math.round(n.height),selector:i},position:{x:Math.round(e.clientX-n.left),y:Math.round(e.clientY-n.top)},name:o.name,nameSource:o.nameSource}}function uB(e,t,r,n,i){var o,a=rV(),s=tW(),u=t.add(a,s.relative),c=st({lifeCycle:e,isChildEvent:function(e){return void 0!==e.action&&(Array.isArray(e.action.id)?W(e.action.id,a):e.action.id===a)}}),l=0,f=[],d=new eq;function h(e){0===l&&(l=1,(o=e)?u.close(tJ(o)):u.remove(),c.stop(),d.notify())}return{event:i,stop:h,stopObservable:d,get hasError(){return c.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==o},getUserActivity:r,addFrustration:function(e){f.push(e)},startClocks:s,isStopped:function(){return 1===l||2===l}
1,clone:function(){return uB(e,t,r,n,i)},validate:function(t){if(h(),1===l){var r=c.eventCounts,u=r.resourceCount,d=r.errorCount,p=r.longTaskCount,g=er({type:"click",duration:o&&tY(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:f,counts:{resourceCount:u,errorCount:d,longTaskCount:p},events:null!=t?t:[i],event:i},n);e.notify(0,g),l=2}},discard:function(){h(),l=2}}}function uj(e,t){ux(e,t).isRage?(e.forEach(function(e){return e.discard()}),t.stop(t$()),t.validate(e.map(function(e){return e.event}))):(t.discard(),e.forEach(function(e){return e.validate()}))}function uU(e,t,r,n,i){e.subscribe(0,function(t){return e.notify(12,uF(t,i))});var o,a={findActionId:ev},s=ev;return n.trackUserInteractions&&(a=(o=uP(e,t,r,n)).actionContexts,s=o.stop),{addAction:function(t,r){e.notify(12,er({savedCommonContext:r},uF(t,i)))},actionContexts:a,stop:s}}function uF(e,t){var r=uz(e)?{action:{id:e.id,loading_time:se(tV(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position,name_source:tE(i.ACTION_NAME_MASKING)?e.nameSource:void 0}}}:void 0,n=uz(e)?void 0:e.context,o=eP({action:{id:rV(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:"action",view:{in_foreground:t.wasInPageStateAt("active",e.startClocks.relative)}},r),a=uz(e)?{events:e.events}:{};return!uz(e)&&e.handlingStack&&(a.handlingStack=e.handlingStack),{customerContext:n,rawRumEvent:o,startTime:e.startClocks.relative,domainContext:a}}function uz(e){return"custom"!==e.type}function uH(e){var t=iq([C.error]).subscribe(function(t){return e.notify(t.error)});return{stop:function(){t.unsubscribe()}}}function uV(e,t){var r=n5(e,[n4.cspViolation,n4.intervention]).subscribe(function(e){return t.notify(e)});return{stop:function(){r.unsubscribe()}}}function uq(e,t,r,n){var i=new eq;return uH(i),oi(i),uV(t,i),i.subscribe(function(t){return e.notify(14,{error:t})}),u$(e,r,n)}function u$(e,t,r){return e.subscribe(14,function(n){var i=n.error,o=n.customerContext,a=n.savedCommonContext;e.notify(12,er({customerContext:o,savedCommonContext:a},uG(i,t,r)))}),{addError:function(t,r){var n=t.error,i=t.handlingStack,o=t.startClocks,a=t.context,s=th({stackTrace:tm(n)?e2(n):void 0,originalError:n,handlingStack:i,startClocks:o,nonErrorPrefix:"Provided",source:rb.CUSTOM,handling:"handled"});e.notify(14,{customerContext:a,savedCommonContext:r,error:s})}}}function uG(e,t,r){var n={date:e.startClocks.timeStamp,error:{id:rV(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:"error",view:{in_foreground:t.wasInPageStateAt("active",e.startClocks.relative)}},i=r.findFeatureFlagEvaluations(e.startClocks.relative);i&&!eS(i)&&(n.feature_flags=i);var o={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:n,startTime:e.startClocks.relative,domainContext:o}}function uW(e,t){var r=sn(t,{type:m.LONG_TASK,buffered:!0}).subscribe(function(r){for(var n=0,i=r;n<i.length;n++){var o=i[n];if(o.entryType!==m.LONG_TASK||!t.trackLongTasks)break;var a=tU(o.startTime),s={date:a.timeStamp,long_task:{id:rV(),entry_type:"long-task",duration:tV(o.duration)},type:"long_task",_dd:{discarded:!1}};e.notify(12,{rawRumEvent:s,startTime:a.relative,domainContext:{performanceEntry:o}})}});return{stop:function(){r.unsubscribe()}}}function uK(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){var r=window.requestIdleCallback(q(e),t);return function(){return window.cancelIdleCallback(r)}}return uX(e)}var uY=50;function uX(e){var t=tq(),r=ed(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,uY-(tq()-t))}})},0);return function(){return eh(r)}}var uJ=tN,uZ=30;function uQ(){var e=[];function t(t){var n;if(t.didTimeout){var i=performance.now();n=function(){return uZ-(performance.now()-i)}}else n=t.timeRemaining.bind(t);for(;n()>0&&e.length;)e.shift()();e.length&&r()}function r(){uK(t,{timeout:uJ})}return{push:function(t){1===e.push(t)&&r()}}}var u0=new s_;function u1(e){if(performance&&"getEntriesByName"in performance){var t=performance.getEntriesByName(e.url,"resource");if(t.length&&"toJSON"in t[0]){var r=t.filter(function(e){return!u0.has(e)}).filter(function(e){return aG(e)&&aW(e)}).filter(function(t){return u3(t,e.startClocks.relative,u2({startTime:e.startClocks.relative,duration:e.duration}))});if(1===r.length)return u0.add(r[0]),r[0].toJSON()}}}function u2(e){return tX(e.startTime,e.duration)}function u3(e,t,r){var n=1;return e.startTime>=t-n&&u2(e)<=tX(r,n)}function u6(e,t,r){return document.readyState===t||"complete"===document.readyState?(r(),{stop:ev}):eY(e,window,"complete"===t?"load":"DOMContentLoaded",r,{once:!0})}var u4=2*tD;function u5(e){var t=u8(e)||u9(e);
1if(!(!t||t.traceTime<=tq()-u4))return t.traceId}function u8(e){var t=e.querySelector("meta[name=dd-trace-id]"),r=e.querySelector("meta[name=dd-trace-time]");return u7(t&&t.content,r&&r.content)}function u9(e){var t=ce(e);if(t)return u7(r$(t,"trace-id"),r$(t,"trace-time"))}function u7(e,t){var r=t&&Number(t);if(e&&r)return{traceId:e,traceTime:r}}function ce(e){for(var t=0;t<e.childNodes.length;t+=1){var r=ct(e.childNodes[t]);if(r)return r}if(e.body)for(var t=e.body.childNodes.length-1;t>=0;t-=1){var n=e.body.childNodes[t],r=ct(n);if(r)return r;if(!sw(n))break}}function ct(e){if(e&&sS(e)){var t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function cr(){if(sa(m.NAVIGATION)){var e=performance.getEntriesByType(m.NAVIGATION)[0];if(e)return e}var t=cn(),r=er({entryType:m.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:function(){return er({},r,{toJSON:void 0})}},t);return r}function cn(){var e={},t=performance.timing;for(var r in t)if(tL(t[r])){var n=r,i=t[n];e[n]=0===i?0:tJ(i)}return e}function ci(e,t){u6(e,"interactive",function(){var e=er(cr().toJSON(),{entryType:m.RESOURCE,initiatorType:aU,traceId:u5(document),toJSON:function(){return er({},e,{toJSON:void 0})}});t(e)})}function co(e,t,r,n,i){void 0===n&&(n=uQ()),void 0===i&&(i=ci),e.subscribe(8,function(e){a(function(){return ca(e,t,r)})});var o=sn(t,{type:m.RESOURCE,buffered:!0}).subscribe(function(e){for(var r=function(e){aV(e)||a(function(){return cs(e,t)})},n=0,i=e;n<i.length;n++)r(i[n])});function a(t){n.push(function(){var r=t();r&&e.notify(12,r)})}return i(t,function(e){a(function(){return cs(e,t)})}),{stop:function(){o.unsubscribe()}}}function ca(e,t,r){var n=u1(e),i=n?tU(n.startTime):e.startClocks,o=cc(e,t);if(t.trackResources||o){var a="xhr"===e.type?"xhr":"fetch",s=n?cu(n):void 0,u=cf(r,i,e.duration),c=eP({date:i.timeStamp,resource:{id:rV(),type:a,duration:u,method:e.method,status_code:e.status,protocol:n&&aX(n),url:a2(e.url)?a3(e.url):e.url,delivery_type:n&&aJ(n)},type:"resource",_dd:{discarded:!t.trackResources}},o,s);return{startTime:i.relative,rawRumEvent:c,domainContext:{performanceEntry:n,xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error,isAborted:e.isAborted,handlingStack:e.handlingStack}}}}function cs(e,t){var r=tU(e.startTime),n=cl(e,t);if(t.trackResources||n){var i=az(e),o=cu(e),a=eP({date:r.timeStamp,resource:{id:rV(),type:i,url:e.name,status_code:cd(e.responseStatus),protocol:aX(e),delivery_type:aJ(e)},type:"resource",_dd:{discarded:!t.trackResources}},n,o);return{startTime:r.relative,rawRumEvent:a,domainContext:{performanceEntry:e}}}}function cu(e){var t=e.renderBlockingStatus;return{resource:er({duration:aq(e),render_blocking_status:t},aZ(e),a$(e))}}function cc(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}function cl(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:o1().toString(),rule_psr:t.rulePsr}}}function cf(e,t,r){return e.wasInPageStateDuringPeriod("frozen",t.relative,r)?void 0:tV(r)}function cd(e){return 0===e?void 0:e}function ch(e,t,r){var n=st({lifeCycle:e,isChildEvent:function(e){return e.view.id===t},onChange:r});return{stop:n.stop,eventCounts:n.eventCounts}}var cp=10*tD;function cg(e,t,r){return{stop:sn(e,{type:m.PAINT,buffered:!0}).subscribe(function(e){var n=Y(e,function(e){return"first-contentful-paint"===e.name&&e.startTime<t.timeStamp&&e.startTime<cp});n&&r(n.startTime)}).unsubscribe}}function cb(e,t,r){var n=sn(e,{type:m.FIRST_INPUT,buffered:!0}).subscribe(function(n){var i=Y(n,function(e){return e.startTime<t.timeStamp});if(i){var o=tY(i.startTime,i.processingStart),a=void 0;i.target&&sE(i.target)&&(a=ur(i.target,e.actionNameAttribute)),r({delay:o>=0?o:0,time:i.startTime,targetSelector:a})}});return{stop:function(){n.unsubscribe()}}}function cv(e,t,r){return void 0===r&&(r=cr),c_(e,function(){var e=r();cy(e)||t(cm(e))})}function cm(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=tG()?e.responseStart:void 0}}function cy(e){return e.loadEventEnd<=0}function c_(e,t){var r,n=u6(e,"complete",function(){r=ed(function(){return t()})}).stop;return{stop:function(){n(),eh(r)}}}var cw=10*tD;function cS(e,t,r,n){var i=1/0,o=eX(e,r,["pointerdown","keydown"],function(e){i=e.timeStamp},{capture:!0,once:!0}).stop,a=0,s=sn(e,{type:m.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(function(r){var o=X(r,function(e){return e.entryType===m.LARGEST_CONTENTFUL_PAINT&&e.startTime<i&&e.startTime<t.timeStamp&&e.startTime<cw&&e.size>a});if(o){var s=void 0;o.element&&(s=ur(o.element,e.actionNameAttribute)),n({value:o.startTime,targetSelector:s}),a=o.size}}
1);return{stop:function(){o(),s.unsubscribe()}}}function cE(e,t){var r,n;return void 0===t&&(t=window),"hidden"===document.visibilityState?r=0:(r=1/0,n=eX(e,t,["pagehide","visibilitychange"],function(e){("pagehide"===e.type||"hidden"===document.visibilityState)&&(r=e.timeStamp,n())},{capture:!0}).stop),{get timeStamp(){return r},stop:function(){null==n||n()}}}function cx(e,t,r){var n={},i=cv(e,function(e){t(e.loadEvent),n.navigationTimings=e,r()}).stop,o=cE(e),a=cg(e,o,function(e){n.firstContentfulPaint=e,r()}).stop,s=cS(e,o,window,function(e){n.largestContentfulPaint=e,r()}).stop,u=cb(e,o,function(e){n.firstInput=e,r()}).stop;return{stop:function(){i(),a(),s(),u(),o.stop()},initialViewMetrics:n}}function ck(e,t,r){if(!cC())return{stop:ev};var n,i,o=0;r({value:0});var a=cT(),s=sn(e,{type:m.LAYOUT_SHIFT,buffered:!0}).subscribe(function(s){for(var u=0,c=s;u<c.length;u++){var l=c[u];if(!l.hadRecentInput&&!(l.startTime<t)){var f=a.update(l),d=f.cumulatedValue,h=f.isMaxValue;if(h){var p=cA(l.sources);n=p?new WeakRef(p):void 0,i=tY(t,l.startTime)}if(d>o){o=d;var p=null==n?void 0:n.deref();r({value:tO(o,4),targetSelector:p&&ur(p,e.actionNameAttribute),time:i})}}}});return{stop:function(){s.unsubscribe()}}}function cA(e){var t;if(e)return null==(t=Y(e,function(e){return!!e.node&&sE(e.node)}))?void 0:t.node}var cM=5*tN,cR=tN;function cT(){var e,t,r=0,n=0;return{update:function(i){var o;return void 0===e||i.startTime-t>=cR||i.startTime-e>=cM?(e=t=i.startTime,n=r=i.value,o=!0):(r+=i.value,t=i.startTime,(o=i.value>n)&&(n=i.value)),{cumulatedValue:r,isMaxValue:o}}}}function cC(){return sa(m.LAYOUT_SHIFT)&&"WeakRef"in window}var cI=0,cO=1/0,cP=0;function cL(){"interactionCount"in performance||E||(E=new window.PerformanceObserver(q(function(e){e.getEntries().forEach(function(e){var t=e;t.interactionId&&(cO=Math.min(cO,t.interactionId),cI=((cP=Math.max(cP,t.interactionId))-cO)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0})}var cN=function(){return E?cI:window.performance.interactionCount||0},cD=10,cB=+tD;function cj(e,t,r){if(!cz())return{getInteractionToNextPaint:function(){},setViewEnd:ev,stop:ev};var n,i,o=cF(r),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,u=1/0,c=cU(a),l=-1;function f(r){for(var o=0,a=r;o<a.length;o++){var s=a[o];s.interactionId&&s.startTime>=t&&s.startTime<=u&&c.process(s)}var f=c.estimateP98Interaction();f&&f.duration!==l&&(l=f.duration,i=tY(t,f.startTime),!(n=uC(f.startTime))&&f.target&&sE(f.target)&&(n=ur(f.target,e.actionNameAttribute)))}var d=sn(e,{type:m.FIRST_INPUT,buffered:!0}).subscribe(f),h=sn(e,{type:m.EVENT,durationThreshold:40,buffered:!0}).subscribe(f);return{getInteractionToNextPaint:function(){return l>=0?{value:Math.min(l,cB),targetSelector:n,time:i}:a()?{value:0}:void 0},setViewEnd:function(e){u=e,s()},stop:function(){h.unsubscribe(),d.unsubscribe()}}}function cU(e){var t=[];function r(){t.sort(function(e,t){return t.duration-e.duration}).splice(cD)}return{process:function(e){var n=t.findIndex(function(t){return e.interactionId===t.interactionId}),i=t[t.length-1];-1!==n?e.duration>t[n].duration&&(t[n]=e,r()):(t.length<cD||e.duration>i.duration)&&(t.push(e),r())},estimateP98Interaction:function(){var r=Math.min(t.length-1,Math.floor(e()/50));return t[r]}}}function cF(e){cL();var t="initial_load"===e?0:cN(),r={stopped:!1};function n(){return cN()-t}return{getViewInteractionCount:function(){return r.stopped?r.interactionCount:n()},stopViewInteractionCount:function(){r={stopped:!0,interactionCount:n()}}}}function cz(){return sa(m.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function cH(e,t,r,n,i,o,a){var s="initial_load"===i,u=!0,c=[],l=cE(n);function f(){if(!u&&!s&&c.length>0){var e=Math.max.apply(Math,c);e<l.timeStamp&&a(e)}}var d=sf(e,t,r,n,function(e){u&&(u=!1,e.hadActivity&&c.push(tY(o.timeStamp,e.end)),f())}).stop;return{stop:function(){d(),l.stop()},setLoadEvent:function(e){s&&(s=!1,c.push(e),f())}}}function cV(){var e,t=window.visualViewport;return Math.round(e=t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}
1function cq(){var e,t=window.visualViewport;return Math.round(e=t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function c$(e){return x||(x=cG(e)),x}function cG(e){return new eq(function(t){return eY(e,window,"resize",eb(function(){t.notify(cW())},200).throttled,{capture:!0,passive:!0}).stop})}function cW(){var e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var cK=tN;function cY(e,t,r,n){void 0===n&&(n=cJ(e));var i=0,o=0,a=0,s=n.subscribe(function(e){var n=e.scrollDepth,s=e.scrollTop,u=e.scrollHeight,c=!1;if(n>i&&(i=n,c=!0),u>o){o=u;var l=tG();a=tY(t.relative,l),c=!0}c&&r({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})});return{stop:function(){return s.unsubscribe()}}}function cX(){var e=cq(),t=cW().height;return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(t+e),scrollTop:e}}function cJ(e,t){return void 0===t&&(t=cK),new eq(function(r){function n(){r.notify(cX())}if(window.ResizeObserver){var i=eb(n,t,{leading:!1,trailing:!0}),o=document.scrollingElement||document.documentElement,a=new ResizeObserver(q(i.throttled));o&&a.observe(o);var s=eY(e,window,"scroll",i.throttled,{passive:!0});return function(){i.cancel(),a.disconnect(),s.stop()}}})}function cZ(e,t,r,n,i,o,a){var s={},u=cH(e,t,r,n,o,a,function(e){s.loadingTime=e,i()}),c=u.stop,l=u.setLoadEvent,f=cY(n,a,function(e){s.scroll=e}).stop,d=ck(n,a.relative,function(e){s.cumulativeLayoutShift=e,i()}).stop,h=cj(n,a.relative,o),p=h.stop,g=h.getInteractionToNextPaint;return{stop:function(){c(),d(),f()}
1,stopINPTracking:p,setLoadEvent:l,setViewEnd:h.setViewEnd,getCommonViewMetrics:function(){return s.interactionToNextPaint=g(),s}}}var cQ=3e3,c0=5*tD,c1=5*tD;function c2(e,t,r,n,i,o,a,s){var u,c=new Set,l=f("initial_load",tK(),s);function f(o,a,s){var u=c3(t,r,n,i,e,o,a,s);return c.add(u),u.stopObservable.subscribe(function(){c.delete(u)}),u}function d(e){return e.subscribe(function(e){c4(e.oldLocation,e.newLocation)&&(l.end(),l=f("route_change"))})}return function e(){t.subscribe(10,function(){l=f("route_change",void 0,{name:l.name,service:l.service,version:l.version,context:l.contextManager.getContext()})}),t.subscribe(9,function(){l.end({sessionIsActive:!1})}),t.subscribe(11,function(e){e.reason===ip.UNLOADING&&l.end()})}(),a&&(u=d(o)),{addTiming:function(e,t){void 0===t&&(t=t$()),l.addTiming(e,t)},startView:function(e,t){l.end({endClocks:t}),l=f("route_change",t,e)},setViewContext:function(e){l.contextManager.setContext(e)},setViewContextProperty:function(e,t){l.contextManager.setContextProperty(e,t)},setViewName:function(e){l.setViewName(e)},stop:function(){u&&u.unsubscribe(),l.end(),c.forEach(function(e){return e.stop()})}}}function c3(e,t,r,n,i,o,a,s){void 0===a&&(a=tW());var u,c,l,f,d,h=rV(),p=new eq,g={},b=0,v=e_(i),m=eG(),y=!0;s&&(c=s.name,l=s.service||void 0,f=s.version||void 0,s.context&&(d=s.context,m.setContext(d)));var _={id:h,name:c,startClocks:a,service:l,version:f,context:d};e.notify(1,_),e.notify(2,_);var w=eb(B,cQ,{leading:!1}),S=w.throttled,E=w.cancel,x=cZ(e,t,r,n,S,o,a),k=x.setLoadEvent,A=x.setViewEnd,M=x.stop,R=x.stopINPTracking,T=x.getCommonViewMetrics,C="initial_load"===o?cx(n,k,S):{stop:ev,initialViewMetrics:{}},I=C.stop,O=C.initialViewMetrics,P=ch(e,h,S),L=P.stop,N=P.eventCounts,D=ep(B,c0);function B(){E(),b+=1;var t=void 0===u?t$():u.timeStamp;e.notify(4,{customTimings:g,documentVersion:b,id:h,name:c,service:l,version:f,context:m.getContext(),loadingType:o,location:v,startClocks:a,commonViewMetrics:T(),initialViewMetrics:O,duration:tY(a.timeStamp,t),isActive:void 0===u,sessionIsActive:y,eventCounts:N})}return B(),m.changeObservable.subscribe(function(){e.notify(3,{id:h,name:c,context:m.getContext(),startClocks:a}),S()}),{get name(){return c},service:l,version:f,contextManager:m,stopObservable:p,end:function(t){var r,n,i=this;void 0===t&&(t={}),u||(u=null!=(r=t.endClocks)?r:tW(),y=null==(n=t.sessionIsActive)||n,e.notify(5,{endClocks:u}),e.notify(6,{endClocks:u}),eg(D),A(u.relative),M(),B(),ed(function(){i.stop()},c1))},stop:function(){I(),L(),R(),p.notify()},addTiming:function(e,t){if(!u){var r=tQ(t)?t:tY(a.timeStamp,t);g[c6(e)]=r,S()}},setViewName:function(e){c=e,B()}}}function c6(e){var t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&L.warn("Invalid timing name: ".concat(e,", sanitized to: ").concat(t)),t}function c4(e,t){return e.pathname!==t.pathname||!c5(t.hash)&&c8(t.hash)!==c8(e.hash)}function c5(e){var t=e.substring(1);return""!==t&&!!document.getElementById(t)}function c8(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}function c9(e,t,r,n,i,o,a,s,u,c){return e.subscribe(4,function(r){return e.notify(12,c7(r,t,a,u,s))}),c2(r,e,n,i,t,o,!t.trackViewsManually,c)}function c7(e,t,r,n,i){var o,a,s,u,c,l,f,d,h,p,g,b,v,m,y,_,w=n.getReplayStats(e.id),S=r.findFeatureFlagEvaluations(e.startClocks.relative),E=i.findAll(e.startClocks.relative,e.duration),x={_dd:{document_version:e.documentVersion,replay_stats:w,page_states:E,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:"view",view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:null==(o=e.commonViewMetrics.cumulativeLayoutShift)?void 0:o.value,cumulative_layout_shift_time:tV(null==(a=e.commonViewMetrics.cumulativeLayoutShift)?void 0:a.time),cumulative_layout_shift_target_selector:null==(s=e.commonViewMetrics.cumulativeLayoutShift)?void 0:s.targetSelector,first_byte:tV(null==(u=e.initialViewMetrics.navigationTimings)?void 0:u.firstByte),dom_complete:tV(null==(c=e.initialViewMetrics.navigationTimings)?void 0:c.domComplete),dom_content_loaded:tV(null==(l=e.initialViewMetrics.navigationTimings)?void 0:l.domContentLoaded),dom_interactive:tV(null==(f=e.initialViewMetrics.navigationTimings)?void 0:f.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:tV(e.initialViewMetrics.firstContentfulPaint),first_input_delay:tV(null==(d=e.initialViewMetrics.firstInput)?void 0:d.delay),first_input_time:tV(null==(h=e.initialViewMetrics.firstInput)?void 0:h.time),first_input_target_selector:null==(p=e.initialViewMetrics.firstInput)?void 0:p.targetSelector,interaction_to_next_paint:tV(null==(g=e.commonViewMetrics.interactionToNextPaint)?void 0:g.value),interaction_to_next_paint_time:tV(null==(b=e.commonViewMetrics.interactionToNextPaint)?void 0:b.time),interaction_to_next_paint_target_selector:null==(v=e.commonViewMetrics.interactionToNextPaint)?void 0:v.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:tV(null==(m=e.initialViewMetrics.largestContentfulPaint)?void 0:m.value),largest_contentful_paint_target_selector:null==(y=e.initialViewMetrics.largestContentfulPaint)?void 0:y.targetSelector,load_event:tV(null==(_=e.initialViewMetrics.navigationTimings)?void 0:_.loadEvent),loading_time:se(tV(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},resource:{count:e.eventCounts.resourceCount},time_spent:tV(e.duration)},feature_flags:S&&!eS(S)?S:void 0,display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:tV(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!w||void 0,is_active:!!e.sessionIsActive&&void 0},privacy:{replay_level:t.defaultPrivacyLevel}};return eS(e.customTimings)||(x.view.custom_timings=eE(e.customTimings,tV)),{rawRumEvent:x,startTime:e.startClocks.relative,domainContext:{location:e.location}}}var le="rum";function lt(e,t,r){var n=iT(e,le,function(t){return ln(e,t)},r);return n.expireObservable.subscribe(function(){t.notify(9)}
1),n.renewObservable.subscribe(function(){t.notify(10)}),n.sessionStateUpdateObservable.subscribe(function(e){var t=e.previousState,r=e.newState;if(!t.forcedReplay&&r.forcedReplay){var i=n.findSession();i&&(i.isReplayForced=!0)}}),{findTrackedSession:function(e){var t=n.findSession(e);if(t&&lo(t.trackingType))return{id:t.id,sessionReplay:"1"===t.trackingType?1:2*!!t.isReplayForced,anonymousId:t.anonymousId}},expire:n.expire,expireObservable:n.expireObservable,setForcedReplay:function(){return n.updateSessionState({forcedReplay:"1"})}}}function lr(){var e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:+!!rR("records")};return{findTrackedSession:function(){return e},expire:ev,expireObservable:new eq,setForcedReplay:ev}}function ln(e,t){var r;return{trackingType:r=li(t)?t:tI(e.sessionSampleRate)?tI(e.sessionReplaySampleRate)?"1":"2":"0",isTracked:lo(r)}}function li(e){return"0"===e||"1"===e||"2"===e}function lo(e){return"2"===e||"1"===e}function la(e,t,r,n,i,o,a){var s=e.replica,u=oD(e,{endpoint:e.rumEndpointBuilder,encoder:a(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(e){return eP(e,{application:{id:s.applicationId}})},encoder:a(3)},n,i,o);return t.subscribe(13,function(e){"view"===e.type?u.upsert(e,e.view.id):u.add(e)}),r.subscribe(function(t){return u.add(t,ro(e))}),u}function ls(e){var t=rM();e.subscribe(13,function(e){t.send("rum",e)})}var lu=r5;function lc(e,t,r){var n,i=ik({expireDelay:lu});e.subscribe(1,function(e){var t=e.startClocks,o=r.href;i.add(a({url:o,referrer:n||document.referrer}),t.relative),n=o}),e.subscribe(6,function(e){var t=e.endClocks;i.closeActive(t.relative)});var o=t.subscribe(function(e){var t=e.newLocation,r=i.find();if(r){var n=tG();i.closeActive(n),i.add(a({url:t.href,referrer:r.referrer}),n)}});function a(e){return{url:e.url,referrer:e.referrer}}return{findUrl:function(e){return i.find(e)},stop:function(){o.unsubscribe(),i.stop()}}}function ll(e,t){var r=e_(t);return new eq(function(n){var i=lf(e,a).stop,o=ld(e,a).stop;function a(){if(r.href!==t.href){var e=e_(t);n.notify({newLocation:e,oldLocation:r}),r=e}}return function(){i(),o()}})}function lf(e,t){var r=rI(lh("pushState"),"pushState",function(e){(0,e.onPostCall)(t)}).stop,n=rI(lh("replaceState"),"replaceState",function(e){(0,e.onPostCall)(t)}).stop,i=eY(e,window,"popstate",t).stop;return{stop:function(){r(),n(),i()}}}function ld(e,t){return eY(e,window,"hashchange",t)}function lh(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}var lp=r5;function lg(e,t){var r=ik({expireDelay:lp});return e.subscribe(1,function(e){var n=e.startClocks;r.add({},n.relative),t.resetCustomerData()}),e.subscribe(6,function(e){var t=e.endClocks;r.closeActive(t.relative)}),{findFeatureFlagEvaluations:function(e){return r.find(e)},addFeatureFlagEvaluation:function(e,n){var i=r.find();i&&(i[e]=n,t.updateCustomerData(i))},stop:function(){return t.stop()}}}var lb=10*tN;function lv(e,t,r,n,i){t.enabled&&tI(e.customerDataTelemetrySampleRate)&&(lS(),lE(),r.subscribe(13,function(e){M=!0,l_(A.globalContextBytes,n.getOrCreateTracker(2).getBytesCount()),l_(A.userContextBytes,n.getOrCreateTracker(1).getBytesCount()),l_(A.featureFlagBytes,W(["view","error"],e.type)?n.getOrCreateTracker(0).getBytesCount():0)}),i.subscribe(function(e){var t=e.bytesCount,r=e.messagesCount;M&&(k.batchCount+=1,l_(k.batchBytesCount,t),l_(k.batchMessagesCount,r),lw(k.globalContextBytes,A.globalContextBytes),lw(k.userContextBytes,A.userContextBytes),lw(k.featureFlagBytes,A.featureFlagBytes),lE())}),ep(lm,lb))}function lm(){0!==k.batchCount&&(ra("Customer data measures",k),lS())}function ly(){return{min:1/0,max:0,sum:0}}function l_(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function lw(e,t){e.sum+=t.sum,e.min=Math.min(e.min,t.min),e.max=Math.max(e.max,t.max)}function lS(){k={batchCount:0,batchBytesCount:ly(),batchMessagesCount:ly(),globalContextBytes:ly(),userContextBytes:ly(),featureFlagBytes:ly()}}function lE(){M=!1,A={globalContextBytes:ly(),userContextBytes:ly(),featureFlagBytes:ly()}}var lx=4e3,lk=500,lA=r5;function lM(e,t){void 0===t&&(t=lk);var r,n=ik({expireDelay:lA,maxEntries:lx}
1);o(lT(),tG());var i=eX(e,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(e){o(lR(e),e.timeStamp)},{capture:!0}).stop;function o(e,t){void 0===t&&(t=tG()),e!==r&&(r=e,n.closeActive(t),n.add({state:r,startTime:t},t))}var a={findAll:function(e,r){var i=n.findAll(e,r);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-t),s=i.length-1;s>=a;s--){var u=i[s],c=tY(e,u.startTime);o.push({state:u.state,start:tV(c)})}return o}},wasInPageStateAt:function(e,t){return a.wasInPageStateDuringPeriod(e,t,0)},wasInPageStateDuringPeriod:function(e,t,r){return n.findAll(t,r).some(function(t){return t.state===e})},addPageState:o,stop:function(){i(),n.stop()}};return a}function lR(e){return"freeze"===e.type?"frozen":"pagehide"===e.type?e.persisted?"frozen":"terminated":lT()}function lT(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function lC(e){tE(i.DELAY_VIEWPORT_COLLECTION)?r=requestAnimationFrame(function(){t=cW()}):t=cW();var t,r,n=c$(e).subscribe(function(e){t=e}).unsubscribe;return{get:function(){return t?{viewport:t}:void 0},stop:function(){n(),r&&cancelAnimationFrame(r)}}}function lI(e,t){var r=window.cookieStore?lO(e):lL;return new eq(function(e){return r(t,function(t){return e.notify(t)})})}function lO(e){return function(t,r){return eY(e,window.cookieStore,"change",function(e){var n=Y(e.changed,function(e){return e.name===t})||Y(e.deleted,function(e){return e.name===t});n&&r(n.value)}).stop}}var lP=tN;function lL(e,t){var r=r$(document.cookie,e),n=ep(function(){var n=r$(document.cookie,e);n!==r&&t(n)},lP);return function(){eg(n)}}var lN="datadog-ci-visibility-test-execution-id";function lD(e,t){void 0===t&&(t=lI(e,lN));var r,n=r1(lN)||(null==(r=window.Cypress)?void 0:r.env("traceId")),i=t.subscribe(function(e){n=e});return{get:function(){if("string"==typeof n)return{test_execution_id:n}},stop:function(){return i.unsubscribe()}}}function lB(e,t){var r=sn(t,{type:m.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(function(t){for(var r=0,n=t;r<n.length;r++){var i=n[r],o=tU(i.startTime),a={date:o.timeStamp,long_task:{id:rV(),entry_type:"long-animation-frame",duration:tV(i.duration),blocking_duration:tV(i.blockingDuration),first_ui_event_timestamp:tV(i.firstUIEventTimestamp),render_start:tV(i.renderStart),style_and_layout_start:tV(i.styleAndLayoutStart),start_time:tV(i.startTime),scripts:i.scripts.map(function(e){return{duration:tV(e.duration),pause_duration:tV(e.pauseDuration),forced_style_and_layout_duration:tV(e.forcedStyleAndLayoutDuration),start_time:tV(e.startTime),execution_start:tV(e.executionStart),source_url:e.sourceURL,source_function_name:e.sourceFunctionName,source_char_position:e.sourceCharPosition,invoker:e.invoker,invoker_type:e.invokerType,window_attribution:e.windowAttribution}})},type:"long_task",_dd:{discarded:!1}};e.notify(12,{rawRumEvent:a,startTime:o.relative,domainContext:{performanceEntry:i}})}});return{stop:function(){return r.unsubscribe()}}}function lj(e,t,r,n,o,a,s,u){var c=[],l=new aD;l.subscribe(13,function(e){return t1("rum",e)});var f=lU(e);f.setContextProvider(function(){var t,r;return{application:{id:e.applicationId},session:{id:null==(t=b.findTrackedSession())?void 0:t.id},view:{id:null==(r=k.findView())?void 0:r.id},action:{id:M.findActionId()}}});var d=function(e){l.notify(14,{error:e}),ra("Error reported to customer",{"error.message":e.message})},h=lg(l,r.getOrCreateTracker(0)),p=ig(e),g=p.subscribe(function(e){l.notify(11,e)});c.push(function(){return g.unsubscribe()});var b=rT()?lr():lt(e,l,s);if(rT())ls(l);else{var v=la(e,l,f.observable,d,p,b.expireObservable,a);c.push(function(){return v.stop()}),lv(e,f,l,r,v.flushObservable)}var m=a_(),y=ll(e,location),_=lM(e),w=aS(),S=w.observable,E=w.stop;c.push(E);var x=lF(l,e,location,b,_,y,m,S,n,d),k=x.viewHistory,A=x.urlContexts,M=x.actionContexts,R=x.addAction,T=x.stop;c.push(T),ri();var C=c9(l,e,location,m,S,y,h,_,t,o),I=C.addTiming,O=C.startView,P=C.setViewName,L=C.setViewContext,N=C.setViewContextProperty,D=C.stop;c.push(D);var B=co(l,e,_).stop;if(c.push(B),tE(i.LONG_ANIMATION_FRAME)){if(e.trackLongTasks){var j=lB(l,e).stop;c.push(j)}}else uW(l,e);var U=uq(l,e,_,h).addError;a4(l,e,b);var F=oG(l,_,u),z=aN(e.applicationId,b,k,M,A);return{addAction:R,addError:U,addTiming:I,addFeatureFlagEvaluation:h.addFeatureFlagEvaluation,startView:O,setViewContext:L,setViewContextProperty:N,setViewName:P,lifeCycle:l,viewHistory:k,session:b,stopSession:function(){return b.expire()},getInternalContext:z.get,startDurationVital:F.startDurationVital,stopDurationVital:F.stopDurationVital,addDurationVital:F.addDurationVital,stop:function(){c.forEac
1h(function(e){return e()})}}}function lU(e){var t=rr("browser-rum-sdk",e);if(rT()){var r=rM();t.observable.subscribe(function(e){return r.send("internal_telemetry",e)})}return t}function lF(e,t,r,n,i,o,a,s,u,c){var l=aj(e),f=lc(e,o,r),d=uU(e,a,s,t,i),h=lC(t),p=lD(t);return aO(t,e,n,l,f,d.actionContexts,h,p,u,c),{viewHistory:l,pageStateHistory:i,urlContexts:f,addAction:d.addAction,actionContexts:d.actionContexts,stop:function(){d.stop(),p.stop(),h.stop(),f.stop(),l.stop(),i.stop()}}}function lz(e,t){var r=t.session,n=t.viewContext,i=t.errorType,o=r?r.id:"no-session-id",a=[];void 0!==i&&a.push("error-type=".concat(i)),n&&(a.push("seed=".concat(n.id)),a.push("from=".concat(n.startClocks.timeStamp)));var s=lH(e),u="/rum/replay/sessions/".concat(o);return"".concat(s).concat(u,"?").concat(a.join("&"))}function lH(e){var t=e.site,r=e.subdomain||lV(e);return"https://".concat(r?"".concat(r,"."):"").concat(t)}function lV(e){switch(e.site){case tM:case tR:return"app";case tk:return"dd";default:return}}var lq=10;function l$(e){return lX(e).segments_count}function lG(e){lX(e).segments_count+=1}function lW(e){lX(e).records_count+=1}function lK(e,t){lX(e).segments_total_raw_size+=t}function lY(e){return null==R?void 0:R.get(e)}function lX(e){var t;return R||(R=new Map),R.has(e)?t=R.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},R.set(e,t),R.size>lq&&lJ()),t}function lJ(){if(R)if(R.keys){var e=R.keys().next().value;e&&R.delete(e)}else{var t=!0;R.forEach(function(e,r){t&&(R.delete(r),t=!1)})}}var lZ=new WeakMap;function lQ(e){return lZ.has(e)}function l0(e){for(var t=e;t;){if(!lQ(t)&&!sk(t))return!1;t=sR(t)}return!0}function l1(e){return lZ.get(e)}function l2(e,t){lZ.set(e,t)}function l3(e,t){var r=e.tagName,n=e.value;if(sF(e,t)){var i=e.type;if("INPUT"===r&&("button"===i||"submit"===i||"reset"===i))return n;if(!n||"OPTION"===r)return;return sP}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?n:void 0}var l6=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,l4=/^[A-Za-z]+:|^\/\//,l5=/^data:.*,/i;function l8(e,t){return e.replace(l6,function(e,r,n,i,o,a){var s=n||o||a;if(!t||!s||l4.test(s)||l5.test(s))return e;var u=r||i||"";return"url(".concat(u).concat(l9(s,t)).concat(u,")")})}function l9(e,t){try{return rD(e,t).href}catch(t){return e}}var l7=/[^a-z1-6-_]/;function fe(e){var t=e.toLowerCase().trim();return l7.test(t)?"div":t}function ft(e,t){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(e,"' height='").concat(t,"' style='background-color:silver'%3E%3C/svg%3E")}var fr={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},fn={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},fi={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},fo={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},fa={Play:0,Pause:1};function fs(e){if(void 0!==e&&0!==e.length)return e.map(function(e){return{cssRules:Array.from(e.cssRules||e.rules,function(e){return e.cssText}),disabled:e.disabled||void 0,media:e.media.length>0?Array.from(e.media):void 0}})}function fu(e,t,r,n){if(t===sT.HIDDEN)return null;var i=e.getAttribute(r);if(t===sT.MASK&&r!==sC&&!s7.includes(r)&&r!==n.actionNameAttribute){var o=e.tagName;switch(r){case"title":case"alt":case"placeholder":return sP}if("IMG"===o&&("src"===r||"srcset"===r)){var a=e;if(a.naturalWidth>0)return ft(a.naturalWidth,a.naturalHeight);var s=e.getBoundingClientRect(),u=s.width,c=s.height;return u>0||c>0?ft(u,c):sL}if("SOURCE"===o&&("src"===r||"srcset"===r))return sL;if("A"===o&&"href"===r||i&&ee(r,"data-")||"IFRAME"===o&&"srcdoc"===r)return sP}return i&&"string"==typeof i&&a2(i)?a3(i):i}function fc(e,t,r){if(t===sT.HIDDEN)return{};for(var n,i,o,a={},s=fe(e.tagName),u=e.ownerDocument,c=0;c<e.attributes.length;c+=1){var l=e.attributes.item(c).name,f=fu(e,t,l,r.configuration);null!==f&&(a[l]=f)}if(e.value&&("textarea"===s||"select"===s||"option"===s||"input"===s)){var d=l3(e,t);void 0!==d&&(a.value=d)}if("option"===s&&t===sT.ALLOW){var h=e;h.selected&&(a.selected=h.selected)}if("link"===s){var p=Array.from(u.styleSheets).find(function(t){return t.href===e.href}),g=fl(p);g&&p&&(a._cssText=g)}
1if("style"===s&&e.sheet){var g=fl(e.sheet);g&&(a._cssText=g)}var b=e;"input"===s&&("radio"===b.type||"checkbox"===b.type)&&(t===sT.ALLOW?a.checked=!!b.checked:sF(b,t)&&delete a.checked),("audio"===s||"video"===s)&&(a.rr_mediaState=e.paused?"paused":"played");var v=r.serializationContext;switch(v.status){case 0:i=Math.round(e.scrollTop),o=Math.round(e.scrollLeft),(i||o)&&v.elementsScrollPositions.set(e,{scrollTop:i,scrollLeft:o});break;case 1:v.elementsScrollPositions.has(e)&&(i=(n=v.elementsScrollPositions.get(e)).scrollTop,o=n.scrollLeft)}return o&&(a.rr_scrollLeft=o),i&&(a.rr_scrollTop=i),a}function fl(e){var t;if(!e)return null;try{t=e.rules||e.cssRules}catch(e){}return t?l8(Array.from(t,rX()?ff:fd).join(""),e.href):null}function ff(e){if(fp(e)&&e.selectorText.includes(":")){var t=/(\[[\w-]+[^\\])(:[^\]]+\])/g;return e.cssText.replace(t,"$1\\$2")}return fd(e)}function fd(e){return fh(e)&&fl(e.styleSheet)||e.cssText}function fh(e){return"styleSheet"in e}function fp(e){return"selectorText"in e}function fg(e,t){var r=fy(e,t);if(!r)return null;var n=l1(e)||fv(),i=r;return i.id=n,l2(e,n),t.serializedNodeIds&&t.serializedNodeIds.add(n),i}var fb=1;function fv(){return fb++}function fm(e,t){var r=[];return sM(e,function(e){var n=fg(e,t);n&&r.push(n)}),r}function fy(e,t){switch(e.nodeType){case e.DOCUMENT_NODE:return f_(e,t);case e.DOCUMENT_FRAGMENT_NODE:return fw(e,t);case e.DOCUMENT_TYPE_NODE:return fS(e);case e.ELEMENT_NODE:return fE(e,t);case e.TEXT_NODE:return fk(e,t);case e.CDATA_SECTION_NODE:return fA()}}function f_(e,t){return{type:fn.Document,childNodes:fm(e,t),adoptedStyleSheets:fs(e.adoptedStyleSheets)}}function fw(e,t){var r=sk(e);return r&&t.serializationContext.shadowRootsController.addShadowRoot(e),{type:fn.DocumentFragment,childNodes:fm(e,t),isShadowRoot:r,adoptedStyleSheets:r?fs(e.adoptedStyleSheets):void 0}}function fS(e){return{type:fn.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId}}function fE(e,t){var r,n=fe(e.tagName),i=fx(e)||void 0,o=sj(sU(e),t.parentNodePrivacyLevel);if(o===sT.HIDDEN){var a=e.getBoundingClientRect(),s=a.width,u=a.height;return{type:fn.Element,tagName:n,attributes:((r={rr_width:"".concat(s,"px"),rr_height:"".concat(u,"px")})[sC]=sI,r),childNodes:[],isSVG:i}}if(o!==sT.IGNORE){var c=fc(e,o,t),l=[];if(sA(e)&&"style"!==n){var f=void 0;l=fm(e,f=t.parentNodePrivacyLevel===o&&t.ignoreWhiteSpace===("head"===n)?t:er({},t,{parentNodePrivacyLevel:o,ignoreWhiteSpace:"head"===n}))}return{type:fn.Element,tagName:n,attributes:c,childNodes:l,isSVG:i}}}function fx(e){return"svg"===e.tagName||e instanceof SVGElement}function fk(e,t){var r=sV(e,t.ignoreWhiteSpace||!1,t.parentNodePrivacyLevel);if(void 0!==r)return{type:fn.Text,textContent:r}}function fA(){return{type:fn.CDATA,textContent:""}}function fM(e,t,r){return fg(e,{serializationContext:r,parentNodePrivacyLevel:t.defaultPrivacyLevel,configuration:t})}function fR(e){return!!e.changedTouches}function fT(e){return!0===e.composed&&sx(e.target)?e.composedPath()[0]:e.target}var fC=25;function fI(e){return Math.abs(e.pageTop-e.offsetTop-window.scrollY)>fC||Math.abs(e.pageLeft-e.offsetLeft-window.scrollX)>fC}var fO=function(e,t){var r=window.visualViewport,n={layoutViewportX:e,layoutViewportY:t,visualViewportX:e,visualViewportY:t};return r&&(fI(r)?(n.layoutViewportX=Math.round(e+r.offsetLeft),n.layoutViewportY=Math.round(t+r.offsetTop)):(n.visualViewportX=Math.round(e-r.offsetLeft),n.visualViewportY=Math.round(t-r.offsetTop))),n},fP=function(e){return{scale:e.scale,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,height:e.height,width:e.width}};function fL(e,t){return{data:er({source:e},t),type:fr.IncrementalSnapshot,timestamp:t$()}}var fN=50;function fD(e,t){var r=eb(function(e){var r=fT(e);if(lQ(r)){var n=fB(e);if(!n)return;var i={id:l1(r),timeOffset:0,x:n.x,y:n.y};t(fL(fR(e)?fi.TouchMove:fi.MouseMove,{positions:[i]}))}},fN,{trailing:!1}),n=r.throttled,i=r.cancel,o=eX(e,document,["mousemove","touchmove"],n,{capture:!0,passive:!0}).stop;return{stop:function(){o(),i()}}}function fB(e){var t=fR(e)?e.changedTouches[0]:e,r=t.clientX,n=t.clientY;
1if(window.visualViewport){var i=fO(r,n),o=i.visualViewportX,a=i.visualViewportY;r=o,n=a}if(!Number.isFinite(r)||!Number.isFinite(n)){e.isTrusted&&ra("mouse/touch event without x/y");return}return{x:r,y:n}}var fj=((T={}).pointerup=fo.MouseUp,T.mousedown=fo.MouseDown,T.click=fo.Click,T.contextmenu=fo.ContextMenu,T.dblclick=fo.DblClick,T.focus=fo.Focus,T.blur=fo.Blur,T.touchstart=fo.TouchStart,T.touchend=fo.TouchEnd,T);function fU(e,t,r){var n=function(n){var i,o=fT(n);if(sB(o,e.defaultPrivacyLevel)!==sT.HIDDEN&&lQ(o)){var a=l1(o),s=fj[n.type];if(s!==fo.Blur&&s!==fo.Focus){var u=fB(n);if(!u)return;i={id:a,type:s,x:u.x,y:u.y}}else i={id:a,type:s};var c=er({id:r.getIdForEvent(n)},fL(fi.MouseInteraction,i));t(c)}};return eX(e,document,Object.keys(fj),n,{capture:!0,passive:!0})}var fF=100;function fz(e,t,r,n){void 0===n&&(n=document);var i=eb(function(n){var i=fT(n);if(i&&sB(i,e.defaultPrivacyLevel)!==sT.HIDDEN&&lQ(i)){var o=l1(i),a=i===document?{scrollTop:cq(),scrollLeft:cV()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};r.set(i,a),t(fL(fi.Scroll,{id:o,x:a.scrollLeft,y:a.scrollTop}))}},fF),o=i.throttled,a=i.cancel,s=eY(e,n,"scroll",o,{capture:!0,passive:!0}).stop;return{stop:function(){s(),a()}}}var fH=200;function fV(e,t){var r=c$(e).subscribe(function(e){t(fL(fi.ViewportResize,e))});return{stop:function(){r.unsubscribe()}}}function fq(e,t){var r=window.visualViewport;if(!r)return{stop:ev};var n=eb(function(){t({data:fP(r),type:fr.VisualViewport,timestamp:t$()})},fH,{trailing:!1}),i=n.throttled,o=n.cancel,a=eX(e,r,["resize","scroll"],i,{capture:!0,passive:!0}).stop;return{stop:function(){a(),o()}}}function f$(e,t){return eX(e,document,["play","pause"],function(r){var n=fT(r);n&&sB(n,e.defaultPrivacyLevel)!==sT.HIDDEN&&lQ(n)&&t(fL(fi.MediaInteraction,{id:l1(n),type:"play"===r.type?fa.Play:fa.Pause}))},{capture:!0,passive:!0})}function fG(e){function t(e,t){e&&lQ(e.ownerNode)&&t(l1(e.ownerNode))}var r=[rI(CSSStyleSheet.prototype,"insertRule",function(r){var n=r.target,i=r.parameters,o=i[0],a=i[1];t(n,function(t){return e(fL(fi.StyleSheetRule,{id:t,adds:[{rule:o,index:a}]}))})}),rI(CSSStyleSheet.prototype,"deleteRule",function(r){var n=r.target,i=r.parameters[0];t(n,function(t){return e(fL(fi.StyleSheetRule,{id:t,removes:[{index:i}]}))})})];function n(n){r.push(rI(n.prototype,"insertRule",function(r){var n=r.target,i=r.parameters,o=i[0],a=i[1];t(n.parentStyleSheet,function(t){var r=fW(n);r&&(r.push(a||0),e(fL(fi.StyleSheetRule,{id:t,adds:[{rule:o,index:r}]})))})}),rI(n.prototype,"deleteRule",function(r){var n=r.target,i=r.parameters[0];t(n.parentStyleSheet,function(t){var r=fW(n);r&&(r.push(i),e(fL(fi.StyleSheetRule,{id:t,removes:[{index:r}]})))})}))}return"undefined"!=typeof CSSGroupingRule?n(CSSGroupingRule):(n(CSSMediaRule),n(CSSSupportsRule)),{stop:function(){r.forEach(function(e){return e.stop()})}}}function fW(e){for(var t=[],r=e;r.parentRule;){var n=Array.from(r.parentRule.cssRules).indexOf(r);t.unshift(n),r=r.parentRule}if(r.parentStyleSheet){var i=Array.from(r.parentStyleSheet.cssRules),o=i.indexOf(r);return t.unshift(o),t}}function fK(e,t){return eX(e,window,["focus","blur"],function(){t({data:{has_focus:document.hasFocus()},type:fr.Focus,timestamp:t$()})})}function fY(e,t,r){var n=e.subscribe(12,function(e){var n,i;"action"===e.rawRumEvent.type&&"click"===e.rawRumEvent.action.type&&(null==(i=null==(n=e.rawRumEvent.action.frustration)?void 0:n.type)?void 0:i.length)&&"events"in e.domainContext&&e.domainContext.events&&e.domainContext.events.length&&t({timestamp:e.rawRumEvent.date,type:fr.FrustrationRecord,data:{frustrationTypes:e.rawRumEvent.action.frustration.type,recordIds:e.domainContext.events.map(function(e){return r.getIdForEvent(e)})}})});return{stop:function(){n.unsubscribe()}}}function fX(e,t){var r=e.subscribe(5,function(){t({timestamp:t$(),type:fr.ViewEnd})});return{stop:function(){r.unsubscribe()}}}function fJ(e,t,r){void 0===r&&(r=document);var n,i=e.defaultPrivacyLevel,o=new WeakMap,a=r!==document,s=eX(e,r,a?["change"]:["input","change"],function(e){var t=fT(e);(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&c(t)},{capture:!0,passive:!0}).stop;if(a)n=ev;else{var u=[rO(HTMLInputElement.prototype,"value",c),rO(HTMLInputElement.prototype,"checked",c),rO(HTMLSelectElement.prototype,"value",c),rO(HTMLTextAreaElement.prototype,"value",c),rO(HTMLSelectElement.prototype,"selectedIndex",c)];n=function(){u.forEach(function(e){return e.stop()})}}return{stop:function(){n(),s()}};function c(e){var t,r=sB(e,i);if(r!==sT.HIDDEN){var n=e.type;if("radio"===n||"checkbox"===n){if(sF(e,r))return;t={isChecked:e.checked}}else{var o=l3(e,r);if(void 0===o)return;t={text:o}}l(e,t);var a=e.name;"radio"===n&&a&&e.checked&&J(document.querySelectorAll('input[type="radio"][name="'.concat(sg(a),'"]')),function(t){t!==e&&l(t,{isChecked:!1}
1)})}}function l(e,r){if(lQ(e)){var n=o.get(e);n&&n.text===r.text&&n.isChecked===r.isChecked||(o.set(e,r),t(fL(fi.Input,er({id:l1(e)},r))))}}}var fZ=100,fQ=16;function f0(e){var t=ev,r=[];function n(){t(),e(r),r=[]}var i=eb(n,fQ,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(e){0===r.length&&(t=uK(o,{timeout:fZ})),r.push.apply(r,e)},flush:n,stop:function(){t(),a()}}}function f1(e,t,r,n){var i=aw();if(!i)return{stop:ev,flush:ev};var o=f0(function(n){f2(n.concat(a.takeRecords()),e,t,r)}),a=new i(q(o.addMutations));return a.observe(n,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}function f2(e,t,r,n){var i=new Map;e.filter(function(e){return"childList"===e.type}).forEach(function(e){e.removedNodes.forEach(function(e){f8(e,n.removeShadowRoot)})});var o=e.filter(function(e){return e.target.isConnected&&l0(e.target)&&sB(e.target,r.defaultPrivacyLevel,i)!==sT.HIDDEN}),a=f3(o.filter(function(e){return"childList"===e.type}),r,n,i),s=a.adds,u=a.removes,c=a.hasBeenSerialized,l=f6(o.filter(function(e){return"characterData"===e.type&&!c(e.target)}),r,i),f=f4(o.filter(function(e){return"attributes"===e.type&&!c(e.target)}),r,i);(l.length||f.length||u.length||s.length)&&t(fL(fi.Mutation,{adds:s,removes:u,texts:l,attributes:f}))}function f3(e,t,r,n){for(var i=new Set,o=new Map,a=function(e){e.addedNodes.forEach(function(e){i.add(e)}),e.removedNodes.forEach(function(t){i.has(t)||o.set(t,e.target),i.delete(t)})},s=0,u=e;s<u.length;s++)a(u[s]);var c=Array.from(i);f5(c);for(var l=new Set,f=[],d=0,h=c;d<h.length;d++){var p=h[d];if(!y(p)){var g=sB(p.parentNode,t.defaultPrivacyLevel,n);if(g!==sT.HIDDEN&&g!==sT.IGNORE){var b=fg(p,{serializedNodeIds:l,parentNodePrivacyLevel:g,serializationContext:{status:2,shadowRootsController:r},configuration:t});if(b){var v=sR(p);f.push({nextId:_(p),parentId:l1(v),node:b})}}}}var m=[];return o.forEach(function(e,t){lQ(t)&&m.push({parentId:l1(e),id:l1(t)})}),{adds:f,removes:m,hasBeenSerialized:y};function y(e){return lQ(e)&&l.has(l1(e))}function _(e){for(var t=e.nextSibling;t;){if(lQ(t))return l1(t);t=t.nextSibling}return null}}function f6(e,t,r){for(var n,i=[],o=new Set,a=e.filter(function(e){return!o.has(e.target)&&(o.add(e.target),!0)}),s=0,u=a;s<u.length;s++){var c=u[s];if(c.target.textContent!==c.oldValue){var l=sB(sR(c.target),t.defaultPrivacyLevel,r);l!==sT.HIDDEN&&l!==sT.IGNORE&&i.push({id:l1(c.target),value:null!=(n=sV(c.target,!1,l))?n:null})}}return i}function f4(e,t,r){for(var n=[],i=new Map,o=e.filter(function(e){var t=i.get(e.target);return!(t&&t.has(e.attributeName))&&(t?t.add(e.attributeName):i.set(e.target,new Set([e.attributeName])),!0)}),a=new Map,s=0,u=o;s<u.length;s++){var c=u[s];if(c.target.getAttribute(c.attributeName)!==c.oldValue){var l=sB(c.target,t.defaultPrivacyLevel,r),f=fu(c.target,l,c.attributeName,t),d=void 0;if("value"===c.attributeName){var h=l3(c.target,l);if(void 0===h)continue;d=h}else d="string"==typeof f?f:null;var p=a.get(c.target);p||(p={id:l1(c.target),attributes:{}},n.push(p),a.set(c.target,p)),p.attributes[c.attributeName]=d}}return n}function f5(e){e.sort(function(e,t){var r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_CONTAINS?1:r&Node.DOCUMENT_POSITION_FOLLOWING?1:r&Node.DOCUMENT_POSITION_PRECEDING?-1:0})}function f8(e,t){sx(e)&&t(e.shadowRoot),sM(e,function(e){return f8(e,t)})}function f9(){var e=new WeakMap;return{set:function(t,r){(t!==document||document.scrollingElement)&&e.set(t===document?document.scrollingElement:t,r)},get:function(t){return e.get(t)},has:function(t){return e.has(t)}}}var f7=function(e,t,r){var n=new Map,i={addShadowRoot:function(o){if(!n.has(o)){var a=f1(t,e,i,o),s=fJ(e,t,o),u=fz(e,t,r,o);n.set(o,{flush:function(){return a.flush()},stop:function(){a.stop(),s.stop(),u.stop()}})}},removeShadowRoot:function(e){var t=n.get(e);t&&(t.stop(),n.delete(e))},stop:function(){n.forEach(function(e){return(0,e.stop)()})},flush:function(){n.forEach(function(e){return(0,e.flush)()})}};return i};function de(e,t,r,n,i,o){var a=function(r,i){void 0===r&&(r=t$()),void 0===i&&(i={status:0,elementsScrollPositions:e,shadowRootsController:t});var o=cW(),a=o.width,s=[{data:{height:o.height,href:window.location.href,width:a},type:fr.Meta,timestamp:r},{data:{has_focus:document.hasFocus()},type:fr.Focus,timestamp:r},{data:{node:fM(document,n,i),initialOffset:{left:cV(),top:cq()}},type:fr.FullSnapshot,timestamp:r}];
1return window.visualViewport&&s.push({data:fP(window.visualViewport),type:fr.VisualViewport,timestamp:r}),s};return o(a()),{stop:r.subscribe(2,function(r){i(),o(a(r.startClocks.timeStamp,{shadowRootsController:t,status:1,elementsScrollPositions:e}))}).unsubscribe}}function dt(){var e=new WeakMap,t=1;return{getIdForEvent:function(r){return e.has(r)||e.set(r,t++),e.get(r)}}}function dr(e){var t=e.emit,r=e.configuration,n=e.lifeCycle;if(!t)throw Error("emit function is required");var i=function(r){t(r),t1("record",{record:r}),lW(e.viewHistory.findView().id)},o=f9(),a=f7(r,i,o),s=de(o,a,n,r,u,function(e){return e.forEach(function(e){return i(e)})}).stop;function u(){a.flush(),l.flush()}var c=dt(),l=f1(i,r,a,document),f=[l,fD(r,i),fU(r,i,c),fz(r,i,o,document),fV(r,i),fJ(r,i),f$(r,i),fG(i),fK(r,i),fq(r,i),fY(n,i,c),fX(n,function(e){u(),i(e)})];return{stop:function(){a.stop(),f.forEach(function(e){return e.stop()}),s()},flushMutations:u,shadowRootsController:a}}function dn(e,t,r){var n=new FormData;n.append("segment",new Blob([e],{type:"application/octet-stream"}),"".concat(t.session.id,"-").concat(t.start));var i=JSON.stringify(er({raw_segment_size:r,compressed_segment_size:e.byteLength},t));return n.append("event",new Blob([i],{type:"application/json"})),{data:n,bytesCount:e.byteLength}}function di(e){var t=e.context,r=e.creationReason,n=e.encoder,i=0,o=t.view.id,a=er({start:1/0,end:-1/0,creation_reason:r,records_count:0,has_full_snapshot:!1,index_in_view:l$(o),source:"browser"},t);return lG(o),{addRecord:function(e,t){a.start=Math.min(a.start,e.timestamp),a.end=Math.max(a.end,e.timestamp),a.records_count+=1,a.has_full_snapshot||(a.has_full_snapshot=e.type===fr.FullSnapshot);var r=n.isEmpty?'{"records":[':",";n.write(r+JSON.stringify(e),function(e){t(i+=e)})},flush:function(e){if(n.isEmpty)throw Error("Empty segment flushed");n.write("],".concat(JSON.stringify(a).slice(1),"\n")),n.finish(function(t){lK(a.view.id,t.rawBytesCount),e(a,t)})}}}var da=5*tN,ds=6e4;function du(e,t,r,n,i,o){return dc(e,function(){return dl(t.applicationId,r,n)},i,o)}function dc(e,t,r,n){var i={status:0,nextSegmentCreationReason:"init"},o=e.subscribe(2,function(){s("view_change")}).unsubscribe,a=e.subscribe(11,function(e){s(e.reason)}).unsubscribe;function s(e){1===i.status&&(i.segment.flush(function(t,n){var i=dn(n.output,t,n.rawBytesCount);ib(e)?r.sendOnExit(i):r.send(i)}),eh(i.expirationTimeoutId)),i="stop"!==e?{status:0,nextSegmentCreationReason:e}:{status:2}}return{addRecord:function(e){if(2!==i.status){if(0===i.status){var r=t();if(!r)return;i={status:1,segment:di({encoder:n,context:r,creationReason:i.nextSegmentCreationReason}),expirationTimeoutId:ed(function(){s("segment_duration_limit")},da)}}i.segment.addRecord(e,function(e){e>ds&&s("segment_bytes_limit")})}},stop:function(){s("stop"),o(),a()}}}function dl(e,t,r){var n=t.findTrackedSession(),i=r.findView();if(n&&i)return{application:{id:e},session:{id:n.id},view:{id:i.id}}}function df(e){var t=rM();return{addRecord:function(r){var n=e.findView();t.send("record",r,n.id)}}}function dd(e,t,r){var n,i=0,o=[],a=0,s=[],u=eY(e,t,"message",function(e){var t=e.data;if("wrote"===t.type&&t.streamId===r){i+=t.additionalBytesCount,o.push(t.result),n=t.trailer;var a=s.shift();a&&a.id===t.id?a.writeCallback?a.writeCallback(t.result.byteLength):a.finishCallback&&a.finishCallback():(u(),ra("Worker responses received out of order."))}}).stop;function c(){var e=0===o.length?new Uint8Array(0):el(o.concat(n)),t={rawBytesCount:i,output:e,outputBytesCount:e.byteLength,encoding:"deflate"};return i=0,o=[],t}function l(){a>0&&(t.postMessage({action:"reset",streamId:r}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(e,n){t.postMessage({action:"write",id:a,data:e,streamId:r}),s.push({id:a,writeCallback:n,data:e}),a+=1},finish:function(e){l(),s.length?(s.forEach(function(e){delete e.writeCallback}),s[s.length-1].finishCallback=function(){return e(c())}):e(c())},finishSync:function(){l();var e=s.map(function(e){return delete e.writeCallback,delete e.finishCallback,e.data}).join("");return er(c(),{pendingData:e})},estimateEncodedBytesCount:function(e){return e.length/8},stop:function(){u()}}}var dh=30*tN;function dp(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),h=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>
vendor: 19,952 bytes, line 1
1>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},U=function(t,e,a){var n,r,s=new Array(16),h=0;for(n=1;n<=i;n++)s[n]=h=h+a[n-1]<<1;for(r=0;r<=e;r++){var l=t[2*r+1];0!==l&&(t[2*r]=A(s[l]++,l))}},I=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},B=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},E=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},S=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&E(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!E(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},C=function(t,e,n){var r,i,l,_,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(l=f[i],x(t,l+a+1,e),0!==(_=s[l])&&(i-=c[l],z(t,i,_)),r--,l=y(r),x(t,l,n),0!==(_=h[l])&&(r-=v[l],z(t,r,_)))}while(o<t.last_lit);x(t,256,e)},D=function(t,e){var a,n,r,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,_=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<_;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,l&&(t.static_len-=h[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)S(t,s,a);r=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],S(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,S(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,h,l,_=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(_[2*r+1]!==s&&(t.opt_len+=(s-_[2*r+1])*_[2*r],_[2*r+1]=s),n--)}}(t,e),U(s,o,t.bl_count)},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},M=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{x(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),h--),x(t,16,t.bl_tree),z(t,h-3,2)):h<=10?(x(t,17,t.bl_tree),z(t,h-3,3)):(x(t,18,t.bl_tree),z(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},L=!1,T=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){B(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},H=function(t,e,n,r){var i,s,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),h=function(t){var e;for(j(t,t.dyn_ltree,t.l_desc.max_code),j(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?T(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),C(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*_[r]+1],3);M(t,t.dyn_ltree,e-1),M(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),C(t,t.dyn_ltree,t.dyn_dtree)),I(t),r&&B(t)},R={_tr_init:function(t){L||(!function(){var t,e,a,_,m,y=new Array(16);for(a=0,_=0;_<28;_++)for(c[_]=a,t=0;t<1<<s[_];t++)f[a++]=_;for(f[a-1]=_,m=0,_=0;_<16;_++)for(v[_]=m,t=0;t<1<<h[_];t++)u[m++]=_;for(m>>=7;_<r;_++)for(v[_]=m<<7,t=0;t<1<<h[_]-7;t++)u[256+m++]=_;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(U(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,h,0,r,i),w=new b(new Array(0),l,0,19,7)}(),L=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,I(t)},_tr_stored_block:T,_tr_flush_block:H,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},K=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},N=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=N,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return~t},q={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},F=0,G=2,J=3,P=4,Q=0,V=1,W=-1,X=0,Y=8,Z=R._tr_init,$=R._tr_stored_block,tt=R._tr_flush_block,et=R._tr_tally,at=R._tr_align,nt=F,rt=1,it=J,st=P,ht=5,lt=Q,_t=V,ot=-2,dt=-3,ut=-5,ft=W,ct=1,pt=2,gt=3,wt=4,vt=X,bt=2,mt=Y,yt=258,kt=262,zt=103,xt=113,At=666,Ut=function(t,e){return t.msg=q[e],e},It=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Et=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},St=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Ct=function(t,e){tt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},jt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Mt=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-kt?t.strstart-(t.w_size-kt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+yt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=yt-(u-i),i=u-yt,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},Lt=function(t){var e,a,n,r,i,s,h,l,_,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-kt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=K(s.adler,h,o,l):2===s.state.wrap&&(s.adler=O(s.adler,h,o,l)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Et(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Et(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<kt&&0!==t.strm.avail_in)},Tt=function(t,e){for(var a,n;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a)),t.match_length>=3)if(n=et(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Et(t,t.ins_h,t.window[t.strstart+1]);else n=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2},Ht=function(t,e){for(var a,n,r;;){if(t.lookahead<kt){if(Lt(t),t.lookahead<kt&&e===nt)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-kt&&(t.match_length=Mt(t,a),t.match_length<=5&&(t.strategy===ct||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=et(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=Et(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=et(t,0,t.window[t.strstart-1]))&&Ct(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=et(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Kt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Lt(t),0===t.lookahead&&e===nt)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Ct(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-kt&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ct(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Tt),new Rt(4,5,16,8,Tt),new Rt(4,6,32,32,Tt),new Rt(4,4,16,16,Ht),new Rt(8,16,32,32,Ht),new Rt(8,16,128,128,Ht),new Rt(8,32,128,256,Ht),new Rt(32,128,258,1024,Ht),new Rt(32,258,258,4096,Ht)];function Nt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ot=function(t){if(!t||!t.state)return Ut(t,ot);t.total_in=t.total_out=0,t.data_type=bt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:xt,t.adler=2===e.wrap?0:1,e.last_flush=nt,Z(e),lt},qt=function(t){var e,a=Ot(t);return a===lt&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Kt[e.level].max_lazy,e.good_match=Kt[e.level].good_length,e.nice_match=Kt[e.level].nice_length,e.max_chain_length=Kt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Ft=function(t,e,a,n,r,i){if(!t)return ot;var s=1;if(e===ft&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==mt||n<8||n>15||e<0||e>9||i<0||i>wt)return Ut(t,ot);8===n&&(n=9);var h=new Nt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,qt(t)},Gt={deflateInit:function(t,e){return Ft(t,e,mt,15,8,vt)},deflateInit2:Ft,deflateReset:qt,deflateResetKeep:Ot,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?ot:(t.state.gzhead=e,lt):ot},deflate:function(t,e){var a,n;if(!t||!t.state||e>ht||e<0)return t?Ut(t,ot):ot;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===At&&e!==st)return Ut(t,0===t.avail_out?ut:ot);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=pt||r.level<2?4:0),Dt(r,3),r.status=xt);else{var s=mt+(r.w_bits-8<<4)<<8;s|=(r.strategy>=pt||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=xt,jt(r,s),0!==r.strstart&&(jt(r,t.adler>>>16),jt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),St(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=zt)}else r.status=zt;if(r.status===zt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&St(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=xt)):r.status=xt),0!==r.pending){if(St(t),0===t.avail_out)return r.last_flush=-1,lt}else if(0===t.avail_in&&It(e)<=It(i)&&e!==st)return Ut(t,ut);if(r.status===At&&0!==t.avail_in)return Ut(t,ut);if(0!==t.avail_in||0!==r.lookahead||e!==nt&&r.status!==At){var h=r.strategy===pt?function(t,e){for(var a;;){if(0===t.lookahead&&(Lt(t),0===t.lookahead)){if(e===nt)return 1;break}if(t.match_length=0,a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===gt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=yt){if(Lt(t),t.lookahead<=yt&&e===nt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+yt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=yt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=et(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=et(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===st?(Ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ct(t,!1),0===t.strm.avail_out)?1:2}(r,e):Kt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=At),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),lt;if(2===h&&(e===rt?at(r):e!==ht&&($(r,0,0,!1),e===it&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),St(t),0===t.avail_out))return r.last_flush=-1,lt}return e!==st?lt:r.wrap<=0?_t:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(jt(r,t.adler>>>16),jt(r,65535&t.adler)),St(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?lt:_t)},deflateEnd:function(t){if(!t||!t.state)return ot;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==zt&&e!==xt&&e!==At?Ut(t,ot):(t.state=null,e===xt?Ut(t,dt):lt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return ot;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return ot;if(1===r&&(t.adler=K(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Lt(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Et(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,Lt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,lt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Jt=new Uint8Array(256),Pt=0;Pt<256;Pt++)Jt[Pt]=Pt>=252?6:Pt>=248?5:Pt>=240?4:Pt>=224?3:Pt>=192?2:1;Jt[254]=Jt[254]=1;var Qt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Vt=Object.prototype.toString,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X,ne=Y;function re(){this.options={level:ee,method:ne,chunkSize:16384,windowBits:15,memLevel:8,strategy:ae};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Qt,this.strm.avail_out=0;var e=Gt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==$t)throw new Error(q[e]);if(t.header&&Gt.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Vt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Gt.deflateSetDictionary(this.strm,a))!==$t)throw new Error(q[e]);this._dict_set=!0}}function ie(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function se(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}re.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Zt:Wt,"[object ArrayBuffer]"===Vt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Xt||n===Yt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Gt.deflate(r,n))===te)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Gt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===$t;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},re.prototype.onData=function(t){this.chunks.push(t)},re.prototype.onEnd=function(t){t===$t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.35.1"};case"write":var n=e.get(a.streamId);n||(n=new re,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,G),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:se(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){ie(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){ie(e,t)}}()}();'])))}var dg={status:0};function db(e,t,r,n){switch(void 0===n&&(n=dp),0===dg.status&&dm(e,t,n),dg.status){case 1:return dg.
1initializationFailureCallbacks.push(r),dg.worker;case 3:return dg.worker}}function dv(){return dg.status}function dm(e,t,r){void 0===r&&(r=dp);try{var n=r(e),i=eY(e,n,"error",function(r){dw(e,t,r)}).stop,o=eY(e,n,"message",function(r){var n=r.data;"errored"===n.type?dw(e,t,n.error,n.streamId):"initialized"===n.type&&d_(n.version)}).stop;n.postMessage({action:"init"}),ed(function(){return dy(t)},dh);var a=function(){i(),o()};dg={status:1,worker:n,stop:a,initializationFailureCallbacks:[]}}catch(r){dw(e,t,r)}}function dy(e){1===dg.status&&(L.error("".concat(e," failed to start: a timeout occurred while initializing the Worker")),dg.initializationFailureCallbacks.forEach(function(e){return e()}),dg={status:2})}function d_(e){1===dg.status&&(dg={status:3,worker:dg.worker,stop:dg.stop,version:e})}function dw(e,t,r,n){if(1===dg.status||0===dg.status){if(L.error("".concat(t," failed to start: an error occurred while creating the Worker:"),r),r instanceof Event||r instanceof Error&&dS(r.message)){var i=void 0;i=e.workerUrl?"Please make sure the Worker URL ".concat(e.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",L.error("".concat(i," See documentation at ").concat(N,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else rs(r);1===dg.status&&dg.initializationFailureCallbacks.forEach(function(e){return e()}),dg={status:2}}else rs(r,{worker_version:3===dg.status&&dg.version,stream_id:n})}function dS(e){return W(e,"Content Security Policy")||W(e,"requires 'TrustedScriptURL'")}function dE(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function dx(e,t,r,n){var i=t.findTrackedSession(),o=dk(i,n);return lz(e,{viewContext:r.findView(),errorType:o,session:i})}function dk(e,t){return dE()?e?0===e.sessionReplay?"incorrect-session-plan":t?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported"}function dA(e,t,r,n,i,o){var a,s=0;function u(u){var c=r.findTrackedSession();if(dM(c,u)){s=1;return}!dR(s)&&(s=2,u6(e,"interactive",function(){if(2===s){var u=o();if(!u){s=0;return}a=i(t,e,r,n,u).stop,s=3}}),dT(c,u)&&r.setForcedReplay())}function c(){0!==s&&3===s&&(null==a||a()),s=0}return t.subscribe(9,function(){(2===s||3===s)&&(c(),s=1)}),t.subscribe(11,function(e){e.reason===ip.UNLOADING&&c()}),t.subscribe(10,function(){1===s&&u()}),{start:u,stop:c,getSessionReplayLink:function(){return dx(e,r,n,0!==s)},isRecording:function(){return 3===s}}}function dM(e,t){return!e||0===e.sessionReplay&&(!t||!t.force)}function dR(e){return 2===e||3===e}function dT(e,t){return t&&t.force&&0===e.sessionReplay}function dC(){var e=0;return{strategy:{start:function(){e=1},stop:function(){e=2},isRecording:function(){return!1},getSessionReplayLink:ev},shouldStartImmediately:function(t){return 1===e||0===e&&!t.startSessionReplayRecordingManually}}}var dI=am(lj,function(e,t){if(rT()&&!rR("records")||!dE())return{start:ev,stop:ev,getReplayStats:function(){},onRumStart:ev,isRecording:function(){return!1},getSessionReplayLink:function(){}};var r=dC(),n=r.strategy,i=r.shouldStartImmediately;return{start:function(e){return n.start(e)},stop:function(){return n.stop()},getSessionReplayLink:function(){return n.getSessionReplayLink()},onRumStart:o,isRecording:function(){return 3===dv()&&n.isRecording()},getReplayStats:function(e){return 3===dv()?lY(e):void 0}};function o(t,r,o,a,s){var u;function c(){return!u&&(null!=s||(s=db(r,"Datadog Session Replay",function(){n.stop()},void 0)),s&&(u=dd(r,s,1))),u}n=dA(r,t,o,a,e,c),i(r)&&n.start()}}(function(e,t,r,n,i,o){var a,s=[],u=function(t){e.notify(14,{error:t}),ra("Error reported to customer",{"error.message":t.message})},c=o||oR(t.sessionReplayEndpointBuilder,ds,u);if(rT())a=df(n).addRecord;else{var l=du(e,t,r,n,c,i);a=l.addRecord,s.push(l.stop)}var f=dr({emit:a,configuration:t,lifeCycle:e,viewHistory:n}).stop;return s.push(f),{stop:function(){s.forEach(function(e){return e()})}}}
1),{startDeflateWorker:db,createDeflateEncoder:dd});ei(eo(),"DD_RUM",dI);var dO=r(36668),dP=r.n(dO),dL=r(3800),dN=r(2841);let dD={CIRCULAR_REFERENCE:"[CircularReference]",MAX_DEPTH:"[MaxDepthExceeded]",MASKED:"[REDACTED]"},dB={EMAIL:"email",NAME:"name",PHONE:"phone",FULL:"full"},dj={email:dB.EMAIL,firstname:dB.NAME,lastname:dB.NAME,surname:dB.NAME,phone:dB.PHONE,password:dB.FULL,apikey:dB.FULL,auth:dB.FULL,authorization:dB.FULL,token:dB.FULL,accesstoken:dB.FULL,refreshtoken:dB.FULL,secret:dB.FULL,ssn:dB.FULL,dob:dB.FULL,dateofbirth:dB.FULL,creditcard:dB.FULL},dU=e=>{let t=e.toLowerCase();for(let[e,r]of Object.entries(dj))if(t.includes(e))return r;return null},dF=e=>{if(!e.includes("@"))return dD.MASKED;let t=e.split("@");if(2!==t.length)return dD.MASKED;let r=t[0];if(r.length<=2)return"***@".concat(t[1]);let n=r.substring(0,2);return"".concat(n,"***@").concat(t[1])},dz=e=>e.length>1?"".concat(e[0],"****"):dD.MASKED,dH=e=>{let t=e.replace(/\D/g,"");return t.length>4?"******".concat(t.slice(-4)):dD.MASKED},dV=(e,t)=>e.length<=t?e:"".concat(e.slice(0,t),"..."),dq=(e,t)=>{if(null==e)return e;let r=String(e);switch(t){case dB.EMAIL:return dF(r);case dB.NAME:return dz(r);case dB.PHONE:return dH(r);case dB.FULL:default:return dD.MASKED}},d$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxLength:100,maxDepth:10,maxBreadth:1e3,usePartialRedaction:!1},{maxLength:r=100,maxDepth:n=10,maxBreadth:i=1e3,usePartialRedaction:o=!1}=t,a=new WeakSet,s=(e,t)=>{if(null==e)return e;if("string"==typeof e)try{let r=JSON.parse(e);return s(r,t+1)}catch(t){return dV(e,r)}return"object"!=typeof e?e:t>=n?dD.MAX_DEPTH:a.has(e)?dD.CIRCULAR_REFERENCE:(a.add(e),Array.isArray(e))?e.slice(0,i).map(e=>s(e,t+1)):Object.fromEntries(Object.entries(e).slice(0,i).map(e=>{let[r,n]=e,i=dU(r);return i?[r,o?dq(n,i):dD.MASKED]:[r,s(n,t+1)]}))};return s(e,0)};function dG(e){return"string"!=typeof e||""===e.trim()?"":e.replace(/([a-z])([A-Z])/g,"$1_$2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-zA-Z])(\d+)/g,"$1_$2").replace(/(\d+)([A-Z][a-z])/g,"$1_$2").toLowerCase()}r(63426);let dW=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";return"object"==typeof e&&null!==e?e:"function"==typeof e?{}:{[t]:e}};var dK=r(89527),dY=r(99742);let dX={INFO:"info",WARN:"warn",ERROR:"error"};class dJ{shouldDiscard(e){var t;return"error"===e.type&&!!(null==(t=e.error)?void 0:t.message)&&e.error.message.startsWith('Uncaught "Object Not Found Matching Id:')}buildContext(e,t,r){let n={usePartialRedaction:!0},{source:i,response:o,request:a,performance:s,...u}=dW(d$(null!=t?t:{},n)),c={source:"string"==typeof i?i:"",category:dG(e),...u},l={category:dG(e),context:c,runtimeEnv:{gitRef:dY.env.VERCEL_GIT_COMMIT_REF,name:this.env}};return s&&(l.performance=s),o&&(l.response=o),a&&(l.request=a),r&&(l.error={message:d$((0,dL.u1)(r),n),stackTrace:(0,dL.WD)(r,this.STACK_TRACE_LIMIT)}),l}buildLogMessage(e,t){let{category:r,action:n,actionStatus:i,reason:o}=e,{delimiter:a,prefixStart:s,prefixEnd:u,maxLength:c}=this.formatConfig,l=[r,n,i,o].filter(Boolean).join(a),f="".concat(s).concat(l).concat(u),d=null==t?void 0:t.trim();if(!d)return f;let h=d.slice(0,c).replace(RegExp(a,"g"),"-");return"".concat(f," ").concat(h).trim()}shouldSendLogs(){return!!(0,dN.Bd)()&&((0,dN.KV)()||(0,dN.bU)()||(0,dN.YG)())}sendLog(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{source:""},i=arguments.length>4?arguments[4]:void 0;if(!this.shouldSendLogs())return;let o=this.buildContext(r,n,i),a=this.buildLogMessage(o.context,t);if(!this.isInitialized)return void console.error("[datadog_not_initialized:warning] ".concat(a),o);oV.logger[e](a,dP()(o)),this.sendToRUM(e,a,o,i)}sendToRUM(e,t,r,n){if(this.shouldSendLogs()&&this.shouldCaptureUI){if(e==dX.ERROR){let e=null!=n?n:Error("Unknown error");dI.addError(e,{message:t,logContext:r});return}r.context.isWarning=e===dX.WARN||null,dI.addAction(t,r)}}logInfo(e,t,r){this.sendLog(dX.INFO,e,t,r)}logWarning(e,t,r){this.sendLog(dX.WARN,e,t,r)}logError(e,t,r,n){this.sendLog(dX.ERROR,e,r,n,t)}constructor(){var e,t,r,n,i,o;if(this.datadogSite="datadoghq.com",this.datadogClientToken=null===(t=dY)||void 0===dY||null==(e=t.env)?void 0:"pub698c8c5c60951f424a0a4fcb5e83a331",this.datadogApplicationId=null===(n=dY)||void 0===dY||null==(r=n.env)?void 0:"ef2ba9d9-8758-43b9-925b-ad5a402e2a37",this.env=(0,dN.bU)()?"preview":null===(o=dY)||void 0===dY||null==(i=o.env)?void 0:"production",this.service=dK.f,this.shouldCaptureUI=(0,dN.Bd)()&&(0,dN.KV)(),this.STACK_TRACE_LIMIT=10,this.isInitialized=!1,this.formatConfig={delimiter:"::",prefixStart:"[",prefixEnd:"]",maxLength:1e3},!(0,dN.Bd)())return;if(!this.datadogClientToken||!this.datadogApplicationId)return void console.error("Missing Datadog configuration! Logging will be disabled.");
1if(oV.init({clientToken:this.datadogClientToken,site:this.datadogSite,forwardErrorsToLogs:!0,sessionSampleRate:100,env:this.env,service:this.service}),this.shouldCaptureUI){dI.init({applicationId:this.datadogApplicationId,clientToken:this.datadogClientToken,site:this.datadogSite,service:this.service,env:this.env,version:dK.C,sessionSampleRate:50,sessionReplaySampleRate:50,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input",beforeSend:e=>!this.shouldDiscard(e)});try{"function"==typeof dI.setGlobalContextProperty&&dI.setGlobalContextProperty("owner","marketing")}catch(e){}}this.isInitialized=!0}}let dZ=new dJ},48744:(e,t,r)=>{"use strict";var n=r(77785);e.exports=function(){return n()&&!!Symbol.toStringTag}},48901:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(35145);function i(e,t){return(0,n.w)(t||e,e)}},52468:e=>{"use strict";e.exports=Object},53706:(e,t,r)=>{"use strict";var n=r(31787);e.exports=function(e){return!!n(e)}},54366:e=>{"use strict";e.exports=Math.min},55450:(e,t,r)=>{"use strict";var n,i=r(66530),o=r(10221);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},55502:e=>{"use strict";e.exports=RangeError},55671:()=>{},55793:(e,t,r)=>{"use strict";function n(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(r){return 0==arguments.length||n(r)?t:e.apply(this,arguments)}}function o(e){return function t(r,o){switch(arguments.length){case 0:return t;case 1:return n(r)?t:i(function(t){return e(r,t)});default:return n(r)&&n(o)?t:n(r)?i(function(t){return e(t,o)}):n(o)?i(function(t){return e(r,t)}):e(r,o)}}}function a(e){return function t(r,a,s){switch(arguments.length){case 0:return t;case 1:return n(r)?t:o(function(t,n){return e(r,t,n)});case 2:return n(r)&&n(a)?t:n(r)?o(function(t,r){return e(t,a,r)}):n(a)?o(function(t,n){return e(r,t,n)}):i(function(t){return e(r,a,t)});default:return n(r)&&n(a)&&n(s)?t:n(r)&&n(a)?o(function(t,r){return e(t,r,s)}):n(r)&&n(s)?o(function(t,r){return e(t,a,r)}):n(a)&&n(s)?o(function(t,n){return e(r,t,n)}):n(r)?i(function(t){return e(t,a,s)}):n(a)?i(function(t){return e(r,t,s)}):n(s)?i(function(t){return e(r,a,t)}):e(r,a,s)}}}function s(e,t){return Object.prototype.hasOwnProperty.call(t,e)}r.d(t,{A:()=>ah});var u,c=i(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function l(e){return"[object Object]"===Object.prototype.toString.call(e)}let f=Number.isInteger||function(e){return(0|e)===e};function d(e){return"[object String]"===Object.prototype.toString.call(e)}function h(e,t){var r=e<0?t.length+e:e;return d(t)?t.charAt(r):t[r]}function p(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function g(e,t,r){if(r||(r=new v),b(e))return e;var n=function(t){var n=r.get(e);if(n)return n;for(var i in r.set(e,t),e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=g(e[i],!0,r));return t};switch(c(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return p(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}function b(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}var v=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(var t in this.map)for(var r=this.map[t],n=0;n<r.length;n+=1){var i=r[n];if(i[0]===e)return i[1]}return}var o=this.hash(e),r=this.map[o];if(r)for(var n=0;n<r.length;n+=1){var i=r[n];if(i[0]===e)return i[1]}},e}(),m=i(function(e){return null!=e&&"function"==typeof e.clone?e.clone():g(e)});function y(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var i=e[n];r=f(i)?h(i,r):r[i]}return r}var _=a(function(e,t,r){var n,i={};for(n in r=r||{},t=t||{})s(n,t)&&(i[n]=s(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)s(n,r)&&!s(n,i)&&(i[n]=r[n]);return i}),w=a(function e(t,r,n){return _(function(r,n,i){return l(n)&&l(i)?e(t,n,i):t(r,n,i)},r,n)}),S=a(function(e,t,r){return w(function(t,r,n){return e(r,n)},t,r)}),E=o(y),x=o(function(e,t){var r={};for(var n in t)e(t[n],n,t)&&(r[n]=t[n]);return r});let k=e=>"function"==typeof e&&!!(e.constructor&&e.call&&e.apply),A=e=>"string"==typeof e,M=e=>null===e,R=e=>void 0===e,T=e=>M(e)||R(e),C=e=>"bigint"==typeof e,I=e=>!R(e),O=e=>!T(e),P=e=>O(e)&&""!==e,L=e=>e instanceof Error,N=(e,t)=>E(t.split("."),e),D=(e,t)=>!!N(e,t),B=e=>"object"==typeof e,j=e=>!M(e)&&B(e)&&!Array.isArray(e),U=e=>!M(e)&&"[object Object]"===Object.prototype.toString.call(e),F=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))return m(t);let r=m(e);return t.forEach((e,t)=>{r[t]=Array.isArray(e)||j(e)?z(r[t],e):e}),r},z=(e,t)=>S(F,e,t),H=e=>U(e)&&Object.keys(e).length>0,V=e=>{let t=x(I,e);
1return Object.keys(t).forEach(e=>{let r=t[e];U(r)&&(t[e]=V(r))}),t},q=e=>{let t=x(O,e);return Object.keys(t).forEach(e=>{let r=t[e];U(r)&&(t[e]=q(r))}),t},$=e=>{if(H(e))return q(e)},G=(e,t)=>I(t)?I(e)?!0===e:t:!0===e,W=e=>e.replace(/^\s+|\s+$/gm,""),K=e=>e.replace(/ {2,}/g," "),Y=e=>e.replace(/^\.+/,""),X=e=>{let t=e;if(!A(e)&&!T(e))try{t=JSON.stringify(e)}catch(e){t=null}return t},J=e=>globalThis.btoa(Array.from(e,e=>String.fromCodePoint(e)).join("")),Z=e=>J(new TextEncoder().encode(e)),Q=(e,t,r,n,i)=>{let o={category:e,name:t,properties:r,options:n,callback:void 0};k(i)&&(o.callback=i),k(n)&&(o.category=e,o.name=t,o.properties=r,o.options=void 0,o.callback=n),k(r)&&(o.category=e,o.name=t,o.properties=void 0,o.options=void 0,o.callback=r),k(t)&&(o.category=e,o.name=void 0,o.properties=void 0,o.options=void 0,o.callback=t),k(e)&&(o.category=void 0,o.name=void 0,o.properties=void 0,o.options=void 0,o.callback=e),U(e)?(o.name=void 0,o.category=void 0,o.properties=e,k(t)?o.options=void 0:o.options=t):U(t)&&(o.name=void 0,o.properties=t,k(r)?o.options=void 0:o.options=r),A(e)&&!A(t)&&(o.category=void 0,o.name=e),I(o.category)||(o.category=void 0),I(o.name)||(o.name=void 0),o.properties=o.properties?m(o.properties):{},I(o.options)?o.options=m(o.options):o.options=void 0;let a=A(o.name)?o.name:o.properties.name,s=A(o.category)?o.category:o.properties.category;return o.properties=z(U(o.properties)?o.properties:{},{...a&&{name:a},...s&&{category:s}}),o},ee=(e,t,r,n)=>{let i={name:e,properties:t,options:r,callback:void 0};return k(n)&&(i.callback=n),k(r)&&(i.properties=t,i.options=void 0,i.callback=r),k(t)&&(i.properties=void 0,i.options=void 0,i.callback=t),i.properties=O(i.properties)?m(i.properties):{},I(i.options)?i.options=m(i.options):i.options=void 0,i},et=(e,t,r,n)=>{let i={userId:e,traits:t,options:r,callback:void 0};return k(n)&&(i.callback=n),k(r)&&(i.userId=e,i.traits=t,i.options=void 0,i.callback=r),k(t)&&(i.userId=e,i.traits=void 0,i.options=void 0,i.callback=t),(U(e)||M(e))&&(i.userId=null,i.traits=e,k(t)?i.options=void 0:i.options=t),i.userId=X(i.userId),U(i.traits)?i.traits=m(i.traits):i.traits=void 0,I(i.options)?i.options=m(i.options):i.options=void 0,i},er=(e,t,r,n)=>{let i={to:e,from:t,options:r,callback:void 0};return k(n)&&(i.callback=n),k(r)&&(i.to=e,i.from=t,i.options=void 0,i.callback=r),k(t)?(i.to=e,i.from=void 0,i.options=void 0,i.callback=t):(U(t)||M(t))&&(i.to=e,i.from=void 0,i.options=t),I(i.to)&&(i.to=X(i.to)),I(i.from)?i.from=X(i.from):i.from=void 0,I(i.options)?i.options=m(i.options):i.options=void 0,i},en=(e,t,r,n)=>{let i={groupId:e,traits:t,options:r,callback:void 0};return k(n)&&(i.callback=n),k(r)&&(i.groupId=e,i.traits=t,i.options=void 0,i.callback=r),k(t)&&(i.groupId=e,i.traits=void 0,i.options=void 0,i.callback=t),(U(e)||M(e))&&(i.groupId=null,i.traits=e,k(t)?i.options=void 0:i.options=t),i.groupId=X(i.groupId),U(i.traits)?i.traits=m(i.traits):i.traits=void 0,I(i.options)?i.options=m(i.options):i.options=void 0,i},ei=function(e){return e.LOADED="Page Loaded",e.UNLOADED="Page Unloaded",e}({}),eo="CapabilitiesManager",ea="ConfigManager",es="EventManager",eu="PluginsManager",ec="UserSessionManager",el="ErrorHandler",ef="PluginEngine",ed="StoreManager",eh="readyApi",ep="EventRepository",eg="ExternalSrcLoader",eb="HttpClient",ev="RudderStackAnalytics",em="AnalyticsCore";function ey(e){return crypto.getRandomValues(new Uint8Array(e))}for(var e_,ew=4096,eS=[],eE=0;eE<256;eE++)eS[eE]=(eE+256).toString(16).substring(1);function ex(){(!e_||eE+16>ew)&&(e_=ey(ew),eE=0);for(var e,t=0,r="";t<16;t++)e=e_[eE+t],6==t?r+=eS[15&e|64]:8==t?r+=eS[63&e|128]:r+=eS[e],1&t&&t>1&&t<11&&(r+="-");return eE+=16,r}for(var ek,eA=256,eM=[];eA--;)eM[eA]=(eA+256).toString(16).substring(1);function eR(){var e,t=0,r="";if(!ek||eA+16>256){for(ek=Array(t=256);t--;)ek[t]=256*Math.random()|0;t=eA=0}for(;t<16;t++)e=ek[eA+t],6==t?r+=eM[15&e|64]:8==t?r+=eM[63&e|128]:r+=eM[e],1&t&&t>1&&t<11&&(r+="-");return eA++,r}let eT=()=>!T(globalThis.crypto)&&k(globalThis.crypto.getRandomValues),eC=()=>eT()?ex():eR(),eI=e=>{let t=!1,r=!1;function n(){t||(t=!0,e(r),setTimeout(()=>{t=!1},0))}globalThis.addEventListener("beforeunload",()=>{r=!1,n()}),globalThis.addEventListener("blur",()=>{r=!0,n()}),globalThis.addEventListener("focus",()=>{t=!1}),document.addEventListener("pagehide",()=>{r="hidden"===document.visibilityState,n()}),document.addEventListener("visibilitychange",()=>{r=!0,"hidden"===document.visibilityState?n():t=!1})},eO=e=>e.toISOString(),eP=()=>eO(new Date),eL=":: ",eN=e=>`A script with the id "${e}" is already loaded. Skipping the loading of this script to prevent conflicts.`,eD=(e,t)=>`Failed to load the script with the id "${e}" from URL "${t}".`,eB=(e,t,r)=>`A timeout of ${r} ms occurred while trying to load the script with id "${e}" from URL "${t}".`,ej=(e,t)=>`${e}${eL}A circular reference has been detected in the object and the property "${t}" has been dropped from the output.`,eU="Failed to convert the value to a JSON string.",eF="Failed to encode the cookie data.",ez="JSONStringify",eH="[BigInt]",eV="[Circular Reference]",eq=(e,t,r)=>{let n=[];return function(i,o){if(!t?.includes(i)&&!(e&&T(o))){if("object"!=typeof o||M(o))return o;for(;n.length>0&&n[n.length-1]!==this;)n.pop();return n.includes(o)?(r?.warn(ej(ez,i)),eV):(n.push(o),o)}}},e$=(e,t,r,n)=>{try{return JSON.stringify(e,eq(t,r,n))}catch(e){return n?.warn(eU,e),null}},eG=e=>{let t=[];return function(e,r){if(C(r))return eH;for(;t.length>0&&t[t.length-1]!==this;)t.pop();return t.includes(r)?eV:(t.push(r),r)}},eW=(e,t)=>{let r=Array.isArray(e)?[]:{};for(let n in e)if(Object.hasOwnProperty.call(e,n)){let i=e[n],o=t.call(e,n,i);U(o)||Array.isArray(o)?r[n]=eW(o,t):r[n]=o}return r},eK=(e,t)=>{let r=eG(),n=r.call(e,"",e);return U(e)||Array.isArray(e)?eW(e,r):n},eY="[MANUAL ERROR]",eX=(e,t)=>{let r=e;return L(e)?r.message=`${t}: ${e.message}`:r=Error(`${t}: ${e$(e)}`),r},eJ=e=>{L(e)&&(e.stack=`${e.stack??""} 2${eY}`),globalThis.dispatchEvent(new ErrorEvent("error",{error:e}))},eZ="RudderLabs JavaScript SDK",eQ="3.13.0",e0="com.rudderlabs.javascript",e1="npm",e2="RudderJS-Initiated",e3="ad-block page request",e6="/ad-blocked",e4="preloadedEventsBuffer",e5="Consent Management Interaction",e8="ajs_trait_",e9="ajs_prop_",e7="ajs_aid",te="ajs_uid",tt="ajs_event",tr=1e4,tn=31536e6,ti=18e5,to=1e4,ta=1e4,ts=250,tu=(e="app")=>{globalThis.RudderStackGlobals||(globalThis.RudderStackGlobals={}),globalThis.RudderStackGlobals[e]||(globalThis.RudderStackGlobals[e]={})},tc=(e,t,r="app")=>{tu(r),globalThis.RudderStackGlobals[r][e]=t},tl=(e,t="app")=>(tu(t),globalThis.RudderStackGlobals[t][e]);function tf(e,t,r=ts){let n;return(...i)=>{globalThis.clearTimeout(n),n=globalThis.setTimeout(()=>{e.apply(t,i)},r)}}let td=(e,t)=>{let r={};return e.forEach((n,i)=>{i.startsWith(t)&&(r[i.substring(t.length)]=e.get(i))}),r},th=(e=[])=>{let t={trait:e8,properties:e9},r=new URLSearchParams(globalThis.location.search);r.get(tt)&&e.unshift(["track",r.get(tt),td(r,t.properties)]),r.get(te)&&e.unshift(["identify",r.get(te),td(r,t.trait)]),r.get(e7)&&e.unshift(["setAnonymousId",r.get(e7)])},tp=e=>{let t="load",r=[],n=0;for(;n<e.length;){if(e[n]&&e[n][0]===t){r=m(e[n]),e.splice(n,1);break}n+=1}return r},tg=e=>{let t="consent",r=e.filter(e=>e[0]===t),n=e.filter(e=>e[0]!==t);e.splice(0,e.length,...r,...n)},tb=e=>{let t=tl(e4)||[];th(t),t.length>0&&(e.enqueuePreloadBufferEvents(t),tc(e4,[]))},tv=(e,t)=>
2{let r,n=e.shift();if(k(t[n])){switch(n){case"page":r=Q(...e);break;case"track":r=ee(...e);break;case"identify":r=et(...e);break;case"alias":r=er(...e);break;case"group":r=en(...e);break;default:t[n](...e)}r&&t[n](r)}},tm=1e4,ty="RS_JS_SDK",t_=(e,t,r=!0,n=null,i=null,o={})=>{let a=document.createElement("script");return a.type="text/javascript",a.onload=n,a.onerror=i,a.src=e,a.id=t,a.async=r,Object.keys(o).forEach(e=>{a.setAttribute(e,o[e])}),a.setAttribute("data-loader",ty),a},tw=e=>{let t=document.getElementsByTagName("head");if(t.length>0)return void t[0]?.insertBefore(e,t[0]?.firstChild);let r=document.getElementsByTagName("script");if(r.length>0&&r[0]?.parentNode)return void r[0]?.parentNode.insertBefore(e,r[0]);let n=document.createElement("head");n.appendChild(e);let i=document.getElementsByTagName("html")[0];i?.insertBefore(n,i.firstChild)},tS=(e,t,r,n=!0,i)=>new Promise((o,a)=>{document.getElementById(t)&&a(Error(eN(t)));try{let s,u=()=>{globalThis.clearTimeout(s),o(t)},c=()=>{globalThis.clearTimeout(s),a(Error(eD(t,e)))};tw(t_(e,t,n,u,c,i)),s=globalThis.setTimeout(()=>{a(Error(eB(t,e,r)))},r)}catch(r){a(eX(r,eD(t,e)))}});class tE{hasErrorHandler=!1;constructor(e,t,r=tm){this.errorHandler=e,this.logger=t,this.timeout=r,this.hasErrorHandler=!!this.errorHandler,this.onError=this.onError.bind(this)}loadJSFile(e){let{url:t,id:r,timeout:n,async:i,callback:o,extraAttributes:a}=e,s=!k(o);tS(t,r,n||this.timeout,i,a).then(e=>{s||o(e)}).catch(e=>{this.onError(e),s||o()})}onError(e){if(this.hasErrorHandler)this.errorHandler?.onError(e,eg);else throw e}}var tx=Symbol.for("preact-signals");function tk(){if(tT>1)tT--;else{for(var e,t=!1;void 0!==tR;){var r=tR;for(tR=void 0,tC++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&tN(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(tC=0,tT--,t)throw e}}function tA(e){if(tT>0)return e();tT++;try{return e()}finally{tk()}}var tM=void 0,tR=void 0,tT=0,tC=0,tI=0;function tO(e){if(void 0!==tM){var t=e.n;if(void 0===t||t.t!==tM)return t={i:0,S:e,p:tM.s,n:void 0,t:tM,e:void 0,x:void 0,r:t},void 0!==tM.s&&(tM.s.n=t),tM.s=t,e.n=t,32&tM.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=tM.s,t.n=void 0,tM.s.n=t,tM.s=t),t}}function tP(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function tL(e){return new tP(e)}function tN(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tD(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function tB(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function tj(e){tP.call(this,void 0),this.x=e,this.s=void 0,this.g=tI-1,this.f=4}function tU(e){var t=e.u;if(e.u=void 0,"function"==typeof t){tT++;var r=tM;tM=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,tF(e),t}finally{tM=r,tk()}}}function tF(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,tU(e)}function tz(e){if(tM!==this)throw Error("Out-of-order effect");tB(this),tM=e,this.f&=-2,8&this.f&&tF(this),tk()}function tH(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function tV(e){var t=new tH(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}tP.prototype.brand=tx,tP.prototype.h=function(){return!0},tP.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},tP.prototype.U=function(e){if(void 0!==this.t){var t=e.e,r=e.x;void 0!==t&&(t.x=r,e.e=void 0),void 0!==r&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}},tP.prototype.subscribe=function(e){var t=this;return tV(function(){var r=t.value,n=tM;tM=void 0;try{e(r)}finally{tM=n}})},tP.prototype.valueOf=function(){return this.value},tP.prototype.toString=function(){return this.value+""},tP.prototype.toJSON=function(){return this.value},tP.prototype.peek=function(){var e=tM;tM=void 0;try{return this.value}finally{tM=e}},Object.defineProperty(tP.prototype,"value",{get:function(){var e=tO(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(tC>100)throw Error("Cycle detected");this.v=e,this.i++,tI++,tT++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{tk()}}}}),(tj.prototype=new tP).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f)||(this.f&=-5,this.g===tI))return!0;
2if(this.g=tI,this.f|=1,this.i>0&&!tN(this))return this.f&=-2,!0;var e=tM;try{tD(this),tM=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return tM=e,tB(this),this.f&=-2,!0},tj.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}tP.prototype.S.call(this,e)},tj.prototype.U=function(e){if(void 0!==this.t&&(tP.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},tj.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(tj.prototype,"value",{get:function(){if(1&this.f)throw Error("Cycle detected");var e=tO(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),tH.prototype.c=function(){var e=this.S();try{if(8&this.f||void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},tH.prototype.S=function(){if(1&this.f)throw Error("Cycle detected");this.f|=1,this.f&=-9,tU(this),tD(this),tT++;var e=tM;return tM=this,tz.bind(this,e)},tH.prototype.N=function(){2&this.f||(this.f|=2,this.o=tR,tR=this)},tH.prototype.d=function(){this.f|=8,1&this.f||tF(this)};class tq{constructor(){this.items=[]}enqueue(e){this.items.push(e)}dequeue(){return 0===this.items.length?null:this.items.shift()}isEmpty(){return 0===this.items.length}size(){return this.items.length}clear(){this.items=[]}}let t$={LOG:0,INFO:1,DEBUG:2,WARN:3,ERROR:4,NONE:5},tG="LOG",tW="ERROR",tK="RS SDK",tY="font-weight: bold; background: black; color: white;",tX="font-weight: normal;";class tJ{constructor(e=tG,t="",r=console){this.minLogLevel=t$[e],this.scope=t,this.logProvider=r}log(...e){this.outputLog("LOG",e)}info(...e){this.outputLog("INFO",e)}debug(...e){this.outputLog("DEBUG",e)}warn(...e){this.outputLog("WARN",e)}error(...e){this.outputLog("ERROR",e)}outputLog(e,t){this.minLogLevel<=t$[e]&&this.logProvider[e.toLowerCase()]?.(...this.formatLogData(t))}setScope(e){this.scope=e||this.scope}setMinLogLevel(e){this.minLogLevel=t$[e],R(this.minLogLevel)&&(this.minLogLevel=t$[tG])}formatLogData(e){if(Array.isArray(e)&&e.length>0){let t=`%c ${tK}`;this.scope&&(t=`${t} - ${this.scope}`);let r=A(e[0])?e[0].trim():"",n=[t=`${t} %c ${r}`,tY,tX];return A(e[0])||n.push(e[0]),n.push(...e.slice(1)),n}return e}}let tZ=new tJ,tQ=function(e){return e.HANDLEDEXCEPTION="handledException",e.UNHANDLEDEXCEPTION="unhandledException",e.UNHANDLEDREJECTION="unhandledPromiseRejection",e}({}),t0=["localStorage","memoryStorage","cookieStorage","sessionStorage","none"],t1="cookieStorage",t2='"getSourceConfig" must be a function. Please make sure that it is defined and returns a valid source configuration object.',t3="Unable to process/parse source configuration response.",t6="The source is disabled. Please enable the source in the dashboard to send events.",t4="Failed to prepare data for the request.",t5="Failed to generate the event object.",t8="Failed to invoke plugin because the extension point name is missing.",t9="Failed to invoke plugin because the extension point name is invalid.",t7=(e,t)=>`Failed to load the SDK as the base URL "${t}" for ${e} is not valid.`,re=(e,t,r)=>`${e}${eL}The consent manager "${t}" is not supported. Please choose one of the following supported consent managers: "${Object.keys(r)}".`,rt=e=>`${e}${eL}Failed to initialize the error reporting plugin.`,rr=e=>`${e}${eL}Failed to notify the error.`,rn=e=>`${e}${eL}Plugin name is missing.`,ri=(e,t)=>`${e}${eL}Plugin "${t}" already exists.`,ro=(e,t)=>`${e}${eL}Plugin "${t}" not found.`,ra=(e,t)=>`${e}${eL}Plugin "${t}" not found in plugins but found in byName. This indicates a bug in the plugin engine. Please report this issue to the development team.`,rs=(e,t,r)=>`${e}${eL}Plugin "${t}" could not be loaded because some of its dependencies "${r}" do not exist.`,ru=(e,t,r)=>`${e}${eL}Failed to invoke the "${t}" extension point of plugin "${r}".`,rc=(e,t)=>`${e}${eL}The "${t}" storage type is `,rl=e=>`Failed to fetch the source config. Reason: ${e}`,rf=(e,t)=>`${e}${eL}The write key "${t}
2" is invalid. It must be a non-empty string. Please check that the write key is correct and try again.`,rd=(e,t)=>`${e}${eL}The data plane URL "${t}" is invalid. It must be a valid URL string. Please check that the data plane URL is correct and try again.`,rh=e=>`${e}${eL}The provided callback is not a function.`,rp=(e,t,r,n)=>`${e} with status: ${t}, ${r} for URL: ${n}.`,rg=(e,t,r)=>`${e} due to timeout or no connection (${t?t.type:""}) for URL: ${r}.`,rb=(e,t)=>`${e} for URL: ${t}`,rv=e=>`Failed to save the value for "${e}" to storage`,rm=e=>`Failed to retrieve or parse data for "${e}" from storage`,ry=e=>`The server responded with status ${e} while setting the cookies. As a fallback, the cookies will be set client side.`,r_=e=>`The server failed to set the ${e} cookie. As a fallback, the cookies will be set client side.`,rw="Failed to set/remove cookies via server. As a fallback, the cookies will be managed client side.",rS=(e,t,r)=>`${e}${eL}The storage type "${t}" is not supported. Please choose one of the following supported types: "${t0}". The default type "${r}" will be used instead.`,rE=(e,t,r,n)=>`${e}${eL}The storage encryption version "${t}" is not supported. Please choose one of the following supported versions: "${Object.keys(r)}". The default version "${n}" will be used instead.`,rx=(e,t,r)=>`${e}${eL}The storage data migration has been disabled because the configured storage encryption version (${t}) is not the latest (${r}). To enable storage data migration, please update the storage encryption version to the latest version.`,rk=(e,t,r)=>`${e}${eL}The provided cookie domain (${t}) does not match the current webpage's domain (${r}). Hence, the cookies will be set client-side.`,rA=(e,t,r,n)=>`${e}${eL}The "${t}" property defined under "${r}" is a reserved keyword. Please choose a different property name to avoid conflicts with reserved keywords (${n}).`,rM=e=>`${e}${eL}The Beacon API is not supported by your browser. The events will be sent using XHR instead.`,rR=(e,t,r)=>`${e}${eL}The session timeout value "${t}" is not a number. The default timeout of ${r} ms will be used instead.`,rT=e=>`${e}${eL}The session timeout value is 0, which disables the automatic session tracking feature. If you want to enable session tracking, please provide a positive integer value for the timeout.`,rC=(e,t,r)=>`${e}${eL}The session timeout value ${t} ms is less than the recommended minimum of ${r} ms. Please consider increasing the timeout value to ensure optimal performance and reliability.`,rI=(e,t,r)=>`${e}${eL}The provided session ID (${t}) is either invalid, not a positive integer, or not at least "${r}" digits long. A new session ID will be auto-generated instead.`,rO=e=>`${e}${eL}The storage is either full or unavailable, so the data will not be persisted. Switching to in-memory storage.`,rP=(e,t,r,n)=>`${e}${eL}The storage type "${r}" is not available for entry "${t}". The SDK will initialize the entry with "${n}" storage type instead.`,rL="Failed to invoke the ready callback",rN="API Callback Invocation Failed",rD="NativeDestinationQueuePlugin initialization failed",rB="XhrQueuePlugin initialization failed",rj="DeviceModeTransformationPlugin initialization failed",rU="NativeDestinationQueuePlugin event enqueue failed",rF="XhrQueuePlugin event enqueue failed",rz=(e,t)=>`${e}${eL}The provided source config URL "${t}" is invalid. Using the default source config URL instead.`,rH=(e,t)=>`Failed to load the polyfill script with ID "${e}" from URL ${t}.`,rV=(e,t,r)=>`${e}${eL}The pre-consent storage strategy "${t}" is not supported. Please choose one of the following supported strategies: "none, session, anonymousId". The default strategy "${r}" will be used instead.`,rq=(e,t,r)=>`${e}${eL}The pre-consent events delivery type "${t}" is not supported. Please choose one of the following supported types: "immediate, buffer". The default type "${r}" will be used instead.`,r$=(e,t,r,n)=>{let i=1===r.length,o=i?` '${r[0]}' plugin was`:` ['${r.join("', '")}'] plugins were`,a=`${e}${eL}${t}, but${o} not configured to load.`;return n?`${a} So, ${i?"the plugin":"those plugins"} will be loaded automatically.`:`${a} Ignore if this was intentional. Otherwise, consider adding ${i?"it":"them"} to the 'plugins' load API option.`},rG=(e,t)=>`${e}${eL}The provided polyfill URL "${t}
2" is invalid. The default polyfill URL will be used instead.`,rW=e=>`The cookie data for ${e} seems to be encrypted using SDK versions < v3. The data is dropped. This can potentially stem from using SDK versions < v3 on other sites or web pages that can share cookies with this webpage. We recommend using the same SDK (v3) version everywhere or avoid disabling the storage data migration.`,rK=e=>`${e}${eL}Page Unloaded event can only be tracked when the Beacon transport is active. Please enable "useBeacon" load API option.`,rY={All:!0},rX="js-integrations",rJ="plugins",rZ=RegExp("^(https?:\\/\\/)(((([a-zA-Z\\d]([a-zA-Z\\d-]*[a-zA-Z\\d])*)\\.)+[a-zA-Z]{2,}|localhost|((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]?)))(\\:\\d+)?(\\/[-a-zA-Z\\d%_.~+]*)*(\\?[;&a-zA-Z\\d%_.~+=-]*)?(\\#[-a-zA-Z\\d_]*)?$"),rQ="modern",r0="https://cdn.rudderlabs.com",r1="v3",r2=`${r0}/${r1}/${rQ}/${rX}`,r3=`${r0}/${r1}/${rQ}/${rJ}`,r6="https://api.rudderstack.com",r4="v3",r5={iubenda:"IubendaConsentManager",oneTrust:"OneTrustConsentManager",ketch:"KetchConsentManager",custom:"CustomConsentManager"},r8={[r4]:"StorageEncryption",legacy:"StorageEncryptionLegacy"},r9={xhr:"XhrQueue",beacon:"BeaconQueue"},r7="rsaRequest",ne="rsaMetrics",nt=tL(m({logLevel:"ERROR",configUrl:r6,loadIntegration:!0,sessions:{autoTrack:!0,timeout:ti},sameSiteCookie:"Lax",polyfillIfRequired:!0,integrations:rY,useBeacon:!1,beaconQueueOptions:{},destinationsQueueOptions:{},queueOptions:{},lockIntegrationsVersion:!0,lockPluginsVersion:!0,uaChTrackLevel:"none",plugins:[],useGlobalIntegrationsConfigInEvents:!1,bufferDataPlaneEventsUntilReady:!1,dataPlaneEventsBufferTimeout:ta,storage:{encryption:{version:r4},migrate:!0,cookie:{}},sendAdblockPage:!1,sameDomainCookiesOnly:!1,secureCookie:!1,sendAdblockPageOptions:{},useServerSideCookies:!1})),nr={userId:"",userTraits:{},anonymousId:"",groupId:"",groupTraits:{},initialReferrer:"",initialReferringDomain:"",sessionInfo:{},authToken:null},nn=10,ni={autoTrack:!0,timeout:ti},no={userId:tL(nr.userId),userTraits:tL(nr.userTraits),anonymousId:tL(nr.anonymousId),groupId:tL(nr.groupId),groupTraits:tL(nr.groupTraits),initialReferrer:tL(nr.initialReferrer),initialReferringDomain:tL(nr.initialReferringDomain),sessionInfo:tL(nr.sessionInfo),authToken:tL(nr.authToken)},na={isOnline:tL(!0),storage:{isLocalStorageAvailable:tL(!1),isCookieStorageAvailable:tL(!1),isSessionStorageAvailable:tL(!1)},isBeaconAvailable:tL(!1),isLegacyDOM:tL(!1),isUaCHAvailable:tL(!1),isCryptoAvailable:tL(!1),isIE11:tL(!1),isAdBlocked:tL(!1)},ns={isErrorReportingEnabled:tL(!1),isMetricsReportingEnabled:tL(!1),isErrorReportingPluginLoaded:tL(!1),breadcrumbs:tL([])},nu=tL(void 0),nc={activeDataplaneUrl:tL(void 0),integrationsCDNPath:tL(r2),pluginsCDNPath:tL(r3),sourceConfigUrl:tL(void 0),status:tL(void 0),initialized:tL(!1),logLevel:tL("ERROR"),loaded:tL(!1),readyCallbacks:tL([]),writeKey:tL(void 0),dataPlaneUrl:tL(void 0)},nl={enabled:tL(!1),initialized:tL(!1),data:tL({}),activeConsentManagerPluginName:tL(void 0),preConsent:tL({enabled:!1}),postConsent:tL({}),resolutionStrategy:tL("and"),provider:tL(void 0),metadata:tL(void 0)},nf={retries:tL(0),dropped:tL(0),sent:tL(0),queued:tL(0),triggered:tL(0),metricsServiceUrl:tL(void 0)},nd={app:tL({name:eZ,namespace:e0,version:eQ,installType:e1}),traits:tL(null),library:tL({name:eZ,version:eQ,snippetVersion:globalThis.RudderSnippetVersion}),userAgent:tL(""),device:tL(null),network:tL(null),os:tL({name:"",version:""}),locale:tL(null),screen:tL({density:0,width:0,height:0,innerWidth:0,innerHeight:0}),"ua-ch":tL(void 0),timezone:tL(void 0)},nh={configuredDestinations:tL([]),activeDestinations:tL([]),loadOnlyIntegrations:tL({}),failedDestinations:tL([]),loadIntegration:tL(!0),initializedDestinations:tL([]),clientDestinationsReady:tL(!1),integrationsConfig:tL({})},np={toBeProcessedArray:tL([]),readyCallbacksArray:tL([])},ng={ready:tL(!1),loadedPlugins:tL([]),failedPlugins:tL([]),pluginsToLoadFromConfig:tL([]),activePlugins:tL([]),totalPluginsToLoad:tL(0)},nb={encryptionPluginName:tL(void 0),migrate:tL(!1),type:tL(void 0),cookie:tL(void 0),entries:tL({}),trulyAnonymousTracking:tL(!1)},nv={isEnabledServerSideCookies:tL(!1),dataServiceUrl:tL(void 0)},nm={...m({capabilities:na,consents:nl,context:nd,eventBuffer:np,lifecycle:nc,loadOptions:nt,metrics:nf,nativeDestinations:nh,plugins:ng,reporting:ns,session:no,source:nu,storage:nb,serverCookies:nv,dataPlaneEvents:{eventsQueuePluginName:tL(void 0),deliveryEnabled:tL(!0)},autoTrack:{enabled:tL(!1),pageLifecycle:{enabled:tL(!1),visitId:tL(void 0),pageLoadedTimestamp:tL(void 0)}}})};
2class ny{plugins=[];byName={};cache={};config={throws:!0};constructor(e={},t){this.config={throws:!0,...e},this.logger=t}register(e,t){if(!e.name){let t=rn(ef);if(this.config.throws)throw Error(t);this.logger?.error(t,e)}if(this.byName[e.name]){let t=ri(ef,e.name);if(this.config.throws)throw Error(t);this.logger?.error(t)}this.cache={},this.plugins=this.plugins.slice();let r=this.plugins.length;this.plugins.forEach((t,n)=>{t.deps?.includes(e.name)&&(r=Math.min(r,n))}),this.plugins.splice(r,0,e),this.byName[e.name]=e,k(e.initialize)&&e.initialize(t)}unregister(e){let t=this.byName[e];if(!t){let t=ro(ef,e);if(this.config.throws)throw Error(t);this.logger?.error(t)}let r=this.plugins.indexOf(t);if(-1===r){let t=ra(ef,e);if(this.config.throws)throw Error(t);this.logger?.error(t)}this.cache={},delete this.byName[e],this.plugins=this.plugins.slice(),this.plugins.splice(r,1)}getPlugin(e){return this.byName[e]}getPlugins(e){let t=e??".";return this.cache[t]||(this.cache[t]=this.plugins.filter(e=>{if(e.deps?.some(e=>!this.byName[e])){let t=e.deps.filter(e=>!this.byName[e]);return this.logger?.error(rs(ef,e.name,t)),!1}return"."===t||D(e,t)})),this.cache[t]}processRawPlugins(e){e(this.plugins),this.cache={}}invoke(e,t=!0,...r){let n=e;if(!n)throw Error(t8);let i=n.startsWith("!"),o=this.config.throws??n.endsWith("!");if(!(n=n.replace(/(^!|!$)/g,"")))throw Error(t9);let a=n.split(".");a.pop();let s=a.join(".");return(t?this.getPlugins(n):[this.getPlugins(n)[0]]).map(e=>{let t=N(e,n);if(!k(t)||i)return t;try{return t.apply(N(e,s),r)}catch(t){if(o)throw t;this.logger?.error(ru(ef,n,e.name),t)}return null})}invokeSingle(e,...t){return this.invoke(e,!1,...t)[0]}invokeMultiple(e,...t){return this.invoke(e,!0,...t)}}let n_=new ny({throws:!0},tZ),nw="RS_JS_SDK",nS=e=>{let t;try{t=A(e)?e:e instanceof Error||e instanceof ErrorEvent||e.message?e.message:e$(e)}catch(e){t=`Unknown error: ${e.message}`}return t},nE=e=>{try{if(e instanceof Error||e instanceof ErrorEvent||e instanceof PromiseRejectionEvent&&e.reason)return e;if(e instanceof Event){let t=e.target;if(t&&"script"!==t.localName||t?.dataset&&(t.dataset.loader!==nw||"true"!==t.dataset.isnonnativesdk))return;let r=`Error in loading a third-party script from URL ${t?.src} with ID ${t?.id}.`;return Object.create(e,{message:{value:r}})}return e}catch(e){return e}};class nx{constructor(e,t){this.logger=e,this.pluginEngine=t,this.errorBuffer=new tq,this.attachEffect()}attachEffect(){if(!0===nm.reporting.isErrorReportingPluginLoaded.value)for(;this.errorBuffer.size()>0;){let e=this.errorBuffer.dequeue();e&&this.notifyError(e.error,e.errorState)}}attachErrorListeners(){"addEventListener"in globalThis?(globalThis.addEventListener("error",e=>{this.onError(e,void 0,void 0,void 0,tQ.UNHANDLEDEXCEPTION)}),globalThis.addEventListener("unhandledrejection",e=>{this.onError(e,void 0,void 0,void 0,tQ.UNHANDLEDREJECTION)})):this.logger?.debug("Failed to attach global error listeners.")}init(e,t){if(this.httpClient=e,this.pluginEngine)try{let e="errorReporting.init",r=this.pluginEngine.invokeSingle(e,nm,this.pluginEngine,t,this.logger,!0);r instanceof Promise&&r.then(e=>{this.errReportingClient=e}).catch(e=>{this.logger?.error(rt(el),e)})}catch(e){this.onError(e,el)}}onError(e,t="",r="",n=!1,i=tQ.HANDLEDEXCEPTION){let o,a;if(i===tQ.HANDLEDEXCEPTION){if(!(a=nS(e)))return;o=Error(a=K(`${t}${eL}${r} ${a}`)),L(e)&&(o=Object.create(e,{message:{value:a}}))}else o=nE(e);let s=nm.reporting.isErrorReportingEnabled.value,u=nm.reporting.isErrorReportingPluginLoaded.value;try{if(s){let e={severity:"error",unhandled:i!==tQ.HANDLEDEXCEPTION,severityReason:{type:i}};u?o&&this.notifyError(o,e):this.errorBuffer.enqueue({error:o,errorState:e})}}catch(e){this.logger?.error(rr(el),e)}if(i===tQ.HANDLEDEXCEPTION)if(this.logger){if(this.logger.error(a),n)throw o}else throw o;else e.error?.stack?.includes(eY)&&this.logger?.error("An unknown error occurred:",e.error?.message)}leaveBreadcrumb(e){if(this.pluginEngine)try{this.pluginEngine.invokeSingle("errorReporting.breadcrumb",this.pluginEngine,this.errReportingClient,e,this.logger,nm)}catch(e){this.onError(e,el,"errorReporting.breadcrumb")}}notifyError(e,t){if(this.pluginEngine&&this.httpClient)try{this.pluginEngine.invokeSingle("errorReporting.notify",this.pluginEngine,this.errReportingClient,e,nm,this.logger,this.httpClient,t)}catch(e){this.logger?.error(rr(el),e)}}}let nk=new nx(tZ,n_),nA=e=>"cloud"!==e.config.connectionMode||!0===e.config.useNativeSDKToSend||!0===e.config.useNativeSDK,nM=e=>"hybrid"===e.config.connectionMode||!0===e.config.useNativeSDKToSend,nR=e=>e.filter(nA),nT=["BeaconQueue","Bugsnag","CustomConsentManager","DeviceModeDestinations","DeviceModeTransformation","ErrorReporting","ExternalAnonymousId","GoogleLinker","IubendaConsentManager","KetchConsentManager","NativeDestinationQueue","OneTrustConsentManager","StorageEncryption","StorageEncryptionLegacy","StorageMigrator","XhrQueue"],nC={rudderAnalyticsRemotePlugins:{url:()=>Promise.resolve(window.RudderStackGlobals&&window.RudderStackGlobals.app&&window.RudderStackGlobals.app.pluginsCDNPath?`${window.RudderStackGlobals.app.pluginsCDNPath}/rsa-plugins.js`:"https://cdn.rudderlabs.com/v3/modern/plugins//rsa-plugins.js"),format:"esm",from:"vite"}},nI=async(e,t)=>{let r="function"==typeof e?await e():e,n=document.createElement("script");n.type="text/javascript",n.onload=t,n.src=r,document.getElementsByTagName("head")[0].appendChild(n)};function nO(e,t){let r=Object.assign(e,t);for(let e of Object.keys(r))"object"==typeof r[e]&&"object"==typeof t[e]&&(r[e]=nO(r[e],t[e]));return r}let nP=e=>nO({},(globalThis.__federation_shared__||{}).default||{});async function nL(e){let t=nC[e];return t.inited?t.lib:"var"===t.format?new Promise(r=>{let n=()=>{t.inited||(t.lib=window[e],t.lib.init(nP(t.from)),t.inited=!0),r(t.lib)};return nI(t.url,n)}):["esm","systemjs"].includes(t.format)?new Promise((e,r)=>{("function"==typeof t.url?t.url:()=>Promise.resolve(t.url))().then(n=>{import(n).then(r=>{if(!t.inited){let e=nP(t.from);r.init(e),t.lib=r,t.lib.init(e),t.inited=!0}e(t.lib)}).catch(r)})}):void 0}function nN(e,t){if(!e?.default&&t){let t=Object.create(null);return t.default=e,t.__esModule=!0,t}return e}function nD(e,t){return nL(e).then(e=>e.get(t).then(e=>e()))}let nB=e=>{switch(e){case"BeaconQueue":return()=>nD("rudderAnalyticsRemotePlugins","./BeaconQueue").then(e=>nN(e,!0));case"Bugsnag":return()=>nD("rudderAnalyticsRemotePlugins","./Bugsnag").then(e=>nN(e,!0));case"CustomConsentManager":return()=>nD("rudderAnalyticsRemotePlugins","./CustomConsentManager").then(e=>nN(e,!0));case"DeviceModeDestinations":return()=>nD("rudderAnalyticsRemotePlugins","./DeviceModeDestinations").then(e=>nN(e,!0));case"DeviceModeTransformation":return()=>nD("rudderAnalyticsRemotePlugins","./DeviceModeTransformation").then(e=>nN(e,!0));case"ErrorReporting":return()=>nD("rudderAnalyticsRemotePlugins","./ErrorReporting").then(e=>nN(e,!0));case"ExternalAnonymousId":return()=>nD("rudderAnalyticsRemotePlugins","./ExternalAnonymousId").then(e=>nN(e,!0));case"GoogleLinker":return()=>nD("rudderAnalyticsRemotePlugins","./GoogleLinker").then(e=>nN(e,!0));case"KetchConsentManager":return()=>nD("rudderAnalyticsRemotePlugins","./KetchConsentManager").then(e=>nN(e,!0));case"IubendaConsentManager":return()=>nD("rudderAnalyticsRemotePlugins","./IubendaConsentManager").then(e=>nN(e,!0));case"NativeDestinationQueue":return()=>nD("rudderAnalyticsRemotePlugins","./NativeDestinationQueue").then(e=>nN(e,!0));case"OneTrustConsentManager":return()=>nD("rudderAnalyticsRemotePlugins","./OneTrustConsentManager").then(e=>nN(e,!0));case"StorageEncryption":return()=>nD("rudderAnalyticsRemotePlugins","./StorageEncryption").then(e=>nN(e,!0));case"StorageEncryptionLegacy":return()=>nD("rudderAnalyticsRemotePlugins","./StorageEncryptionLegacy").then(e=>nN(e,!0));case"StorageMigrator":return()=>nD("rudderAnalyticsRemotePlugins","./StorageMigrator").then(e=>nN(e,!0));case"XhrQueue":return()=>nD("rudderAnalyticsRemotePlugins","./XhrQueue").then(e=>nN(e,!0));default:return}},nj=e=>{let t={};
2return e.forEach(e=>{if(nT.includes(e)){let r=nB(e);r&&(t[e]=r)}}),t},nU=()=>({}),nF=()=>({}),nz=e=>nj?.(e)||{},nH={...nU(),...nF()},nV=e=>({...nz(e)});class nq{constructor(e,t,r){this.engine=e,this.errorHandler=t,this.logger=r,this.onError=this.onError.bind(this)}init(){nm.lifecycle.status.value="pluginsLoading",tc("pluginsCDNPath",nm.lifecycle.pluginsCDNPath.value),this.setActivePlugins(),this.registerLocalPlugins(),this.registerRemotePlugins(),this.attachEffects()}attachEffects(){tV(()=>{(0===nm.plugins.activePlugins.value.length||nm.plugins.loadedPlugins.value.length+nm.plugins.failedPlugins.value.length===nm.plugins.totalPluginsToLoad.value)&&tA(()=>{nm.plugins.ready.value=!0,nm.lifecycle.status.value="pluginsReady"})})}getPluginsToLoadBasedOnConfig(){let e=nm.plugins.pluginsToLoadFromConfig.value;if(!e)return[];let t=[{configurationStatus:()=>I(nm.dataPlaneEvents.eventsQueuePluginName.value),configurationStatusStr:"Data plane events delivery is enabled",activePluginName:nm.dataPlaneEvents.eventsQueuePluginName.value,supportedPlugins:Object.values(r9),shouldAddMissingPlugins:!0},{configurationStatus:()=>nm.reporting.isErrorReportingEnabled.value,configurationStatusStr:"Error reporting is enabled",supportedPlugins:["ErrorReporting","Bugsnag"]},{configurationStatus:()=>nR(nm.nativeDestinations.configuredDestinations.value).length>0,configurationStatusStr:"Device mode destinations are connected to the source",supportedPlugins:["DeviceModeDestinations","NativeDestinationQueue"]},{configurationStatus:()=>nR(nm.nativeDestinations.configuredDestinations.value).some(e=>e.shouldApplyDeviceModeTransformation),configurationStatusStr:"Device mode transformations are enabled for at least one destination",supportedPlugins:["DeviceModeTransformation"]},{configurationStatus:()=>I(nm.consents.activeConsentManagerPluginName.value),configurationStatusStr:"Consent management is enabled",activePluginName:nm.consents.activeConsentManagerPluginName.value,supportedPlugins:Object.values(r5)},{configurationStatus:()=>I(nm.storage.encryptionPluginName.value),configurationStatusStr:"Storage encryption is enabled",activePluginName:nm.storage.encryptionPluginName.value,supportedPlugins:Object.values(r8)},{configurationStatus:()=>nm.storage.migrate.value,configurationStatusStr:"Storage migration is enabled",supportedPlugins:["StorageMigrator"]}],r=!1;return t.forEach(t=>{t.configurationStatus()?(e=e.filter(t.activePluginName?e=>!(e!==t.activePluginName&&t.supportedPlugins.includes(e)):e=>I(e)),this.addMissingPlugins(t,r,e)):e=e.filter(void 0!==t.basePlugins?e=>!(t.basePlugins.includes(e)||t.supportedPlugins.includes(e)):e=>!t.supportedPlugins.includes(e))}),[...Object.keys(nU()),...e]}addMissingPlugins(e,t,r){let n,i=e.shouldAddMissingPlugins||t,o=(n=e.activePluginName?[...e.basePlugins||[],e.activePluginName]:[...e.supportedPlugins]).filter(e=>!r.includes(e));o.length>0&&(i&&r.push(...o),this.logger?.warn(r$(eu,e.configurationStatusStr,o,i)))}setActivePlugins(){let e=this.getPluginsToLoadBasedOnConfig(),t=[...Object.keys(nH),...nT],r=[],n=[];e.forEach(e=>{t.includes(e)?r.push(e):n.push(e)}),n.length>0&&this.onError(Error(`Ignoring loading of unknown plugins: ${n.join(",")}. Mandatory plugins: ${Object.keys(nU()).join(",")}. Load option plugins: ${nm.plugins.pluginsToLoadFromConfig.value.join(",")}`)),tA(()=>{nm.plugins.totalPluginsToLoad.value=e.length,nm.plugins.activePlugins.value=r,nm.plugins.failedPlugins.value=n})}registerLocalPlugins(){Object.values(nH).forEach(e=>{k(e)&&nm.plugins.activePlugins.value.includes(e().name)&&this.register([e()])})}registerRemotePlugins(){let e=nV(nm.plugins.activePlugins.value);Promise.all(Object.keys(e).map(async t=>{await e[t]().then(e=>this.register([e.default()])).catch(e=>{nm.plugins.failedPlugins.value=[...nm.plugins.failedPlugins.value,t],this.onError(e,t)})})).catch(e=>{this.onError(e)})}invokeMultiple(e,...t){try{return this.engine.invokeMultiple(e,...t)}catch(t){return this.onError(t,e),[]}}invokeSingle(e,...t){try{return this.engine.invokeSingle(e,...t)}catch(t){return this.onError(t,e),null}}
2register(e){e.forEach(e=>{try{this.engine.register(e,nm)}catch(t){nm.plugins.failedPlugins.value=[...nm.plugins.failedPlugins.value,e.name],this.onError(t)}})}unregisterLocalPlugins(){Object.values(nH).forEach(e=>{try{this.engine.unregister(e().name)}catch(e){this.onError(e)}})}onError(e,t){if(this.errorHandler)this.errorHandler.onError(e,eu,t);else throw e}}let n$=(e,t)=>{try{return JSON.parse(e||"")}catch(r){let e=eX(r,"Failed to parse response data");if(k(t))t(e);else throw e}},nG="The request failed",nW={headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},method:"GET"},nK=(e,t,r)=>{let n=z(nW,t||{});return r&&(n.headers=z(n.headers,{Authorization:r})),n.url=e,n},nY=(e,t=tr,r)=>new Promise((n,i)=>{let o;if(!0===e.sendRawData)o=e.data;else if(M(o=e$(e.data,!1,[],r)))return void i({error:Error(t4),undefined,options:e});let a=new XMLHttpRequest,s=t=>{i({error:Error(rp(nG,a.status,a.statusText,e.url)),xhr:a,options:e})},u=t=>{i({error:Error(rg(nG,t,e.url)),xhr:a,options:e})};a.ontimeout=u,a.onerror=u,a.onload=()=>{a.status>=200&&a.status<400?n({response:a.responseText,xhr:a,options:e}):s()},a.open(e.method,e.url,!0),!0===e.withCredentials&&(a.withCredentials=!0),a.timeout=t,Object.keys(e.headers).forEach(t=>{e.headers[t]&&a.setRequestHeader(t,e.headers[t])});try{a.send(o)}catch(t){i({error:eX(t,rb(nG,e.url)),xhr:a,options:e})}});class nX{hasErrorHandler=!1;constructor(e,t){this.errorHandler=e,this.logger=t,this.hasErrorHandler=!!this.errorHandler,this.onError=this.onError.bind(this)}async getData(e){let{url:t,options:r,timeout:n,isRawResponse:i}=e;try{let e=await nY(nK(t,r,this.basicAuthHeader),n,this.logger);return{data:i?e.response:n$(e.response,this.onError),details:e}}catch(e){return this.onError(e.error??e),{data:void 0,details:e}}}getAsyncData(e){let{callback:t,url:r,options:n,timeout:i,isRawResponse:o}=e,a=!k(t);nY(nK(r,n,this.basicAuthHeader),i,this.logger).then(e=>{a||t(o?e.response:n$(e.response,this.onError),e)}).catch(e=>{this.onError(e.error??e),a||t(void 0,e)})}onError(e){if(this.hasErrorHandler)this.errorHandler?.onError(e,eb);else throw e}setAuthHeader(e,t=!1){let r=t?e:Z(`${e}:`);this.basicAuthHeader=`Basic ${r}`}resetAuthHeader(){this.basicAuthHeader=void 0}}let nJ=new nX(nk,tZ),nZ="cookieStorage",nQ="localStorage",n0="sessionStorage",n1="memoryStorage",n2="none",n3={userId:"rl_user_id",userTraits:"rl_trait",anonymousId:"rl_anonymous_id",groupId:"rl_group_id",groupTraits:"rl_group_trait",initialReferrer:"rl_page_init_referrer",initialReferringDomain:"rl_page_init_referring_domain",sessionInfo:"rl_session",authToken:"rl_auth_token"},n6="test_rudder_cookie",n4="test_rudder_ls",n5="test_rudder_ss",n8="__tld__",n9="clientDataInCookie",n7="clientDataInLocalStorage",ie="clientDataInSessionStorage",it=["userId","userTraits","anonymousId","groupId","groupTraits","initialReferrer","initialReferringDomain","sessionInfo","authToken"],ir={[nZ]:n9,[nQ]:n7,[n1]:"clientDataInMemory",[n0]:ie},ii=(e,t)=>{try{return encodeURIComponent(e)}catch(e){t?.error(eF,e);return}},io=e=>{try{return decodeURIComponent(e)}catch(e){return}},ia=e=>{let t,r={},n=e.split(/\s*;\s*/);return n[0]&&n.forEach(e=>{let n=(t=e.split("="))[0]?io(t[0]):void 0;n&&(r[n]=t[1]?io(t[1]):void 0)}),r},is=(e,t,r,n)=>{let i={...r||{}},o=`${ii(e,n)}=${ii(t,n)}`;M(t)&&(i.maxage=-1),i.maxage&&(i.expires=new Date(+new Date+i.maxage)),i.path&&(o+=`; path=${i.path}`),i.domain&&(o+=`; domain=${i.domain}`),i.expires&&(o+=`; expires=${i.expires.toUTCString()}`),i.samesite&&(o+=`; samesite=${i.samesite}`),i.secure&&(o+="; secure"),globalThis.document.cookie=o},iu=()=>ia(globalThis.document.cookie),ic=e=>iu()[e],il=function(e,t,r,n){switch(arguments.length){case 4:case 3:case 2:return is(e,t,r,n);case 1:if(e)return ic(e);return iu();default:return iu()}},id=(e,t)=>{let r=new URL(nm.lifecycle.sourceConfigUrl.value),n=`${r.origin}${r.pathname}?view=ad`,i=new nX(e,t);i.setAuthHeader(nm.lifecycle.writeKey.value),i.getAsyncData({url:n,options:{method:"HEAD",headers:{"Content-Type":void 0}},isRawResponse:!0,callback:(e,t)=>{nm.capabilities.isAdBlocked.value=t?.error!==void 0||t?.xhr?.responseURL!==n}})},ih=()=>!T(globalThis.crypto)&&k(globalThis.crypto.getRandomValues),ip=()=>!T(globalThis.navigator.userAgentData),ig=()=>!T(globalThis.navigator.sendBeacon)&&k(globalThis.navigator.sendBeacon),ib=()=>!!globalThis.navigator.userAgent.match(/Trident.*rv:11\./),iv=(e,t="none")=>{"none"===t&&e(void 0),"default"===t&&e(navigator.userAgentData),"full"===t&&navigator.userAgentData?.getHighEntropyValues(["architecture","bitness","brands","mobile","model","platform","platformVersion","uaFullVersion","fullVersionList","wow64"]).then(t=>{e(t)}).catch(()=>{e()})},im=()=>{let e=globalThis.document.createElement("div");return e.setAttribute("data-a-b","c"),!!e.dataset&&"c"===e.dataset.aB}
2,iy={URL:()=>!k(globalThis.URL)||!k(globalThis.URLSearchParams),Promise:()=>!k(globalThis.Promise),"Number.isNaN":()=>!k(globalThis.Number.isNaN),"Number.isInteger":()=>!k(globalThis.Number.isInteger),"Array.from":()=>!k(globalThis.Array.from),"Array.prototype.find":()=>!k(globalThis.Array.prototype.find),"Array.prototype.includes":()=>!k(globalThis.Array.prototype.includes),"String.prototype.endsWith":()=>!k(globalThis.String.prototype.endsWith),"String.prototype.startsWith":()=>!k(globalThis.String.prototype.startsWith),"String.prototype.includes":()=>!k(globalThis.String.prototype.includes),"String.prototype.replaceAll":()=>!k(globalThis.String.prototype.replaceAll),"String.fromCodePoint":()=>!k(globalThis.String.fromCodePoint),"Object.entries":()=>!k(globalThis.Object.entries),"Object.values":()=>!k(globalThis.Object.values),"Object.assign":()=>!k(globalThis.Object.assign),"Object.fromEntries":()=>!k(globalThis.Object.fromEntries),"Element.prototype.dataset":()=>!im(),TextEncoder:()=>!k(globalThis.TextEncoder)||!k(globalThis.TextDecoder),requestAnimationFrame:()=>!k(globalThis.requestAnimationFrame)||!k(globalThis.cancelAnimationFrame),CustomEvent:()=>!k(globalThis.CustomEvent),"navigator.sendBeacon":()=>!k(globalThis.navigator.sendBeacon),ArrayBuffer:()=>!k(globalThis.Uint8Array),Set:()=>!k(globalThis.Set),atob:()=>!k(globalThis.atob)},i_=()=>{let e=Object.keys(iy),t=!1;for(let r=0;r<e.length;r++){let n=iy[e[r]];if(k(n)&&n()){t=!0;break}}return t},iw=()=>({width:globalThis.screen.width,height:globalThis.screen.height,density:globalThis.devicePixelRatio,innerWidth:globalThis.innerWidth,innerHeight:globalThis.innerHeight}),iS=e=>{let t=[22,1014],r=["QuotaExceededError","NS_ERROR_DOM_QUOTA_REACHED"].includes(e.name)||t.includes(e.code);return e instanceof DOMException&&r},iE=(e=nQ,t,r)=>{let n,i,o,a=rc(eo,e),s="unavailable",u=!0;try{switch(e){case n1:return!0;case nZ:n=t,i=n6;break;case nQ:n=t??globalThis.localStorage,i=n4;break;case n0:n=t??globalThis.sessionStorage,i=n5;break;default:return!1}if(n&&(n.setItem(i,"true"),n.getItem(i)))return n.removeItem(i),!0;u=!1}catch(e){u=!1,o=e,iS(e)&&(s="full")}return u||r?.warn(`${a}${s}.`,o),!1},ix=e=>{let t=document.createElement("a");return t.href=e,t.hostname},ik=e=>{let t="function"!=typeof globalThis.URL?ix(e):new URL(e).hostname,r=t?.split(".")??[],n=r[r.length-1],i=[];if(4===r.length&&n&&n===parseInt(n,10).toString())return i;if(r.length<=1)return r[0]&&-1!==r[0].indexOf("localhost")?["localhost"]:i;for(let e=r.length-2;e>=0;e-=1)i.push(r.slice(e).join("."));return i},iA=e=>{let t=ik(e);for(let e=0;e<t.length;e+=1){let r=t[e],n=n8,i={domain:`${-1!==r.indexOf("localhost")?"":"."}${r}`};if(il(n,1,i),il(n))return il(n,null,i),r}return""},iM=()=>{let e=`.${iA(globalThis.location.href)}`;return{maxage:tn,path:"/",domain:e&&"."!==e?e:void 0,samesite:"Lax",enabled:!0}},iR=()=>({enabled:!0}),iT=()=>({enabled:!0}),iC=()=>({enabled:!0});class iI{static globalSingleton=null;isSupportAvailable=!0;isEnabled=!0;length=0;constructor(e={},t){if(iI.globalSingleton)return iI.globalSingleton;this.options=iM(),this.logger=t,this.configure(e),iI.globalSingleton=this}configure(e){return this.options=z(this.options??{},e),e.sameDomainCookiesOnly&&delete this.options.domain,this.isSupportAvailable=iE(nZ,this),this.isEnabled=!!(this.options.enabled&&this.isSupportAvailable),this.options}setItem(e,t){return il(e,t,this.options,this.logger),this.length=Object.keys(il()).length,!0}getItem(e){let t=il(e);return R(t)?null:t}removeItem(e){let t=this.setItem(e,null);return this.length=Object.keys(il()).length,t}clear(){}key(e){return this.keys()[e]??null}keys(){return Object.keys(il())}}class iO{isEnabled=!0;length=0;data={};constructor(e,t){this.options=iC(),this.logger=t,this.configure(e??{})}configure(e){return this.options=z(this.options,e),this.isEnabled=!!this.options.enabled,this.options}setItem(e,t){return this.data[e]=t,this.length=Object.keys(this.data).length,t}getItem(e){return e in this.data?this.data[e]:null}removeItem(e){return e in this.data&&delete this.data[e],this.length=Object.keys(this.data).length,null}clear(){this.data={},this.length=0}key(e){return this.keys()[e]??null}keys(){return Object.keys(this.data)}}let iP=new iO({},tZ);
2function iL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iN={exports:{}};iN.exports;let iD=iL(function(){return u||(u=1,!function(e,t){!function(t,r){e.exports=r()}(0,function(){function e(e){return e=JSON.stringify(e),!!/^\{[\s\S]*\}$/.test(e)}function t(e){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e)}function r(e){if("string"==typeof e)try{return JSON.parse(e)}catch(t){return e}}function n(e){return"[object Function]"===({}).toString.call(e)}function i(e){return"[object Array]"===Object.prototype.toString.call(e)}var o=function(e){var t="_Is_Incognit",r="yes";try{e||(e=window.localStorage),e.setItem(t,r),e.removeItem(t)}catch(t){var n={};n._data={},n.setItem=function(e,t){return n._data[e]=String(t)},n.getItem=function(e){return n._data.hasOwnProperty(e)?n._data[e]:void 0},n.removeItem=function(e){return delete n._data[e]},n.clear=function(){return n._data={}},e=n}finally{e.getItem(t)===r&&e.removeItem(t)}return e}();function a(){if(!(this instanceof a))return new a}a.prototype={set:function(r,n){if(r&&!e(r))o.setItem(r,t(n));else if(e(r))for(var i in r)this.set(i,r[i]);return this},get:function(e){if(void 0===e){var t={};return this.forEach(function(e,r){return t[e]=r}),t}if("?"===e.charAt(0))return this.has(e.substr(1));var n=arguments;if(n.length>1){for(var i={},a=0,s=n.length;a<s;a++){var u=r(o.getItem(n[a]));this.has(n[a])&&(i[n[a]]=u)}return i}return r(o.getItem(e))},clear:function(){return o.clear(),this},remove:function(e){var t=this.get(e);return o.removeItem(e),t},has:function(e){return({}).hasOwnProperty.call(this.get(),e)},keys:function(){var e=[];return this.forEach(function(t){e.push(t)}),e},forEach:function(e){for(var t=0,r=o.length;t<r;t++){var n=o.key(t);e(n,this.get(n))}return this},search:function(e){for(var t=this.keys(),r={},n=0,i=t.length;n<i;n++)t[n].indexOf(e)>-1&&(r[t[n]]=this.get(t[n]));return r},len:function(){return o.length}};var s=null;function u(t,r){var o=arguments,c=null;if(s||(s=a()),0===o.length)return s.get();if(1===o.length){if("string"==typeof t)return s.get(t);if(e(t))return s.set(t)}if(2===o.length&&"string"==typeof t){if(!r)return s.remove(t);if(r&&"string"==typeof r)return s.set(t,r);r&&n(r)&&(c=null,c=r(t,s.get(t)),u.set(t,c))}if(2===o.length&&i(t)&&n(r))for(var l=0,f=t.length;l<f;l++)c=r(t[l],s.get(t[l])),u.set(t[l],c);return u}for(var c in a.prototype)u[c]=a.prototype[c];return u})}(iN)),iN.exports}());class iB{isSupportAvailable=!0;isEnabled=!0;length=0;constructor(e={},t){this.options=iR(),this.logger=t,this.configure(e)}configure(e){return this.options=z(this.options,e),this.isSupportAvailable=iE(nQ),this.isEnabled=!!(this.options.enabled&&this.isSupportAvailable),this.options}setItem(e,t){iD.set(e,t),this.length=iD.len()}getItem(e){let t=iD.get(e);return R(t)?null:t}removeItem(e){iD.remove(e),this.length=iD.len()}clear(){iD.clear(),this.length=0}key(e){return this.keys()[e]??null}keys(){return iD.keys()}}let ij=new iB({},tZ);class iU{isSupportAvailable=!0;isEnabled=!0;length=0;constructor(e={},t){this.options=iT(),this.logger=t,this.configure(e)}configure(e){return this.options=z(this.options,e),this.isSupportAvailable=iE(n0),this.isSupportAvailable&&(this.store=globalThis.sessionStorage),this.isEnabled=!!(this.options.enabled&&this.isSupportAvailable),this.options}setItem(e,t){this.store&&(this.store.setItem(e,t),this.length=this.store.length)}getItem(e){if(!this.store)return null;let t=this.store.getItem(e);return R(t)?null:t}removeItem(e){this.store&&(this.store.removeItem(e),this.length=this.store.length)}clear(){this.store?.clear(),this.length=0}key(e){return this.store?.key(e)??null}keys(){let e=[];
2if(!this.store)return e;for(let t=0;t<this.store.length;t+=1){let r=this.store.key(t);null!==r&&e.push(r)}return e}}let iF=new iU({},tZ),iz=e=>{switch(e){case nQ:return ij;case n0:return iF;case n1:return iP;case nZ:return new iI({},tZ);default:return iP}},iH=e=>{let t=new iI({},tZ).configure(e);nm.storage.cookie.value={maxage:t.maxage,path:t.path,domain:t.domain,samesite:t.samesite,expires:t.expires,secure:t.secure}},iV=e=>{ij.configure(e)},iq=e=>{iP.configure(e)},i$=e=>{iF.configure(e)},iG=(e={},t={},r={},n={})=>{iH(e),iV(t),iq(r),i$(n)};class iW{hasErrorHandler=!1;constructor(e,t,r){this.id=e.id,this.name=e.name,this.isEncrypted=e.isEncrypted??!1,this.validKeys=e.validKeys??{},this.engine=t??iz(nQ),this.noKeyValidation=0===Object.keys(this.validKeys).length,this.noCompoundKey=e.noCompoundKey,this.originalEngine=this.engine,this.errorHandler=e.errorHandler??nk,this.hasErrorHandler=!!this.errorHandler,this.logger=e.logger??tZ,this.pluginsManager=r}createValidKey(e){let t,{name:r,id:n,validKeys:i,noKeyValidation:o,noCompoundKey:a}=this;return o?a?e:[r,n,e].join("."):(Object.values(i).forEach(i=>{i===e&&(t=a?e:[r,n,e].join("."))}),t)}swapQueueStoreToInMemoryEngine(){let{name:e,id:t,validKeys:r,noCompoundKey:n}=this,i=iz(n1);Object.keys(r).forEach(o=>{let a=this.get(r[o]),s=n?o:[e,t,o].join(".");i.setItem(s,a),this.remove(o)}),this.engine=i}set(e,t){let r=this.createValidKey(e);if(r)try{this.engine.setItem(r,this.encrypt(e$(t,!1,[],this.logger)))}catch(r){iS(r)?(this.logger?.warn(rO(`Store ${this.id}`)),this.swapQueueStoreToInMemoryEngine(),this.set(e,t)):this.onError(eX(r,rv(e)))}}get(e){let t,r=this.createValidKey(e);try{if(!r||(t=this.decrypt(this.engine.getItem(r)),T(t)))return null;return JSON.parse(t)}catch(r){return this.onError(Error(`${rm(e)}: ${r.message}`)),A(t)&&t.startsWith("RudderEncrypt:")&&this.logger?.warn(rW(e)),null}}remove(e){let t=this.createValidKey(e);t&&this.engine.removeItem(t)}getOriginalEngine(){return this.originalEngine}decrypt(e){return T(e)?null:this.crypto(e,"decrypt")}encrypt(e){return this.crypto(e,"encrypt")}crypto(e,t){if(!this.isEncrypted||!e||"string"!=typeof e||""===W(e))return e;let r=`storage.${t}`,n=this.pluginsManager?this.pluginsManager.invokeSingle(r,e):e;return void 0===n?e:n??""}onError(e){if(this.hasErrorHandler)this.errorHandler?.onError(e,`Store ${this.id}`);else throw e}}let iK=(e,t)=>{let r;if(e.consents.preConsent.value.enabled)switch(e.consents.preConsent.value.storage?.strategy){case"none":r=n2;break;case"session":"sessionInfo"!==t&&(r=n2);break;case"anonymousId":"anonymousId"!==t&&(r=n2)}return r};class iY{stores={};isInitialized=!1;hasErrorHandler=!1;constructor(e,t,r){this.errorHandler=t,this.logger=r,this.hasErrorHandler=!!this.errorHandler,this.pluginsManager=e,this.onError=this.onError.bind(this)}init(){if(this.isInitialized)return;let e=nm.loadOptions.value,t={cookieStorageOptions:{samesite:e.sameSiteCookie,secure:e.secureCookie,domain:e.setCookieDomain,sameDomainCookiesOnly:e.sameDomainCookiesOnly,enabled:!0},localStorageOptions:{enabled:!0},inMemoryStorageOptions:{enabled:!0},sessionStorageOptions:{enabled:!0}};iG(V(z(t.cookieStorageOptions,nm.storage.cookie?.value??{})),V(t.localStorageOptions),V(t.inMemoryStorageOptions),V(t.sessionStorageOptions)),this.initClientDataStores(),this.isInitialized=!0}initClientDataStores(){this.initializeStorageState(),[n1,nQ,nZ,n0].forEach(e=>{iz(e)?.isEnabled&&this.setStore({id:ir[e],name:ir[e],isEncrypted:!0,noCompoundKey:!0,type:e})})}initializeStorageState(){let e=nm.storage.type.value,t=nm.loadOptions.value.storage?.entries,r=nm.consents.postConsent.value.storage;(I(r?.type)||I(r?.entries))&&(e=r?.type,t=r?.entries);let n=!0,i={};it.forEach(r=>{let o=r,a=r,s=t?.[o]?.type,u=iK(nm,r)??s??e??t1,c=this.getResolvedStorageTypeForEntry(u,r);c!==n2&&(n=!1),i={...i,[r]:{type:c,key:n3[a]}}}),tA(()=>{nm.storage.type.value=e,nm.storage.entries.value=i,nm.storage.trulyAnonymousTracking.value=n})}getResolvedStorageTypeForEntry(e,t){let r=e;switch(e){case nQ:iz(nQ)?.isEnabled||(r=n1);break;case n0:iz(n0)?.isEnabled||(r=n1);break;case n1:case n2:break;default:r=iz(nZ)?.isEnabled?nZ:iz(nQ)?.isEnabled?nQ:iz(n0)?.isEnabled?n0:n1}return r!==e&&this.logger?.warn(rP(ed,t,e,r)),r}setStore(e){let t=iz(e.type);return this.stores[e.id]=new iW(e,t,this.pluginsManager),this.stores[e.id]}getStore(e){return this.stores[e]}onError(e){if(this.hasErrorHandler)this.errorHandler?.onError(e,ed);else throw e}}let iX=e=>U(e)&&U(e.source)&&!T(e.source.id)&&U(e.source.config)&&Array.isArray(e.source.destinations),iJ=e=>"string"==typeof e&&t0.includes(e),iZ=e=>{let t,{host:r,protocol:n}=new URL(e),i=r.split(".");return{topDomain:t=i.length>2?`${i[i.length-2]}.${i[i.length-1]}`:r,protocol:n}},iQ=e=>{let{topDomain:t,protocol:r}=iZ(e);return`${r}//${t}`},i0=(e,t)=>{let r=t?window.location.origin:iQ(window.location.href),n=e.startsWith("/")?e.substring(1):e;return`${r}/${n}`},i1=e=>{let{topDomain:t}=iZ(window.location.href);return t===e},i2=e=>{let t=[];
2return e.forEach(e=>{e.enabled&&!e.deleted&&t.push({id:e.id,displayName:e.destinationDefinition.displayName,config:e.config,shouldApplyDeviceModeTransformation:e.shouldApplyDeviceModeTransformation||!1,propagateEventsUntransformedOnError:e.propagateEventsUntransformedOnError||!1,userFriendlyId:`${e.destinationDefinition.displayName.replaceAll(" ","-")}___${e.id}`})}),t},i3=e=>e?.endsWith("/")?i3(e.substring(0,e.length-1)):e,i6=e=>{try{return new URL(e).host}catch(e){return null}},i4=e=>i6(e)??"",i5=e=>{let t={};try{let r=new URL(e),n="utm_";r.searchParams.forEach((e,r)=>{if(r.startsWith(n)){let i=r.substring(n.length);"campaign"===i&&(i="name"),t[i]=e}})}catch(e){}return t},i8=e=>{let t=e;try{let r=new URL(e);t=r.origin+r.pathname+r.search}catch(e){}return t},i9=e=>e.replace(/\/{2,}/g,"/"),i7=e=>{if(!A(e))return!1;try{return k(globalThis.URL)&&new URL(e),rZ.test(e)}catch(e){return!1}},oe=()=>!!window.chrome?.runtime?.id,ot="none",or="immediate",on=e=>e?.statsCollection?.errors?.enabled===!0,oi=e=>e?.statsCollection?.metrics?.enabled===!0,oo=e=>{let t={sendPageEvent:!1,trackConsent:!1,discardPreConsentEvents:!1};if(U(e)){let r=m(e);t.storage=r.storage,H(r.integrations)&&(t.integrations=r.integrations),t.discardPreConsentEvents=!0===r.discardPreConsentEvents,t.sendPageEvent=!0===r.sendPageEvent,t.trackConsent=!0===r.trackConsent,H(r.consentManagement)&&(t.consentManagement=z(r.consentManagement,{enabled:nm.consents.enabled.value}))}return t},oa=e=>H(e)||Array.isArray(e),os=(e,t)=>{let{provider:r}=e,n=r?r5[r]:void 0;return r&&!n&&(t?.error(re(ea,r,r5)),r=void 0),{provider:r,consentManagerPluginName:n}},ou=(e,t)=>{let r,n,i=[],o=[],a=!1,s=e?.enabled===!0;H(e)&&s&&({provider:n,consentManagerPluginName:r}=os(e,t),oa(e.allowedConsentIds)&&(i=e.allowedConsentIds,a=!0),oa(e.deniedConsentIds)&&(o=e.deniedConsentIds,a=!0));let u={allowedConsentIds:i,deniedConsentIds:o};return s=s&&!!r,{provider:n,consentManagerPluginName:r,initialized:a,enabled:s,consentsData:u}},oc=()=>{let e=document.querySelector("script[data-rsa-write-key]");if(e&&e.dataset.rsaWriteKey===nm.lifecycle.writeKey.value)return e.src;let t=document.getElementsByTagName("script"),r=/(?:^|\/)rsa(\.min)?\.js$/;for(let e of t){let t=e.getAttribute("src");if(t&&r.test(t))return t}},ol=e=>{nm.reporting.isErrorReportingEnabled.value=on(e.source.config)&&!oe(),nm.reporting.isMetricsReportingEnabled.value=oi(e.source.config)},of=e=>{let t,{useServerSideCookies:r,dataServiceEndpoint:n,storage:i,setCookieDomain:o,sameDomainCookiesOnly:a}=nm.loadOptions.value,s=i?.cookie,u=!1;if(r){u=r;let i=s.domain??o,c=I(i)&&!i1(Y(i))||a,l=i0(n??r7,c);if(i7(l)){t=i3(l);let r=i6(window.location.href),n=i6(l);r!==n&&(s={...s,samesite:"None",secure:!0}),!a&&c&&n!==Y(i)&&(u=!1,e?.warn(rk(ea,i,n)))}else u=!1}return{sscEnabled:u,cookieOptions:s,finalDataServiceUrl:t}},od=e=>{let{storage:t}=nm.loadOptions.value,r=t?.type;I(r)&&!iJ(r)&&(e?.warn(rS(ea,r,t1)),r=t1);let n=t?.encryption?.version,i=n&&r8[n];!R(n)&&R(i)?(e?.warn(rE(ea,n,r8,r4)),n=r4):R(n)&&(n=r4);let o=t?.migrate,a=o&&n===r4;!0===o&&a!==o&&e?.warn(rx(ea,n,r4));let{sscEnabled:s,finalDataServiceUrl:u,cookieOptions:c}=of(e);tA(()=>{nm.storage.type.value=r,nm.storage.cookie.value=c,nm.serverCookies.isEnabledServerSideCookies.value=s,nm.serverCookies.dataServiceUrl.value=u,nm.storage.encryptionPluginName.value=r8[n],nm.storage.migrate.value=a})},oh=e=>{let{provider:t,consentManagerPluginName:r,initialized:n,enabled:i,consentsData:o}=ou(nm.loadOptions.value.consentManagement,e),a=nm.loadOptions.value.preConsent,s=a?.storage?.strategy??ot,u=["none","session","anonymousId"];I(s)&&!u.includes(s)&&(s=ot,e?.warn(rV(ea,a?.storage?.strategy,ot)));let c=a?.events?.delivery??or,l=["immediate","buffer"];I(c)&&!l.includes(c)&&(c=or,e?.warn(rq(ea,a?.events?.delivery,or))),tA(()=>{nm.consents.activeConsentManagerPluginName.value=r,nm.consents.initialized.value=n,nm.consents.enabled.value=i,nm.consents.data.value=o,nm.consents.provider.value=t,nm.consents.preConsent.value={enabled:nm.loadOptions.value.preConsent?.enabled===!0&&!1===n&&!0===i,storage:{strategy:s},events:{delivery:c}}})},op=e=>{let t,r=nm.consents.resolutionStrategy.value;U(e.consentManagementMetadata)&&(nm.consents.provider.value&&(r=e.consentManagementMetadata.providers.find(e=>e.provider===nm.consents.provider.value)?.resolutionStrategy??nm.consents.resolutionStrategy.value),t=e.consentManagementMetadata),"custom"===nm.consents.provider.value&&(r=void 0),tA(()=>{nm.consents.metadata.value=m(t),nm.consents.resolutionStrategy.value=r})},og=e=>{if(nm.dataPlaneEvents.deliveryEnabled.value){let t="XhrQueue",r=t;nm.loadOptions.value.useBeacon&&(nm.capabilities.isBeaconAvailable.value?r="BeaconQueue":(r=t,e?.warn(rM(ea)))),tA(()=>{nm.dataPlaneEvents.eventsQueuePluginName.value=r})}},ob=(e,t,r,n,i)=>{let o=new URLSearchParams({p:e1,v:eQ,build:rQ,writeKey:t,lockIntegrationsVersion:r.toString(),lockPluginsVersion:n.toString()}),a=r6,s=o,u="/sourceConfig/",c="";if(i7(e)){let t=new URL(e);i3(t.pathname).endsWith("/sourceConfig")||(t.pathname=`${i3(t.pathname)}
2/sourceConfig/`),t.pathname=i9(t.pathname),o.forEach((e,r)=>{null===t.searchParams.get(r)&&t.searchParams.set(r,e)}),a=t.origin,u=t.pathname,s=t.searchParams,c=t.hash}else i?.warn(rz(ea,e));return`${a}${u}?${s}${c}`},ov=(e,t,r,n,i,o)=>{let a;if(o){if(!i7(o))throw Error(t7(e,o));a=i3(o)}else if(a=r,"cdn"===nm.context.app.value.installType){let e=oc();e&&(a=e.split("/").slice(0,-1).concat(t).join("/"))}return i&&(a=a.replace(RegExp(`/${r1}/${rQ}/${t}$`),`/${n}/${rQ}/${t}`)),a},om=(e,t,r)=>ov("integrations",rX,r2,e,t,r),oy=(e,t,r)=>ov("plugins",rJ,r3,e,t,r);class o_{hasErrorHandler=!1;constructor(e,t,r){this.errorHandler=t,this.logger=r,this.httpClient=e,this.hasErrorHandler=!!this.errorHandler,this.onError=this.onError.bind(this),this.processConfig=this.processConfig.bind(this)}attachEffects(){tV(()=>{this.logger?.setMinLogLevel(nm.lifecycle.logLevel.value)})}init(){this.attachEffects();let{logLevel:e,configUrl:t,lockIntegrationsVersion:r,lockPluginsVersion:n,destSDKBaseURL:i,pluginsSDKBaseURL:o,integrations:a}=nm.loadOptions.value;nm.lifecycle.activeDataplaneUrl.value=i3(nm.lifecycle.dataPlaneUrl.value);let s=om(eQ,r,i),u=oy(eQ,n,o);od(this.logger),oh(this.logger),og(this.logger),tA(()=>{nm.lifecycle.integrationsCDNPath.value=s,nm.lifecycle.pluginsCDNPath.value=u,e&&(nm.lifecycle.logLevel.value=e),nm.lifecycle.sourceConfigUrl.value=ob(t,nm.lifecycle.writeKey.value,r,n,this.logger),nm.metrics.metricsServiceUrl.value=`${nm.lifecycle.activeDataplaneUrl.value}/${ne}`,nm.nativeDestinations.loadOnlyIntegrations.value=a}),this.getConfig()}onError(e,t,r){if(this.hasErrorHandler)this.errorHandler?.onError(e,ea,t,r);else throw e}processConfig(e,t){let r;if(!e)return void this.onError(rl(t?.error));try{r=A(e)?JSON.parse(e):e}catch(e){this.onError(e,t3,!0);return}if(!iX(r))return void this.onError(Error(t3),void 0,!0);if(!1===r.source.enabled)return void this.logger?.error(t6);ol(r);let n=r.source.destinations.length>0?i2(r.source.destinations):[];tA(()=>{nm.source.value={config:r.source.config,id:r.source.id,workspaceId:r.source.workspaceId},nm.nativeDestinations.configuredDestinations.value=n,nm.plugins.pluginsToLoadFromConfig.value=nm.loadOptions.value.plugins??[],op(r),nm.lifecycle.status.value="configured"})}getConfig(){let e=nm.loadOptions.value.getSourceConfig;if(e){if(!k(e))throw Error(t2);let t=e();t instanceof Promise?t.then(e=>this.processConfig(e)).catch(e=>{this.onError(e,"SourceConfig")}):this.processConfig(t)}else this.httpClient.getAsyncData({url:nm.lifecycle.sourceConfigUrl.value,options:{headers:{"Content-Type":void 0}},callback:this.processConfig})}}let ow=()=>{let e=/([A-Z]+[+-]\d+)/.exec(new Date().toString());return e?.[1]?e[1]:"NA"},oS=()=>document?.referrer||"$direct",oE=()=>{let e=document.getElementsByTagName("link"),t="";for(let r=0;e[r];r+=1){let n=e[r];if("canonical"===n.getAttribute("rel")&&!t){t=n.getAttribute("href")??"";break}}return t},ox=()=>{if(R(globalThis.navigator))return null;let{userAgent:e}=globalThis.navigator,{brave:t}=globalThis.navigator;if(t&&Object.getPrototypeOf(t).isBrave){let t=e.match(/(chrome)\/([\w.]+)/i);t&&(e=`${e} Brave/${t[2]}`)}return e},ok=()=>R(globalThis.navigator)?null:globalThis.navigator.language??globalThis.navigator.browserLanguage,oA=()=>{let e=oE(),t=globalThis.location.pathname,{href:r}=globalThis.location,n=r,{search:i}=globalThis.location;if(e)try{let r=new URL(e);n=""===r.search?e+i:e,t=r.pathname}catch(e){}let o=i8(n),{title:a}=document,s=oS();return{path:t,referrer:s,referring_domain:i4(s),search:i,title:a,url:o,tab_url:r}},oM=`https://polyfill-fastly.io/v3/polyfill.min.js?version=3.111.0&features=${Object.keys(iy).join("%2C")}`,oR=1e4,oT="rudderstackPolyfill";class oC{constructor(e,t){this.logger=t,this.errorHandler=e,this.externalSrcLoader=new tE(this.errorHandler,this.logger),this.onError=this.onError.bind(this),this.onReady=this.onReady.bind(this)}init(){try{this.prepareBrowserCapabilities(),this.attachWindowListeners()}catch(e){this.onError(e)}}detectBrowserCapabilities(){tA(()=>{nm.capabilities.storage.isCookieStorageAvailable.value=iE(nZ,iz(nZ),this.logger),nm.capabilities.storage.isLocalStorageAvailable.value=iE(nQ,void 0,this.logger),nm.capabilities.storage.isSessionStorageAvailable.value=iE(n0,void 0,this.logger),nm.capabilities.isBeaconAvailable.value=ig(),nm.capabilities.isUaCHAvailable.value=ip(),nm.capabilities.isCryptoAvailable.value=ih(),nm.capabilities.isIE11.value=ib(),nm.capabilities.isOnline.value=globalThis.navigator.onLine,nm.context.userAgent.value=ox(),nm.context.locale.value=ok(),nm.context.screen.value=iw(),nm.context.timezone.value=ow(),ip()&&iv(e=>{nm.context["ua-ch"].value=e},nm.loadOptions.value.uaChTrackLevel)}),tV(()=>{!0===nm.loadOptions.value.sendAdblockPage&&void 0!==nm.lifecycle.sourceConfigUrl.value&&id(this.errorHandler,this.logger)})}prepareBrowserCapabilities(){nm.capabilities.isLegacyDOM.value=i_();let e=nm.loadOptions.value.polyfillURL,t=oM;if(O(e)&&(i7(e)?t=e:this.logger?.warn(rG(eo,e))),nm.loadOptions.value.polyfillIfRequired&&nm.capabilities.isLegacyDOM.value&&i7(t)){let e=t!==nm.loadOptions.value.polyfillURL;if(e){let e=`RS_polyfillCallback_${nm.lifecycle.writeKey.value}`,r=()=>{this.onReady(),delete globalThis[e]};globalThis[e]=r,t=`${t}&callback=${e}`}this.externalSrcLoader.loadJSFile({url:t,id:oT,async:!0,timeout:oR,callback:r=>{r?e||this.onReady():this.onError(Error(rH(oT,t)))}})}else this.onReady()}attachWindowListeners(){globalThis.addEventListener("offline",()=>{nm.capabilities.isOnline.value=!1}),globalThis.addEventListener("online",()=>{nm.capabilities.isOnline.value=!0}),globalThis.addEventListener("resize",tf(()=>{nm.context.screen.value=iw()},this))}onReady(){this.detectBrowserCapabilities(),nm.lifecycle.status.value="browserCapabilitiesReady"}onError(e){if(this.errorHandler)this.errorHandler.onError(e,eo);else throw e}}let oI="web",oO=["integrations","anonymousId","originalTimestamp"],oP=["library","consentManagement","userAgent","ua-ch","screen"],oL=["id","anonymous_id","user_id","sent_at","t
2imestamp","received_at","original_timestamp","event","event_text","channel","context_ip","context_request_ip","context_passed_ip","group_id","previous_id"],oN=e=>"number"==typeof e&&!Number.isNaN(e),oD=(e,t)=>t.toString().length>=e,oB=e=>oN(e)&&e>=0&&Number.isInteger(e),oj=10,oU=e=>{let t=Date.now();return!!(!e||t>e)},oF=()=>Date.now(),oz=(e,t)=>!!e&&!!oB(e)&&!!oD(oj,e)||(t?.warn(rI(ec,e,oj)),!1),oH=e=>{let t=Date.now(),r=e||ti;return{id:t,expiresAt:t+r,timeout:r,sessionStart:void 0,autoTrack:!0}},oV=(e,t)=>({id:oz(e,t)?e:oF(),sessionStart:void 0,manualTrack:!0}),oq=e=>e===nZ||e===nQ||e===n0||e===n1,o$=()=>eC(),oG=e=>{let t=oA(),r={};return Object.keys(t).forEach(n=>{r[n]=e?.[n]||t[n]}),r.initial_referrer=e?.initial_referrer||nm.session.initialReferrer.value,r.initial_referring_domain=e?.initial_referring_domain||nm.session.initialReferringDomain.value,r},oW=(e,t)=>{let r=t?.page||{},n=e,i=oA();return Object.keys(i).forEach(e=>{R(n[e])&&(n[e]=r[e]||i[e])}),R(n.initial_referrer)&&(n.initial_referrer=r.initial_referrer||nm.session.initialReferrer.value),R(n.initial_referring_domain)&&(n.initial_referring_domain=r.initial_referring_domain||nm.session.initialReferringDomain.value),n},oK=(e,t,r)=>{U(e)&&Object.keys(e).forEach(e=>{(oL.includes(e)||oL.includes(e.toLowerCase()))&&r?.warn(rA(es,e,t,oL))})},oY=(e,t)=>{let{properties:r,traits:n,context:i}=e,{traits:o}=i;oK(r,"properties",t),oK(n,"traits",t),oK(o,"context.traits",t)},oX=(e,t)=>{t.anonymousId&&A(t.anonymousId)&&(e.anonymousId=t.anonymousId),H(t.integrations)&&(e.integrations=t.integrations),t.originalTimestamp&&A(t.originalTimestamp)&&(e.originalTimestamp=t.originalTimestamp)},oJ=(e,t,r)=>{let n=e;return Object.keys(t).forEach(e=>{if(!oO.includes(e)&&!oP.includes(e)){if("context"!==e)n=z(n,{[e]:t[e]});else if(!R(t[e])&&U(t[e])){let r={};Object.keys(t[e]).forEach(n=>{oP.includes(n)||(r[n]=t[e][n])}),n=z(n,{...r})}}}),n},oZ=(e,t)=>{U(t)&&(oX(e,t),e.context=oJ(e.context,t))},oQ=e=>{let t;return m(t=nm.loadOptions.value.useGlobalIntegrationsConfigInEvents?nm.consents.postConsent.value.integrations??nm.nativeDestinations.loadOnlyIntegrations.value:e||rY)},o0=(e,t,r,n)=>{let i={channel:oI,context:{traits:m(nm.session.userTraits.value),sessionId:nm.session.sessionInfo.value.id||void 0,sessionStart:nm.session.sessionInfo.value.sessionStart||void 0,...nm.consents.enabled.value&&{consentManagement:{deniedConsentIds:m(nm.consents.data.value.deniedConsentIds),allowedConsentIds:m(nm.consents.data.value.allowedConsentIds),provider:nm.consents.provider.value,resolutionStrategy:nm.consents.resolutionStrategy.value}},"ua-ch":nm.context["ua-ch"].value,app:nm.context.app.value,library:nm.context.library.value,userAgent:nm.context.userAgent.value,os:nm.context.os.value,locale:nm.context.locale.value,screen:nm.context.screen.value,campaign:i5(globalThis.location.href),page:oG(r),timezone:nm.context.timezone.value,...nm.autoTrack.enabled.value&&{autoTrack:{...nm.autoTrack.pageLifecycle.enabled.value&&{page:{visitId:nm.autoTrack.pageLifecycle.visitId.value}}}}},originalTimestamp:eP(),messageId:eC(),userId:e.userId||nm.session.userId.value};oq(nm.storage.entries.value.anonymousId?.type)?i.anonymousId=nm.session.anonymousId.value:i.anonymousId=o$(),nm.storage.trulyAnonymousTracking.value&&(i.context.trulyAnonymousTracking=!0),"identify"===e.type&&(i.context.traits=nm.storage.entries.value.userTraits?.type!==n2?m(nm.session.userTraits.value):e.context.traits),"group"===e.type&&((e.groupId||nm.session.groupId.value)&&(i.groupId=e.groupId||nm.session.groupId.value),(e.traits||nm.session.groupTraits.value)&&(i.traits=nm.storage.entries.value.groupTraits?.type!==n2?m(nm.session.groupTraits.value):e.traits));let o=z(e,i);return void 0===o.event&&(o.event=null),void 0===o.properties&&(o.properties=null),oZ(o,t),oY(o,n),o.integrations=oQ(o.integrations),o};class o1{constructor(e){this.logger=e}generatePageEvent(e,t,r,n){let i=r??{};return o0({properties:i=oW(i,n),name:t,category:e,type:"page"},n,i,this.logger)}generateTrackEvent(e,t,r){return o0({properties:t,event:e,type:"track"},r,void 0,this.logger)}generateIdentifyEvent(e,t,r){return o0({userId:e,type:"identify",context:{traits:t}},r,void 0,this.logger)}generateAliasEvent(e,t,r){let n=o0({previousId:t,type:"alias"},r,void 0,this.logger);return n.userId=e??n.userId,n}generateGroupEvent(e,t,r){let n={type:"group"};return e&&(n.groupId=e),t&&(n.traits=t),o0(n,r,void 0,this.logger)}create(e){let t;switch(e.type){case"page":t=this.generatePageEvent(e.category,e.name,e.properties,e.options);break;case"track":t=this.generateTrackEvent(e.name,e.properties,e.options);break;case"identify":t=this.generateIdentifyEvent(e.userId,e.traits,e.options);break;case"alias":t=this.generateAliasEvent(e.to,e.from,e.options);break;case"group":t=this.generateGroupEvent(e.groupId,e.traits,e.options)}return t}}class o2{constructor(e,t,r,n){this.eventRepository=e,this.userSessionManager=t,this.errorHandler=r,this.logger=n,this.eventFactory=new o1(this.logger),this.onError=this.onError.bind(this)}init(){this.eventRepository.init()}resume(){this.eventRepository.resume()}addEvent(e){this.userSessionManager.refreshSession();let t=this.eventFactory.create(e);t?this.eventRepository.enqueue(t,e.callback):this.onError(Error(t5))}onError(e,t,r){if(this.errorHandler)this.errorHandler.onError(e,es,t,r);else throw e}}class o3{constructor(e,t,r,n,i){this.storeManager=n,this.pluginsManager=r,this.logger=t,this.errorHandler=e,this.httpClient=i,this.onError=this.onError.bind(this),this.serverSideCookieDebounceFuncs={}}init(){this.syncStorageDataToState(),this.registerEffects()}syncStorageDataToState(){let e;this.migrateStorageIfNeeded(),this.migrateDataFromPreviousStorage(),this.setUserId(this.getUserId()),this.setUserTraits(this.getUserTraits()),this.setGroupId(this.getGroupId()),this.setGroupTraits(this.getGroupTraits());let{externalAnonymousIdCookieName:t,anonymousIdOptions:r}=nm.loadOptions.value;O(t)&&"string"==typeof t&&(e=this.getExternalAnonymousIdByCookieName(t)),this.setAnonymousId(e??this.getAnonymousId(r)),this.setAuthToken(this.getAuthToken()),this.setInitialReferrerInfo(),this.configureSessionTracking()}configureSessionTracking(){let e=this.getSessionInfo();if(this.isPersistenceEnabledForStorageEntry("sessionInfo")){let t=this.getConfiguredSessionTrackingInfo(),r=e??ni;(e={...r,...t,autoTrack:t.autoTrack&&!0!==r.manualTrack}).autoTrack||!0===e.manualTrack||(e=nr.sessionInfo)}else e=nr.sessionInfo;nm.session.sessionInfo.value=e,nm.session.sessionInfo.value.autoTrack&&this.startOrRenewAutoTracking(nm.session.sessionInfo.value)}setInitialReferrerInfo(){let e=this.getInitialReferrer(),t=this.getInitialReferringDomain();if(e&&t)this.setInitialReferrer(e),this.setInitialReferringDomain(t);else{let t=e||oS();this.setInitialReferrer(t),this.setInitialReferringDomain(i4(t))}}isPersistenceEnabledForStorageEntry(e){return oq(nm.storage.entries.value[e]?.type)}migrateDataFromPreviousStorage(){let e=nm.storage.entries.value,t=[nZ,nQ,n0];Object.keys(e).forEach(r=>{let n=r,i=e[n]?.type,o=this.storeManager?.getStore(ir[i]);
2o&&t.forEach(e=>{let t=this.storeManager?.getStore(ir[e]);if(t&&e!==i){let e=t.get(n3[n]);P(e)&&o.set(n3[n],e),t.remove(n3[n])}})})}migrateStorageIfNeeded(){if(!nm.storage.migrate.value)return;let e=[];[n9,n7,ie].forEach(t=>{let r=this.storeManager?.getStore(t);r&&e.push(r)}),Object.keys(n3).forEach(t=>{let r=n3[t];e.forEach(e=>{let t=this.pluginsManager?.invokeSingle("storage.migrate",r,e.engine,this.errorHandler,this.logger);T(t)||e.set(r,t)})})}getConfiguredSessionTrackingInfo(){let e,t=nm.loadOptions.value.sessions?.autoTrack!==!1;if(!t)return{autoTrack:t};let r=nm.loadOptions.value.sessions?.timeout;return oB(r)?e=r:(this.logger?.warn(rR(ec,r,ti)),e=ti),0===e&&(this.logger?.warn(rT(ec)),t=!1),e>0&&e<to&&this.logger?.warn(rC(ec,e,to)),{timeout:e,autoTrack:t}}onError(e,t){if(this.errorHandler)this.errorHandler.onError(e,ec,t);else throw e}getEncryptedCookieData(e,t){let r=[];return e.forEach(e=>{let n=t?.encrypt(e$(e.value,!1,[],this.logger));O(n)&&r.push({name:e.name,value:n})}),r}makeRequestToSetCookie(e,t){this.httpClient?.getAsyncData({url:nm.serverCookies.dataServiceUrl.value,options:{method:"POST",data:e$({reqType:"setCookies",workspaceId:nm.source.value?.workspaceId,data:{options:{maxAge:nm.storage.cookie.value?.maxage,path:nm.storage.cookie.value?.path,domain:nm.storage.cookie.value?.domain,sameSite:nm.storage.cookie.value?.samesite,secure:nm.storage.cookie.value?.secure,expires:nm.storage.cookie.value?.expires},cookies:e}}),sendRawData:!0,withCredentials:!0},isRawResponse:!0,callback:t})}setServerSideCookies(e,t,r){try{let n=this.getEncryptedCookieData(e,r);n.length>0&&this.makeRequestToSetCookie(n,(n,i)=>{i?.xhr?.status===200?e.forEach(e=>{let n=r?.get(e.name),i=e$(e.value,!1,[]);e$(n,!1,[])!==i&&(this.logger?.error(r_(e.name)),t&&t(e.name,e.value))}):(this.logger?.error(ry(i?.xhr?.status)),e.forEach(e=>{t&&t(e.name,e.value)}))})}catch(r){this.onError(r,rw),e.forEach(e=>{t&&t(e.name,e.value)})}}syncValueToStorage(e,t){let r=nm.storage.entries.value,n=r[e]?.type;if(oq(n)){let i=this.storeManager?.getStore(ir[n]),o=r[e]?.key;t&&(A(t)||H(t))?nm.serverCookies.isEnabledServerSideCookies.value&&n===nZ?(this.serverSideCookieDebounceFuncs[e]&&globalThis.clearTimeout(this.serverSideCookieDebounceFuncs[e]),this.serverSideCookieDebounceFuncs[e]=globalThis.setTimeout(()=>{this.setServerSideCookies([{name:o,value:t}],(e,t)=>{i?.set(e,t)},i)},nn)):i?.set(o,t):i?.remove(o)}}registerEffects(){it.forEach(e=>{tV(()=>{this.syncValueToStorage(e,nm.session[e].value)})})}setAnonymousId(e,t){let r=e;A(e)&&r||(r=void 0),this.isPersistenceEnabledForStorageEntry("anonymousId")?(!r&&t&&(r=this.pluginsManager?.invokeSingle("userSession.anonymousIdGoogleLinker",t)),r=r||o$()):r=nr.anonymousId,nm.session.anonymousId.value=r}getAnonymousId(e){if(oq(nm.storage.entries.value.anonymousId?.type)){let t=this.getEntryValue("anonymousId");!t&&e&&(t=this.pluginsManager?.invokeSingle("storage.getAnonymousId",iz,e)),nm.session.anonymousId.value=t||o$()}return nm.session.anonymousId.value}getEntryValue(e){let t=nm.storage.entries.value,r=t[e]?.type;if(oq(r)){let n=this.storeManager?.getStore(ir[r]),i=t[e]?.key;return n?.get(i)??null}return null}getExternalAnonymousIdByCookieName(e){let t=iz(nZ);return t?.isEnabled?t.getItem(e)??null:null}getUserId(){return this.getEntryValue("userId")}getUserTraits(){return this.getEntryValue("userTraits")}getGroupId(){return this.getEntryValue("groupId")}getGroupTraits(){return this.getEntryValue("groupTraits")}getInitialReferrer(){return this.getEntryValue("initialReferrer")}getInitialReferringDomain(){return this.getEntryValue("initialReferringDomain")}getSessionInfo(){return this.getEntryValue("sessionInfo")}getAuthToken(){return this.getEntryValue("authToken")}getSessionId(){let e=this.getSessionInfo()??nr.sessionInfo;return e.autoTrack&&!oU(e.expiresAt)||e.manualTrack?e.id??null:null}refreshSession(){let e=this.getSessionInfo()??nr.sessionInfo;(e.autoTrack||e.manualTrack)&&(e.autoTrack&&(this.startOrRenewAutoTracking(e),e=nm.session.sessionInfo.value),void 0===e.sessionStart?e={...e,sessionStart:!0}:e.sessionStart&&(e={...e,sessionStart:!1})),nm.session.sessionInfo.value=e,"readyExecuted"!==nm.lifecycle.status.value&&this.syncValueToStorage("sessionInfo",e)}reset(e,t){let{session:r}=nm,{manualTrack:n,autoTrack:i}=r.sessionInfo.value;tA(()=>{r.userId.value=nr.userId,r.userTraits.value=nr.userTraits,r.groupId.value=nr.groupId,r.groupTraits.value=nr.groupTraits,r.authToken.value=nr.authToken,!0===e&&this.setAnonymousId(),!t&&(i?(r.sessionInfo.value=nr.sessionInfo,this.startOrRenewAutoTracking(r.sessionInfo.value)):n&&this.startManualTrackingInternal())})}setUserId(e){nm.session.userId.value=this.isPersistenceEnabledForStorageEntry("userId")&&e?e:nr.userId}setUserTraits(e){nm.session.userTraits.value=this.isPersistenceEnabledForStorageEntry("userTraits")&&U(e)?z(nm.session.userTraits.value??nr.userTraits,e):nr.userTraits}setGroupId(e){nm.session.groupId.value=this.isPersistenceEnabledForStorageEntry("groupId")&&e?e:nr.groupId}setGroupTraits(e){nm.session.groupTraits.value=this.isPersistenceEnabledForStorageEntry("groupTraits")&&U(e)?z(nm.session.groupTraits.value??nr.groupTraits,e):nr.groupTraits}setInitialReferrer(e){nm.session.initialReferrer.value=this.isPersistenceEnabledForStorageEntry("initialReferrer")&&e?e:nr.initialReferrer}setInitialReferringDomain(e){nm.session.initialReferringDomain.value=this.isPersistenceEnabledForStorageEntry("initialReferringDomain")&&e?e:nr.initialReferringDomain}startOrRenewAutoTracking(e){if(oU(e.expiresAt))nm.session.sessionInfo.value=oH(e.timeout);else{let t=Date.now(),r=e.timeout;nm.session.sessionInfo.value=z(e,{expiresAt:t+r})}}start(e){nm.session.sessionInfo.value=oV(e,this.logger)}startManualTrackingInternal(){this.start(Date.now())}end(){nm.session.sessionInfo.value=nr.sessionInfo}setAuthToken(e){nm.session.authToken.value=this.isPersistenceEnabledForStorageEntry("authToken")&&e?e:nr.authToken}}let o6=["BeaconQueue","Bugsnag","CustomConsentManager","DeviceModeDestinations","DeviceModeTransformation","ErrorReporting","ExternalAnonymousId","GoogleLinker","IubendaConsentManager","KetchConsentManager","NativeDestinationQueue","OneTrustConsentManager","StorageEncryption","StorageEncryptionLegacy","StorageMigrator","XhrQueue"],o4=(e,t)=>
2{let r=m(t);return A(r.setCookieDomain)||(r.setCookieDomain=void 0),["Strict","Lax","None"].includes(r.sameSiteCookie)||(r.sameSiteCookie=void 0),r.secureCookie=G(r.secureCookie,e.secureCookie),r.sameDomainCookiesOnly=G(r.sameDomainCookiesOnly,e.sameDomainCookiesOnly),["none","default","full"].includes(r.uaChTrackLevel)||(r.uaChTrackLevel=void 0),r.integrations=$(r.integrations),Array.isArray(r.plugins)||(r.plugins=o6),r.useGlobalIntegrationsConfigInEvents=G(r.useGlobalIntegrationsConfigInEvents,e.useGlobalIntegrationsConfigInEvents),r.bufferDataPlaneEventsUntilReady=G(r.bufferDataPlaneEventsUntilReady,e.bufferDataPlaneEventsUntilReady),r.sendAdblockPage=G(r.sendAdblockPage,e.sendAdblockPage),r.useServerSideCookies=G(r.useServerSideCookies,e.useServerSideCookies),A(r.dataServiceEndpoint)||(r.dataServiceEndpoint=void 0),r.sendAdblockPageOptions=$(r.sendAdblockPageOptions),r.loadIntegration=G(r.loadIntegration,e.loadIntegration),H(r.storage)?(r.storage.migrate=G(r.storage.migrate,e.storage?.migrate),r.storage.cookie=$(r.storage.cookie),r.storage.encryption=$(r.storage.encryption),r.storage=q(r.storage)):r.storage=void 0,r.destinationsQueueOptions=$(r.destinationsQueueOptions),r.queueOptions=$(r.queueOptions),r.lockIntegrationsVersion=G(r.lockIntegrationsVersion,e.lockIntegrationsVersion),r.lockPluginsVersion=G(r.lockPluginsVersion,e.lockPluginsVersion),oN(r.dataPlaneEventsBufferTimeout)||(r.dataPlaneEventsBufferTimeout=void 0),r.beaconQueueOptions=$(r.beaconQueueOptions),r.preConsent=$(r.preConsent),z(e,q(r))},o5="dataplaneEventsQueue",o8="destinationsEventsQueue",o9="transformEvent",o7=(e,t)=>Object.keys(e).filter(r=>!0!==e[r]||!t[r]).reduce((t,r)=>{let n=m(t);return n[r]=e[r],n},{}),ae=(e,t)=>{let r=m(e),n=t.nativeDestinations.integrationsConfig.value,i=o7(e.integrations,n);return r.integrations=z(n,i),r},at=e=>e.consents.preConsent.value.enabled&&e.consents.preConsent.value.events?.delivery==="buffer"&&(e.consents.preConsent.value.storage?.strategy==="session"||e.consents.preConsent.value.storage?.strategy==="none");class ar{constructor(e,t,r,n){this.pluginsManager=e,this.errorHandler=r,this.logger=n,this.httpClient=new nX(r,n),this.storeManager=t,this.onError=this.onError.bind(this)}init(){let e;try{this.dataplaneEventsQueue=this.pluginsManager.invokeSingle(`${o5}.init`,nm,this.httpClient,this.storeManager,this.errorHandler,this.logger)}catch(e){this.onError(e,rB)}try{this.dmtEventsQueue=this.pluginsManager.invokeSingle(`${o9}.init`,nm,this.pluginsManager,this.httpClient,this.storeManager,this.errorHandler,this.logger)}catch(e){this.onError(e,rj)}try{this.destinationsEventsQueue=this.pluginsManager.invokeSingle(`${o8}.init`,nm,this.pluginsManager,this.storeManager,this.dmtEventsQueue,this.errorHandler,this.logger)}catch(e){this.onError(e,rD)}tV(()=>{!0===nm.nativeDestinations.clientDestinationsReady.value&&(this.destinationsEventsQueue?.start(),this.dmtEventsQueue?.start())});let t=at(nm);tV(()=>{let r=!0===nm.loadOptions.value.bufferDataPlaneEventsUntilReady&&!1===nm.nativeDestinations.clientDestinationsReady.value;!1!==nm.nativeDestinations.activeDestinations.value.some(e=>nM(e))&&!1!==r||t||this.dataplaneEventsQueue?.scheduleTimeoutActive===!0||(globalThis.clearTimeout(e),this.dataplaneEventsQueue?.start())}),!0===nm.loadOptions.value.bufferDataPlaneEventsUntilReady&&(e=globalThis.setTimeout(()=>{this.dataplaneEventsQueue?.scheduleTimeoutActive!==!0&&this.dataplaneEventsQueue?.start()},nm.loadOptions.value.dataPlaneEventsBufferTimeout))}resume(){this.dataplaneEventsQueue?.scheduleTimeoutActive!==!0&&(nm.consents.postConsent.value.discardPreConsentEvents&&(this.dataplaneEventsQueue?.clear(),this.destinationsEventsQueue?.clear()),this.dataplaneEventsQueue?.start())}enqueue(e,t){let r;try{r=ae(e,nm),this.pluginsManager.invokeSingle(`${o5}.enqueue`,nm,this.dataplaneEventsQueue,r,this.errorHandler,this.logger)}catch(e){this.onError(e,rF)}try{let t=m(e);this.pluginsManager.invokeSingle(`${o8}.enqueue`,nm,this.destinationsEventsQueue,t,this.errorHandler,this.logger)}catch(e){this.onError(e,rU)}try{t?.(r)}catch(e){this.onError(e,rN)}}onError(e,t,r){if(this.errorHandler)this.errorHandler.onError(e,ep,t,r);else throw e}}let an=e=>{let t=new CustomEvent(e,{detail:{analyticsInstance:globalThis.rudderanalytics},bubbles:!0,cancelable:!0,composed:!0});globalThis.document.dispatchEvent(t)},ai=e=>A(e)&&e.trim().length>0,ao=e=>i7(e);class aa{constructor(){this.preloadBuffer=new tq,this.initialized=!1,this.errorHandler=nk,this.logger=tZ,this.externalSrcLoader=new tE(this.errorHandler,this.logger),this.capabilitiesManager=new oC(this.errorHandler,this.logger),this.httpClient=nJ}load(e,t,r={}){if(!nm.lifecycle.status.value){if(!ai(e))return void this.logger.error(rf(em,e));if(!ao(t))return void this.logger.error(rd(em,t));tA(()=>{nm.lifecycle.writeKey.value=m(e),nm.lifecycle.dataPlaneUrl.value=m(t),nm.loadOptions.value=o4(nm.loadOptions.value,r),nm.lifecycle.status.value="mounted"}),this.logger?.setMinLogLevel(nm.loadOptions.value.logLevel??tW),tc("state",nm,e),this.startLifecycle()}}startLifecycle(){tV(()=>{try{switch(nm.lifecycle.status.value){case"mounted":this.onMounted();break;case"browserCapabilitiesReady":this.onBrowserCapabilitiesReady();break;case"configured":this.onConfigured();break;case"pluginsLoading":case"destinationsLoading":break;case"pluginsReady":this.onPluginsReady();break;case"initialized":this.onInitialized();break;case"loaded":this.onLoaded();break;
2case"destinationsReady":this.onDestinationsReady();break;case"ready":this.onReady()}}catch(t){let e="Failed to load the SDK";this.errorHandler.onError(eX(t,e),em)}})}onBrowserCapabilitiesReady(){tb(this),this.prepareInternalServices(),this.loadConfig()}onLoaded(){this.processBufferedEvents(),!0===nm.consents.preConsent.value.enabled?nm.lifecycle.status.value="ready":this.loadDestinations()}onMounted(){this.capabilitiesManager.init()}enqueuePreloadBufferEvents(e){Array.isArray(e)&&e.forEach(e=>this.preloadBuffer.enqueue(m(e)))}processDataInPreloadBuffer(){for(;this.preloadBuffer.size()>0;){let e=this.preloadBuffer.dequeue();e&&tv([...e],this)}}prepareInternalServices(){this.pluginsManager=new nq(n_,this.errorHandler,this.logger),this.storeManager=new iY(this.pluginsManager,this.errorHandler,this.logger),this.configManager=new o_(this.httpClient,this.errorHandler,this.logger),this.userSessionManager=new o3(this.errorHandler,this.logger,this.pluginsManager,this.storeManager,this.httpClient),this.eventRepository=new ar(this.pluginsManager,this.storeManager,this.errorHandler,this.logger),this.eventManager=new o2(this.eventRepository,this.userSessionManager,this.errorHandler,this.logger)}loadConfig(){nm.lifecycle.writeKey.value&&this.httpClient.setAuthHeader(nm.lifecycle.writeKey.value),this.configManager?.init()}onPluginsReady(){this.errorHandler.init(this.httpClient,this.externalSrcLoader),this.storeManager?.init(),this.userSessionManager?.init(),nm.consents.enabled.value&&!nm.consents.initialized.value&&(this.pluginsManager?.invokeSingle("consentManager.init",nm,this.logger),!1===nm.consents.preConsent.value.enabled&&this.pluginsManager?.invokeSingle("consentManager.updateConsentsInfo",nm,this.storeManager,this.logger)),this.eventManager?.init(),nm.lifecycle.status.value="initialized"}onConfigured(){this.pluginsManager?.init()}onInitialized(){this.processDataInPreloadBuffer(),k(nm.loadOptions.value.onLoaded)&&nm.loadOptions.value.onLoaded(globalThis.rudderanalytics),tA(()=>{nm.lifecycle.loaded.value=!0,nm.lifecycle.status.value="loaded"}),this.initialized=!0,an("RSA_Initialised")}onReady(){nm.lifecycle.status.value="readyExecuted",nm.eventBuffer.readyCallbacksArray.value.forEach(e=>{try{e()}catch(e){this.errorHandler.onError(e,em,rL)}}),an("RSA_Ready")}processBufferedEvents(){let e=nm.eventBuffer.toBeProcessedArray.value;for(;e.length>0;){let t=e.shift();if(nm.eventBuffer.toBeProcessedArray.value=e,t){let e=t[0];k(this[e])&&this[e](...t.slice(1),!0)}e=nm.eventBuffer.toBeProcessedArray.value}}loadDestinations(){if(nm.nativeDestinations.clientDestinationsReady.value)return;this.pluginsManager?.invokeSingle("nativeDestinations.setActiveDestinations",nm,this.pluginsManager,this.errorHandler,this.logger);let e=nm.nativeDestinations.activeDestinations.value.length;if(0===e){nm.lifecycle.status.value="destinationsReady";return}nm.lifecycle.status.value="destinationsLoading",this.pluginsManager?.invokeSingle("nativeDestinations.load",nm,this.externalSrcLoader,this.errorHandler,this.logger),tV(()=>{(0===e||nm.nativeDestinations.initializedDestinations.value.length+nm.nativeDestinations.failedDestinations.value.length===e)&&tA(()=>{nm.lifecycle.status.value="destinationsReady",nm.nativeDestinations.clientDestinationsReady.value=!0})})}onDestinationsReady(){"ready"!==nm.lifecycle.status.value&&(nm.lifecycle.status.value="ready")}ready(e,t=!1){let r="ready";if(!nm.lifecycle.loaded.value){nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,[r,e]];return}if(this.errorHandler.leaveBreadcrumb(`New ${r} invocation`),!k(e))return void this.logger.error(rh(eh));if("readyExecuted"===nm.lifecycle.status.value)try{e()}catch(e){this.errorHandler.onError(e,em,rL)}else nm.eventBuffer.readyCallbacksArray.value=[...nm.eventBuffer.readyCallbacksArray.value,e]}page(e,t=!1){let r="page";if(!nm.lifecycle.loaded.value){nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,[r,e]];return}this.errorHandler.leaveBreadcrumb(`New ${r} event`),nm.metrics.triggered.value+=1,this.eventManager?.addEvent({type:"page",category:e.category,name:e.name,properties:e.properties,options:e.options,callback:e.callback}),!0===nm.capabilities.isAdBlocked.value&&e.category!==e2&&this.page(Q(e2,e3,{path:e6},nm.loadOptions.value.sendAdblockPageOptions))}track(e,t=!1){let r="track";if(!nm.lifecycle.loaded.value){nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,[r,e]];return}this.errorHandler.leaveBreadcrumb(`New ${r} event - ${e.name}`),nm.metrics.triggered.value+=1,this.eventManager?.addEvent({type:r,name:e.name||void 0,properties:e.properties,options:e.options,callback:e.callback})}identify(e,t=!1){let r="identify";if(!nm.lifecycle.loaded.value){nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,[r,e]];return}this.errorHandler.leaveBreadcrumb(`New ${r} event`),nm.metrics.triggered.value+=1,e.userId&&nm.session.userId.value&&e.userId!==nm.session.userId.value&&this.reset(),M(e.userId)||this.userSessionManager?.setUserId(e.userId),this.userSessionManager?.setUserTraits(e.traits),this.eventManager?.addEvent({type:r,userId:e.userId,traits:e.traits,options:e.options,callback:e.callback})}alias(e,t=!1){let r="alias";if(!nm.lifecycle.loaded.value){nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,[r,e]];return}this.errorHandler.leaveBreadcrumb(`New ${r} event`),nm.metrics.triggered.value+=1;let n=e.from??this.userSessionManager?.getUserId()??this.userSessionManager?.getAnonymousId();this.eventManager?.addEvent({type:r,to:e.to,from:n,options:e.options,callback:e.callback})}group(e,t=!1){let r="group";if(!nm.lifecycle.loaded.value){nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,[r,e]];return}this.errorHandler.leaveBreadcrumb(`New ${r} event`),nm.metrics.triggered.value+=1,M(e.groupId)||this.userSessionManager?.setGroupId(e.groupId),this.userSessionManager?.setGroupTraits(e.traits),this.eventManager?.addEvent({type:r,groupId:e.groupId,traits:e.traits,options:e.options,callback:e.callback})}reset(e,t=!1){let r="reset";if(!nm.lifecycle.loaded.value){nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,[r,e]];return}this.errorHandler.leaveBreadcrumb(`New ${r} invocation, resetAnonymousId: ${e}`),this.userSessionManager?.reset(e)}getAnonymousId(e){return this.userSessionManager?.getAnonymousId(e)}setAnonymousId(e,t,r=!1){let n="setAnonymousId";if(!nm.lifecycle.loaded.value){nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,[n,e,t]];return}this.errorHandler.leaveBreadcrumb(`New ${n} invocation`),this.userSessionManager?.setAnonymousId(e,t)}getUserId(){return nm.session.userId.value}getUserTraits(){return nm.session.userTraits.value}getGroupId(){return nm.session.groupId.value}getGroupTraits(){return nm.session.groupTraits.value}startSession(e,t=!1){let r="startSession";if(!nm.lifecycle.loaded.value){nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,[r,e]];return}this.errorHandler.leaveBreadcrumb(`New ${r} invocation`),this.userSessionManager?.start(e)}endSession(e=!1){let t="endSession";if(!nm.lifecycle.loaded.value){nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,[t]];return}this.errorHandler.leaveBreadcrumb(`New ${t} invocation`),this.userSessionManager?.end()}getSessionId(){return this.userSessionManager?.getSessionId()??null}consent(e,t=!1){let r="consent";if(!nm.lifecycle.loaded.value){nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,[r,e]];return}this.errorHandler.leaveBreadcrumb("New consent invocation"),tA(()=>{nm.consents.preConsent.value={...nm.consents.preConsent.value,enabled:!1},nm.consents.postConsent.value=oo(e);let{initialized:t,consentsData:r}=ou(nm.consents.postConsent.value.consentManagement,this.logger);
2nm.consents.initialized.value=t||nm.consents.initialized.value,nm.consents.data.value=r}),nm.consents.enabled.value&&!nm.consents.initialized.value&&this.pluginsManager?.invokeSingle("consentManager.updateConsentsInfo",nm,this.storeManager,this.logger),this.storeManager?.initializeStorageState(),this.userSessionManager?.syncStorageDataToState(),this.eventManager?.resume(),this.loadDestinations(),this.sendTrackingEvents(t)}sendTrackingEvents(e){if(nm.consents.postConsent.value.trackConsent){let t=ee(e5);e?nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,["track",t]]:this.track(t)}if(nm.consents.postConsent.value.sendPageEvent){let t=Q();e?nm.eventBuffer.toBeProcessedArray.value=[...nm.eventBuffer.toBeProcessedArray.value,["page",t]]:this.page(t)}}setAuthToken(e){this.userSessionManager?.setAuthToken(e)}}class as{static globalSingleton=null;analyticsInstances={};defaultAnalyticsKey="";logger=tZ;constructor(){try{if(as.globalSingleton)return as.globalSingleton;nk.attachErrorListeners(),this.setDefaultInstanceKey=this.setDefaultInstanceKey.bind(this),this.getAnalyticsInstance=this.getAnalyticsInstance.bind(this),this.load=this.load.bind(this),this.ready=this.ready.bind(this),this.triggerBufferedLoadEvent=this.triggerBufferedLoadEvent.bind(this),this.page=this.page.bind(this),this.track=this.track.bind(this),this.identify=this.identify.bind(this),this.alias=this.alias.bind(this),this.group=this.group.bind(this),this.reset=this.reset.bind(this),this.getAnonymousId=this.getAnonymousId.bind(this),this.setAnonymousId=this.setAnonymousId.bind(this),this.getUserId=this.getUserId.bind(this),this.getUserTraits=this.getUserTraits.bind(this),this.getGroupId=this.getGroupId.bind(this),this.getGroupTraits=this.getGroupTraits.bind(this),this.startSession=this.startSession.bind(this),this.endSession=this.endSession.bind(this),this.getSessionId=this.getSessionId.bind(this),this.setAuthToken=this.setAuthToken.bind(this),this.consent=this.consent.bind(this),as.globalSingleton=this,nm.autoTrack.pageLifecycle.visitId.value=eC(),nm.autoTrack.pageLifecycle.pageLoadedTimestamp.value=Date.now(),this.triggerBufferedLoadEvent(),globalThis.rudderanalytics=this}catch(e){eJ(e)}}setDefaultInstanceKey(e){A(e)&&e&&(this.defaultAnalyticsKey=e)}getAnalyticsInstance(e){try{let t=e;return A(t)&&t||(t=this.defaultAnalyticsKey),this.analyticsInstances[t]||(this.analyticsInstances[t]=new aa),this.analyticsInstances[t]}catch(e){eJ(e);return}}load(e,t,r){try{if(this.analyticsInstances[e])return;this.setDefaultInstanceKey(e);let n=tl(e4);this.trackPageLifecycleEvents(n,r),tg(n),tc(e4,m(n)),this.analyticsInstances[e]=new aa,this.getAnalyticsInstance(e)?.load(e,t,eK(r))}catch(e){eJ(e)}}trackPageLifecycleEvents(e,t){let{autoTrack:r,useBeacon:n}=t??{},{enabled:i=!1,options:o={},pageLifecycle:a}=r??{},{events:s=[ei.LOADED,ei.UNLOADED],enabled:u=i,options:c=o}=a??{};nm.autoTrack.pageLifecycle.enabled.value=u,nm.autoTrack.enabled.value=i||u,u&&(this.trackPageLoadedEvent(s,c,e),this.setupPageUnloadTracking(s,n,c))}trackPageLoadedEvent(e,t,r){(0===e.length||e.includes(ei.LOADED))&&r.unshift(["track",ei.LOADED,{},{...t,originalTimestamp:eO(new Date(nm.autoTrack.pageLifecycle.pageLoadedTimestamp.value))}])}setupPageUnloadTracking(e,t,r){(0===e.length||e.includes(ei.UNLOADED))&&(!0===t?eI(e=>{if(!1===e&&nm.lifecycle.loaded.value){let e=Date.now(),t=e-nm.autoTrack.pageLifecycle.pageLoadedTimestamp.value;this.track(ei.UNLOADED,{visitDuration:t},{...r,originalTimestamp:eO(new Date(e))})}}):this.logger.warn(rK(ev)))}triggerBufferedLoadEvent(){let e=Array.isArray(globalThis.rudderanalytics)?globalThis.rudderanalytics:[],t=tp(e);tc(e4,m([...e])),t.length>0&&(t.shift(),this.load.apply(null,t))}ready(e){try{this.getAnalyticsInstance()?.ready(eK(e))}catch(e){eJ(e)}}page(e,t,r,n,i){try{this.getAnalyticsInstance()?.page(Q(eK(e),eK(t),eK(r),eK(n),eK(i)))}catch(e){eJ(e)}}track(e,t,r,n){try{this.getAnalyticsInstance()?.track(ee(eK(e),eK(t),eK(r),eK(n)))}catch(e){eJ(e)}}identify(e,t,r,n){try{this.getAnalyticsInstance()?.identify(et(eK(e),eK(t),eK(r),eK(n)))}catch(e){eJ(e)}}alias(e,t,r,n){try{this.getAnalyticsInstance()?.alias(er(eK(e),eK(t),eK(r),eK(n)))}catch(e){eJ(e)}}group(e,t,r,n){try{this.getAnalyticsInstance()?.group(en(eK(e),eK(t),eK(r),eK(n)))}catch(e){eJ(e)}}reset(e){try{this.getAnalyticsInstance()?.reset(eK(e))}catch(e){eJ(e)}}getAnonymousId(e){try{return this.getAnalyticsInstance()?.getAnonymousId(eK(e))}catch(e){eJ(e);return}}setAnonymousId(e,t){try{this.getAnalyticsInstance()?.setAnonymousId(eK(e),eK(t))}catch(e){eJ(e)}}getUserId(){try{return this.getAnalyticsInstance()?.getUserId()}catch(e){eJ(e);return}}getUserTraits(){try{return this.getAnalyticsInstance()?.getUserTraits()}catch(e){eJ(e);return}}getGroupId(){try{return this.getAnalyticsInstance()?.getGroupId()}catch(e){eJ(e);return}}getGroupTraits(){try{return this.getAnalyticsInstance()?.getGroupTraits()}catch(e){eJ(e);return}}startSession(e){try{this.getAnalyticsInstance()?.startSession(eK(e))}catch(e){eJ(e)}}endSession(){try{this.getAnalyticsInstance()?.endSession()}catch(e){eJ(e)}}getSessionId(){try{return this.getAnalyticsInstance()?.getSessionId()}catch(e){eJ(e);return}}setAuthToken(e){try{this.getAnalyticsInstance()?.setAuthToken(eK(e))}catch(e){eJ(e)}}consent(e){try{this.getAnalyticsInstance()?.consent(eK(e))}catch(e){eJ(e)}}}var au=r(56808),ac=r(43359),al=r(2841),af=r(99742);
2class ad{init(){if(!(0,al.Bd)())return;let e=new as;e.load(this.writeKey,this.dataPlaneUrl,{integrations:{All:!0}}),e.ready(()=>{}),this.rudderAnalytics=e}trackPage(e,t){au.A.setPageCategory(e.page_category),au.A.getCommonPayload().then(r=>{this.rudderAnalytics.page(ac.u.PAGE_VIEW.name,{...r,...au.A.getUTMParameters(),...e},t)})}identifyUser(e,t,r){au.A.getCommonPayload().then(n=>{var i,o,a;null==(a=this)||null==(o=a.rudderAnalytics)||null==(i=o.identify)||i.call(o,e,{...n,...t},r)})}trackEvent(e,t,r){let{onBeforeFire:n,...i}=t||{};null==n||n(),au.A.getCommonPayload().then(t=>{var n,o,a;null==(a=this)||null==(o=a.rudderAnalytics)||null==(n=o.track)||n.call(o,e,{...t,...i},r)})}constructor(){var e,t,r,n;this.writeKey=null===(t=af)||void 0===af||null==(e=t.env)?void 0:"2lKlkkblsLOd8Jx659nNrDYwXDa",this.dataPlaneUrl=null===(n=af)||void 0===af||null==(r=n.env)?void 0:"https://aircall-dataplane.rudderstack.com"}}let ah=new ad},56153:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return i}});let n=""+r(18804).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function i(){let e=Object.defineProperty(Error(n),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});throw e.digest=n,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56165:e=>{e.exports={style:{fontFamily:"'fellix', 'fellix Fallback', arial"},className:"__className_efdb1c",variable:"__variable_efdb1c"}},56533:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return n}}),r(18804).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56808:(e,t,r)=>{"use strict";r.d(t,{A:()=>t5});var n,i,o=r(2841),a=r(57383),s=r(4902),u="4.6.2";function c(e,t){return new Promise(function(r){return setTimeout(r,e,t)})}function l(){return new Promise(function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)})}function f(e,t){void 0===t&&(t=1/0);var r=window.requestIdleCallback;return r?new Promise(function(e){return r.call(window,function(){return e()},{timeout:t})}):c(Math.min(e,t))}function d(e){return!!e&&"function"==typeof e.then}function h(e,t){try{var r=e();d(r)?r.then(function(e){return t(!0,e)},function(e){return t(!1,e)}):t(!0,r)}catch(e){t(!1,e)}}function p(e,t,r){return void 0===r&&(r=16),(0,s.sH)(this,void 0,void 0,function(){var n,i,o,a;return(0,s.YH)(this,function(s){switch(s.label){case 0:n=Array(e.length),i=Date.now(),o=0,s.label=1;case 1:if(!(o<e.length))return[3,4];if(n[o]=t(e[o],o),!((a=Date.now())>=i+r))return[3,3];return i=a,[4,l()];case 2:s.sent(),s.label=3;case 3:return++o,[3,1];case 4:return[2,n]}})})}function g(e){return e.then(void 0,function(){}),e}function b(e,t){for(var r=0,n=e.length;r<n;++r)if(e[r]===t)return!0;return!1}function v(e,t){return!b(e,t)}function m(e){return parseInt(e)}function y(e){return parseFloat(e)}function _(e,t){return"number"==typeof e&&isNaN(e)?t:e}function w(e){return e.reduce(function(e,t){return e+ +!!t},0)}function S(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var r=1/t;return Math.round(e*r)/r}function E(e){for(var t,r,n="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),o=i[1]||void 0,a={},s=/([.:#][\w-]+|\[.+?\])/gi,u=function(e,t){a[e]=a[e]||[],a[e].push(t)};;){var c=s.exec(i[2]);if(!c)break;var l=c[0];switch(l[0]){case".":u("class",l.slice(1));break;case"#":u("id",l.slice(1));break;
2case"[":var f=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(f)u(f[1],null!=(r=null!=(t=f[4])?t:f[5])?r:"");else throw Error(n);break;default:throw Error(n)}}return[o,a]}function x(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n>127)return new TextEncoder().encode(e);t[r]=n}return t}function k(e,t){var r,n,i=e[0]>>>16,o=65535&e[0],a=e[1]>>>16,s=65535&e[1],u=t[0]>>>16,c=65535&t[0],l=t[1]>>>16,f=65535&t[1],d=0,h=0;r=0+((n=0+(s+f))>>>16),n&=65535,r+=a+l,h+=r>>>16,r&=65535,h+=o+c,d+=h>>>16,h&=65535,d+=i+u,d&=65535,e[0]=d<<16|h,e[1]=r<<16|n}function A(e,t){var r,n,i=e[0]>>>16,o=65535&e[0],a=e[1]>>>16,s=65535&e[1],u=t[0]>>>16,c=65535&t[0],l=t[1]>>>16,f=65535&t[1],d=0,h=0;r=0+((n=0+s*f)>>>16),n&=65535,r+=a*f,h+=r>>>16,r&=65535,r+=s*l,h+=r>>>16,r&=65535,h+=o*f,d+=h>>>16,h&=65535,h+=a*l,d+=h>>>16,h&=65535,h+=s*c,d+=h>>>16,h&=65535,d+=i*f+o*l+a*c+s*u,d&=65535,e[0]=d<<16|h,e[1]=r<<16|n}function M(e,t){var r=e[0];32==(t%=64)?(e[0]=e[1],e[1]=r):t<32?(e[0]=r<<t|e[1]>>>32-t,e[1]=e[1]<<t|r>>>32-t):(t-=32,e[0]=e[1]<<t|r>>>32-t,e[1]=r<<t|e[1]>>>32-t)}function R(e,t){0!=(t%=64)&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function T(e,t){e[0]^=t[0],e[1]^=t[1]}var C=[0xff51afd7,0xed558ccd],I=[0xc4ceb9fe,0x1a85ec53];function O(e){var t=[0,e[0]>>>1];T(e,t),A(e,C),t[1]=e[0]>>>1,T(e,t),A(e,I),t[1]=e[0]>>>1,T(e,t)}var P=[0x87c37b91,0x114253d5],L=[0x4cf5ad43,0x2745937f],N=[0,5],D=[0,0x52dce729],B=[0,0x38495ab5];function j(e,t){var r,n=x(e);t=t||0;var i=[0,n.length],o=i[1]%16,a=i[1]-o,s=[0,t],u=[0,t],c=[0,0],l=[0,0];for(r=0;r<a;r+=16)c[0]=n[r+4]|n[r+5]<<8|n[r+6]<<16|n[r+7]<<24,c[1]=n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24,l[0]=n[r+12]|n[r+13]<<8|n[r+14]<<16|n[r+15]<<24,l[1]=n[r+8]|n[r+9]<<8|n[r+10]<<16|n[r+11]<<24,A(c,P),M(c,31),A(c,L),T(s,c),M(s,27),k(s,u),A(s,N),k(s,D),A(l,L),M(l,33),A(l,P),T(u,l),M(u,31),k(u,s),A(u,N),k(u,B);c[0]=0,c[1]=0,l[0]=0,l[1]=0;var f=[0,0];switch(o){case 15:f[1]=n[r+14],R(f,48),T(l,f);case 14:f[1]=n[r+13],R(f,40),T(l,f);case 13:f[1]=n[r+12],R(f,32),T(l,f);case 12:f[1]=n[r+11],R(f,24),T(l,f);case 11:f[1]=n[r+10],R(f,16),T(l,f);case 10:f[1]=n[r+9],R(f,8),T(l,f);case 9:f[1]=n[r+8],T(l,f),A(l,L),M(l,33),A(l,P),T(u,l);case 8:f[1]=n[r+7],R(f,56),T(c,f);case 7:f[1]=n[r+6],R(f,48),T(c,f);case 6:f[1]=n[r+5],R(f,40),T(c,f);case 5:f[1]=n[r+4],R(f,32),T(c,f);case 4:f[1]=n[r+3],R(f,24),T(c,f);case 3:f[1]=n[r+2],R(f,16),T(c,f);case 2:f[1]=n[r+1],R(f,8),T(c,f);case 1:f[1]=n[r],T(c,f),A(c,P),M(c,31),A(c,L),T(s,c)}return T(s,i),T(u,i),k(s,u),k(u,s),O(s),O(u),k(s,u),k(u,s),("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)}function U(e){var t;return(0,s.Cl)({name:e.name,message:e.message,stack:null==(t=e.stack)?void 0:t.split("\n")},e)}function F(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function z(e){return"function"!=typeof e}function H(e,t){var r=g(new Promise(function(r){var n=Date.now();h(e.bind(null,t),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=Date.now()-n;if(!e[0])return r(function(){return{error:e[1],duration:i}});var o=e[1];if(z(o))return r(function(){return{value:o,duration:i}});r(function(){return new Promise(function(e){var t=Date.now();h(o,function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=i+Date.now()-t;if(!r[0])return e({error:r[1],duration:o});e({value:r[1],duration:o})})})})})}));return function(){return r.then(function(e){return e()})}}function V(e,t,r,n){var i=Object.keys(e).filter(function(e){return v(r,e)}),o=g(p(i,function(r){return H(e[r],t)},n));return function(){return(0,s.sH)(this,void 0,void 0,function(){var e,t,r;return(0,s.YH)(this,function(a){switch(a.label){case 0:return[4,o];case 1:return[4,p(a.sent(),function(e){return g(e())},n)];case 2:return[4,Promise.all(a.sent())];case 3:for(r=0,e=a.sent(),t={};r<i.length;++r)t[i[r]]=e[r];return[2,t]}})})}}function q(){var e=window,t=navigator;return w(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function $(){var e=window,t=navigator;return w(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!q()}function G(){var e=window,t=navigator;return w(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===(t.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>
2=5}function W(){var e=window;return w(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function K(){var e=window,t=e.HTMLElement,r=e.Document;return w(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),r&&"pointerLockElement"in r.prototype])>=4}function Y(){var e=window;return F(e.print)&&"[object WebPageNamespace]"===String(e.browser)}function X(){var e,t,r=window;return w(["buildID"in navigator,"MozAppearance"in(null!=(t=null==(e=document.documentElement)?void 0:e.style)?t:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}function J(){var e=window;return w([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function Z(){var e=window,t=e.URLPattern;return w(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Q(){var e=window;return w(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function ee(){var e=window,t=navigator,r=e.CSS,n=e.HTMLButtonElement;return w([!("getStorageUpdates"in t),n&&"popover"in n.prototype,"CSSCounterStyleRule"in e,r.supports("font-size-adjust: ex-height 0.5"),r.supports("text-transform: full-width")])>=4}function et(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return w(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function er(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function en(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}
2function ei(){var e=G(),t=X(),r=window,n=navigator,i="connection";return e?w([!("SharedWorker"in r),n[i]&&"ontypechange"in n[i],!("sinkId"in new Audio)])>=2:!!t&&w(["onorientationchange"in r,"orientation"in r,/android/i.test(n.appVersion)])>=2}function eo(){var e=navigator,t=window,r=Audio.prototype,n=t.visualViewport;return w(["srLatency"in r,"srChannelCount"in r,"devicePosture"in e,n&&"segments"in n,"getTextInformation"in Image.prototype])>=3}function ea(){return ec()?-4:es()}function es(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return -2;if(eu())return -1;var r=4500,n=new t(1,5e3,44100),i=n.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=n.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(n.destination),i.start(0);var a=el(n),s=a[0],u=a[1],c=g(s.then(function(e){return ef(e.getChannelData(0).subarray(r))},function(e){if("timeout"===e.name||"suspended"===e.name)return -3;throw e}));return function(){return u(),c}}function eu(){return W()&&!K()&&!Q()}function ec(){return W()&&ee()&&Y()||G()&&eo()&&Z()}function el(e){var t=3,r=500,n=500,i=5e3,o=function(){};return[new Promise(function(a,s){var u=!1,c=0,l=0;e.oncomplete=function(e){return a(e.renderedBuffer)};var f=function(){setTimeout(function(){return s(ed("timeout"))},Math.min(n,l+i-Date.now()))},h=function(){try{var n=e.startRendering();switch(d(n)&&g(n),e.state){case"running":l=Date.now(),u&&f();break;case"suspended":!document.hidden&&c++,u&&c>=t?s(ed("suspended")):setTimeout(h,r)}}catch(e){s(e)}};h(),o=function(){!u&&(u=!0,l>0&&f())}}),o]}function ef(e){for(var t=0,r=0;r<e.length;++r)t+=Math.abs(e[r]);return t}function ed(e){var t=Error(e);return t.name=e,t}function eh(e,t,r){var n,i,o;return void 0===r&&(r=50),(0,s.sH)(this,void 0,void 0,function(){var a,u;return(0,s.YH)(this,function(s){switch(s.label){case 0:a=document,s.label=1;case 1:if(a.body)return[3,3];return[4,c(r)];case 2:return s.sent(),[3,1];case 3:u=a.createElement("iframe"),s.label=4;case 4:return s.trys.push([4,,10,11]),[4,new Promise(function(e,r){var n=!1,i=function(){n=!0,e()},o=function(e){n=!0,r(e)};u.onload=i,u.onerror=o;var s=u.style;s.setProperty("display","block","important"),s.position="absolute",s.top="0",s.left="0",s.visibility="hidden",t&&"srcdoc"in u?u.srcdoc=t:u.src="about:blank",a.body.appendChild(u);var c=function(){var e,t;n||((null==(t=null==(e=u.contentWindow)?void 0:e.document)?void 0:t.readyState)==="complete"?i():setTimeout(c,10))};c()})];case 5:s.sent(),s.label=6;case 6:if(null==(i=null==(n=u.contentWindow)?void 0:n.document)?void 0:i.body)return[3,8];return[4,c(r)];case 7:return s.sent(),[3,6];case 8:return[4,e(u,u.contentWindow)];case 9:return[2,s.sent()];case 10:return null==(o=u.parentNode)||o.removeChild(u),[7];case 11:return[2]}})})}function ep(e){for(var t=E(e),r=t[0],n=t[1],i=document.createElement(null!=r?r:"div"),o=0,a=Object.keys(n);o<a.length;o++){var s=a[o],u=n[s].join(" ");"style"===s?eg(i.style,u):i.setAttribute(s,u)}return i}function eg(e,t){for(var r=0,n=t.split(";");r<n.length;r++){var i=n[r],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(i);if(o){var a=o[1],s=o[2],u=o[4];e.setProperty(a,s,u||"")}}}var eb="mmMwWLliI0O&1",ev="48px",em=["monospace","sans-serif","serif"],ey=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function e_(){var e=this;return eh(function(t,r){var n=r.document;return(0,s.sH)(e,void 0,void 0,function(){var e,t,r,i,o,a,u,c,l,f,d,h;return(0,s.YH)(this,function(s){for((e=n.body).style.fontSize=ev,(t=n.createElement("div")).style.setProperty("visibility","hidden","important"),r={},i={},o=function(e){var r=n.createElement("span"),i=r.style;return i.position="absolute",i.top="0",i.left="0",i.fontFamily=e,r.textContent=eb,t.appendChild(r),r},a=function(e,t){return o("'".concat(e,"',").concat(t))},u=function(){return em.map(o)},c=function(){for(var e={},t=function(t){e[t]=em.map(function(e){return a(t,e)})},r=0,n=ey;r<n.length;r++)t(n[r]);return e},l=function(e){return em.some(function(t,n){return e[n].offsetWidth!==r[t]||e[n].offsetHeight!==i[t]})},f=u(),d=c(),e.appendChild(t),h=0;h<em.length;h++)r[em[h]]=f[h].offsetWidth,i[em[h]]=f[h].offsetHeight;return[2,ey.filter(function(e){return l(d[e])})]})})})}function ew(){var e=navigator.plugins;if(e){for(var t=[],r=0;r<e.length;++r){var n=e[r];if(n){for(var i=[],o=0;o<n.length;++o){var a=n[o];i.push({type:a.type,suffixes:a.suffixes})}t.push({name:n.name,description:n.description,mimeTypes:i})}}return t}}function eS(){return eE(eI())}function eE(e){var t,r,n,i=!1,o=ex(),a=o[0],s=o[1];return ek(a,s)?(i=eA(s),e?r=n="skipped":(r=(t=eM(a,s))[0],n=t[1])):r=n="unsupported",{winding:i,geometry:r,text:n}}function ex(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function ek(e,t){return!!(t&&e.toDataURL)}function eA(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(
25,5,"evenodd")}function eM(e,t){eR(e,t);var r=eC(e);return r!==eC(e)?["unstable","unstable"]:(eT(e,t),[eC(e),r])}function eR(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var r="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));t.fillText(r,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(r,4,45)}function eT(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var r=0,n=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];r<n.length;r++){var i=n[r],o=i[0],a=i[1],s=i[2];t.fillStyle=o,t.beginPath(),t.arc(a,s,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd")}function eC(e){return e.toDataURL()}function eI(){return W()&&ee()&&Y()}function eO(){var e,t=navigator,r=0;void 0!==t.maxTouchPoints?r=m(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(r=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:r,touchEvent:e,touchStart:"ontouchstart"in window}}function eP(){return navigator.oscpu}function eL(){var e=navigator,t=[],r=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==r&&t.push([r]),Array.isArray(e.languages))G()&&J()||t.push(e.languages);else if("string"==typeof e.languages){var n=e.languages;n&&t.push(n.split(","))}return t}function eN(){return window.screen.colorDepth}function eD(){return _(y(navigator.deviceMemory),void 0)}function eB(){if(!(W()&&ee()&&Y()))return ej()}function ej(){var e=screen,t=function(e){return _(m(e),null)},r=[t(e.width),t(e.height)];return r.sort().reverse(),r}var eU=2500,eF=10;function ez(){if(void 0===i){var e=function(){var t=eq();e$(t)?i=setTimeout(e,eU):(n=t,i=void 0)};e()}}function eH(){var e=this;return ez(),function(){return(0,s.sH)(e,void 0,void 0,function(){var e;return(0,s.YH)(this,function(t){switch(t.label){case 0:if(!e$(e=eq()))return[3,2];if(n)return[2,(0,s.fX)([],n,!0)];if(!er())return[3,2];return[4,en()];case 1:t.sent(),e=eq(),t.label=2;case 2:return e$(e)||(n=e),[2,e]}})})}}function eV(){var e=this;if(W()&&ee()&&Y())return function(){return Promise.resolve(void 0)};var t=eH();return function(){return(0,s.sH)(e,void 0,void 0,function(){var e,r;return(0,s.YH)(this,function(n){switch(n.label){case 0:return[4,t()];case 1:return e=n.sent(),[2,[(r=function(e){return null===e?null:S(e,eF)})(e[0]),r(e[1]),r(e[2]),r(e[3])]]}})})}}function eq(){var e=screen;return[_(y(e.availTop),null),_(y(e.width)-y(e.availWidth)-_(y(e.availLeft),0),null),_(y(e.height)-y(e.availHeight)-_(y(e.availTop),0),null),_(y(e.availLeft),null)]}function e$(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function eG(){return _(m(navigator.hardwareConcurrency),void 0)}function eW(){var e,t=null==(e=window.Intl)?void 0:e.DateTimeFormat;if(t){var r=new t().resolvedOptions().timeZone;if(r)return r}var n=-eK();return"UTC".concat(n>=0?"+":"").concat(n)}function eK(){var e=new Date().getFullYear();return Math.max(y(new Date(e,0,1).getTimezoneOffset()),y(new Date(e,6,1).getTimezoneOffset()))}function eY(){try{return!!window.sessionStorage}catch(e){return!0}}function eX(){try{return!!window.localStorage}catch(e){return!0}}function eJ(){if(!(q()||$()))try{return!!window.indexedDB}catch(e){return!0}}function eZ(){return!!window.openDatabase}function eQ(){return navigator.cpuClass}function e0(){var e=navigator.platform;return"MacIntel"===e&&W()&&!K()?et()?"iPad":"iPhone":e}function e1(){return navigator.vendor||""}function e2(){for(var e=[],t=0,r=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<r.length;t++){var n=r[t],i=window[n];i&&"object"==typeof i&&e.push(n)}return e.sort()}function e3(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(e){return!1}}function e6(){var
vendor: 7,231 bytes, line 2
2 e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}
2function e4(e){var t=(void 0===e?{}:e).debug;return(0,s.sH)(this,void 0,void 0,function(){var e,r,n,i,o;return(0,s.YH)(this,function(a){switch(a.label){case 0:if(!e5())return[2,void 0];return r=Object.keys(e=e6()),[4,e8((o=[]).concat.apply(o,r.map(function(t){return e[t]})))];case 1:return n=a.sent(),t&&e7(e,n),(i=r.filter(function(t){var r=e[t];return w(r.map(function(e){return n[e]}))>.6*r.length})).sort(),[2,i]}})})}function e5(){return W()||ei()}function e8(e){var t;return(0,s.sH)(this,void 0,void 0,function(){var r,n,i,o,a,u,l;return(0,s.YH)(this,function(s){switch(s.label){case 0:for(n=(r=document).createElement("div"),i=Array(e.length),o={},e9(n),a=0;a<e.length;++a)"DIALOG"===(u=ep(e[a])).tagName&&u.show(),e9(l=r.createElement("div")),l.appendChild(u),n.appendChild(l),i[a]=u;s.label=1;case 1:if(r.body)return[3,3];return[4,c(50)];case 2:return s.sent(),[3,1];case 3:r.body.appendChild(n);try{for(a=0;a<e.length;++a)i[a].offsetParent||(o[e[a]]=!0)}finally{null==(t=n.parentNode)||t.removeChild(n)}return[2,o]}})})}function e9(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function e7(e,t){for(var r="DOM blockers debug:\n```",n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];r+="\n".concat(o,":");for(var a=0,s=e[o];a<s.length;a++){var u=s[a];r+="\n ".concat(t[u]?"\uD83D\uDEAB":"â¡ï¸"," ").concat(u)}}console.log("".concat(r,"\n```"))}function te(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var r=t[e];if(matchMedia("(color-gamut: ".concat(r,")")).matches)return r}}function tt(){return!!tr("inverted")||!tr("none")&&void 0}function tr(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function tn(){return!!ti("active")||!ti("none")&&void 0}function ti(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}var to=100;function ta(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=to;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw Error("Too high value")}}function ts(){return tu("no-preference")?0:tu("high")||tu("more")?1:tu("low")||tu("less")?-1:tu("forced")?10:void 0}function tu(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function tc(){return!!tl("reduce")||!tl("no-preference")&&void 0}function tl(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function tf(){return!!td("reduce")||!td("no-preference")&&void 0}function td(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function th(){return!!tp("high")||!tp("standard")&&void 0}function tp(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var tg=Math,tb=function(){return 0};function tv(){var e=tg.acos||tb,t=tg.acosh||tb,r=tg.asin||tb,n=tg.asinh||tb,i=tg.atanh||tb,o=tg.atan||tb,a=tg.sin||tb,s=tg.sinh||tb,u=tg.cos||tb,c=tg.cosh||tb,l=tg.tan||tb,f=tg.tanh||tb,d=tg.exp||tb,h=tg.expm1||tb,p=tg.log1p||tb,g=function(e){return tg.pow(tg.PI,e)},b=function(e){return tg.log(e+tg.sqrt(e*e-1))},v=function(e){return tg.log(e+tg.sqrt(e*e+1))},m=function(e){return tg.log((1+e)/(1-e))/2},y=function(e){return tg.exp(e)-1/tg.exp(e)/2},_=function(e){return(tg.exp(e)+1/tg.exp(e))/2},w=function(e){return tg.exp(e)-1},S=function(e){return(tg.exp(2*e)-1)/(tg.exp(2*e)+1)},E=function(e){return tg.log(1+e)};return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:b(1e154),asin:r(.12312423423423424),asinh:n(1),asinhPf:v(1),atanh:i(.5),atanhPf:m(.5),atan:o(.5),sin:a(-1e300),sinh:s(1),sinhPf:y(1),cos:u(10.000000000123),cosh:c(1),coshPf:_(1),tan:l(-1e300),tanh:f(1),tanhPf:S(1),exp:d(1),expm1:h(1),expm1Pf:w(1),log1p:p(10),log1pPf:E(10),powPI:g(-100)}}var tm="mmMwWLliI0fiflO&1",ty={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function t_(){return tw(function(e,t){for(var r={},n={},i=0,o=Object.keys(ty);i<o.length;i++){var a=o[i],s=ty[a],u=s[0],c=void 0===u?{}:u,l=s[1],f=void 0===l?tm:l,d=e.createElement("span");d.textContent=f,d.style.whiteSpace="nowrap";for(var h=0,p=Object.keys(c);h<p.length;h++){var g=p[h],b=c[g];void 0!==b&&(d.style[g]=b)}r[a]=d,t.append(e.createElement("br"),d)}for(var v=0,m=Object.keys(ty);v<m.length;v++){var a=m[v];n[a]=r[a].getBoundingClientRect().width}return n})}function tw(e,t){return void 0===t&&(t=4e3),eh(function(r,n){var i=n.document,o=i.body,a=o.style;a.width="".concat(t,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",G()?o.style.zoom="".concat(1/n.devicePixelRatio):W()&&(o.style.zoom="reset");var u=i.createElement("div");return u.textContent=(0,s.fX)([],Array(t/20|0),!0).map(function(){return"word"}).join(" "),o.appendChild(u),e(i,o)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function tS(){return navigator.pdfViewerEnabled}function tE(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function tx(){var e=window.ApplePaySession;if("function"!=typeof(null==e?void 0:e.canMakePayments))return -1;if(tk())return -3;try{return+!!e.canMakePayments()}catch(e){return tA(e)}}var tk=function(){for(var e=window;;){var t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return!0;throw e}e=t}};function tA(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return -2;throw e}function tM(){var e,t=document.createElement("a"),r=null!=(e=t.attributionSourceId)?e:t.attributionsourceid;return void 0===r?void 0:String(r)}var tR=-1,tT=-2,tC=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),tI=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),tO=["FRAGMENT_SHADER","VERTEX_SHADER"],tP=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],tL="WEBGL_debug_renderer_info",tN="WEBGL_polygon_mode";function tD(e){if(e.webgl)return e.webgl.context;var t,r=document.createElement("canvas");r.addEventListener("webglCreateContextError",function(){return t=void 0});for(var n=0,i=["webgl","experimental-webgl"];n<i.length;n++){var o=i[n];try{t=r.getContext(o)}catch(e){}if(t)break}return e.webgl={context:t},t}function tB(e,t,r){var n=e.getShaderPrecisionFormat(e[t],e[r]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}function tj(e){return Object.keys(e.__proto__).filter(tU)}function tU(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function tF(){return X()}function tz(){return G()||W()}function tH(e){return"function"==typeof e.getParameter}var tV={fonts:e_,domBlockers:e4,fontPreferences:t_,audio:ea,screenFrame:eV,canvas:eS,osCpu:eP,languages:eL,colorDepth:eN,deviceMemory:eD,screenResolution:eB,hardwareConcurrency:eG,timezone:eW,sessionStorage:eY,localStorage:eX,indexedDB:eJ,openDatabase:eZ,cpuClass:eQ,platform:e0,plugins:ew,touchSupport:eO,vendor:e1,vendorFlavors:e2,cookiesEnabled:e3,colorGamut:te,invertedColors:tt,forcedColors:tn,monochrome:ta,contrast:ts,reducedMotion:tc,reducedTransparency:tf,hdr:th,math:tv,pdfViewerEnabled:tS,architecture:tE,applePay:tx,privateClickMeasurement:tM,audioBaseLatency:function(){if(!(ei()||W()))return -2;if(!window.AudioContext)return -1;var e=new AudioContext().baseLatency;return null==e?-1:isFinite(e)?e:-3},dateTimeLocale:function(){if(!window.Intl)return -1;var e=window.Intl.DateTimeFormat;if(!e)return -2;var t=e().resolvedOptions().locale;return t||""===t?t:-3},webGlBasics:function(e){var t,r,n,i,o,a,s=tD(e.cache);
2if(!s)return tR;if(!tH(s))return tT;var u=tF()?null:s.getExtension(tL);return{version:(null==(t=s.getParameter(s.VERSION))?void 0:t.toString())||"",vendor:(null==(r=s.getParameter(s.VENDOR))?void 0:r.toString())||"",vendorUnmasked:u?null==(n=s.getParameter(u.UNMASKED_VENDOR_WEBGL))?void 0:n.toString():"",renderer:(null==(i=s.getParameter(s.RENDERER))?void 0:i.toString())||"",rendererUnmasked:u?null==(o=s.getParameter(u.UNMASKED_RENDERER_WEBGL))?void 0:o.toString():"",shadingLanguageVersion:(null==(a=s.getParameter(s.SHADING_LANGUAGE_VERSION))?void 0:a.toString())||""}},webGlExtensions:function(e){var t=tD(e.cache);if(!t)return tR;if(!tH(t))return tT;var r=t.getSupportedExtensions(),n=t.getContextAttributes(),i=[],o=[],a=[],s=[],u=[];if(n)for(var c=0,l=Object.keys(n);c<l.length;c++){var f=l[c];o.push("".concat(f,"=").concat(n[f]))}for(var d=tj(t),h=0,p=d;h<p.length;h++){var g=p[h],b=t[g];a.push("".concat(g,"=").concat(b).concat(tC.has(b)?"=".concat(t.getParameter(b)):""))}if(r)for(var v=0,m=r;v<m.length;v++){var y=m[v];if(!(y===tL&&tF()||y===tN&&tz())){var _=t.getExtension(y);if(!_){i.push(y);continue}for(var w=0,S=tj(_);w<S.length;w++){var g=S[w],b=_[g];s.push("".concat(g,"=").concat(b).concat(tI.has(b)?"=".concat(t.getParameter(b)):""))}}}for(var E=0,x=tO;E<x.length;E++)for(var k=x[E],A=0,M=tP;A<M.length;A++){var R=M[A],T=tB(t,k,R);u.push("".concat(k,".").concat(R,"=").concat(T.join(",")))}return s.sort(),a.sort(),{contextAttributes:o,parameters:a,shaderPrecisions:u,extensions:r,extensionParameters:s,unsupportedExtensions:i}}};function tq(e){return V(tV,e,[])}var t$="$ if upgrade to Pro: https://fpjs.dev/pro";function tG(e){var t=tW(e),r=tK(t);return{score:t,comment:t$.replace(/\$/g,"".concat(r))}}function tW(e){if(ei())return .4;if(W())return K()&&!(ee()&&Y())?.5:.3;var t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function tK(e){return S(.99+.01*e,1e-4)}function tY(e){for(var t="",r=0,n=Object.keys(e).sort();r<n.length;r++){var i=n[r],o=e[i],a="error"in o?"error":JSON.stringify(o.value);t+="".concat(t?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(a)}return t}function tX(e){return JSON.stringify(e,function(e,t){return t instanceof Error?U(t):t},2)}function tJ(e){return j(tY(e))}function tZ(e){var t;return{get visitorId(){return void 0===t&&(t=tJ(this.components)),t},set visitorId(visitorId){t=visitorId},confidence:tG(e),components:e,version:u}}function tQ(e){return void 0===e&&(e=50),f(e,2*e)}function t0(e,t){var r=Date.now();return{get:function(n){return(0,s.sH)(this,void 0,void 0,function(){var i,o,a;return(0,s.YH)(this,function(s){switch(s.label){case 0:return i=Date.now(),[4,e()];case 1:return a=tZ(o=s.sent()),(t||(null==n?void 0:n.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(a.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(i-r,"\nvisitorId: ").concat(a.visitorId,"\ncomponents: ").concat(tX(o),"\n```")),[2,a]}})})}}}function t1(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(u,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}var t2={load:function(e){var t;return void 0===e&&(e={}),(0,s.sH)(this,void 0,void 0,function(){var r,n;return(0,s.YH)(this,function(i){switch(i.label){case 0:return(null==(t=e.monitoring)||t)&&t1(),r=e.delayFallback,n=e.debug,[4,tQ(r)];case 1:return i.sent(),[2,t0(tq({cache:{},debug:n}),n)]}})})}};let t3=()=>new Promise(e=>{t2.load().then(e=>e.get()).then(t=>e(t||null)).catch(()=>e(null))});var t6=r(72472);class t4{setPricingLinkContext(e){this.pricingLinkContext=e}getPricingLinkContext(){return this.pricingLinkContext}clearPricingLinkContext(){this.pricingLinkContext=null}setPageCategory(e){this.pageCategory=e}getPageCategory(){return this.pageCategory}getUTMParameters(){return{utm_campaign:window.sessionStorage.getItem("utm_campaign")||"",utm_medium:window.sessionStorage.getItem("utm_medium")||"",utm_source:window.sessionStorage.getItem("utm_source")||"",utm_content:window.sessionStorage.getItem("utm_content")||""}}setSourceCTAData(e,t,r){(0,o.Bd)()&&(window.sessionStorage.setItem("source_path",e||""),window.sessionStorage.setItem("source_cta_text",t||""),window.sessionStorage.setItem("source_cta_location",r||""))}getSourceCTAData(){return(0,o.Bd)()?{source_path:window.sessionStorage.getItem("source_path")||"",source_cta_text:window.sessionStorage.getItem("source_cta_text")||"",source_cta_location:window.sessionStorage.getItem("source_cta_location")||""}:{source_path:"",source_cta_text:"",source_cta_location:""}}async getCommonPayload(){var e,t,r,n,i;void 0===this.locationData&&(this.locationData=await (0,t6.A)()),void 0===this.userFingerprint&&(this.userFingerprint=await t3());let o=this.getClientData(),s=(0,a.Vf)();return{user_agent:o.userAgent||"",ip:(null==(e=this.locationData)?void 0:e.ip)||"",os:o.os||"",device:o.deviceType||"",ip_country:(null==(r=this.locationData)||null==(t=r.country)?void 0:t.name)||"",ip_state:(null==(n=this.locationData)?void 0:n.region)||"",ip_city:(null==(i=this.locationData)?void 0:i.city)||"",session_id:this.userFingerprint.visitorId,window_size:o.windowSize,screen_size:o.screenSize,page_path:o.pagePath||"",referrer:o.referrer||"",visitor_id:s||""}}getClientData(){return(0,o.Bd)()?{userAgent:navigator.userAgent,os:this.getOperatingSystem(),windowSize:this.getWindowSize(),screenSize:this.getScreenSize(),deviceType:this.getDeviceType(),referrer:document.referrer,pagePath:window.location.pathname}:{userAgent:"",os:"",windowSize:"",screenSize:"",deviceType:"",referrer:"",pagePath:""}}getOperatingSystem(){let e=navigator.userAgent;return e.includes("Windows")?"Windows":e.includes("Macintosh")?"macOS":e.includes("Linux")?"Linux":/Android/i.test(e)?"Android":/iPhone|iPad|iPod/i.test(e)?"iOS":"Unknown"}getWindowSize(){return"".concat(window.innerWidth||"","x").concat(window.innerHeight||"")}getScreenSize(){return"".concat(screen.width||"","x").concat(screen.height||"")}getDeviceType(){let e=navigator.userAgent;return/Mobi|Android/i.test(e)?"Mobile":/Tablet|iPad/i.test(e)?"Tablet":"Desktop"}constructor(){this.locationData=void 0,this.userFingerprint=void 0,this.pageCategory=void 0,this.pricingLinkContext=null}}let t5=new t4},57383:(e,t,r)=>{"use strict";r.d(t,{Km:()=>h,Rw:()=>p,Vf:()=>g,ry:()=>d});var n=r(28862),i=r(89099),o=r(14232),a=r(55793),s=r(43359),u=r(2841),c=r(46077),l=r(89527);let f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{apiHost:"https://growthbook-api.production.aircall.tech",clientKey:"sdk-QzcIUBiD6IgnnIou",enableDevMode:!(0,u.KV)(),attributes:e}},d=new n.NN({...f({serviceName:l.f}),trackingCallback:(e,t)=>{try{a.A.trackEvent(s.u.EXPERIMENT_VIEWED.name,s.u.EXPERIMENT_VIEWED.mapProperties({experiment_id:e.key,variation_id:t.variationId,variation_value:t.value,hash_value:t.hashValue,hash_attribute:t.hashAttribute,bucket_value:t.bucket||null,in_experiment:t.inExperiment}))}catch(e){c.A.logError("Error in client-side tracking callback",e,"Experimentation",{source:"web",action:"tracking_callback",actionStatus:"failure"})}}}),h=()=>{let e=(0,i.useRouter)();return o.useEffect(()=>{d.init()},[]),o.useEffect(()=>{let e=g()||"";d.setAttributes({...d.getAttributes(),id:e,environment:"production",url:window.location.href,path:window.location.pathname})},[e.asPath]),d},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,n.Br)(e,t)},g=()=>{if(!(0,u.Bd)())return null;try{var e;
2return(null==(e=document.cookie.match(/aircall_visitor_id=([^;]+)/))?void 0:e[1])||null}catch(e){return c.A.logError("Error extracting client visitor ID",e,"Experimentation"),null}}},59101:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},60262:(e,t,r)=>{"use strict";r.d(t,{YB:()=>J,K1:()=>Z,YV:()=>ep,kY:()=>ev});var n=r(14232),i=Object.defineProperty,o=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a=(e,t,r)=>o(e,"symbol"!=typeof t?t+"":t,r);let s=function(e){return e.DOCUMENT="doc",e.HEADING="heading",e.PARAGRAPH="paragraph",e.QUOTE="blockquote",e.OL_LIST="ordered_list",e.UL_LIST="bullet_list",e.LIST_ITEM="list_item",e.CODE_BLOCK="code_block",e.HR="horizontal_rule",e.BR="hard_break",e.IMAGE="image",e.EMOJI="emoji",e.COMPONENT="blok",e.TABLE="table",e.TABLE_ROW="tableRow",e.TABLE_CELL="tableCell",e.TABLE_HEADER="tableHeader",e}({}),u=function(e){return e.BOLD="bold",e.STRONG="strong",e.STRIKE="strike",e.UNDERLINE="underline",e.ITALIC="italic",e.CODE="code",e.LINK="link",e.ANCHOR="anchor",e.STYLED="styled",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.TEXT_STYLE="textStyle",e.HIGHLIGHT="highlight",e}({}),c=function(e){return e.TEXT="text",e}({}),l=function(e){return e.URL="url",e.STORY="story",e.ASSET="asset",e.EMAIL="email",e}({}),f=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],d=(e={})=>{let{custom:t,...r}=e,n={...r,...t};return Object.keys(n).map(e=>`${e}="${n[e]}"`).join(" ")},h=(e={})=>Object.keys(e).map(t=>`${t}: ${e[t]}`).join("; ");function p(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}let g=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t));function b(e,t){if(!t)return{src:e,attrs:{}};let r=0,n=0,i={},o=[];function a(e,t,r,n,i){"number"!=typeof e||e<=t||e>=r?console.warn(`[StoryblokRichText] - ${n.charAt(0).toUpperCase()+n.slice(1)} value must be a number between ${t} and ${r} (inclusive)`):i.push(`${n}(${e})`)}if("object"==typeof t){if(void 0!==t.width&&("number"==typeof t.width&&t.width>=0?(i.width=t.width,r=t.width):console.warn("[StoryblokRichText] - Width value must be a number greater than or equal to 0")),void 0!==t.height&&("number"==typeof t.height&&t.height>=0?(i.height=t.height,n=t.height):console.warn("[StoryblokRichText] - Height value must be a number greater than or equal to 0")),0===t.height&&0===t.width&&(delete i.width,delete i.height,console.warn("[StoryblokRichText] - Width and height values cannot both be 0")),t.loading&&["lazy","eager"].includes(t.loading)&&(i.loading=t.loading),t.class&&(i.class=t.class),t.filters){let{filters:e}=t||{},{blur:r,brightness:n,fill:i,format:s,grayscale:u,quality:c,rotate:l}=e||{};r&&a(r,0,100,"blur",o),c&&a(c,0,100,"quality",o),n&&a(n,0,100,"brightness",o),i&&o.push(`fill(${i})`),u&&o.push("grayscale()"),l&&[0,90,180,270].includes(t.filters.rotate||0)&&o.push(`rotate(${l})`),s&&["webp","png","jpeg"].includes(s)&&o.push(`format(${s})`)}t.srcset&&(i.srcset=t.srcset.map(t=>{if("number"==typeof t)return`${e}/m/${t}x0/${o.length>0?`filters:${o.join(":")}`:""} ${t}w`;if(!Array.isArray(t)||2!==t.length)return void console.warn("[StoryblokRichText] - srcset entry must be a number or a tuple of two numbers");{let[r,n]=t;return`${e}/m/${r}x${n}/${o.length>0?`filters:${o.join(":")}`:""} ${r}w`}}).join(", ")),t.sizes&&(i.sizes=t.sizes.join(", "))}let s=`${e}/m/`;return(r>0||n>0)&&(s=`${s}${r}x${n}/`),o.length>0&&(s=`${s}filters:${o.join(":")}`),{src:s,attrs:i}}function v(e,t={},r){let n=d(t),i=n?`${e} ${n}`:e,o=Array.isArray(r)?r.join(""):r||"";return e?f.includes(e)?`<${i}>`:`<${i}>${o}</${e}>`:o}function m(e={}){let t=new Map,{renderFn:r=v,textFn:n=p,resolvers:i={},optimizeImages:o=!1,keyedResolvers:a=!1}=e,f=r!==v,d=(e={})=>{let{textAlign:t,class:r,id:n,style:i,...o}=e,a=[];return i&&a.push(i.endsWith(";")?i:`${i};`),t&&a.push(`text-align: ${t};`),g({...o,class:r,id:n,...a.length>0?{style:a.join(" ")}:{}})},y=e=>(t,r)=>{let n=d(t.attrs);return r.render(e,n,t.children||null)},_=(e,t)=>
2{let{src:r,alt:n,title:i,srcset:a,sizes:s}=e.attrs||{},u=r,c={};if(o){let{src:e,attrs:t}=b(r,o);u=e,c=t}let l={src:u,alt:n,title:i,srcset:a,sizes:s,...c};return t.render("img",g(l))},w=(e,t)=>{let{level:r,...n}=e.attrs||{},i=d(n);return t.render(`h${r}`,i,e.children)},S=(e,t)=>{var r,n,i,o;let a=t.render("img",{src:null==(r=e.attrs)?void 0:r.fallbackImage,alt:null==(n=e.attrs)?void 0:n.alt,style:"width: 1.25em; height: 1.25em; vertical-align: text-top",draggable:"false",loading:"lazy"});return t.render("span",{"data-type":"emoji","data-name":null==(i=e.attrs)?void 0:i.name,"data-emoji":null==(o=e.attrs)?void 0:o.emoji},a)},E=(e,t)=>t.render("pre",e.attrs||{},t.render("code",{},e.children||"")),x=(e,t=!1)=>({text:r,attrs:n},i)=>{let{class:o,id:a,...s}=n||{},u=t?{class:o,id:a,style:h(s)||void 0}:n||{};return i.render(e,g(u),r)},k=e=>B(e),A=e=>{let{marks:r,...i}=e;if("text"in e){if(r)return r.reduce((e,t)=>k({...t,text:e}),k({...i,children:i.children}));let o=e.attrs||{};if(a){let e=t.get("txt")||0;t.set("txt",e+1),o.key=`txt-${e}`}return n(i.text,o)}return""},M=(e,t)=>{let{linktype:r,href:n,anchor:i,...o}=e.attrs||{},a="";switch(r){case l.ASSET:case l.URL:a=n;break;case l.EMAIL:a=`mailto:${n}`;break;case l.STORY:a=n,i&&(a=`${a}#${i}`);break;default:a=n}let s={...o};return a&&(s.href=a),t.render("a",s,e.text)},R=(e,t)=>{var r,n;return console.warn("[StoryblokRichtText] - BLOK resolver is not available for vanilla usage"),t.render("span",{blok:null==(r=null==e?void 0:e.attrs)?void 0:r.body[0],id:null==(n=e.attrs)?void 0:n.id,style:"display: none"})},T=(e,t)=>{let r=d(e.attrs),n=e.children||null;return t.render("table",r,t.render("tbody",{},n))},C=(e,t)=>{let r=d(e.attrs);return t.render("tr",r,e.children)},I=(e,t)=>{let{colspan:r,rowspan:n,colwidth:i,backgroundColor:o,textAlign:a,...s}=e.attrs||{},u=[];i&&u.push(`width: ${i}px;`),o&&u.push(`background-color: ${o};`),a&&u.push(`text-align: ${a};`);let c={...s,...r>1?{colspan:r}:{},...n>1?{rowspan:n}:{},...u.length>0?{style:u.join(" ")}:{}};return t.render("td",g(c),e.children)},O=(e,t)=>{let{colspan:r,rowspan:n,colwidth:i,backgroundColor:o,textAlign:a,...s}=e.attrs||{},u=[];i&&u.push(`width: ${i}px;`),o&&u.push(`background-color: ${o};`),a&&u.push(`text-align: ${a};`);let c={...s,...r>1?{colspan:r}:{},...n>1?{rowspan:n}:{},...u.length>0?{style:u.join(" ")}:{}};return t.render("th",g(c),e.children)},P=new Map([[s.DOCUMENT,y("")],[s.HEADING,w],[s.PARAGRAPH,y("p")],[s.UL_LIST,y("ul")],[s.OL_LIST,y("ol")],[s.LIST_ITEM,y("li")],[s.IMAGE,_],[s.EMOJI,S],[s.CODE_BLOCK,E],[s.HR,y("hr")],[s.BR,y("br")],[s.QUOTE,y("blockquote")],[s.COMPONENT,R],[c.TEXT,A],[u.LINK,M],[u.ANCHOR,M],[u.STYLED,x("span",!0)],[u.BOLD,x("strong")],[u.TEXT_STYLE,x("span",!0)],[u.ITALIC,x("em")],[u.UNDERLINE,x("u")],[u.STRIKE,x("s")],[u.CODE,x("code")],[u.SUPERSCRIPT,x("sup")],[u.SUBSCRIPT,x("sub")],[u.HIGHLIGHT,x("mark")],[s.TABLE,T],[s.TABLE_ROW,C],[s.TABLE_CELL,I],[s.TABLE_HEADER,O]]),L=new Map([...P,...Object.entries(i).map(([e,t])=>[e,t])]),N=()=>({render:(e,n={},i)=>{if(a&&e){let r=t.get(e)||0;t.set(e,r+1),n.key=`${e}-${r}`}return r(e,n,i)},originalResolvers:P,mergedResolvers:L});function D(e){let t=L.get(e.type);if(!t)return console.error("<Storyblok>",`No resolver found for node type ${e.type}`),"";let r=N();if("text"===e.type)return t(e,r);let n=e.content?e.content.map(B):void 0;return t({...e,children:n},r)}function B(e){return"doc"===e.type?f?e.content.map(D):e.content.map(D).join(""):Array.isArray(e)?e.map(D):D(e)}return{render:B}}let y=!1,_=[],w=e=>new Promise((t,r)=>{if(typeof window>"u")return void r(Error("Cannot load Storyblok bridge: window is undefined (server-side environment)"));if(window.storyblokRegisterEvent=e=>{if(!window.location.search.includes("_storyblok"))return void console.warn("You are not in Draft Mode or in the Visual Editor.");y?e():_.push(e)},document.getElementById("storyblok-javascript-bridge"))return void t(void 0);let n=document.createElement("script");n.async=!0,n.src=e,n.id="storyblok-javascript-bridge",n.onerror=e=>r(e),n.onload=e=>{_.forEach(e=>e()),y=!0,t(e)},document.getElementsByTagName("head")[0].appendChild(n)}),S=(e="")=>e.includes("/cdn/"),E=(e,t=25,r=1)=>({...e,per_page:t,page:r}),x=e=>new Promise(t=>setTimeout(t,e)),k=(e=0,t)=>Array.from({length:e},t),A=(e=0,t=e)=>{let r=Math.abs(t-e)||0,n=e<t?1:-1;return k(r,(t,r)=>r*n+e)},M=async(e,t)=>Promise.all(e.map(t)),R=(e=[],t)=>e.map(t).reduce((e,t)=>
2[...e,...t],[]),T=(e,t,r)=>{let n=[];for(let i in e){let o;if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=e[i];if(null==a)continue;let s=r?"":encodeURIComponent(i);o="object"==typeof a?T(a,t?t+encodeURIComponent(`[${s}]`):s,Array.isArray(a)):`${t?t+encodeURIComponent(`[${s}]`):s}=${encodeURIComponent(a)}`,n.push(o)}return n.join("&")},C=e=>{let t={eu:"api.storyblok.com",us:"api-us.storyblok.com",cn:"app.storyblokchina.cn",ap:"api-ap.storyblok.com",ca:"api-ca.storyblok.com"};return t[e]??t.eu};var I=class{constructor(e){a(this,"baseURL"),a(this,"timeout"),a(this,"headers"),a(this,"responseInterceptor"),a(this,"fetch"),a(this,"ejectInterceptor"),a(this,"url"),a(this,"parameters"),a(this,"fetchOptions"),this.baseURL=e.baseURL,this.headers=e.headers||new Headers,this.timeout=null!=e&&e.timeout?1e3*e.timeout:0,this.responseInterceptor=e.responseInterceptor,this.fetch=(...t)=>e.fetch?e.fetch(...t):fetch(...t),this.ejectInterceptor=!1,this.url="",this.parameters={},this.fetchOptions={}}get(e,t){return this.url=e,this.parameters=t,this._methodHandler("get")}post(e,t){return this.url=e,this.parameters=t,this._methodHandler("post")}put(e,t){return this.url=e,this.parameters=t,this._methodHandler("put")}delete(e,t){return this.url=e,this.parameters=t??{},this._methodHandler("delete")}async _responseHandler(e){let t=[],r={data:{},headers:{},status:0,statusText:""};for(let n of(204!==e.status&&await e.json().then(e=>{r.data=e}),e.headers.entries()))t[n[0]]=n[1];return r.headers={...t},r.status=e.status,r.statusText=e.statusText,r}async _methodHandler(e){let t=`${this.baseURL}${this.url}`,r=null;"get"===e?t=`${this.baseURL}${this.url}?${T(this.parameters)}`:r=JSON.stringify(this.parameters);let n=new URL(t),i=new AbortController,{signal:o}=i,a=null;this.timeout&&(a=setTimeout(()=>i.abort(),this.timeout));try{let t=await this.fetch(`${n}`,{method:e,headers:this.headers,body:r,signal:o,...this.fetchOptions});this.timeout&&a&&clearTimeout(a);let i=await this._responseHandler(t);return this.responseInterceptor&&!this.ejectInterceptor?this._statusHandler(this.responseInterceptor(i)):this._statusHandler(i)}catch(e){return"AbortError"===e.name?{message:"Request timeout: The request was aborted due to timeout"}:{message:e.message||e.toString()||"An unknown error occurred"}}}setFetchOptions(e={}){Object.keys(e).length>0&&"method"in e&&delete e.method,this.fetchOptions={...e}}eject(){this.ejectInterceptor=!0}_normalizeErrorMessage(e){if(Array.isArray(e))return e[0]||"Unknown error";if(e&&"object"==typeof e){if(e.error)return e.error;for(let t in e){if(Array.isArray(e[t]))return`${t}: ${e[t][0]}`;if("string"==typeof e[t])return`${t}: ${e[t]}`}if(e.slug)return e.slug}return"Unknown error"}_statusHandler(e){let t=/20[0-6]/g;return new Promise((r,n)=>{if(t.test(`${e.status}`))return r(e);n({message:this._normalizeErrorMessage(e.data),status:e.status,response:e})})}};let O="SB-Agent",P={defaultAgentName:"SB-JS-CLIENT",defaultAgentVersion:"SB-Agent-Version",packageVersion:"7.0.0"},L={PUBLISHED:"published"},N=25,D={SMALL:25,MEDIUM:50,LARGE:75},B={SINGLE_OR_SMALL:50,MEDIUM:15,LARGE:10,VERY_LARGE:6},j=1e3,U=3;function F(e,t){let r=e.includes("/cdn/stories/"),n=e.split("/").length>3&&!e.endsWith("/cdn/stories"),i="find_by"in t;return r&&n||i}function z(e){return e<=D.SMALL?B.SINGLE_OR_SMALL:e<=D.MEDIUM?B.MEDIUM:e<=D.LARGE?B.LARGE:B.VERY_LARGE}function H(e,t,r={},n){return void 0!==r.userRateLimit?Math.min(r.userRateLimit,j):void 0!==r.serverHeadersRateLimit?Math.min(r.serverHeadersRateLimit,j):void 0!==n?n:!e||!t||F(e,t)?B.SINGLE_OR_SMALL:z(t.per_page||N)}function V(e){if(!e)return null;let t=e["x-ratelimit"]||e["X-RateLimit"],r=e["x-ratelimit-policy"]||e["X-RateLimit-Policy"];if(!t&&!r)return null;let n={};if(t){let e=t.match(/r=(\d+)/);e&&(n.remaining=Number.parseInt(e[1],10))}if(r){let e=r.match(/q=(\d+)/);e&&(n.max=Number.parseInt(e[1],10))}return Object.keys(n).length>0?n:null}function q(e,t=!1){return{userRateLimit:e,serverHeadersRateLimit:void 0,isManagementApi:t}}var $=class extends Error{constructor(e){super(e),this.name="AbortError"}},G=function(e,t,r){if(!Number.isFinite(t))throw TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(r))throw TypeError("Expected `interval` to be a finite number");let n=[],i=[],o=0,a=!1,s=async()=>{o++;let t=n.shift();if(t)try{let r=await e(...t.args);t.resolve(r)}catch(e){t.reject(e)}let a=setTimeout(()=>{o--,n.length>0&&s(),i=i.filter(e=>e!==a)},r);i.includes(a)||i.push(a)},u=(...e)=>a?Promise.reject(Error("Throttled function is already aborted and not accepting new promises")):new Promise((r,i)=>{n.push({resolve:r,reject:i,args:e}),o<t&&s()});return u.abort=()=>
2{a=!0,i.forEach(clearTimeout),i=[],n.forEach(e=>e.reject(()=>new $("Throttle function aborted"))),n.length=0},u},W=class{constructor(e,t=1e3){a(this,"queues"),a(this,"interval"),a(this,"throttledRequestFn"),this.queues=new Map,this.interval=t,this.throttledRequestFn=e}getQueue(e){let t=this.queues.get(e);return t||(t=G(this.throttledRequestFn,e,this.interval),this.queues.set(e,t)),t}execute(e,...t){return this.getQueue(e)(...t)}abortAll(){this.queues.forEach(e=>{var t;null==(t=e.abort)||t.call(e)}),this.queues.clear()}getQueueCount(){return this.queues.size}};let K={},Y={};var X=class{constructor(e,t){a(this,"client"),a(this,"maxRetries"),a(this,"retriesDelay"),a(this,"throttleManager"),a(this,"accessToken"),a(this,"cache"),a(this,"resolveCounter"),a(this,"relations"),a(this,"links"),a(this,"version"),a(this,"rateLimitConfig"),a(this,"richTextResolver"),a(this,"resolveNestedRelations"),a(this,"stringifiedStoriesCache"),a(this,"inlineAssets");let r=e.endpoint||t;if(!r){let t=!1===e.https?"http":"https";r=e.oauthToken?`${t}://${C(e.region)}/v1`:`${t}://${C(e.region)}/v2`}let n=new Headers;n.set("Content-Type","application/json"),n.set("Accept","application/json"),e.headers&&("Headers"===e.headers.constructor.name?e.headers.entries().toArray():Object.entries(e.headers)).forEach(([e,t])=>{n.set(e,t)}),n.has(O)||(n.set(O,P.defaultAgentName),n.set(P.defaultAgentVersion,P.packageVersion)),e.oauthToken&&n.set("Authorization",e.oauthToken),this.rateLimitConfig=q(e.rateLimit,!!e.oauthToken),this.maxRetries=e.maxRetries||10,this.retriesDelay=300,this.throttleManager=new W(this.throttledRequest.bind(this),1e3),this.accessToken=e.accessToken||"",this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.resolveCounter=0,this.resolveNestedRelations=e.resolveNestedRelations||!0,this.stringifiedStoriesCache={},this.version=e.version||L.PUBLISHED,this.inlineAssets=e.inlineAssets||!1,this.client=new I({baseURL:r,timeout:e.timeout||0,headers:n,responseInterceptor:e.responseInterceptor,fetch:e.fetch})}parseParams(e){return e.token||(e.token=this.getToken()),e.cv||(e.cv=Y[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),"u">typeof e.resolve_relations&&(e.resolve_level=2),e}factoryParamOptions(e,t){return S(e)?this.parseParams(t):t}
2makeRequest(e,t,r,n,i){let o=this.factoryParamOptions(e,E(t,r,n));return this.cacheResponse(e,o,void 0,i)}get(e,t={},r){t||(t={});let n=`/${e}`;S(n)&&(t.version=t.version||this.version);let i=this.factoryParamOptions(n,t);return this.cacheResponse(n,i,void 0,r)}async getAll(e,t={},r,n){let i=(null==t?void 0:t.per_page)||25,o=`/${e}`.replace(/\/$/,""),a=r??o.substring(o.lastIndexOf("/")+1);t.version=t.version||this.version;let s=1,u=await this.makeRequest(o,t,i,s,n),c=u.total?Math.ceil(u.total/(u.perPage||i)):1;return R([u,...await M(A(s,c),e=>this.makeRequest(o,t,i,e+1,n))],e=>Object.values(e.data[a]))}post(e,t={},r){let n=`/${e}`,i=H(void 0,void 0,this.rateLimitConfig,U);return this.throttleManager.execute(i,"post",n,t,r)}put(e,t={},r){let n=`/${e}`,i=H(void 0,void 0,this.rateLimitConfig,U);return this.throttleManager.execute(i,"put",n,t,r)}delete(e,t={},r){t||(t={});let n=`/${e}`,i=H(void 0,void 0,this.rateLimitConfig,U);return this.throttleManager.execute(i,"delete",n,t,r)}getStories(e={},t){return this._addResolveLevel(e),this.get("cdn/stories",e,t)}getStory(e,t={},r){return this._addResolveLevel(t),this.get(`cdn/stories/${e}`,t,r)}getToken(){return this.accessToken}ejectInterceptor(){this.client.eject()}_addResolveLevel(e){"u">typeof e.resolve_relations&&(e.resolve_level=2)}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t,r){let n=e[t];n&&"multilink"===n.fieldtype&&"story"===n.linktype&&"string"==typeof n.id&&this.links[r][n.id]?n.story=this._cleanCopy(this.links[r][n.id]):n&&"story"===n.linktype&&"string"==typeof n.uuid&&this.links[r][n.uuid]&&(n.story=this._cleanCopy(this.links[r][n.uuid]))}getStoryReference(e,t){return this.relations[e][t]?JSON.parse(this.stringifiedStoriesCache[t]||JSON.stringify(this.relations[e][t])):t}_resolveField(e,t,r){let n=e[t];"string"==typeof n?e[t]=this.getStoryReference(r,n):Array.isArray(n)&&(e[t]=n.map(e=>this.getStoryReference(r,e)).filter(Boolean))}_insertRelations(e,t,r,n){if(Array.isArray(r)?r.find(e=>e.endsWith(`.${t}`)):r.endsWith(`.${t}`))return void this._resolveField(e,t,n);let i=e.component?`${e.component}.${t}`:t;(Array.isArray(r)?r.includes(i):r===i)&&this._resolveField(e,t,n)}iterateTree(e,t,r){let n=(e,i="")=>{if(!(!e||e._stopResolving)){if(Array.isArray(e))e.forEach((e,t)=>n(e,`${i}[${t}]`));else if("object"==typeof e)for(let o in e){let a=i?`${i}.${o}`:o;(e.component&&e._uid||"link"===e.type)&&(this._insertRelations(e,o,t,r),this._insertLinks(e,o,r)),n(e[o],a)}}};n(e.content)}async resolveLinks(e,t,r){let n=[];if(e.link_uuids){let r=e.link_uuids.length,i=[],o=50;for(let t=0;t<r;t+=o){let n=Math.min(r,t+o);i.push(e.link_uuids.slice(t,n))}for(let e=0;e<i.length;
2e++)(await this.getStories({per_page:o,language:t.language,version:t.version,starts_with:t.starts_with,by_uuids:i[e].join(",")})).data.stories.forEach(e=>{n.push(e)})}else n=e.links;n.forEach(e=>{this.links[r][e.uuid]={...e,_stopResolving:!0}})}async resolveRelations(e,t,r){let n=[];if(e.rel_uuids){let r=e.rel_uuids.length,i=[],o=50;for(let t=0;t<r;t+=o){let n=Math.min(r,t+o);i.push(e.rel_uuids.slice(t,n))}for(let e=0;e<i.length;e++)(await this.getStories({per_page:o,language:t.language,version:t.version,starts_with:t.starts_with,by_uuids:i[e].join(","),excluding_fields:t.excluding_fields})).data.stories.forEach(e=>{n.push(e)});n.length>0&&(e.rels=n,delete e.rel_uuids)}else n=e.rels;n&&n.length>0&&n.forEach(e=>{this.relations[r][e.uuid]={...e,_stopResolving:!0}})}async resolveStories(e,t,r){var n,i;let o=[];if(this.links[r]={},this.relations[r]={},"u">typeof t.resolve_relations&&t.resolve_relations.length>0&&("string"==typeof t.resolve_relations&&(o=t.resolve_relations.split(",")),await this.resolveRelations(e,t,r)),t.resolve_links&&["1","story","url","link"].includes(t.resolve_links)&&(null!=(n=e.links)&&n.length||null!=(i=e.link_uuids)&&i.length)&&await this.resolveLinks(e,t,r),this.resolveNestedRelations)for(let e in this.relations[r])this.iterateTree(this.relations[r][e],o,r);e.story?this.iterateTree(e.story,o,r):e.stories.forEach(e=>{this.iterateTree(e,o,r)}),this.stringifiedStoriesCache={},delete this.links[r],delete this.relations[r]}async cacheResponse(e,t,r,n){let i=T({url:e,params:t}),o=this.cacheProvider();if("published"===t.version&&"/cdn/spaces/me"!==e){let e=await o.get(i);if(e)return Promise.resolve(e)}let a=!S(e)&&this.rateLimitConfig.isManagementApi?U:void 0,s=H(e,t,this.rateLimitConfig,a);return new Promise(async(a,u)=>{var c;try{let r=await this.throttleManager.execute(s,"get",e,t,n);if(200!==r.status)return u(r);let l={data:r.data,headers:r.headers},f=V(r.headers);if((null==f?void 0:f.max)!==void 0&&(this.rateLimitConfig.serverHeadersRateLimit=f.max),null!=(c=r.headers)&&c["per-page"]&&(l=Object.assign({},l,{perPage:r.headers["per-page"]?Number.parseInt(r.headers["per-page"]):0,total:r.headers["per-page"]?Number.parseInt(r.headers.total):0})),l.data.story||l.data.stories){let e=this.resolveCounter=++this.resolveCounter%1e3;await this.resolveStories(l.data,t,`${e}`),l=await this.processInlineAssets(l)}"published"===t.version&&"/cdn/spaces/me"!==e&&await o.set(i,l);let d="onpreview"===this.cache.clear&&"draft"===t.version||"auto"===this.cache.clear;return t.token&&l.data.cv&&(d&&Y[t.token]&&Y[t.token]!==l.data.cv&&await this.flushCache(),Y[t.token]=l.data.cv),a(l)}catch(n){if(n.response&&429===n.status&&(r=typeof r>"u"?0:r+1)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${this.retriesDelay/1e3} seconds.`),await x(this.retriesDelay),this.cacheResponse(e,t,r).then(a).catch(u);u(n)}})}throttledRequest(e,t,r,n){return this.client.setFetchOptions(n),this.client[e](t,r)}cacheVersions(){return Y}cacheVersion(){return Y[this.accessToken]}setCacheVersion(e){this.accessToken&&(Y[this.accessToken]=e)}clearCacheVersion(){this.accessToken&&(Y[this.accessToken]=0)}cacheProvider(){switch(this.cache.type){case"memory":return{get:e=>Promise.resolve(K[e]),getAll:()=>Promise.resolve(K),set:(e,t)=>(K[e]=t,Promise.resolve(void 0)),flush:()=>(K={},Promise.resolve(void 0))};case"custom":if(this.cache.custom)return this.cache.custom;default:return{get:()=>Promise.resolve(),getAll:()=>Promise.resolve(void 0),set:()=>Promise.resolve(void 0),flush:()=>Promise.resolve(void 0)}}}async flushCache(){return await this.cacheProvider().flush(),this.clearCacheVersion(),this}async processInlineAssets(e){if(!this.inlineAssets)return e;let t=r=>{if(!r||"object"!=typeof r)return r;if(Array.isArray(r))return r.map(e=>t(e));let n={...r};for(let r in"asset"===n.fieldtype&&Array.isArray(e.data.assets)&&(n={...e.data.assets.find(e=>e.id===n.id),...n}),n)"object"==typeof n[r]&&(n[r]=t(n[r]));return n};return e.data.story&&(e.data.story.content=t(e.data.story.content)),e.data.stories&&(e.data.stories=e.data.stories.map(e=>(e.content=t(e.content),e))),e}};let J=(e={})=>{let{apiOptions:t}=e;return t&&t.accessToken?{storyblokApi:new X(t)}:void console.error("You need to provide an access token to interact with Storyblok API. Read https://www.storyblok.com/docs/api/content-delivery#topics/authentication")},Z=e=>{if("object"!=typeof e||typeof e._editable>"u")return{};try{let t=JSON.parse(e._editable.replace(/^<!--#storyblok#/,"").replace(/-->$/,""));return t?{"data-blok-c":JSON.stringify(t),"data-blok-uid":`${t.id}-${t.uid}`}:{}}catch{return{}}},Q="https://app.storyblok.com/f/storyblok-v2-latest.js",ee=(e,t,r={})=>{var n;let i=!(typeof window>"u")&&"u">typeof window.storyblokRegisterEvent,o=new URL(null==(n=window.location)?void 0:n.href).searchParams.get("_storyblok"),a=null!==o&&+o===e;if(!(!i||!a)){if(!e)return void console.warn("Story ID is not defined. Please provide a valid ID.");window.storyblokRegisterEvent(()=>{new window.StoryblokBridge(r).on(["input","published","change"],r=>{var n;r&&("input"===r.action&&(null==(n=r.story)?void 0:n.id)===e?t(r.story):("change"===r.action||"published"===r.action)&&r.storyId===e&&window.location.reload())})})}},et=(e={})=>{var t,r;let{bridge:n,accessToken:i,use:o=[],apiOptions:a={},bridgeUrl:s}=e;a.accessToken=a.accessToken||i;let u={bridge:n,apiOptions:a},c={};
2o.forEach(e=>{c={...c,...e(u)}}),s&&(Q=s);let l=!(typeof window>"u")&&(null==(r=null==(t=window.location)?void 0:t.search)?void 0:r.includes("_storyblok_tk"));return!1!==n&&l&&w(Q),c},er=null,en=new Map,ei=!1,eo=null;globalThis.storyCache=globalThis.storyCache||new Map;let ea=()=>er,es=e=>{er=e},eu=e=>(Object.entries(e).forEach(([e,t])=>{en.set(e,t)}),en),ec=e=>en.has(e)?en.get(e):(console.error(`Component ${e} doesn't exist.`),!1),el=()=>ei,ef=e=>{ei=e},ed=()=>eo,eh=e=>{eo=e},ep=(e={})=>{let t=ea();if(t)return()=>t;let{storyblokApi:r}=et(e);return es(r),e.components&&eu(e.components),void 0!==e.enableFallbackComponent&&ef(e.enableFallbackComponent),e.customFallbackComponent&&eh(e.customFallbackComponent),()=>r};var eg=r(37876);let eb=(0,n.forwardRef)(({blok:e,...t},r)=>{if(!e)return console.error("Please provide a 'blok' property to the StoryblokComponent"),(0,eg.jsx)("div",{children:"Please provide a blok property to the StoryblokComponent"});let n=ec(e.component);if(n)return(0,eg.jsx)(n,{ref:r,blok:e,...t});if(el()){let r=ed();return r?(0,eg.jsx)(r,{blok:e,...t}):(0,eg.jsx)(eg.Fragment,{children:(0,eg.jsxs)("p",{children:["Component could not be found for blok"," ",(0,eg.jsx)("strong",{children:e.component}),"! Is it configured correctly?"]})})}return(0,eg.jsx)("div",{})});eb.displayName="StoryblokComponent";let ev=(e=null,t={})=>{let[r,i]=(0,n.useState)(null),o=(null==e?void 0:e.id)??null;return(0,n.useEffect)(()=>{i(null)},[o]),(0,n.useEffect)(()=>{"u">typeof window&&"u">typeof window.storyblokRegisterEvent&&o&&ee(o,e=>i(e),t)},[o,t]),r&&r.id===o?r:e};function em(e,{isServerContext:t=!1}={}){return function(r){var i,o;let a=null==(i=null==r?void 0:r.attrs)?void 0:i.body;if(!Array.isArray(a)||0===a.length)return[];let s=(null==(o=r.attrs)?void 0:o.id)||(t?`fallback-key-${JSON.stringify(r.attrs)}`:void 0);return a.map((t,r)=>n.createElement(e,{blok:t,key:`${s}-${r}`}))}}let ey=function(e,{isServerContext:t=!1}={}){return function(r){let i=em(e,{isServerContext:t}),{resolvers:o,...a}=r;return m({...t?r:{},renderFn:n.createElement,textFn:e=>n.createElement(n.Fragment,{key:Math.random().toString(36).substring(2,15)},e),resolvers:{[s.COMPONENT]:i,...o},keyedResolvers:!0,...t?{}:a})}}(eb,{isServerContext:!1});function e_(e){return e.replace(/-([a-z])/g,e=>e[1].toUpperCase())}function ew(e){return e.split(";").reduce((e,t)=>{let[r,n]=t.split(":");return r=null==r?void 0:r.trim(),n=null==n?void 0:n.trim(),r&&n&&(e[e_(r)]=n),e},{})}function eS(e){if(Array.isArray(e))return e.map(e=>eS(e));let t={allowfullscreen:"allowFullScreen",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",charset:"charSet",class:"className",colspan:"colSpan",colwidth:"colWidth",contenteditable:"contentEditable",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formnovalidate:"formNoValidate",frameborder:"frameBorder",inputmode:"inputMode",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",minlength:"minLength",
2novalidate:"noValidate",playsinline:"playsInline",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",srcset:"srcSet",tabindex:"tabIndex",targetAttr:"targetattr",usemap:"useMap"},r=Object.keys(e.props).reduce((r,n)=>{let i=e.props[n];return"style"===n&&"string"==typeof i&&(i=ew(i)),r[t[n]||n]=i,r},{});r.key=e.key;let i=n.Children.map(e.props.children,e=>"string"==typeof e?e:eS(e));return n.createElement(e.type,r,i)}(0,n.forwardRef)(({doc:e,resolvers:t},r)=>{let{render:n}=ey({resolvers:t}),i=eS(n(e));return(0,eg.jsx)("div",{ref:r,children:i})})},61664:(e,t,r)=>{"use strict";e.exports=r(52468).getPrototypeOf||null},62241:(e,t,r)=>{"use strict";r.r(t),r.d(t,{snakeCase:()=>l});var n=r(4902);function i(e){return e.toLowerCase()}var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],a=/[^A-Z0-9]+/gi;function s(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,n=void 0===r?o:r,s=t.stripRegexp,c=void 0===s?a:s,l=t.transform,f=void 0===l?i:l,d=t.delimiter,h=void 0===d?" ":d,p=u(u(e,n,"$1\0$2"),c,"\0"),g=0,b=p.length;"\0"===p.charAt(g);)g++;for(;"\0"===p.charAt(b-1);)b--;return p.slice(g,b).split("\0").map(f).join(h)}function u(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(e,t){return e.replace(t,r)},e)}function c(e,t){return void 0===t&&(t={}),s(e,(0,n.Cl)({delimiter:"."},t))}function l(e,t){return void 0===t&&(t={}),c(e,(0,n.Cl)({delimiter:"_"},t))}},63426:(e,t,r)=>{var n="/",i=r(82909).Buffer,o=r(99742);!function(){var t={7160:function(e,t,r){var n=t;n.bignum=r(711),n.define=r(495).define,n.base=r(853),n.constants=r(7335),n.decoders=r(6
vendor: 5,061 bytes, line 2
2701),n.encoders=r(3418)},495:function(e,t,r){var n=r(7160),i=r(3782);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(6144).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},6483:function(e,t,r){var n=r(3782),i=r(853).Reporter,o=r(4300).Buffer;function a(e,t){if(i.call(this,t),!o.isBuffer(e))return void this.error("Input not Buffer");this.base=e,this.offset=0,this.length=e.length}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.C=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},853:function(e,t,r){var n=t;n.Reporter=r(1293).b,n.DecoderBuffer=r(6483).C,n.EncoderBuffer=r(6483).R,n.Node=r(9374)},9374:function(e,t,r){var n=r(853).Reporter,i=r(853).EncoderBuffer,o=r(853).DecoderBuffer,a=r(3523),s=["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"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),c=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function l(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=l;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){var e=this._baseState,t={};f.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},l.prototype._wrap=function(){var e=this._baseState;u.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},l.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0),t[e[r]]=r}),t}))}
vendor: 5,926 bytes, line 2
2,c.forEach(function(e){l.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(e){l.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),l.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},l.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){var r,n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var u=null;if(null!==n.explicit?u=n.explicit:null!==n.implicit?u=n.implicit:null!==n.tag&&(u=n.tag),null!==u||n.any){if(a=this._peekTag(e,u,n.any),e.isError(a))return a}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(c)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var l=this._decodeTag(e,n.explicit);if(e.isError(l))return l;e=l}var f=e.offset;if(null===n.use&&null===n.choice){if(n.any)var c=e.save();var d=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(d))return d;n.any?i=e.raw(c):e=d}if(t&&t.track&&null!==n.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(r){r._decode(e,t)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var h=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(h,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null!==n.key&&(null!==i||!0===a)?e.leaveKey(s,n.key,i):null!==s&&e.exitKey(s),i},l.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,n.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&n.args)return this._decodeObjid(t,n.args[0],n.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);else if("null_"===e)return this._decodeNull(t,r);else if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,n.args&&n.args[0],r);return null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},l.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return(Object.keys(r.choice).some(function(o){var a=e.save(),s=r.choice[o];try{var u=s._decode(e,t);if(e.isError(u))return!1;n={type:o,value:u},i=!0}catch(t){return e.restore(a),!1}return!0},this),i)?n:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},l.prototype._encodeValue=function(e,t,r){var i,o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new n);var i=null;if(this.reporter=t,o.optional&&void 0===e)if(null===o.default)return;else e=o.default;var a=null,s=!1;if(o.any)i=this._createEncoderBuffer(e);else if(o.choice)i=this._encodeChoice(e,t);else if(o.contains)a=this._getUse(o.contains,r)._encode(e,t),s=!0;else if(o.children)a=o.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===o.tag||"setof"===o.tag){if(!(o.args&&1===o.args.length))return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},u))}else null!==o.use?i=this._getUse(o.use,r)._encode(e,t):(a=this._encodePrimitive(o.tag,e),s=!0);if(!o.any&&null===o.choice){var c=null!==o.implicit?o.implicit:o.tag,l=null===o.implicit?"universal":"context";null===c?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(i=this._encodeComposite(c,s,l,a))}return null!==o.explicit&&(i=this._encodeComposite(o.explicit,!1,"context",i
2)),i},l.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();else if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);else if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},1293:function(e,t,r){var n=r(3782);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.b=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},9791:function(e,t,r){var n=r(7335);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.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"},t.tagByName=n._reverse(t.tag)},7335:function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t},n.der=r(9791)},2259:function(e,t,r){var n=r(3782),i=r(7160),o=i.base,a=i.bignum,s=i.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function l(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=(32&r)==0;if((31&r)==31){var o=r;for(r=0;(128&o)==128;){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;var a=s.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function f(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if((128&n)==0)return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var a=e.readUInt8(r);if(e.isError(a))return a;n|=a}return n}e.exports=u,u.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(c,o.Node),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=l(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){var n=l(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=f(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r,n=l(e,t);if(e.isError(n))return n;var i=f(e,n.primitive,t);if(e.isError(i))return i;if(r=n.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=r.decode(e,"der",n);if(e.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();else if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}else if(/str$/.test(t))return e.raw().toString();else return e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var a=e.readUInt8();o<<=7,o|=127&a,(128&a)==0&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");var n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,u,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var r=new a(e.raw());return t&&(r=t[r.toString(10)]||r),r},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},6701:function(e,t,r){var n=t;n.der=r(2259),n.pem=r(8527)},8527:function(e,t,r){var n=r(3782),i=r(4300).Buffer,o=r(2259);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,c=0;c<r.length;c++){var l=r[c].match(a);if(null!==l&&l[2]===n)if(-1===s){if("BEGIN"!==l[1])break;s=c}else{if("END"!==l[1])break;u=c;break}}if(-1===s||-1===u)throw Error("PEM section not found for: "+n);var f=r.slice(s+1,u).join("");
2f.replace(/[^a-z0-9\+\/=]+/gi,"");var d=new i(f,"base64");return o.prototype.decode.call(this,d,t)}},7804:function(e,t,r){var n=r(3782),i=r(4300).Buffer,o=r(7160),a=o.base,s=o.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.Node.call(this,"der",e)}function l(e){return e<10?"0"+e:e}function f(e,t,r,n){var i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6)}e.exports=u,u.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(c,a.Node),c.prototype._encodeComposite=function(e,t,r,n){var o=f(e,t,r,this.reporter);if(n.length<128){var a=new i(2);return a[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var s=1,u=n.length;u>=256;u>>=8)s++;var a=new i(2+s);a[0]=o,a[1]=128|s;for(var u=1+s,c=n.length;c>0;u--,c>>=8)a[u]=255&c;return this._createEncoderBuffer([a,n])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}if("numstr"===t)return this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space");if("printstr"===t)return this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark");if(/str$/.test(t))return this._createEncoderBuffer(e);else if("objDesc"===t)return this._createEncoderBuffer(e);else return this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,n=0;n<e.length;n++){var a=e[n];for(o++;a>=128;a>>=7)o++}for(var s=new i(o),u=s.length-1,n=e.length-1;n>=0;n--){var a=e[n];for(s[u--]=127&a;(a>>=7)>0;)s[u--]=128|127&a}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=""+l(n.getFullYear())+l(n.getUTCMonth()+1)+l(n.getUTCDate())+l(n.getUTCHours())+l(n.getUTCMinutes())+l(n.getUTCSeconds())+"Z":"utctime"===t?r=""+l(n.getFullYear()%100)+l(n.getUTCMonth()+1)+l(n.getUTCDate())+l(n.getUTCHours())+l(n.getUTCMinutes())+l(n.getUTCSeconds())+"Z":this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var n=1,a=e;a>=256;a>>=8)n++;for(var o=Array(n),a=o.length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(255*!!e)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;
vendor: 4,911 bytes, line 2
2var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},3418:function(e,t,r){var n=t;n.der=r(7804),n.pem=r(1564)},1564:function(e,t,r){var n=r(3782),i=r(7804);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},711:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{u=r(4300).Buffer}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n<<=4,a>=49&&a<=54?n|=a-49+10:a>=17&&a<=22?n|=a-17+10:n|=15&a}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,s>=49?i+=s-49+10:s>=17?i+=s-17+10:i+=s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i<this.length;i++)this.words[i]=0;var o=0;for(i=e.length-6,r=0;i>=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<<o&0x3ffffff,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<<o&0x3ffffff,this.words[r+1]|=n>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,u=Math.min(o,o-a)+r,c=0,l=r;l<u;l+=n)c=s(e,l,l+n,t),this.imuln(i),this.words[0]+c<0x4000000?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=s(e,l,e.length,t),l=0;l<a;l++)f*=t;this.imuln(f),this.words[0]+c<0x4000000?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u,c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,0x2000000,0x290d741,0x1000000,
vendor: 4,559 bytes, line 2
20x2e90edd,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 d(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=0x3ffffff&a,u=a/0x4000000|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=0x3ffffff&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/0x4000000|0,f=0x3ffffff&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=((s<<i|o)&0xffffff).toString(16);r=0!=(o=s>>>24-i&0xffffff)||a!==this.length-1?c[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],h=f[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?g+r:c[d-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==u),this.toArrayLike(u,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,a=this.byteLength(),s=r||Math.max(1,a);n(a<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var u="le"===t,c=new e(s),l=this.clone();if(u){for(o=0;!l.isZero();o++)i=l.andln(255),l.iushrn(8),c[o]=i;for(;o<s;o++)c[o]=0}else{for(o=0;o<s-a;o++)c[o]=0;for(o=0;!l.isZero();o++)i=l.andln(255),l.iushrn(8),c[s-o-1]=i}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;
vendor: 13,540 bytes, line 2
2n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=0x3ffffff&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&0x3ffffff>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=0x3ffffff&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=0x3ffffff&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,g=h>>>13,b=0|a[2],v=8191&b,m=b>>>13,y=0|a[3],_=8191&y,w=y>>>13,S=0|a[4],E=8191&S,x=S>>>13,k=0|a[5],A=8191&k,M=k>>>13,R=0|a[6],T=8191&R,C=R>>>13,I=0|a[7],O=8191&I,P=I>>>13,L=0|a[8],N=8191&L,D=L>>>13,B=0|a[9],j=8191&B,U=B>>>13,F=0|s[0],z=8191&F,H=F>>>13,V=0|s[1],q=8191&V,$=V>>>13,G=0|s[2],W=8191&G,K=G>>>13,Y=0|s[3],X=8191&Y,J=Y>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],eu=8191&es,ec=es>>>13,el=0|s[8],ef=8191&el,ed=el>>>13,eh=0|s[9],ep=8191&eh,eg=eh>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(f,z);var eb=(c+n|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(d,z)|0))<<13)|0;c=((o=Math.imul(d,H))+(i>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H),n=n+Math.imul(f,q)|0;var ev=(c+n|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(m,z)|0,o=Math.imul(m,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(g,q)|0,o=o+Math.imul(g,$)|0,n=n+Math.imul(f,W)|0;var em=(c+n|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(d,W)|0))<<13)|0;c=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(_,z),i=(i=Math.imul(_,H))+Math.imul(w,z)|0,o=Math.imul(w,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,$)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,K)|0,n=n+Math.imul(f,X)|0;var ey=(c+n|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,X)|0))<<13)|0;c=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(_,q)|0,i=(i=i+Math.imul(_,$)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(f,Q)|0;var e_=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,$)|0,n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(f,er)|0;var ew=(c+n|0)+((8191&(i=(i=i+Math.imul(f,en)|0)+Math.imul(d,er)|0))<<13)|0;c=((o=o+Math.imul(d,en)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(C,z)|0,o=Math.imul(C,H),n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,K)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,en)|0,n=n+Math.imul(f,eo)|0;var eS=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ea)|0)+Math.imul(d,eo)|0))<<13)|0;c=((o=o+Math.imul(d,ea)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(O,z),i=(i=Math.imul(O,H))+Math.imul(P,z)|0,o=Math.imul(P,H),n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,$)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,$)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(v,er)|0,i=(i=i+Math.imul(v,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,ea)|0,n=n+Math.imul(f,eu)|0;var eE=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ec)|0)+Math.imul(d,eu)|0))<<13)|0;c=((o=o+Math.imul(d,ec)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(P,q)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,er)|0,i=(i=i+Math.imul(_,en)|0)+Math.imul(w,er)|0,o=o+Math.imul(w,en)|0,n=n+Math.imul(v,eo)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0,n=n+Math.imul(p,eu)|0,i=(i=i+Math.imul(p,ec)|0)+Math.imul(g,eu)|0,o=o+Math.imul(g,ec)|0,n=n+Math.imul(f,ef)|0;var ex=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ed)|0)+Math.imul(d,ef)|0))<<13)|0;c=((o=o+Math.imul(d,ed)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(U,z)|0,o=Math.imul(U,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,$)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,$)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(x,er)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(_,eo)|0,i=(i=i+Math.imul(_,ea)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,ea)|0,n=n+Math.imul(v,eu)|0,i=(i=i+Math.imul(v,ec)|0)+Math.imul(m,eu)|0,o=o+Math.imul(m,ec)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(g,ef)|0,o=o+Math.imul(g,ed)|0,n=n+Math.imul(f,ep)|0;var ek=(c+n|0)+((8191&(i=(i=i+Math.imul(f,eg)|0)+Math.imul(d,ep)|0))<<13)|0;c=((o=o+Math.imul(d,eg)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(j,q),i=(i=Math.imul(j,$))+Math.imul(U,q)|0,o=Math.imul(U,$),n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(O,X)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,ea)|0,n=n+Math.imul(_,eu)|0,i=(i=i+Math.imul(_,ec)|0)+Math.imul(w,eu)|0,o=o+Math.imul(w,ec)|0,n=n+Math.imul(v,ef)|0,i=(i=i+Math.imul(v,ed)|0)+Math.imul(m,ef)|0,o=o+Math.imul(m,ed)|0,n=n+Math.imul(p,ep)|0;var eA=(c+n|0)+((8191&(i=(i=i+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;c=((o=o+Math.imul(g,eg)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(j,W),i=(i=Math.imul(j,K))+Math.imul(U,W)|0,o=Math.imul(U,K),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(T,er)|0,i=(i=i+Math.imul(T,en)|0)+Math.imul(C,er)|0,o=o+Math.imul(C,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,ea)|0,n=n+Math.imul(E,eu)|0,i=(i=i+Math.imul(E,ec)|0)+Math.imul(x,eu)|0,o=o+Math.imul(x,ec)|0,n=n+Math.imul(_,ef)|0,i=(i=i+Math.imul(_,ed)|0)+Math.imul(w,ef)|0,o=o+Math.imul(w,ed)|0,n=n+Math.imul(v,ep)|0;var eM=(c+n|0)+((8191&(i=(i=i+Math.imul(v,eg)|0)+Math.imul(m,ep)|0))<<13)|0;c=((o=o+Math.imul(m,eg)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(j,X),i=(i=Math.imul(j,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(O,er)|0,i=(i=i+Math.imul(O,en)|0)+Math.imul(P,er)|0,o=o+Math.imul(P,en)|0,n=n+Math.imul(T,eo)|0,i=(i=i+Math.imul(T,ea)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,ea)|0,n=n+Math.imul(A,eu)|0,i=(i=i+Math.imul(A,ec)|0)+Math.imul(M,eu)|0,o=o+Math.imul(M,ec)|0,n=n+Math.imul(E,ef)|0,i=(i=i+Math.imul(E,ed)|0)+Math.imul(x,ef)|0,o=o+Math.imul(x,ed)|0,n=n+Math.imul(_,ep)|0;var eR=(c+n|0)+((8191&(i=(i=i+Math.imul(_,eg)|0)+Math.imul(w,ep)|0))<<13)|0;c=((o=o+Math.imul(w,eg)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(j,Q),i=(i=Math.imul(j,ee))+Math.imul(U,Q)|0,o=Math.imul(U,ee),n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(D,er)|0,o=o+Math.imul(D,en)|0,n=n+Math.imul(O,eo)|0,i=(i=i+Math.imul(O,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,n=n+Math.imul(T,eu)|0,i=(i=i+Math.imul(T,ec)|0)+Math.imul(C,eu)|0,o=o+Math.imul(C,ec)|0,n=n+Math.imul(A,ef)|0,i=(i=i+Math.imul(A,ed)|0)+Math.imul(M,ef)|0,o=o+Math.imul(M,ed)|0,n=n+Math.imul(E,ep)|0;var eT=(c+n|0)+((8191&(i=(i=i+Math.imul(E,eg)|0)+Math.imul(x,ep)|0))<<13)|0;c=((o=o+Math.imul(x,eg)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(j,er),i=(i=Math.imul(j,en))+Math.imul(U,er)|0,o=Math.imul(U,en),n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,ea)|0,n=n+Math.imul(O,eu)|0,i=(i=i+Math.imul(O,ec)|0)+Math.imul(P,eu)|0,o=o+Math.imul(P,ec)|0,n=n+Math.imul(T,ef)|0,i=(i=i+Math.imul(T,ed)|0)+Math.imul(C,ef)|0,o=o+Math.imul(C,ed)|0,n=n+Math.imul(A,ep)|0;var eC=(c+n|0)+((8191&(i=(i=i+Math.imul(A,eg)|0)+Math.imul(M,ep)|0))<<13)|0;c=((o=o+Math.imul(M,eg)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,n=Math.imul(j,eo),i=(i=Math.imul(j,ea))+Math.imul(U,eo)|0,o=Math.imul(U,ea),n=n+Math.imul(N,eu)|0,i=(i=i+Math.imul(N,ec)|0)+Math.imul(D,eu)|0,o=o+Math.imul(D,ec)|0,n=n+Math.imul(O,ef)|0,i=(i=i+Math.imul(O,ed)|0)+Math.imul(P,ef)|0,o=o+Math.imul(P,ed)|0,n=n+Math.imul(T,ep)|0;var eI=(c+n|0)+((8191&(i=(i=i+Math.imul(T,eg)|0)+Math.imul(C,ep)|0))<<13)|0;c=((o=o+Math.imul(C,eg)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(j,eu),i=(i=Math.imul(j,ec))+Math.imul(U,eu)|0,o=Math.imul(U,ec),n=n+Math.imul(N,ef)|0,i=(i=i+Math.imul(N,ed)|0)+Math.imul(D,ef)|0,o=o+Math.imul(D,ed)|0,n=n+Math.imul(O,ep)|0;var eO=(c+n|0)+((8191&(i=(i=i+Math.imul(O,eg)|0)+Math.imul(P,ep)|0))<<13)|0;c=((o=o+Math.imul(P,eg)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(j,ef),i=(i=Math.imul(j,ed))+Math.imul(U,ef)|0,o=Math.imul(U,ed),n=n+Math.imul(N,ep)|0;var eP=(c+n|0)+((8191&(i=(i=i+Math.imul(N,eg)|0)+Math.imul(D,ep)|0))<<13)|0;c=((o=o+Math.imul(D,eg)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,n=Math.imul(j,ep);var eL=(c+n|0)+((8191&(i=(i=Math.imul(j,eg))+Math.imul(U,ep)|0))<<13)|0;return c=((o=Math.imul(U,eg))+(i>>>13)|0)+(eL>>>26)|0,eL&=0x3ffffff,u[0]=eb,u[1]=ev,u[2]=em,u[3]=ey,u[4]=e_,u[5]=ew,u[6]=eS,u[7]=eE,u[8]=ex,u[9]=ek,u[10]=eA,u[11]=eM,u[12]=eR,u[13]=eT,u[14]=eC,u[15]=eI,u[16]=eO,u[17]=eP,u[18]=eL,0!==c&&(u[19]=c,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=0x3ffffff&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var l=o-c,f=(0|e.words[l])*(0|t.words[c]),d=0x3ffffff&f;a=a+(f/0x4000000|0)|0,s=0x3ffffff&(d=d+s|0),i+=(a=a+(d>>>
vendor: 6,529 bytes, line 2
226)|0)>>>26,a&=0x3ffffff}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}function b(e,t,r){return(new v).mulp(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?g(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},v.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},v.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=r[l+h],g=n[l+h],b=r[l+h+a],v=n[l+h+a],m=f*b-d*v;v=f*v+d*b,b=m,r[l+h]=p+b,n[l+h]=g+v,r[l+h+a]=p-b,n[l+h+a]=g-v,h!==s&&(m=u*f-c*d,d=u*d+c*f,f=m)}},v.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},v.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=0x3ffffff&i,r=i<0x4000000?0:i/0x4000000|0}return e},v.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},v.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},v.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),u=Array(n),c=Array(n),l=Array(n),f=Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,l,f,n,i);for(var h=0;h<n;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),b(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<0x4000000);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(0x3ffffff&i)+(0x3ffffff&t);t>>=26,t+=(i/0x4000000|0)+(o>>>26),this.words[r]=0x3ffffff&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=d(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=0x3ffffff>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0);var i=t?(t-t%26)/26:0,o=e%26,a=Math.min((e-o)/26,this.length),s=0x3ffffff^0x3ffffff>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=0x3ffffff^0x3ffffff>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;o-=0x3ffffff&u,s=(o>>26)-(u/0x4000000|0),this.words[i+r]=0x3ffffff&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>
vendor: 14,554 bytes, line 2
226,this.words[i+r]=0x3ffffff&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=0x3ffffff&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var u=i.length-a.length;if("mod"!==t){(r=new o(null)).length=u+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var l=i.clone()._ishlnsubmul(a,1,u);0===l.negative&&(i=l,r&&(r.words[u]=1));for(var f=u-1;f>=0;f--){var d=(0|i.words[a.length+f])*0x4000000+(0|i.words[a.length+f-1]);for(d=Math.min(d/s|0,0x3ffffff),i._ishlnsubmul(a,d,f);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,f),i.isZero()||(i.negative^=1);r&&(r.words[f]=d)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=0x3ffffff);for(var t=0x4000000%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=0x3ffffff);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+0x4000000*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;(t.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;(r.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,l=1;(r.words[0]&l)==0&&c<26;++c,l<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;(i.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(i.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=0x3ffffff,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(_,y),_.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=0x3ffffff&t,t=64*n+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,y),i(S,y),i(E,y),E.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=0x3ffffff&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(m[e])return m[e];if("k256"===e)t=new _;else if("p224"===e)t=new w;else if("p192"===e)t=new S;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return m[e]=t,t},x.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,b=0;0!==g.cmp(s);b++)g=g.redSqr();n(b<p);var v=this.pow(f,new o(1).iushln(p-b-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=b}return d},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var a=n[0],s=0,u=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var l=t.words[i],f=c-1;f>=0;f--){var d=l>>f&1;if(a!==n[0]&&(a=this.sqr(a)),0===d&&0===s){u=0;continue}s<<=1,s|=d,(++u===r||0===i&&0===f)&&(a=this.mul(a,n[s]),u=0,s=0)}c=26}return a},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,x),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},1670:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 4,225 bytes, line 2
2"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{l=r(4300).Buffer}catch(e){}function a(e,t,r){for(var i=0,o=Math.min(e.length,r),a=0,s=t;s<o;s++){var u,c=e.charCodeAt(s)-48;i<<=4,i|=u=c>=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,a|=u}return n(!(240&a),"Invalid character in "+e),i}function s(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u<s;u++){var c=e.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&0x3ffffff,this.words[i+1]=o>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,i++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,n,i=0;i<this.length;i++)this.words[i]=0;var o=0;for(i=e.length-6,r=0;i>=t;i-=6)n=a(e,i,i+6),this.words[r]|=n<<o&0x3ffffff,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==t&&(n=a(e,t,i+6),this.words[r]|=n<<o&0x3ffffff,this.words[r+1]|=n>>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,u=Math.min(o,o-a)+r,c=0,l=r;l<u;l+=n)c=s(e,l,l+n,t),this.imuln(i),this.words[0]+c<0x4000000?this.words[0]+=c:this._iaddn(c);if(0!==a){var f=1;for(c=s(e,l,e.length,t),l=0;l<a;l++)f*=t;this.imuln(f),this.words[0]+c<0x4000000?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){u(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c:o.prototype.inspect=c;var l,f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,0x2000000,0x290d741,0x1000000,
vendor: 18,572 bytes, line 2
20x2e90edd,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];o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=((s<<i|o)&0xffffff).toString(16);r=0!=(o=s>>>24-i&0xffffff)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modrn(l).toString(e);r=(p=p.idivn(l)).isZero()?g+r:f[c-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},l&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(l,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var p=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function g(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}function b(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=0x3ffffff&a,u=a/0x4000000|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=0x3ffffff&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/0x4000000|0,f=0x3ffffff&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=p(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=0x3ffffff&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&0x3ffffff>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=0x3ffffff&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=0x3ffffff&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=0x3ffffff&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var v=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,g=h>>>13,b=0|a[2],v=8191&b,m=b>>>13,y=0|a[3],_=8191&y,w=y>>>13,S=0|a[4],E=8191&S,x=S>>>13,k=0|a[5],A=8191&k,M=k>>>13,R=0|a[6],T=8191&R,C=R>>>13,I=0|a[7],O=8191&I,P=I>>>13,L=0|a[8],N=8191&L,D=L>>>13,B=0|a[9],j=8191&B,U=B>>>13,F=0|s[0],z=8191&F,H=F>>>13,V=0|s[1],q=8191&V,$=V>>>13,G=0|s[2],W=8191&G,K=G>>>13,Y=0|s[3],X=8191&Y,J=Y>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],eu=8191&es,ec=es>>>13,el=0|s[8],ef=8191&el,ed=el>>>13,eh=0|s[9],ep=8191&eh,eg=eh>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(f,z);var eb=(c+n|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(d,z)|0))<<13)|0;c=((o=Math.imul(d,H))+(i>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H),n=n+Math.imul(f,q)|0;var ev=(c+n|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(m,z)|0,o=Math.imul(m,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(g,q)|0,o=o+Math.imul(g,$)|0,n=n+Math.imul(f,W)|0;var em=(c+n|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(d,W)|0))<<13)|0;c=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(_,z),i=(i=Math.imul(_,H))+Math.imul(w,z)|0,o=Math.imul(w,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,$)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,$)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,K)|0,n=n+Math.imul(f,X)|0;var ey=(c+n|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,X)|0))<<13)|0;c=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(E,z),i=(i=Math.imul(E,H))+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(_,q)|0,i=(i=i+Math.imul(_,$)|0)+Math.imul(w,q)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,J)|0,n=n+Math.imul(f,Q)|0;var e_=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(x,q)|0,o=o+Math.imul(x,$)|0,n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(f,er)|0;var ew=(c+n|0)+((8191&(i=(i=i+Math.imul(f,en)|0)+Math.imul(d,er)|0))<<13)|0;c=((o=o+Math.imul(d,en)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(C,z)|0,o=Math.imul(C,H),n=n+Math.imul(A,q)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(M,q)|0,o=o+Math.imul(M,$)|0,n=n+Math.imul(E,W)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,K)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,en)|0,n=n+Math.imul(f,eo)|0;var eS=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ea)|0)+Math.imul(d,eo)|0))<<13)|0;c=((o=o+Math.imul(d,ea)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(O,z),i=(i=Math.imul(O,H))+Math.imul(P,z)|0,o=Math.imul(P,H),n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,$)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,$)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(v,er)|0,i=(i=i+Math.imul(v,en)|0)+Math.imul(m,er)|0,o=o+Math.imul(m,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,ea)|0,n=n+Math.imul(f,eu)|0;var eE=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ec)|0)+Math.imul(d,eu)|0))<<13)|0;c=((o=o+Math.imul(d,ec)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(O,q)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(P,q)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,er)|0,i=(i=i+Math.imul(_,en)|0)+Math.imul(w,er)|0,o=o+Math.imul(w,en)|0,n=n+Math.imul(v,eo)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(m,eo)|0,o=o+Math.imul(m,ea)|0,n=n+Math.imul(p,eu)|0,i=(i=i+Math.imul(p,ec)|0)+Math.imul(g,eu)|0,o=o+Math.imul(g,ec)|0,n=n+Math.imul(f,ef)|0;var ex=(c+n|0)+((8191&(i=(i=i+Math.imul(f,ed)|0)+Math.imul(d,ef)|0))<<13)|0;c=((o=o+Math.imul(d,ed)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(U,z)|0,o=Math.imul(U,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,$)|0)+Math.imul(D,q)|0,o=o+Math.imul(D,$)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(x,er)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(_,eo)|0,i=(i=i+Math.imul(_,ea)|0)+Math.imul(w,eo)|0,o=o+Math.imul(w,ea)|0,n=n+Math.imul(v,eu)|0,i=(i=i+Math.imul(v,ec)|0)+Math.imul(m,eu)|0,o=o+Math.imul(m,ec)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(g,ef)|0,o=o+Math.imul(g,ed)|0,n=n+Math.imul(f,ep)|0;var ek=(c+n|0)+((8191&(i=(i=i+Math.imul(f,eg)|0)+Math.imul(d,ep)|0))<<13)|0;c=((o=o+Math.imul(d,eg)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(j,q),i=(i=Math.imul(j,$))+Math.imul(U,q)|0,o=Math.imul(U,$),n=n+Math.imul(N,W)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(O,X)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,er)|0,i=(i=i+Math.imul(A,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,ea)|0,n=n+Math.imul(_,eu)|0,i=(i=i+Math.imul(_,ec)|0)+Math.imul(w,eu)|0,o=o+Math.imul(w,ec)|0,n=n+Math.imul(v,ef)|0,i=(i=i+Math.imul(v,ed)|0)+Math.imul(m,ef)|0,o=o+Math.imul(m,ed)|0,n=n+Math.imul(p,ep)|0;var eA=(c+n|0)+((8191&(i=(i=i+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;c=((o=o+Math.imul(g,eg)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(j,W),i=(i=Math.imul(j,K))+Math.imul(U,W)|0,o=Math.imul(U,K),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(T,er)|0,i=(i=i+Math.imul(T,en)|0)+Math.imul(C,er)|0,o=o+Math.imul(C,en)|0,n=n+Math.imul(A,eo)|0,i=(i=i+Math.imul(A,ea)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,ea)|0,n=n+Math.imul(E,eu)|0,i=(i=i+Math.imul(E,ec)|0)+Math.imul(x,eu)|0,o=o+Math.imul(x,ec)|0,n=n+Math.imul(_,ef)|0,i=(i=i+Math.imul(_,ed)|0)+Math.imul(w,ef)|0,o=o+Math.imul(w,ed)|0,n=n+Math.imul(v,ep)|0;var eM=(c+n|0)+((8191&(i=(i=i+Math.imul(v,eg)|0)+Math.imul(m,ep)|0))<<13)|0;c=((o=o+Math.imul(m,eg)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(j,X),i=(i=Math.imul(j,J))+Math.imul(U,X)|0,o=Math.imul(U,J),n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(O,er)|0,i=(i=i+Math.imul(O,en)|0)+Math.imul(P,er)|0,o=o+Math.imul(P,en)|0,n=n+Math.imul(T,eo)|0,i=(i=i+Math.imul(T,ea)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,ea)|0,n=n+Math.imul(A,eu)|0,i=(i=i+Math.imul(A,ec)|0)+Math.imul(M,eu)|0,o=o+Math.imul(M,ec)|0,n=n+Math.imul(E,ef)|0,i=(i=i+Math.imul(E,ed)|0)+Math.imul(x,ef)|0,o=o+Math.imul(x,ed)|0,n=n+Math.imul(_,ep)|0;var eR=(c+n|0)+((8191&(i=(i=i+Math.imul(_,eg)|0)+Math.imul(w,ep)|0))<<13)|0;c=((o=o+Math.imul(w,eg)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(j,Q),i=(i=Math.imul(j,ee))+Math.imul(U,Q)|0,o=Math.imul(U,ee),n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(D,er)|0,o=o+Math.imul(D,en)|0,n=n+Math.imul(O,eo)|0,i=(i=i+Math.imul(O,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,n=n+Math.imul(T,eu)|0,i=(i=i+Math.imul(T,ec)|0)+Math.imul(C,eu)|0,o=o+Math.imul(C,ec)|0,n=n+Math.imul(A,ef)|0,i=(i=i+Math.imul(A,ed)|0)+Math.imul(M,ef)|0,o=o+Math.imul(M,ed)|0,n=n+Math.imul(E,ep)|0;var eT=(c+n|0)+((8191&(i=(i=i+Math.imul(E,eg)|0)+Math.imul(x,ep)|0))<<13)|0;c=((o=o+Math.imul(x,eg)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(j,er),i=(i=Math.imul(j,en))+Math.imul(U,er)|0,o=Math.imul(U,en),n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,ea)|0,n=n+Math.imul(O,eu)|0,i=(i=i+Math.imul(O,ec)|0)+Math.imul(P,eu)|0,o=o+Math.imul(P,ec)|0,n=n+Math.imul(T,ef)|0,i=(i=i+Math.imul(T,ed)|0)+Math.imul(C,ef)|0,o=o+Math.imul(C,ed)|0,n=n+Math.imul(A,ep)|0;var eC=(c+n|0)+((8191&(i=(i=i+Math.imul(A,eg)|0)+Math.imul(M,ep)|0))<<13)|0;c=((o=o+Math.imul(M,eg)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,n=Math.imul(j,eo),i=(i=Math.imul(j,ea))+Math.imul(U,eo)|0,o=Math.imul(U,ea),n=n+Math.imul(N,eu)|0,i=(i=i+Math.imul(N,ec)|0)+Math.imul(D,eu)|0,o=o+Math.imul(D,ec)|0,n=n+Math.imul(O,ef)|0,i=(i=i+Math.imul(O,ed)|0)+Math.imul(P,ef)|0,o=o+Math.imul(P,ed)|0,n=n+Math.imul(T,ep)|0;var eI=(c+n|0)+((8191&(i=(i=i+Math.imul(T,eg)|0)+Math.imul(C,ep)|0))<<13)|0;c=((o=o+Math.imul(C,eg)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(j,eu),i=(i=Math.imul(j,ec))+Math.imul(U,eu)|0,o=Math.imul(U,ec),n=n+Math.imul(N,ef)|0,i=(i=i+Math.imul(N,ed)|0)+Math.imul(D,ef)|0,o=o+Math.imul(D,ed)|0,n=n+Math.imul(O,ep)|0;var eO=(c+n|0)+((8191&(i=(i=i+Math.imul(O,eg)|0)+Math.imul(P,ep)|0))<<13)|0;c=((o=o+Math.imul(P,eg)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(j,ef),i=(i=Math.imul(j,ed))+Math.imul(U,ef)|0,o=Math.imul(U,ed),n=n+Math.imul(N,ep)|0;var eP=(c+n|0)+((8191&(i=(i=i+Math.imul(N,eg)|0)+Math.imul(D,ep)|0))<<13)|0;c=((o=o+Math.imul(D,eg)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,n=Math.imul(j,ep);var eL=(c+n|0)+((8191&(i=(i=Math.imul(j,eg))+Math.imul(U,ep)|0))<<13)|0;return c=((o=Math.imul(U,eg))+(i>>>13)|0)+(eL>>>26)|0,eL&=0x3ffffff,u[0]=eb,u[1]=ev,u[2]=em,u[3]=ey,u[4]=e_,u[5]=ew,u[6]=eS,u[7]=eE,u[8]=ex,u[9]=ek,u[10]=eA,u[11]=eM,u[12]=eR,u[13]=eT,u[14]=eC,u[15]=eI,u[16]=eO,u[17]=eP,u[18]=eL,0!==c&&(u[19]=c,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=0x3ffffff&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var l=o-c,f=(0|e.words[l])*(0|t.words[c]),d=0x3ffffff&f;a=a+(f/0x4000000|0)|0,s=0x3ffffff&(d=d+s|0),i+=(a=a+(d>>>
vendor: 5,303 bytes, line 2
226)|0)>>>26,a&=0x3ffffff}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function y(e,t,r){return m(e,t,r)}function _(e,t){this.x=e,this.y=t}Math.imul||(v=b),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?v(this,e,t):r<63?b(this,e,t):r<1024?m(this,e,t):y(this,e,t)},_.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},_.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},_.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},_.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,h=0;h<a;h++){var p=r[l+h],g=n[l+h],b=r[l+h+a],v=n[l+h+a],m=f*b-d*v;v=f*v+d*b,b=m,r[l+h]=p+b,n[l+h]=g+v,r[l+h+a]=p-b,n[l+h+a]=g-v,h!==s&&(m=u*f-c*d,d=u*d+c*f,f=m)}},_.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},_.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=0x3ffffff&i,r=i<0x4000000?0:i/0x4000000|0}return e},_.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},_.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},_.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),u=Array(n),c=Array(n),l=Array(n),f=Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,l,f,n,i);for(var h=0;h<n;h++){var p=s[h]*l[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*l[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),y(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<0x4000000);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(0x3ffffff&o)+(0x3ffffff&r);r>>=26,r+=(o/0x4000000|0)+(a>>>26),this.words[i]=0x3ffffff&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=g(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=0x3ffffff>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0);var i=t?(t-t%26)/26:0,o=e%26,a=Math.min((e-o)/26,this.length),s=0x3ffffff^0x3ffffff>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=0x3ffffff^0x3ffffff>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?
vendor: 11,616 bytes, line 2
2(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;o-=0x3ffffff&u,s=(o>>26)-(u/0x4000000|0),this.words[i+r]=0x3ffffff&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=0x3ffffff&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=0x3ffffff&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var u=i.length-a.length;if("mod"!==t){(r=new o(null)).length=u+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var l=i.clone()._ishlnsubmul(a,1,u);0===l.negative&&(i=l,r&&(r.words[u]=1));for(var f=u-1;f>=0;f--){var d=(0|i.words[a.length+f])*0x4000000+(0|i.words[a.length+f-1]);for(d=Math.min(d/s|0,0x3ffffff),i._ishlnsubmul(a,d,f);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,f),i.isZero()||(i.negative^=1);r&&(r.words[f]=d)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0x4000000%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+0x4000000*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;(t.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;(r.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,l=1;(r.words[0]&l)==0&&c<26;++c,l<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;(i.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(i.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=0x3ffffff,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new M(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function S(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){S.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){S.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){S.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){S.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function R(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}S.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},S.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},S.prototype.split=function(e,t){e.iushrn(this.n,0,t)},S.prototype.imulK=function(e){return e.imul(this.k)},i(E,S),E.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(i=10,t.words[t.length++]=o&r;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},E.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=0x3ffffff&t,t=64*n+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(x,S),i(k,S),i(A,S),A.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;
vendor: 7,158 bytes, line 2
2r++){var n=(0|e.words[r])*19+t,i=0x3ffffff&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(w[e])return w[e];if("k256"===e)t=new E;else if("p224"===e)t=new x;else if("p192"===e)t=new k;else if("p25519"===e)t=new A;else throw Error("Unknown prime "+e);return w[e]=t,t},M.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var g=h,b=0;0!==g.cmp(s);b++)g=g.redSqr();n(b<p);var v=this.pow(f,new o(1).iushln(p-b-1));d=d.redMul(v),f=v.redSqr(),h=h.redMul(f),p=b}return d},M.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},M.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,n=Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var a=n[0],s=0,u=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var l=t.words[i],f=c-1;f>=0;f--){var d=l>>f&1;if(a!==n[0]&&(a=this.sqr(a)),0===d&&0===s){u=0;continue}s<<=1,s|=d,(++u===r||0===i&&0===f)&&(a=this.mul(a,n[s]),u=0,s=0)}c=26}return a},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new R(e)},i(R,M),R.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},R.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},R.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},R.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},R.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},3500:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=r(6113);if("function"!=typeof o.randomBytes)throw Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},1387:function(e,t,r){var n=r(6911).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(var t=0;t<e.length;e++)e[t]=0}function a(e,t,r,n,i){for(var o,a,s,u,c=r[0],l=r[1],f=r[2],d=r[3],h=e[0]^t[0],p=e[1]^t[1],g=e[2]^t[2],b=e[3]^t[3],v=4,m=1;m<i;m++)o=c[h>>>24]^l[p>>>16&255]^f[g>>>8&255]^d[255&b]^t[v++],a=c[p>>>24]^l[g>>>16&255]^f[b>>>8&255]^d[255&h]^t[v++],s=c[g>>>24]^l[b>>>16&255]^f[h>>>8&255]^d[255&p]^t[v++],u=c[b>>>24]^l[h>>>16&255]^f[p>>>8&255]^d[255&g]^t[v++],h=o,p=a,g=s,b=u;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[g>>>8&255]<<8|n[255&b])^t[v++],a=(n[p>>>24]<<24|n[g>>>16&255]<<16|n[b>>>8&255]<<8|n[255&h])^t[v++],s=(n[g>>>24]<<24|n[b>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[v++],[o>>>=0,a>>>=0,s>>>=0,u=((n[b>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&g])^t[v++])>>>0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var l=e[a],f=e[l],d=e[f],h=257*e[c]^0x1010100*c;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=0x1010101*d^65537*f^257*l^0x1010100*a,o[0][c]=h<<24|h>>>8,o[1][c]=h<<16|h>>>16,o[2][c]=h<<8|h>>>24,o[3][c]=h,0===a?a=s=1:(a=l^e[e[e[d^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=(r+1)*4,i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=(u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a])^s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var c=[],l=0;l<n;l++){var f=n-l,d=i[f-(l%4?0:4)];l<4||f<=4?c[l]=d:c[l]=u.INV_SUB_MIX[0][u.SBOX[d>>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nR
2ounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},6624:function(e,t,r){var n=r(1387),i=r(6911).Buffer,o=r(1043),a=r(3782),s=r(7225),u=r(4734),c=r(598);function l(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}function f(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var u=8*o,l=i.alloc(8);l.writeUIntBE(u,0,8),n.update(l),e._finID=n.state;var f=i.from(e._finID);return c(f),f}function d(e,t,r,a){o.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(t);var c=this._cipher.encryptBlock(u);this._ghash=new s(c),r=f(this,r,c),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(d,o),d.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&l(e,this._authTag))throw Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},d.prototype.setAuthTag=function(e){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=e},d.prototype.setAAD=function(e){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=d},6594:function(e,t,r){var n=r(2),i=r(2598),o=r(5866);function a(){return Object.keys(o)}t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=a},2598:function(e,t,r){var n=r(6624),i=r(6911).Buffer,o=r(6370),a=r(126),s=r(1043),u=r(1387),c=r(8368);function l(e,t,r){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function d(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function h(e,t,r){var s=o[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new l(s.module,t,r)}r(3782)(l,s),l.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return d(this._mode.decrypt(this,e));if(e)throw Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=i.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},t.createDecipheriv=h},2:function(e,t,r){var n=r(6370),i=r(6624),o=r(6911).Buffer,a=r(126),s=r(1043),u=r(1387),c=r(8368);function l(e,t,r){s.call(this),this._cache=new d,this._cipher=new u.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(3782)(l,s),l.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var f=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new l(s.module,t,r)}function p(e,t){var r=n[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var i=c(t,!1,r.key,r.iv);
2return h(e,i.key,i.iv)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=p},7225:function(e,t,r){var n=r(6911).Buffer,i=n.alloc(16,0);function o(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,r=o(this.h),n=[0,0,0,0],i=-1;++i<128;){for((this.state[~~(i/8)]&1<<7-i%8)!=0&&(n[0]^=r[0],n[1]^=r[1],n[2]^=r[2],n[3]^=r[3]),t=(1&r[3])!=0,e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=-0x1f000000^r[0])}this.state=a(n)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=s},598:function(e){e.exports=function(e){for(var t,r=e.length;r--;)if(255===(t=e.readUInt8(r)))e.writeUInt8(0,r);else{t++,e.writeUInt8(t,r);break}}},9825:function(e,t,r){var n=r(4734);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;return e._prev=t,n(e._cipher.decryptBlock(t),r)}},321:function(e,t,r){var n=r(6911).Buffer,i=r(4734);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;)if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),e._cache.length<=t.length)i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i);else{a=n.concat([a,o(e,t,r)]);break}return a}},3147:function(e,t,r){var n=r(6911).Buffer;function i(e,t,r){for(var n,i,a,s=-1,u=8,c=0;++s<u;)n=e._cipher.encryptBlock(e._prev),i=t&1<<7-s?128:0,c+=(128&(a=n[0]^i))>>s%8,e._prev=o(e._prev,r?i:a);return c}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},2430:function(e,t,r){var n=r(6911).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},3361:function(e,t,r){var n=r(4734),i=r(6911).Buffer,o=r(598);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}var s=16;t.encrypt=function(e,t){var r=Math.ceil(t.length/s),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(r*s)]);for(var u=0;u<r;u++){var c=a(e),l=o+u*s;e._cache.writeUInt32BE(c[0],l+0),e._cache.writeUInt32BE(c[1],l+4),e._cache.writeUInt32BE(c[2],l+8),e._cache.writeUInt32BE(c[3],l+12)}var f=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,f)}},1590:function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},6370:function(e,t,r){var n={ECB:r(1590),CBC:r(9825),CFB:r(321),CFB8:r(2430),CFB1:r(3147),OFB:r(3412),CTR:r(3361),GCM:r(3361)},i=r(5866);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},3412:function(e,t,r){var n=r(4734);function o(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=i.concat([e._cache,o(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,r)}},126:function(e,t,r){var n=r(1387),i=r(6911).Buffer,o=r(1043);function a(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}r(3782)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},8996:function(e,t,r){var n=r(5238),i=r(6594),o=r(6370),a=r(6280),s=r(8368);function u(e,t){if(o[e=e.toLowerCase()])r=o[e].key,n=o[e].iv;else if(a[e])r=8*a[e].key,n=a[e].iv;else throw TypeError("invalid suite type");var r,n,i=s(t,!1,r,n);return l(e,i.key,i.iv)}function c(e,t,r){if(o[e=e.toLowerCase()])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw TypeError("invalid suite type")}function l(e,t,r){if(o[e=e.toLowerCase()])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw TypeError("invalid suite type")}function f(){return Object.keys(a).concat(i.getCiphers())}t.createCipher=t.Cipher=function(e,t){if(o[e=e.toLowerCase()])r=o[e].key,n=o[e].iv;else if(a[e])r=8*a[e].key,n=a[e].iv;else throw TypeError("invalid suite type");var r,n,i=s(t,!1,r,n);return c(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=u,t.createDecipheriv=t.Decipheriv=l,t.listCiphers=t.getCiphers=f},5238:function(e,t,r){var n=r(1043),i=r(9536),o=r(3782),a=r(6911).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),("des-ede"===r||"des-ede-cbc"===r)&&(o=a.concat([o,o.slice(0,8)]));var u=e.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:o,iv:u,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=u,o(u,n),u.prototype._update=function(e){return a.from(this._des.update(e))},u.prototype._final=function(){return a.from(this._des.final())}},6280:function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},7166:function(e,t,r){var n=r(711),o=r(7223);function a(e){var t=u(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function s(e,t){var r=a(t),o=t.modulus.byteLength();n.mont(t.modulus);var s=new n(e).mul(r.blinder).umod(t.modulus),u=s.toRed(n.mont(t.prime1)),c=s.toRed(n.mont(t.prime2)),l=t.coefficient,f=t.prime1,d=t.prime2,h=u.redPow(t.exponent1),p=c.redPow(t.exponent2);h=h.fromRed(),p=p.fromRed();var g=h.isub(p).imul(l).umod(f);return g.imul(d),p.iadd(g),new i(p.imul(r.unblinder).umod(t.modulus).toArray(!1,o))}function u(e){for(var t=e.modulus.byteLength(),r=new n(o(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(o(t));return r}e.exports=s,s.getr=u},9276:function(e,t,r){e.exports=r(2908)},4078:function(e,t,r){var n=r(6911).Buffer,i=r(9739),o=r(3726),a=r(3782),s=r(9807),u=r(4013),c=r(2908);function l(e){o.Writable.call(this);var t=c[e];if(!t)throw Error("Unknown message digest");
vendor: 6,064 bytes, line 2
2this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){o.Writable.call(this);var t=c[e];if(!t)throw Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new l(e)}function h(e){return new f(e)}Object.keys(c).forEach(function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]}),a(l,o.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},l.prototype.sign=function(e,t){this.end();var r=s(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(f,o.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},f.prototype.verify=function(e,t,r){return"string"==typeof t&&(t=n.from(t,r)),this.end(),u(t,this._hash.digest(),e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},9807:function(e,t,r){var n=r(6911).Buffer,i=r(4873),o=r(7166),a=r(949).ec,s=r(1670),u=r(9902),c=r(9267);function l(e,t){var r=c[t.curve.join(".")];if(!r)throw Error("unknown curve "+t.curve.join("."));var i=new a(r).keyFromPrivate(t.privateKey).sign(e);return n.from(i.toDER())}function f(e,t,r){for(var n,i=t.params.priv_key,o=t.params.p,a=t.params.q,u=t.params.g,c=new s(0),l=p(e,a).mod(a),f=!1,g=h(i,a,e,r);!1===f;)c=v(u,n=b(a,g,r),o,a),0===(f=n.invm(a).imul(l.add(i.mul(c))).mod(a)).cmpn(0)&&(f=!1,c=new s(0));return d(c,f)}function d(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}function h(e,t,r,o){if((e=n.from(e.toArray())).length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=r.length,u=g(r,t),c=n.alloc(s);c.fill(1);var l=n.alloc(s);return l=i(o,l).update(c).update(n.from([0])).update(e).update(u).digest(),c=i(o,l).update(c).digest(),l=i(o,l).update(c).update(n.from([1])).update(e).update(u).digest(),c=i(o,l).update(c).digest(),{k:l,v:c}}function p(e,t){var r=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function g(e,t){e=(e=p(e,t)).mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}function b(e,t,r){var o,a;do{for(o=n.alloc(0);8*o.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),o=n.concat([o,t.v]);a=p(o,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function v(e,t,r,n){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,t,r,i,a){var s=u(t);if(s.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");return l(e,s)}if("dsa"===s.type){if("dsa"!==i)throw Error("wrong private key type");return f(e,s,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw Error("wrong private key type");e=n.concat([a,e]);for(var c=s.modulus.byteLength(),d=[0,1];e.length+d.length+1<c;)d.push(255);d.push(0);for(var h=-1;++h<e.length;)d.push(e[h]);return o(d,s)},e.exports.getKey=h,e.exports.makeKey=b},4013:function(e,t,r){var n=r(6911).Buffer,i=r(1670),o=r(949).ec,a=r(9902),s=r(9267);function u(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}function c(e,t,r){var n=r.data.p,o=r.data.q,s=r.data.g,u=r.data.pub_key,c=a.signature.decode(e,"der"),f=c.s,d=c.r;l(f,o),l(d,o);var h=i.mont(n),p=f.invm(o);return 0===s.toRed(h).redPow(new i(t).mul(p).mod(o)).fromRed().mul(u.toRed(h).redPow(d.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(d)}function l(e,t){if(0>=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}e.exports=function(e,t,r,o,s){var l=a(r);if("ec"===l.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw Error("wrong public key type");return u(e,t,l)}if("dsa"===l.type){if("dsa"!==o)throw Error("wrong public key type");return c(e,t,l)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw Error("wrong public key type");t=n.concat([s,t]);for(var f=l.modulus.byteLength(),d=[1],h=0;t.length+d.length+2<f;)d.push(255),h++;d.push(0);for(var p=-1;++p<t.length;)d.push(t[p]);d=n.from(d);var g=i.mont(l.modulus);e=(e=new i(e).toRed(g)).redPow(new i(l.publicExponent));var b=+(h<8);for(f=Math.min((e=n.from(e.fromRed().toArray())).length,d.length),e.length!==d.length&&(b=1),p=-1;++p<f;)b|=e[p]^d[p];return 0===b}},4734:function(e){e.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new i(r),o=0;o<r;++o)n[o]=e[o]^t[o];return n}},1043:function(e,t,r){var n=r(6911).Buffer,i=r(2781).Transform,o=r(1576).StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3782)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a}
vendor: 7,079 bytes, line 2
2,9942:function(e,t,r){var n=r(949),o=r(711);e.exports=function(e){return new s(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function u(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new i(e);if(r&&n.length<r){var o=new i(r-n.length);o.fill(0),n=i.concat([o,n])}return t?n.toString(t):n}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,t,r){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),u(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),u(r,e)},s.prototype.getPrivateKey=function(e){return u(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,t){t=t||"utf8",i.isBuffer(e)||(e=new i(e,t));var r=new o(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}},9739:function(e,t,r){"use strict";var n=r(3782),i=r(3533),o=r(3225),a=r(4371),s=r(1043);function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},450:function(e,t,r){var n=r(3533);e.exports=function(e){return(new n).update(e).digest()}},4873:function(e,t,r){"use strict";var n=r(3782),i=r(8119),o=r(1043),a=r(6911).Buffer,s=r(450),u=r(3225),c=r(4371),l=a.alloc(128);function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new u:c(e)).update(t).digest():t.length<r&&(t=a.concat([t,l],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new u:c(e),this._hash.update(n)}n(f,o),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:c(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new i(s,t):new f(e,t)}},8119:function(e,t,r){"use strict";var n=r(3782),i=r(6911).Buffer,o=r(1043),a=i.alloc(128),s=64;function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=i.concat([t,a],s));for(var r=this._ipad=i.allocUnsafe(s),n=this._opad=i.allocUnsafe(s),u=0;u<s;u++)r[u]=54^t[u],n[u]=92^t[u];this._hash=[r]}n(u,o),u.prototype._update=function(e){this._hash.push(e)},u.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=u},9536:function(e,t,r){"use strict";t.utils=r(5334),t.Cipher=r(9876),t.DES=r(1016),t.CBC=r(8641),t.EDE=r(6159)},8641:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,r,n);for(var s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,e,t,r,n);for(var s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(var s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},9876:function(e,t,r){"use strict";var n=r(3523);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=Array(((this.bufferOff+e.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(n,r)));for(var i=e.length-(e.length-t)%this.blockSize;t<i;t+=this.blockSize)this._update(e,t,n,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return n},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},1016:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o=r(5334),a=r(9876);function s(){this.tmp=[,,],this.keys=null}function u(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(u,a),e.exports=u,u.create=function(e){return new u(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=c[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},u.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt
vendor: 5,072 bytes, line 2
2(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,n,i){for(var a=t,s=r,u=0;u<e.keys.length;u+=2){var c=e.keys[u],l=e.keys[u+1];o.expand(s,e.tmp,0),c^=e.tmp[0],l^=e.tmp[1];var f=o.substitute(c,l),d=o.permute(f),h=s;s=(a^d)>>>0,a=h}o.rip(s,a,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,u=e.keys.length-2;u>=0;u-=2){var c=e.keys[u],l=e.keys[u+1];o.expand(a,e.tmp,0),c^=e.tmp[0],l^=e.tmp[1];var f=o.substitute(c,l),d=o.permute(f),h=a;a=(s^d)>>>0,s=h}o.rip(a,s,n,i)}},6159:function(e,t,r){"use strict";var n=r(3523),i=r(3782),o=r(9876),a=r(1016);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);"encrypt"===e?this.ciphers=[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:this.ciphers=[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function u(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(u,o),e.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},5334:function(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(var a=6;a>=0;a-=2){for(var s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(var s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(var a=4;a<8;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(var a=1;a<=3;a++){for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&0xfffffff|e>>>28-t};var r=[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];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,u=0;u<s;u++)o<<=1,o|=e>>>r[u]&1;for(var u=s;u<r.length;u++)a<<=1,a|=t>>>r[u]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(var o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var n=[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];t.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var o=e>>>18-6*i&63,a=n[64*i+o];r<<=4,r|=a}for(var i=0;i<4;i++){var o=t>>>18-6*i&63,a=n[256+64*i+o];r<<=4,r|=a}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<i.length;r++)t<<=1,t|=e>>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},6587:function(e,t,r){var n=r(296),o=r(7992),a=r(373),s={binary:!0,hex:!0,base64:!0};function u(e,t,r,o){return i.isBuffer(t)||void 0===s[t]?u(e,"binary",t,r):(t=t||"b
2inary",o=o||"binary",r=r||new i([2]),i.isBuffer(r)||(r=new i(r,o)),"number"==typeof e)?new a(n(e,r),r,!0):(i.isBuffer(e)||(e=new i(e,t)),new a(e,r,!0))}t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){return new a(new i(o[e].prime,"hex"),new i(o[e].gen,"hex"))},t.createDiffieHellman=t.DiffieHellman=u},373:function(e,t,r){var n=r(711),o=new(r(1354)),a=new n(24),s=new n(11),u=new n(10),c=new n(3),l=new n(7),f=r(296),d=r(7223);function h(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._pub=new n(e),this}function p(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._priv=new n(e),this}e.exports=v;var g={};function b(e,t){var r,n=t.toString("hex"),i=[n,e.toString(16)].join("_");if(i in g)return g[i];var d=0;if(e.isEven()||!f.simpleSieve||!f.fermatTest(e)||!o.test(e))return d+=1,"02"===n||"05"===n?d+=8:d+=4,g[i]=d,d;switch(!o.test(e.shrn(1))&&(d+=2),n){case"02":e.mod(a).cmp(s)&&(d+=8);break;case"05":(r=e.mod(u)).cmp(c)&&r.cmp(l)&&(d+=8);break;default:d+=4}return g[i]=d,d}function v(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function m(e,t){var r=new i(e.toArray());return t?r.toString(t):r}Object.defineProperty(v.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=b(this.__prime,this.__gen)),this._primeCode}}),v.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},v.prototype.computeSecret=function(e){var t=new i((e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),r=this.getPrime();if(t.length<r.length){var o=new i(r.length-t.length);o.fill(0),t=i.concat([o,t])}return t},v.prototype.getPublicKey=function(e){return m(this._pub,e)},v.prototype.getPrivateKey=function(e){return m(this._priv,e)},v.prototype.getPrime=function(e){return m(this.__prime,e)},v.prototype.getGenerator=function(e){return m(this._gen,e)},v.prototype.setGenerator=function(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this.__gen=e,this._gen=new n(e),this}},296:function(e,t,r){var n=r(7223);e.exports=m,m.simpleSieve=b,m.fermatTest=v;var i=r(711),o=new i(24),a=new(r(1354)),s=new i(1),u=new i(2),c=new i(5);new i(16),new i(8);var l=new i(10),f=new i(3);new i(7);var d=new i(11),h=new i(4);new i(12);var p=null;function g(){if(null!==p)return p;var e=1048576,t=[];t[0]=2;for(var r=1,n=3;n<e;n+=2){for(var i=Math.ceil(Math.sqrt(n)),o=0;o<r&&t[o]<=i&&n%t[o]!=0;o++);r!==o&&t[o]<=i||(t[r++]=n)}return p=t,t}function b(e){for(var t=g(),r=0;r<t.length;r++)if(0===e.modn(t[r]))if(0!==e.cmpn(t[r]))return!1;else break;return!0}function v(e){var t=i.mont(e);return 0===u.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function m(e,t){var r,p;if(e<16)if(2===t||5===t)return new i([140,123]);else return new i([140,39]);for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(c))for(;r.mod(l).cmp(f);)r.iadd(h)}else for(;r.mod(o).cmp(d);)r.iadd(h);if(b(p=r.shrn(1))&&b(r)&&v(p)&&v(r)&&a.test(p)&&a.test(r))return r}}},949:function(e,t,r){"use strict";var n=t;n.version=r(2531).i8,n.utils=r(4401),n.rand=r(3500),n.curve=r(9359),n.curves=r(6226),n.ec=r(4088),n.eddsa=r(8511)},2727:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}
vendor: 16,627 bytes, line 2
2function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw Error("Not implemented")},u.prototype.validate=function(){throw Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var a=[],u=0;u<n.length;u+=r.step){for(var c=0,t=u+r.step-1;t>=u;t--)c=(c<<1)+n[t];a.push(c)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=i;d>0;d--){for(var u=0;u<a.length;u++){var c=a[u];c===d?f=f.mixedAdd(r.points[u]):c===-d&&(f=f.mixedAdd(r.points[u].neg()))}l=l.add(f)}return l.toP()},u.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),u=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var t=0;c>=0&&0===a[c];c--)t++;if(c>=0&&t++,u=u.dblp(t),c<0)break;var l=a[c];s(0!==l),u="affine"===e.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,c=this._wnafT3,l=0,f=0;f<n;f++){var d=t[f],h=d._getNAFPoints(e);s[f]=h.wnd,u[f]=h.points}for(var f=n-1;f>=1;f-=2){var p=f-1,g=f;if(1!==s[p]||1!==s[g]){c[p]=o(r[p],s[p],this._bitLength),c[g]=o(r[g],s[g],this._bitLength),l=Math.max(c[p].length,l),l=Math.max(c[g].length,l);continue}var b=[t[p],null,null,t[g]];0===t[p].y.cmp(t[g].y)?(b[1]=t[p].add(t[g]),b[2]=t[p].toJ().mixedAdd(t[g].neg())):0===t[p].y.cmp(t[g].y.redNeg())?(b[1]=t[p].toJ().mixedAdd(t[g]),b[2]=t[p].add(t[g].neg())):(b[1]=t[p].toJ().mixedAdd(t[g]),b[2]=t[p].toJ().mixedAdd(t[g].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[p],r[g]);l=Math.max(m[0].length,l),c[p]=Array(l),c[g]=Array(l);for(var y=0;y<l;y++){var _=0|m[0][y],w=0|m[1][y];c[p][y]=v[(_+1)*3+(w+1)],c[g][y]=0,u[p]=b}}for(var S=this.jpoint(null,null,null),E=this._wnafT4,f=l;f>=0;f--){for(var x=0;f>=0;){for(var k=!0,y=0;y<n;y++)E[y]=0|c[y][f],0!==E[y]&&(k=!1);if(!k)break;x++,f--}if(f>=0&&x++,S=S.dblp(x),f<0)break;for(var y=0;y<n;y++){var d,A=E[y];0!==A&&(A>0?d=u[y][A-1>>1]:A<0&&(d=u[y][-A-1>>1].neg()),S="affine"===d.type?S.mixedAdd(d):S.add(d))}}for(var f=0;f<n;f++)u[f]=null;return i?S:S.toP()},u.BasePoint=c,c.prototype.eq=function(){throw Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},2705:function(e,t,r){"use strict";var n=r(4401),i=r(711),o=r(3782),a=r(2727),s=n.assert;function u(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero))if(!t)return this.point(this.zero,e);else throw Error("invalid point");var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),l=i.redMul(s),f=a.redMul(o);return this.curve.point(u,c,f,l)},c.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(a.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var u=this.z.redSqr(),c=s.redSub(u).redISub(u);e=n.redSub(i).redISub(o).redMul(c),t=s.redMul(a.redSub(o)),r=s.redMul(c)}}else{var a=i.redAdd(o),u=this.curve._mulC(this.z).redSqr(),c=a.redSub(u).redSub(u);e=this.curve._mulC(n.redISub(a)).redMul(c),t=this.curve._mulC(a).redMul(i.redISub(o)),r=a.redMul(c)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),l=s.redMul(u),f=o.redMul(u),d=a.redMul(s);return this.curve.point(c,l,d,f)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=n.redMul(u).redMul(l);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(f,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},9359:function(e,t,r){"use strict";var n=t;n.base=r(2727),n.short=r(4720),n.mont=r(6653),n.edwards=r(2705)},6653:function(e,t,r){"use strict";var n=r(711),i=r(3782),o=r(2727),a=r(4401);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},u.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(e,t,r){"use strict";var n=r(4401),i=r(711),o=r(3782),a=r(2727),s=n.assert;function u(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,u,c,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),g=new i(0),b=new i(0),v=new i(1),m=0;0!==d.cmpn(0);){var y=h.div(d);c=h.sub(y.mul(d)),l=b.sub(y.mul(p));var _=v.sub(y.mul(g));if(!n&&0>c.cmp(f))t=u.neg(),r=p,n=c.neg(),o=l;else if(n&&2==++m)break;u=c,h=d,d=c,b=p,p=l,v=g,g=_}a=c.neg(),s=l;var w=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return c},o(c,a.BasePoint),u.prototype.point=function(e,t,r){return new c(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 4,173 bytes, line 2
2omputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return(e=new i(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,a.BasePoint),u.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))if(0!==u.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var c=s.redSqr(),l=c.redMul(s),f=n.redMul(c),d=u.redSqr().redIAdd(l).redISub(f).redISub(f),h=u.redMul(f.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;
vendor: 4,077 bytes, line 2
2var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))if(0!==s.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var u=a.redSqr(),c=u.redMul(a),l=r.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),d=s.redMul(l.redISub(f)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(f,d,h)},l.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}for(var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a),r=0;r<e;r++){var l=o.redSqr(),f=c.redSqr(),d=f.redSqr(),h=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(f),g=h.redSqr().redISub(p.redAdd(p)),b=p.redISub(g),v=h.redMul(b);v=v.redIAdd(v).redISub(d);var m=c.redMul(s);r+1<e&&(u=u.redMul(d)),o=g,s=m,c=v}return this.curve.jpoint(o,c.redMul(i),s)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(l).redISub(d);h=h.redIAdd(h);var p=l.redAdd(l).redIAdd(l),g=p.redSqr(),b=d.redIAdd(d);b=(b=b.redIAdd(b)).redIAdd(b),e=g.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(b),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},l.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),h=this.x.redSub(l).redMul(this.x.redAdd(l));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),g=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var b=f.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),t=h.redMul(p.redISub(e)).redISub(b)}return this.curve.jpoint(e,t,r)},l.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),l=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(l),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(f).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,h,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),l=t.redMul(c);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.x.redMul(s).redISub(l);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(f,d,h)},l.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},l.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)}
vendor: 5,347 bytes, line 2
2,l.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(e,t,r){"use strict";var n,i=t,o=r(7028),a=r(9359),s=r(4401).assert;function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(9702)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
2,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},4088:function(e,t,r){"use strict";var n=r(711),i=r(4910),o=r(4401),a=r(6226),s=r(3500),u=o.assert,c=r(4724),l=r(7526);function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(u(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=f,f.prototype.keyPair=function(e){return new c(this,e)},f.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new n(1)),d=0;;d++){var h=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(f)>=0)continue;var p=this.g.mul(h);if(!p.isInfinity()){var g=p.getX(),b=g.umod(this.n);if(0!==b.cmpn(0)){var v=h.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var m=!!p.getY().isOdd()|2*(0!==g.cmp(b));return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),m^=1),new l({r:b,s:v,recoveryParam:m})}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new l(t,"hex")).r,a=t.s;if(0>o.cmpn(1)||o.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),u=s.mul(e).umod(this.n),c=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var f=this.g.mulAdd(u,r.getPublic(),c);return!f.isInfinity()&&0===f.getX().umod(this.n).cmp(o)}var f=this.g.jmulAdd(u,r.getPublic(),c);return!f.isInfinity()&&f.eqXToP(o)},f.prototype.recoverPubKey=function(e,t,r,i){u((3&r)===r,"The recovery param is more than two bits"),t=new l(t,i);var o=this.n,a=new n(e),s=t.r,c=t.s,f=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),g=c.mul(h).umod(o);return this.g.mulAdd(p,s,g)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},4724:function(e,t,r){"use strict";var n=r(711),i=r(4401).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},7526:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function l(e,t){if(t<128)return void e.push(t);var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=u(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var a=u(e,r);if(!1===a)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var l=u(e,r);if(!1===l||e.length!==l+r.place)return!1;var f=e.slice(r.place,l+r.place);if(0===c[0])if(!(128&c[1]))return!1;else c=c.slice(1);if(0===f[0])if(!(128&f[1]))return!1;else f=f.slice(1);return this.r=new n(c),this.s=new n(f),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var o=n.concat(r),a=[48];return l(a,o.length),a=a.concat(o),i.encode(a,e)}},8511:function(e,t,r){"use strict";var n=r(7028),i=r(6226),o=r(4401),a=o.assert,s=o.parseBytes,u=r(9917),c=r(9314);function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);var e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},l.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=128*!!e.getX().isOdd(),t},l.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=(128&e[t])!=0,i=o.intFromLE(r);return this.curve.pointFromY(i,n)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return o.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},9917:function(e,t,r){"use strict";var n=r(4401),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},9314:function(e,t,r){"use strict";var n=r(711),i=r(4401),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function u(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(u,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(u,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(u,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(u,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},9702:function(e
vendor: 26,140 bytes, line 2
2){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
24401:function(e,t,r){"use strict";var n=t,i=r(711),o=r(3523),a=r(6545);function s(e){return"string"==typeof e?n.toArray(e,"hex"):e}n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s=e.andln(3)+n&3,u=t.andln(3)+i&3;if(3===s&&(s=-1),3===u&&(u=-1),(1&s)==0)o=0;else{var c=e.andln(7)+n&7;o=(3===c||5===c)&&2===u?-s:s}if(r[0].push(o),(1&u)==0)a=0;else{var c=t.andln(7)+i&7;a=(3===c||5===c)&&2===s?-u:u}r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=s,n.intFromLE=function(e){return new i(e,"hex","le")}},8368:function(e,t,r){var n=r(6911).Buffer,i=r(3533);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),c=n.alloc(0);a>0||o>0;){var l=new i;l.update(c),l.update(e),t&&l.update(t),c=l.digest();var f=0;if(a>0){var d=s.length-a;f=Math.min(a,c.length),c.copy(s,d,0,f),a-=f}if(f<c.length&&o>0){var h=u.length-o,p=Math.min(o,c.length-f);c.copy(u,h,f,f+p),o-=p}}return c.fill(0),{key:s,iv:u}}},9029:function(e,t,r){"use strict";var n=r(6911).Buffer,i=r(3726).Transform;function o(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3782)(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(o(e,"Data"),this._finalized)throw Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)r[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var s=0,u=8*e.length;u>0;++s)this._length[s]+=u,(u=this._length[s]/0x100000000|0)>0&&(this._length[s]-=0x100000000*u);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=a},7028:function(e,t,r){var n=t;n.utils=r(263),n.common=r(1330),n.sha=r(301),n.ripemd=r(3079),n.hmac=r(3092),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},1330:function(e,t,r){"use strict";var n=r(263),i=r(3523);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}
vendor: 5,881 bytes, line 2
2t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;o<this.padLength;o++)n[i++]=0;return n}},3092:function(e,t,r){"use strict";var n=r(263),i=r(3523);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=(new this.Hash).update(e);t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},3079:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,c=i.BlockHash;function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function f(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?0x5a827999:e<=47?0x6ed9eba1:e<=63?0x8f1bbcdc:0xa953fd4e}function h(e){return e<=15?0x50a28be6:e<=31?0x5c4dd124:e<=47?0x6d703ef3:0x7a6d76e9*!!(e<=63)}n.inherits(l,c),t.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],l=this.h[4],m=r,y=n,_=i,w=c,S=l,E=0;E<80;E++){var x=a(o(u(r,f(E,n,i,c),e[p[E]+t],d(E)),b[E]),l);r=l,l=c,c=o(i,10),i=n,n=x,x=a(o(u(m,f(79-E,y,_,w),e[g[E]+t],h(E)),v[E]),S),m=S,S=w,w=o(_,10),_=y,y=x}x=s(this.h[1],i,w),this.h[1]=s(this.h[2],c,S),this.h[2]=s(this.h[3],l,m),this.h[3]=s(this.h[4],r,y),this.h[4]=s(this.h[0],n,_),this.h[0]=x},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[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],b=[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],v=[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]},301:function(e,t,r){"use strict";t.sha1=r(2742),t.sha224=r(7105),t.sha256=r(1525),t.sha384=r(9948),t.sha512=r(1319)},2742:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=r(2975),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,l=i.BlockHash,f=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}n.inherits(d,l),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),g=u(a(i,5),c(p,o,l,d),h,r[n],f[p]);h=d,d=l,l=a(o,30),o=i,i=g}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},7105:function(e,t,r){"use strict";var n=r(263),i=r(1525);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},1525:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=r(2975),a=r(3523),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,g=o.g1_256,b=i.BlockHash,v=[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,0xc
vendor: 8,770 bytes, line 2
276c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function m(){if(!(this instanceof m))return new m;b.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=v,this.W=Array(64)}n.inherits(m,b),e.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(g(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],b=this.h[2],v=this.h[3],m=this.h[4],y=this.h[5],_=this.h[6],w=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var S=c(w,h(m),l(m,y,_),this.k[n],r[n]),E=s(d(i),f(i,o,b));w=_,_=y,y=m,m=s(v,S),v=b,b=o,o=i,i=s(S,E)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],b),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],m),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],_),this.h[7]=s(this.h[7],w)},m.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},9948:function(e,t,r){"use strict";var n=r(263),i=r(1319);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},1319:function(e,t,r){"use strict";var n=r(263),i=r(1330),o=r(3523),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,c=n.shr64_lo,l=n.sum64,f=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,g=n.sum64_5_hi,b=n.sum64_5_lo,v=i.BlockHash,m=[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];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=m,this.W=Array(160)}function _(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=0x100000000),o}function w(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=0x100000000),a}function S(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=0x100000000),o}function E(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=0x100000000),a}function x(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=0x100000000),r}function k(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=0x100000000),r}function A(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=0x100000000),r}function M(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=0x100000000),r}function R(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=0x100000000),r}function T(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=0x100000000),r}function C(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=0x100000000),r}function I(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=0x100000000),r}n.inherits(y,v),e.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=C(r[n-4],r[n-3]),o=I(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=R(r[n-30],r[n-29]),c=T(r[n-30],r[n-29]),l=r[n-32],f=r[n-31];r[n]=h(i,o,a,s,u,c,l,f),r[n+1]=p(i,o,a,s,u,c,l,f)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],h=this.h[6],p=this.h[7],v=this.h[8],m=this.h[9],y=this.h[10],R=this.h[11],T=this.h[12],C=this.h[13],I=this.h[14],O=this.h[15];o(this.k.length===r.length);for(var P=0;P<r.length;P+=2){var L=I,N=O,D=A(v,m),B=M(v,m),j=_(v,m,y,R,T,C),U=w(v,m,y,R,T,C),F=this.k[P],z=this.k[P+1],H=r[P],V=r[P+1],q=g(L,N,D,B,j,U,F,z,H,V),$=b(L,N,D,B,j,U,F,z,H,V);L=x(n,i),N=k(n,i);var G=f(L,N,D=S(n,i,a,s,u,c),B=E(n,i,a,s,u,c)),W=d(L,N,D,B);I=T,O=C,T=y,C=R,y=v,R=m,v=f(h,p,q,$),m=d(p,p,q,$),h=u,p=c,u=a,c=s,a=n,s=i,n=f(q,$,G,W),i=d(q,$,G,W)}l(this.h,0,n,i),l(this.h,2,a,s),l(this.h,4,u,c),l(this.h,6,h,p),l(this.h,8,v,m),l(this.h,10,y,R),l(this.h,12,T,C),l(this.h,14,I,O)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},2975:function(e,t,r){"use strict";var n=r(263).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},263:function(e,t,r){"use strict";var n=r(3523);function i(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function o(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;else if(2===e.length)return"000000"+e;else if(1===e.length)return"0000000"+e;else return e}t.inherits=r(3782),t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)r.push(parseInt(e[o]+e[o+1],16))}else for(var n=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?r[n++]=a:(a<2048?r[n++]=a>>6|192:(i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128):r[n++]=a>>12|224,r[n++]=a>>6&63|128),r[n++]=63&a|128)}else for(o=0;o<e.length;o++)r[o]=0|e[o];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=s(i.toString(16))}return r},t.zero2=a,t.zero8=s,t.join32=function(e,t,r,i){var o,a=r-t;n(a%4==0);for(var s=Array(a/4),u=0,c=t;u<s.length;u++,c+=4)o="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[u]=o>>>0;return s},t.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=+(o<n)+r+i;e[t]=a>>>
vendor: 4,564 bytes, line 2
20,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return+(t+n>>>0<t)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u,c=t;return e+r+i+a+(u=0+ +((c=c+n>>>0)<t)+ +((c=c+o>>>0)<o)+ +((c=c+s>>>0)<s))>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l,f=t;return e+r+i+a+u+(l=0+ +((f=f+n>>>0)<t)+ +((f=f+o>>>0)<o)+ +((f=f+s>>>0)<s)+ +((f=f+c>>>0)<c))>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},4910:function(e,t,r){"use strict";var n=r(7028),i=r(6545),o=r(3523);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=0x1000000000000},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},3782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3533:function(e,t,r){"use strict";var n=r(3782),i=r(9029),o=r(6911).Buffer,a=Array(16);function s(){i.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476}function u(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,e[0],0xd76aa478,7),o=c(o,r,n,i,e[1],0xe8c7b756,12),i=c(i,o,r,n,e[2],0x242070db,17),n=c(n,i,o,r,e[3],0xc1bdceee,22),r=c(r,n,i,o,e[4],0xf57c0faf,7),o=c(o,r,n,i,e[5],0x4787c62a,12),i=c(i,o,r,n,e[6],0xa8304613,17),n=c(n,i,o,r,e[7],0xfd469501,22),r=c(r,n,i,o,e[8],0x698098d8,7),o=c(o,r,n,i,e[9],0x8b44f7af,12),i=c(i,o,r,n,e[10],0xffff5bb1,17),n=c(n,i,o,r,e[11],0x895cd7be,22),r=c(r,n,i,o,e[12],0x6b901122,7),o=c(o,r,n,i,e[13],0xfd987193,12),i=c(i,o,r,n,e[14],0xa679438e,17),n=c(n,i,o,r,e[15],0x49b40821,22),r=l(r,n,i,o,e[1],0xf61e2562,5),o=l(o,r,n,i,e[6],0xc040b340,9),i=l(i,o,r,n,e[11],0x265e5a51,14),n=l(n,i,o,r,e[0],0xe9b6c7aa,20),r=l(r,n,i,o,e[5],0xd62f105d,5),o=l(o,r,n,i,e[10],0x2441453,9),i=l(i,o,r,n,e[15],0xd8a1e681,14),n=l(n,i,o,r,e[4],0xe7d3fbc8,20),r=l(r,n,i,o,e[9],0x21e1cde6,5),o=l(o,r,n,i,e[14],0xc33707d6,9),i=l(i,o,r,n,e[3],0xf4d50d87,14),n=l(n,i,o,r,e[8],0x455a14ed,20),r=l(r,n,i,o,e[13],0xa9e3e905,5),o=l(o,r,n,i,e[2],0xfcefa3f8,9),i=l(i,o,r,n,e[7],0x676f02d9,14),n=l(n,i,o,r,e[12],0x8d2a4c8a,20),r=f(r,n,i,o,e[5],0xfffa3942,4),o=f(o,r,n,i,e[8],0x8771f681,11),i=f(i,o,r,n,e[11],0x6d9d6122,16),n=f(n,i,o,r,e[14],0xfde5380c,23),r=f(r,
vendor: 7,141 bytes, line 2
2n,i,o,e[1],0xa4beea44,4),o=f(o,r,n,i,e[4],0x4bdecfa9,11),i=f(i,o,r,n,e[7],0xf6bb4b60,16),n=f(n,i,o,r,e[10],0xbebfbc70,23),r=f(r,n,i,o,e[13],0x289b7ec6,4),o=f(o,r,n,i,e[0],0xeaa127fa,11),i=f(i,o,r,n,e[3],0xd4ef3085,16),n=f(n,i,o,r,e[6],0x4881d05,23),r=f(r,n,i,o,e[9],0xd9d4d039,4),o=f(o,r,n,i,e[12],0xe6db99e5,11),i=f(i,o,r,n,e[15],0x1fa27cf8,16),n=f(n,i,o,r,e[2],0xc4ac5665,23),r=d(r,n,i,o,e[0],0xf4292244,6),o=d(o,r,n,i,e[7],0x432aff97,10),i=d(i,o,r,n,e[14],0xab9423a7,15),n=d(n,i,o,r,e[5],0xfc93a039,21),r=d(r,n,i,o,e[12],0x655b59c3,6),o=d(o,r,n,i,e[3],0x8f0ccc92,10),i=d(i,o,r,n,e[10],0xffeff47d,15),n=d(n,i,o,r,e[1],0x85845dd1,21),r=d(r,n,i,o,e[8],0x6fa87e4f,6),o=d(o,r,n,i,e[15],0xfe2ce6e0,10),i=d(i,o,r,n,e[6],0xa3014314,15),n=d(n,i,o,r,e[13],0x4e0811a1,21),r=d(r,n,i,o,e[4],0xf7537e82,6),o=d(o,r,n,i,e[11],0xbd3af235,10),i=d(i,o,r,n,e[2],0x2ad7d2bb,15),n=d(n,i,o,r,e[9],0xeb86d391,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},1354:function(e,t,r){var n=r(711),i=r(3500);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new n(this.rand.generate(t));while(r.cmp(e)>=0);return r},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var c=e.shrn(u),l=s.toRed(o),f=!0;t>0;t--){var d=this._randrange(new n(2),s);r&&r(d);var h=d.toRed(o).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(l)){for(var p=1;p<u;p++){if(0===(h=h.redSqr()).cmp(a))return!1;if(0===h.cmp(l))break}if(p===u)return!1}}return f},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var u=e.shrn(s),c=a.toRed(i);t>0;t--){var l=this._randrange(new n(2),a),f=e.gcd(l);if(0!==f.cmpn(1))return f;var d=l.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var h=1;h<s;h++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(c))break}if(h===s)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},3523:function(e){function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},6545:function(e,t){"use strict";var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},8687:function(e,t,r){"use strict";var n=r(7160);t.certificate=r(8782),t.RSAPrivateKey=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),t.RSAPublicKey=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}),t.PublicKey=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())});var i=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())});t.PrivateKey=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(i),this.key("subjectPrivateKey").octstr())}),t.EncryptedPrivateKey=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}),t.DSAPrivateKey=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}),t.DSAparam=n.define("DSAparam",function(){this.int()}),t.ECPrivateKey=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(o),this.key("publicKey").optional().explicit(1).bitstr())});var o=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},8782:function(e,t,r){"use strict";var n=r(7160),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),u=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(u)}),l=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),f=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),d=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())});
2e.exports=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())})},6501:function(e,t,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,a=r(8368),s=r(6594),u=r(6911).Buffer;e.exports=function(e,t){var r,c=e.toString(),l=c.match(n);if(l){var f="aes"+l[1],d=u.from(l[2],"hex"),h=u.from(l[3].replace(/[\r\n]/g,""),"base64"),p=a(t,d.slice(0,8),parseInt(l[1],10)).key,g=[],b=s.createDecipheriv(f,p,d);g.push(b.update(h)),g.push(b.final()),r=u.concat(g)}else r=new u(c.match(o)[2].replace(/[\r\n]/g,""),"base64");return{tag:c.match(i)[1],data:r}}},9902:function(e,t,r){var n=r(8687),i=r(2510),o=r(6501),a=r(6594),s=r(4978),u=r(6911).Buffer;function c(e){"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var t,r,i,a=o(e,t),s=a.tag,c=a.data;switch(s){case"CERTIFICATE":i=n.certificate.decode(c,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(!i&&(i=n.PublicKey.decode(c,"der")),r=i.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=n.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":c=l(c=n.EncryptedPrivateKey.decode(c,"der"),t);case"PRIVATE KEY":switch(r=(i=n.PrivateKey.decode(c,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:n.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=n.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(c,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(c,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(c,"der")};case"EC PRIVATE KEY":return{curve:(c=n.ECPrivateKey.decode(c,"der")).parameters.value,privateKey:c.privateKey};default:throw Error("unknown key type "+s)}}function l(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,f=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,f,"sha1"),h=a.createDecipheriv(o,d,c),p=[];return p.push(h.update(l)),p.push(h.final()),u.concat(p)}e.exports=c,c.signature=n.signature},4978:function(e,t,r){var n=r(6113),i=r(5349),o=r(7007),a=r(5407);function s(e,t,r,s,u,c){if(i(r,s),e=a(e,o,"Password"),t=a(t,o,"Salt"),"function"==typeof u&&(c=u,u="sha1"),"function"!=typeof c)throw Error("No callback provided to pbkdf2");return n.pbkdf2(e,t,r,s,u,c)}function u(e,t,r,s,u){return i(r,s),e=a(e,o,"Password"),t=a(t,o,"Salt"),u=u||"sha1",n.pbkdf2Sync(e,t,r,s,u)}n.pbkdf2Sync&&-1!==n.pbkdf2Sync.toString().indexOf("keylen, digest")?(t.pbkdf2Sync=u,t.pbkdf2=s):(t.pbkdf2Sync=r(2127),t.pbkdf2=r(9601))},9601:function(e,t,n){var i,a=n(6911).Buffer,s=n(5349),u=n(7007),c=n(2127),l=n(5407),f=r.g.crypto&&r.g.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function p(e){if(r.g.process&&!r.g.process.browser||!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=g(i=i||a.alloc(8),i,10,128,e).then(function(){return!0}).catch(function(){return!1});return h[e]=t,t}function g(e,t,r,n,i){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return a.from(e)})}function b(e,t){e.then(function(e){o.nextTick(function(){t(null,e)})},function(e){o.nextTick(function(){t(e)})})}
2e.exports=function(e,t,n,i,a,f){"function"==typeof a&&(f=a,a=void 0);var h=d[(a=a||"sha1").toLowerCase()];if(!h||"function"!=typeof r.g.Promise)return o.nextTick(function(){var r;try{r=c(e,t,n,i,a)}catch(e){return f(e)}f(null,r)});if(s(n,i),e=l(e,u,"Password"),t=l(t,u,"Salt"),"function"!=typeof f)throw Error("No callback provided to pbkdf2");b(p(h).then(function(r){return r?g(e,t,n,i,h):c(e,t,n,i,a)}),f)}},7007:function(e){e.exports="utf-8"},5349:function(e){var t=0x3fffffff;e.exports=function(e,r){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof r)throw TypeError("Key length not a number");if(r<0||r>t||r!=r)throw TypeError("Bad key length")}},2127:function(e,t,r){var n={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},i=r(4873),o=r(6911).Buffer,a=r(5349),s=r(7007),u=r(5407);e.exports=function(e,t,r,c,l){a(r,c),e=u(e,s,"Password"),t=u(t,s,"Salt"),l=l||"sha1";var f=o.allocUnsafe(c),d=o.allocUnsafe(t.length+4);t.copy(d,0,0,t.length);for(var h=0,p=n[l],g=Math.ceil(c/p),b=1;b<=g;b++){d.writeUInt32BE(b,t.length);for(var v=i(l,e).update(d).digest(),m=v,y=1;y<r;y++){m=i(l,e).update(m).digest();for(var _=0;_<p;_++)v[_]^=m[_]}v.copy(f,h),h+=p}return f}},5407:function(e,t,r){var n=r(6911).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},9783:function(e,t,r){t.publicEncrypt=r(3995),t.privateDecrypt=r(4366),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},5520:function(e,t,r){var n=r(9739),i=r(6911).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length<t;)r=o(s++),a=i.concat([a,n("sha1").update(e).update(r).digest()]);return a.slice(0,t)}},4366:function(e,t,r){var n=r(9902),i=r(5520),o=r(6386),a=r(711),s=r(7166),u=r(9739),c=r(1607),l=r(6911).Buffer;function f(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(l.alloc(0)).digest(),a=n.length;if(0!==t[0])throw Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),f=o(s,i(c,a)),d=o(c,i(f,r-a-1));if(h(n,d.slice(0,a)))throw Error("decryption error");for(var p=a;0===d[p];)p++;if(1!==d[p++])throw Error("decryption error");return d.slice(p)}function d(e,t,r){for(var n=t.slice(0,2),i=2,o=0;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw Error("decryption error");return t.slice(i)}function h(e,t){e=l.from(e),t=l.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++i<n;)r+=e[i]^t[i];return r}e.exports=function(e,t,r){var i,o=e.padding?e.padding:r?1:4,u=n(e),h=u.modulus.byteLength();if(t.length>h||new a(t).cmp(u.modulus)>=0)throw Error("decryption error");i=r?c(new a(t),u):s(t,u);var p=l.alloc(h-i.length);if(i=l.concat([p,i],h),4===o)return f(u,i);if(1===o)return d(u,i,r);if(3===o)return i;throw Error("unknown padding")}},3995:function(e,t,r){var n=r(9902),i=r(7223),o=r(9739),a=r(5520),s=r(6386),u=r(711),c=r(1607),l=r(7166),f=r(6911).Buffer;function d(e,t){var r=e.modulus.byteLength(),n=t.length,c=o("sha1").update(f.alloc(0)).digest(),l=c.length,d=2*l;if(n>r-d-2)throw Error("message too long");var h=f.alloc(r-n-d-2),p=r-l-1,g=i(l),b=s(f.concat([c,h,f.alloc(1,1),t],p),a(g,p)),v=s(g,a(b,l));return new u(f.concat([f.alloc(1),v,b],r))}function h(e,t,r){var n,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw Error("message too long");return n=r?f.alloc(o-i-3,255):p(o-i-3),new u(f.concat([f.from([0,r?1:2]),n,f.alloc(1),t],o))}function p(e){for(var t,r=f.allocUnsafe(e),n=0,o=i(2*e),a=0;n<e;)a===o.length&&(o=i(2*e),a=0),(t=o[a++])&&(r[n++]=t);return r}e.exports=function(e,t,r){var i,o=e.padding?e.padding:r?1:4,a=n(e);if(4===o)i=d(a,t);else if(1===o)i=h(a,t,r);else if(3===o){if((i=new u(t)).cmp(a.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?l(i,a):c(i,a)}},1607:function(e,t,r){var n=r(711),i=r(6911).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},6386:function(e){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},7223:function(e,t,n){"use strict";var i=65536,a=0xffffffff;function s(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var u=n(6911).Buffer,c=r.g.crypto||r.g.msCrypto;function l(e,t){if(e>a)throw RangeError("requested too many random bytes");var r=u.allocUnsafe(e);if(e>0)if(e>i)for(var n=0;n<e;n+=i)c.getRandomValues(r.slice(n,n+i));else c.getRandomValues(r);return"function"==typeof t?o.nextTick(function(){t(null,r)}
2):r}c&&c.getRandomValues?e.exports=l:e.exports=s},6445:function(e,t,n){"use strict";function i(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=n(6911);n(7223);var s=a.Buffer,u=a.kMaxLength,c=r.g.crypto||r.g.msCrypto,l=0xffffffff;function f(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>l||e<0)throw TypeError("offset must be a uint32");if(e>u||e>t)throw RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>l||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>u)throw RangeError("buffer too small")}function h(e,t,n,i){if(!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-t;else if("function"!=typeof i)throw TypeError('"cb" argument must be a function');return f(t,e.length),d(n,t,e.length),p(e,t,n,i)}function p(e,t,r,n){var i=new Uint8Array(e.buffer,t,r);return(c.getRandomValues(i),n)?void o.nextTick(function(){n(null,e)}):e}function g(e,t,n){if(void 0===t&&(t=0),!s.isBuffer(e)&&!(e instanceof r.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return f(t,e.length),void 0===n&&(n=e.length-t),d(n,t,e.length),p(e,t,n)}c&&c.getRandomValues?(t.randomFill=h,t.randomFillSync=g):(t.randomFill=i,t.randomFillSync=i)},4646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))u=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},2403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var i=r(1709),a=r(7337);r(3782)(l,i);for(var s=n(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||o.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},7889:function(e,t,r){"use strict";e.exports=i;var n=r(1170);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(3782)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},1709:function(e,t,n){"use strict";e.exports=T,T.ReadableState=R,n(2361).EventEmitter;var i,a,s,u,c,l=function(e,t){return e.listeners(t).length},f=n(4678),d=n(4300).Buffer,h=r.g.Uint8Array||function(){};function p(e){return d.from(e)}function g(e){return d.isBuffer(e)||e instanceof h}var b=n(3837);a=b&&b.debuglog?b.debuglog("stream"):function(){};var v=n(4379),m=n(7025),y=n(6776).getHighWaterMark,_=n(4646).q,w=_.ERR_INVALID_ARG_TYPE,S=_.ERR_STREAM_PUSH_AFTER_EOF,E=_.ERR_METHOD_NOT_IMPLEMENT
vendor: 28,275 bytes, line 2
2ED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(3782)(T,f);var k=m.errorOrDestroy,A=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function R(e,t,r){i=i||n(2403),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",r),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(3704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function T(e){if(i=i||n(2403),!(this instanceof T))return new T(e);var t=this instanceof i;this._readableState=new R(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function C(e,t,r,n,i){a("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,D(e,s);else if(i||(o=O(s,t)),o)k(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=p(t)),n)s.endEmitted?k(e,new x):I(e,s,t,!0);else if(s.ended)k(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?I(e,s,t,!1):U(e,s)):I(e,s,t,!1)}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function I(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&B(e)),U(e,t)}function O(e,t){var r;return g(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=m.destroy,T.prototype._undestroy=m.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=d.from(e,t),t=""),r=!0),C(this,e,t,!1,r)},T.prototype.unshift=function(e){return C(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){s||(s=n(3704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var P=0x40000000;function L(e){return e>=P?e=P:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function N(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=L(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function D(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?B(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}function B(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(j,e))}function j(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(e)}function U(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(F,e,t))}function F(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function z(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,G(e))}}function H(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function V(e){a("readable nexttick read 0"),e.read(0)}function q(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick($,e,t))}function $(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),G(e),t.flowing&&!t.reading&&e.read(0)}function G(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function W(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function K(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(Y,t,e))}function Y(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function X(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}T.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?K(this):B(this),null;if(0===(e=N(e,r))&&r.ended)return 0===r.length&&K(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",i=!0),r.ended||r.reading?a("reading or ended",i=!1):i&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=N(n,r))),null===(t=e>0?W(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&K(this)),null!==t&&this.emit("data",t),t},T.prototype._read=function(e){k(this,new E("_read()"))},T.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===o.stdout||e===o.stderr?v:u;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function u(){a("onend"),e.end()}n.endEmitted?o.nextTick(i):r.once("end",i),e.on("unpipe",s);var c=z(r);e.on("drain",c);var f=!1;function d(){a("cleanup"),e.removeListener("close",g),e.removeListener("finish",b),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",v),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==X(n.pipes,e))&&!f&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),v(),e.removeListener("error",p),0===l(e,"error")&&k(e,t)}function g(){e.removeListener("finish",b),v()}function b(){a("onfinish"),e.removeListener("close",g),v()}function v(){a("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",g),e.once("finish",b),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=X(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},T.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?B(this):n.reading||o.nextTick(V,this)),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(H,this),r},T.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&o.nextTick(H,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,q(this,e)),e.paused=!1,this},T.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<A.length;o++)e.on(A[o],this.emit.bind(this,A[o]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(6871)),u(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=W,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(e,t){return void 0===c&&(c=n(9727)),c(T,e,t)})},1170:function(e,t,r){"use strict";e.exports=l;var n=r(4646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(2403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(3782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},7337:function(e,t,n){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){$(t,e)}}e.exports=R,R.WritableState=M;var a,s,u={deprecate:n(6769)},c=n(4678),l=n(4300).Buffer,f=r.g.Uint8Array||function(){};function d(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof f}var p=n(7025),g=n(6776).getHighWaterMark,b=n(4646).q,v=b.ERR_INVALID_ARG_TYPE,m=b.ERR_METHOD_NOT_IMPLEMENTED,y=b.ERR_MULTIPLE_CALLBACK,_=b.ERR_STREAM_CANNOT_PIPE,w=b.ERR_STREAM_DESTROYED,S=b.ERR_STREAM_NULL_VALUES,E=b.ERR_STREAM_WRITE_AFTER_END,x=b.ERR_UNKNOWN_ENCODING,k=p.errorOrDestroy;function A(){}function M(e,t,r){a=a||n(2403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=g(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){D(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function R(e){var t=this instanceof(a=a||n(2403));if(!t&&!s.call(R,this))return new R(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function T(e,t){var r=new E;k(e,r),o.nextTick(t,r)}function C(e,t,r,n){var i;return null===r?i=new S:"string"==typeof r||t.objectMode||(i=new v("chunk",["string","Buffer"],r)),!i||(k(e,i),o.nextTick(n,i),!1)}function I(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function O(e,t,r,n,i,o){if(!r){var a=I(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else P(e,t,!1,s,n,i,o);return u}function P(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function L(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(V,e,t),e._writableState.errorEmitted=!0,k(e,n)):(i(n),e._writableState.errorEmitted=!0,k(e,n),V(e,t))}function N(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function D(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new y;if(N(r),t)L(e,r,n,t,i);else{var a=F(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||U(e,r),n?o.nextTick(B,e,r,a,i):B(e,r,a,i)}}function B(e,t,r,n){r||j(e,t),t.pendingcb--,n(),V(e,t)}function j(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function U(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,P(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:u.length;if(P(e,t,!1,f,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function F(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function z(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),V(e,t)})}function H(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(z,e,t)))}function V(e,t){var r=F(t);if(r&&(H(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function q(e,t,r){t.ending=!0,V(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function $(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}n(3782)(R,c),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(R,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===R&&e&&e._writableState instanceof M}})):s=function(e){return e instanceof this},R.prototype.pipe=function(){k(this,new _)},R.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!l.isBuffer(e)&&(e=d(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=A),n.ending?T(this,r):(o||C(this,n,e,r))&&(n.pendingcb++,i=O(this,n,o,e,t,r)),i},R.prototype.cork=function(){this._writableState.corked++},R.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||U(this,e))},R.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(R.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),R.prototype._write=function(e,t,r){r(new m("_write()"))},R.prototype._writev=null,R.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||q(this,n,r),this},Object.defineProperty(R.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),R.prototype.destroy=p.destroy,R.prototype._undestroy=p.undestroy,R.prototype._destroy=function(e,t){t(e)}},6871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i,a=r(9698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function g(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function b(e){o.nextTick(g,e)}function v(e,t){return function(r,n){e.then(function(){if(t[l])return void r(p(void 0,!0));t[d](r,n)},n)}}var m=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n(i={get stream(){return this[h]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){o.nextTick(function(){t[c]?r(t[c]):e(p(void 0,!0))})});var n=this[f];if(n)e=new Promise(v(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(p(i,!1));e=new Promise(this[d])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),n(i,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e)return void r(e);t(p(void 0,!0))})})}),i),m);e.exports=function(e){var t,r=Object.create(y,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,d,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",b.bind(null,r)),r}},4379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var c=r(4300).Buffer,l=r(3837).inspect,f=l&&l.custom||"inspect";function d(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},7025:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(n,this,e)):o.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!i&&e?a._writableState?a._writableState.errorEmitted?o.nextTick(r,a):(a._writableState.errorEmitted=!0,o.nextTick(t,a,e)):o.nextTick(t,a,e):i?(o.nextTick(r,a),i(e)):o.nextTick(r,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},9698:function(e,t,r){"use strict";var n=r(4646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=i(r||o);var u=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,l=function(){e.writable||d()},f=e._writableState&&e._writableState.finished,d=function(){c=!1,f=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,c||r.call(e)},g=function(t){r.call(e,t)},b=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!f?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},v=function(){e.req.on("finish",d)};return a(e)?(e.on("complete",d),e.on("abort",b),e.req?v():e.on("request",v)):c&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",g),e.on("close",b),function(){e.removeListener("complete",d),e.removeListener("abort",b),e.removeListener("request",v),e.req&&e.req.removeListener("finish",d),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",b)}}
2e.exports=s},9727:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=r(4646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var n,o=new e(a({objectMode:!0},r)),s=!1;function c(){return l.apply(this,arguments)}function l(){return(l=i(function*(){try{var e=yield n.next(),t=e.value;e.done?o.push(null):o.push((yield t))?c():s=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){s||(s=!0,c())},o}},8442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,o=r(4646).q,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function l(e,t,o,a){a=n(a);var u=!1;e.on("close",function(){u=!0}),void 0===i&&(i=r(9698)),i(e,{readable:t,writable:o},function(e){if(e)return a(e);u=!0,a()});var l=!1;return function(t){if(!u&&!l){if(l=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function f(e){e()}function d(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}e.exports=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var o=r.map(function(t,n){var a=n<r.length-1;return l(t,a,n>0,function(t){e||(e=t),t&&o.forEach(f),a||(o.forEach(f),i(e))})});return r.reduce(d)}},6776:function(e,t,r){"use strict";var n=r(4646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},4678:function(e,t,r){e.exports=r(2781)},3726:function(e,t,r){var n=r(2781);"disable"===o.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(1709)).Stream=n||t,t.Readable=t,t.Writable=r(7337),t.Duplex=r(2403),t.Transform=r(1170),t.PassThrough=r(7889),t.finished=r(9698),t.pipeline=r(8442))},3225:function(e,t,r){"use strict";var n=r(4300).Buffer,i=r(3782),o=r(9029),a=Array(16),s=[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],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[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],f=[0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e],d=[0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0];function h(){o.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0}function p(e,t){return e<<t|e>>>32-t}function g(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}
vendor: 7,381 bytes, line 2
2function y(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e,t,r=a,n=0;n<16;++n)r[n]=this._block.readInt32LE(4*n);for(var i=0|this._a,o=0|this._b,h=0|this._c,_=0|this._d,w=0|this._e,S=0|this._a,E=0|this._b,x=0|this._c,k=0|this._d,A=0|this._e,M=0;M<80;M+=1)M<16?(e=g(i,o,h,_,w,r[s[M]],f[0],c[M]),t=y(S,E,x,k,A,r[u[M]],d[0],l[M])):M<32?(e=b(i,o,h,_,w,r[s[M]],f[1],c[M]),t=m(S,E,x,k,A,r[u[M]],d[1],l[M])):M<48?(e=v(i,o,h,_,w,r[s[M]],f[2],c[M]),t=v(S,E,x,k,A,r[u[M]],d[2],l[M])):M<64?(e=m(i,o,h,_,w,r[s[M]],f[3],c[M]),t=b(S,E,x,k,A,r[u[M]],d[3],l[M])):(e=y(i,o,h,_,w,r[s[M]],f[4],c[M]),t=g(S,E,x,k,A,r[u[M]],d[4],l[M])),i=w,w=_,_=p(h,10),h=o,o=e,S=A,A=k,k=p(x,10),x=E,E=t;var R=this._b+h+k|0;this._b=this._c+_+A|0,this._c=this._d+w+S|0,this._d=this._e+i+E|0,this._e=this._a+o+x|0,this._a=R},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},5055:function(e,t,r){var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},6911:function(e,t,r){var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},2858:function(e,t,r){var n=r(6911).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var u=a%i,c=Math.min(o-s,i-u),l=0;l<c;l++)r[u+l]=e[s+l];a+=c,s+=c,a%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=0xffffffff)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(0|r)>>>0,i=(r-n)/0x100000000;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=i},4371:function(e,t,r){var n=e.exports=function(e){var t=n[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(4018),n.sha1=r(4179),n.sha224=r(532),n.sha256=r(1843),n.sha384=r(7455),n.sha512=r(9934)},4018:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=t[u-3]^t[u-8]^t[u-14]^t[u-16];for(var d=0;d<80;++d){var h=~~(d/20),p=c(r)+f(h,n,i,o)+s+t[d]+a[h]|0;s=o,o=i,i=l(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},4179:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<1|e>>>31}function l(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=c(t[u-3]^t[u-8]^t[u-14]^t[u-16]);for(var h=0;h<80;++h){var p=~~(h/20),g=l(r)+d(p,n,i,o)+s+t[h]+a[p]|0;s=o,o=i,i=f(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},532:function(e,t,r){var n=r(3782),i=r(1843),o=r(2858),a=r(6911).Buffer,s=Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},1843:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[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,0xc
vendor: 4,767 bytes, line 2
276c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],s=Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(u,i),u.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},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0|this._f,g=0|this._g,b=0|this._h,v=0;v<16;++v)t[v]=e.readInt32BE(4*v);for(;v<64;++v)t[v]=p(t[v-2])+t[v-7]+h(t[v-15])+t[v-16]|0;for(var m=0;m<64;++m){var y=b+d(s)+c(s,u,g)+a[m]+t[m]|0,_=f(r)+l(r,n,i)|0;b=g,g=u,u=s,s=o+y|0,o=i,i=n,n=r,r=y+_|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=g+this._g|0,this._h=b+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},7455:function(e,t,r){var n=r(3782),i=r(9934),o=r(2858),a=r(6911).Buffer,s=Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},9934:function(e,t,r){var n=r(3782),i=r(2858),o=r(6911).Buffer,a=[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],s=Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return+(e>>>0<t>>>0)}
vendor: 5,772 bytes, line 2
2n(u,i),u.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},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,m=0|this._gh,y=0|this._hh,_=0|this._al,w=0|this._bl,S=0|this._cl,E=0|this._dl,x=0|this._el,k=0|this._fl,A=0|this._gl,M=0|this._hl,R=0;R<32;R+=2)t[R]=e.readInt32BE(4*R),t[R+1]=e.readInt32BE(4*R+4);for(;R<160;R+=2){var T=t[R-30],C=t[R-30+1],I=h(T,C),O=p(C,T),P=g(T=t[R-4],C=t[R-4+1]),L=b(C,T),N=t[R-14],D=t[R-14+1],B=t[R-32],j=t[R-32+1],U=O+D|0,F=I+N+v(U,O)|0;F=(F=F+P+v(U=U+L|0,L)|0)+B+v(U=U+j|0,j)|0,t[R]=F,t[R+1]=U}for(var z=0;z<160;z+=2){F=t[z],U=t[z+1];var H=l(r,n,i),V=l(_,w,S),q=f(r,_),$=f(_,r),G=d(s,x),W=d(x,s),K=a[z],Y=a[z+1],X=c(s,u,m),J=c(x,k,A),Z=M+W|0,Q=y+G+v(Z,M)|0;Q=(Q=(Q=Q+X+v(Z=Z+J|0,J)|0)+K+v(Z=Z+Y|0,Y)|0)+F+v(Z=Z+U|0,U)|0;var ee=$+V|0,et=q+H+v(ee,$)|0;y=m,M=A,m=u,A=k,u=s,k=x,s=o+Q+v(x=E+Z|0,E)|0,o=i,E=S,i=n,S=w,n=r,w=_,r=Q+et+v(_=Z+ee|0,Z)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+S|0,this._dl=this._dl+E|0,this._el=this._el+x|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+M|0,this._ah=this._ah+r+v(this._al,_)|0,this._bh=this._bh+n+v(this._bl,w)|0,this._ch=this._ch+i+v(this._cl,S)|0,this._dh=this._dh+o+v(this._dl,E)|0,this._eh=this._eh+s+v(this._el,x)|0,this._fh=this._fh+u+v(this._fl,k)|0,this._gh=this._gh+m+v(this._gl,A)|0,this._hh=this._hh+y+v(this._hl,M)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},3704:function(e,t,r){"use strict";var n=r(5055).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=g,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=b,this.end=v,t=3;break;default:this.write=m,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function d(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function m(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=d,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},6769:function(e){function t(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}
2e.exports=function e(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}},4300:function(e){"use strict";e.exports=r(82909)},6113:function(e){"use strict";e.exports=r(63426)},2361:function(e){"use strict";e.exports=r(69319)},2781:function(e){"use strict";e.exports=r(32545)},1576:function(e){"use strict";e.exports=r(15773)},3837:function(e){"use strict";e.exports=r(30237)},6144:function(e){"use strict";e.exports=r(38870)},5866:function(e){"use strict";e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2908:function(e){"use strict";e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},9267:function(e){"use strict";e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},7992:function(e){"use strict";e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
207b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},2531:function(e){"use strict";e.exports={i8:"6.5.3"}},2510:function(e){"use strict";e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={id:e,loaded:!1,exports:{}},i=!0;try{t[e].call(n.exports,n,n.exports,s),i=!1}finally{i&&delete a[e]}return n.loaded=!0,n.exports}!function(){s.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),s.ab=n+"/";var u={};!function(){"use strict";var e=u;e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=s(7223),e.createHash=e.Hash=s(9739),e.createHmac=e.Hmac=s(4873);var t=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(s(9276)));e.getHashes=function(){return t};var r=s(4978);e.pbkdf2=r.pbkdf2,e.pbkdf2Sync=r.pbkdf2Sync;var n=s(8996);e.Cipher=n.Cipher,e.createCipher=n.createCipher,e.Cipheriv=n.Cipheriv,e.createCipheriv=n.createCipheriv,e.Decipher=n.Decipher,e.createDecipher=n.createDecipher,e.Decipheriv=n.Decipheriv,e.createDecipheriv=n.createDecipheriv,e.getCiphers=n.getCiphers,e.listCiphers=n.listCiphers;var i=s(6587);e.DiffieHellmanGroup=i.DiffieHellmanGroup,e.createDiffieHellmanGroup=i.createDiffieHellmanGroup,e.getDiffieHellman=i.getDiffieHellman,e.createDiffieHellman=i.createDiffieHellman,e.DiffieHellman=i.DiffieHellman;var o=s(4078);e.createSign=o.createSign,e.Sign=o.Sign,e.createVerify=o.createVerify,e.Verify=o.Verify,e.createECDH=s(9942);var a=s(9783);e.publicEncrypt=a.publicEncrypt,e.privateEncrypt=a.privateEncrypt,e.publicDecrypt=a.publicDecrypt,e.privateDecrypt=a.privateDecrypt;var c=s(6445);e.randomFill=c.randomFill,e.randomFillSync=c.randomFillSync,e.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}(),e.exports=u}()},65200:(e,t,r)=>{"use strict";var n=r(72548),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},65225:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},65865:e=>{"use strict";e.exports=TypeError},66454:(e,t)=>
vendor: 5,042 bytes, line 2
2{"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66530:(e,t,r)=>{"use strict";var n=r(28419),i=r(65865),o=r(66958),a=r(34140);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},66958:e=>{"use strict";e.exports=Function.prototype.call},69319:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"number"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if(!n(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,n,a,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var l=Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(n=this._events[e]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(u=0,s=Array.prototype.slice.call(arguments,1),a=(c=n.slice()).length;u<a;u++)c[u].apply(this,s);return!0},t.prototype.addListener=function(e,n){var a;if(!r(n))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(n.listener)?n.listener:n),this._events[e]?i(this._events[e])?this._events[e].push(n):this._events[e]=[this._events[e],n]:this._events[e]=n,i(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0==arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0==arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},71355:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(28419).call(n,i)},71742:e=>{"use strict";e.exports=SyntaxError},71938:e=>{"use strict";e.exports=Function.prototype.apply},72130:e=>{"use strict";e.exports=ReferenceError},72472:(e,t,r)=>{"use strict";r.d(t,{A:()=>d}),function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.EARLY_HINTS=103]="EARLY_HINTS",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.MOVED_PE
2RMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.USE_PROXY=305]="USE_PROXY",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.LOCKED=423]="LOCKED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"}(n||(n={}));var n,i=r(3800),o=r(10525),a=r(46077),s=r(85116);let u=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{timeout:r=3e3}=t,n={timeoutMs:r,options:t,url:e},o="fetchWithTimeout",s=new AbortController,{signal:u}=s,c=Date.now(),l=setTimeout(()=>{clearTimeout(l);let e="Request timeout exceeded (".concat(r/1e3,"s limit)");s.abort(e),a.A.logError(e,{...n,aborted:u.aborted,abortReason:u.reason,duration:Date.now()-c})},r);try{let r=await fetch(e,{...t,signal:u});return clearTimeout(l),r}catch(e){if(clearTimeout(l),u.aborted)return null;throw a.A.logError("".concat(o," Request failed"),{...n,aborted:u.aborted,abortReason:u.reason,duration:Date.now()-c,errorMessage:(0,i.u1)(e),errorStack:(0,i.WD)(e),statusCode:(0,i._w)(e)||"network_error"}),e}},c=null,l=!1,f=null,d=async function(){if(c)return c;if(l)return f;let e=Date.now(),t="geolocation",r={category:t,actionName:"fetch"};return l=!0,f=(async()=>{try{let i=await u("/api/geo-position/"),l=await i.json();if(i.status!==n.OK){r.actionStatus=o.gi.FAILURE,r.statusCode=i.status,r.performance=(0,s.hj)(e),r.response=l;let n="GeoPosition API returned status ".concat(i.status);return a.A.logError(n,void 0,t,r),null}return c=l,l}catch(l){r.statusCode=n.INTERNAL_SERVER_ERROR,r.actionStatus=o.gi.FAILURE,r.performance=(0,s.hj)(e);let u=(0,i.u1)(l),c="Fetch GeoPosition failed: ".concat(u);return a.A.logError(c,l,t,r),null}finally{l=!1,f=null}})()}},72548:e=>{"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},73305:e=>{"use strict";e.exports=URIError},73442:(e,t,r)=>{"use strict";var n=r(45525),i=r(66530),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i([r]):r}},73677:(e,t,r)=>{"use strict";var n=r(98857),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},76728:(e,t)=>
2{t.TF=u;for(var r,n=[{base:" ",chars:"\xa0"},{base:"0",chars:"ß"},{base:"A",chars:"â¶ï¼¡\xc0\xc1\xc2ẦẤẪẨ\xc3ÄÄáº°áº®áº´áº²È¦Ç \xc4ÇẢ\xc5ǺÇÈÈẠẬẶá¸ÄȺⱯ"},{base:"AA",chars:"ê²"},{base:"AE",chars:"\xc6ǼǢ"},{base:"AO",chars:"ê´"},{base:"AU",chars:"ê¶"},{base:"AV",chars:"ê¸êº"},{base:"AY",chars:"ê¼"},{base:"B",chars:"â·ï¼¢á¸á¸á¸ÉÆ"},{base:"C",chars:"â¸ï¼£ê¾á¸ÄCÄÄÄ\xc7ÆÈ»"},{base:"D",chars:"â¹ï¼¤á¸Äá¸á¸á¸á¸ÄÆÆá´
ê¹"},{base:"Dh",chars:"\xd0"},{base:"DZ",chars:"DZÇ"},{base:"Dz",chars:"DzÇ
"},{base:"E",chars:"Éâºï¼¥\xc8\xc9\xcaá»áº¾á»á»áº¼Äá¸á¸ÄÄ\xcbẺÄÈÈẸá»È¨á¸Äá¸á¸ÆÆá´"},{base:"F",chars:"ê¼â»ï¼¦á¸Æê»"},{base:"G",chars:"â¼ï¼§Ç´ÄḠÄÄ Ç¦Ä¢Ç¤Æê ê½ê¾É¢"},{base:"H",chars:"â½ï¼¨Ä¤á¸¢á¸¦ÈḤḨḪĦⱧⱵê"},{base:"I",chars:"â¾ï¼©\xcc\xcd\xceĨĪĬİ\xcfḮá»ÇÈÈá»Ä®á¸¬Æ"},{base:"J",chars:"â¿ï¼ªÄ´ÉÈ·"},{base:"K",chars:"âKḰǨḲĶḴÆâ±©êêêê¢"},{base:"L",chars:"âLĿĹĽḶḸĻḼḺÅȽⱢⱠêêê"},{base:"LJ",chars:"Ç"},{base:"Lj",chars:"Ç"},{base:"M",chars:"âï¼á¸¾á¹á¹â±®ÆÏ»"},{base:"N",chars:"ê¤È âNǸÅ\xd1á¹Åá¹Å
á¹á¹Æêá´"},{base:"NJ",chars:"Ç"},{base:"Nj",chars:"Ç"},{base:"O",chars:"âO\xd2\xd3\xd4á»á»á»á»\xd5á¹È¬á¹Åá¹á¹ÅȮȰ\xd6Ȫá»ÅÇÈÈÆ á»á»á» á»á»¢á»á»ÇªÇ¬\xd8Ç¾ÆÆêê"},{base:"OE",chars:"Å"},{base:"OI",chars:"Æ¢"},{base:"OO",chars:"ê"},{base:"OU",chars:"È¢"},{base:"P",chars:"â
ï¼°á¹á¹Æ¤â±£êêê"},{base:"Q",chars:"âï¼±êêÉ"},{base:"R",chars:"âï¼²Åá¹ÅÈÈá¹á¹Åá¹ÉⱤêê¦ê"},{base:"S",chars:"âï¼³áºÅṤÅṠŠṦṢṨÈÅâ±¾ê¨ê"},{base:"T",chars:"âTṪŤṬÈŢṰṮŦƬƮȾê"},{base:"Th",chars:"\xde"},{base:"TZ",chars:"ê¨"},{base:"U",chars:"âï¼µ\xd9\xda\xdbŨṸŪṺŬ\xdcÇÇÇÇỦŮŰÇÈÈÆ¯á»ªá»¨á»®á»¬á»°á»¤á¹²Å²á¹¶á¹´É"},{base:"V",chars:"âVṼṾƲêÉ
"},{base:"VY",chars:"ê "},{base:"W",chars:"âï¼·áºáºÅ´áºáºáºâ±²"},{base:"X",chars:"âXáºáº"},{base:"Y",chars:"âYỲ\xddŶỸȲáºÅ¸á»¶á»´Æ³ÉỾ"},{base:"Z",chars:"âZŹáºÅ»Å½áºáºÆµÈ¤â±¿â±«ê¢"},{base:"a",chars:"âï½áº\xe0\xe1\xe2ầấẫẩ\xe3ÄÄằắẵẳȧǡ\xe4Çả\xe5Ç»ÇÈÈạáºáº·á¸Ä
â±¥ÉÉ"},{base:"aa",chars:"ê³"},{base:"ae",chars:"\xe6ǽǣ"},{base:"ao",chars:"êµ"},{base:"au",chars:"ê·"},{base:"av",chars:"ê¹ê»"},{base:"ay",chars:"ê½"},{base:"b",chars:"âï½á¸á¸
á¸ÆÆÉÆ"},{base:"c",chars:"ï½âÄÄÄÄ\xe7á¸ÆÈ¼ê¿â"},{base:"d",chars:"âï½á¸Äá¸á¸á¸á¸ÄÆÉÉÆá§Ôêª"},{base:"dh",chars:"\xf0"},{base:"dz",chars:"dzÇ"},{base:"e",chars:"âï½
\xe8\xe9\xeaá»áº¿á»
á»áº½Äá¸á¸ÄÄ\xebẻÄÈ
Èẹá»È©á¸Äá¸á¸ÉÇ"},{base:"f",chars:"âï½á¸Æ"},{base:"ff",chars:"ï¬"},{base:"fi",chars:"ï¬"},{base:"fl",chars:"ï¬"},{base:"ffi",chars:"ï¬"},{base:"ffl",chars:"ï¬"},{base:"g",chars:"âï½ÇµÄḡÄÄ¡Ç§Ä£Ç¥É ê¡ê¿áµ¹"},{base:"h",chars:"âï½Ä¥á¸£á¸§ÈḥḩḫáºÄ§â±¨â±¶É¥"},{base:"hv",chars:"Æ"},{base:"i",chars:"âï½\xec\xed\xeeĩīÄ\xefḯá»ÇÈÈá»Ä¯á¸É¨Ä±"},{base:"j",chars:"âï½ÄµÇ°É"},{base:"k",chars:"âï½á¸±Ç©á¸³Ä·á¸µÆâ±ªêêê
ê£"},{base:"l",chars:"âï½ÅÄºÄ¾á¸·á¸¹Ä¼á¸½á¸»Å¿ÅÆÉ«â±¡êêêÉ"},{base:"lj",chars:"Ç"},{base:"m",chars:"âï½á¸¿á¹á¹É±É¯"},{base:"n",chars:"âï½Ç¹Å\xf1á¹
Åá¹Åá¹á¹ÆÉ²Åêê¥Ð»Ô"},{base:"nj",chars:"Ç"},{base:"o",chars:"âï½\xf2\xf3\xf4á»á»á»á»\xf5á¹Èá¹Åá¹á¹Åȯȱ\xf6È«á»ÅÇÈÈÆ¡á»á»á»¡á»á»£á»á»Ç«Ç\xf8Ç¿êêɵÉá´"},{base:"oe",chars:"Å"},{base:"oi",chars:"Æ£"},{base:"oo",chars:"ê"},{base:"ou",chars:"È£"},{base:"p",chars:"âï½á¹á¹Æ¥áµ½êêêÏ"},{base:"q",chars:"â ï½Éêê"},{base:"r",chars:"â¡ï½Åá¹ÅÈÈá¹á¹Åá¹Éɽêê§ê"},{base:"s",chars:"â¢ï½Åá¹¥ÅṡšṧṣṩÈÅÈ¿ê©ê
áºÊ"},{base:"ss",chars:"\xdf"},{base:"t",chars:"â£ï½á¹«áºÅ¥á¹ÈţṱṯŧÆÊⱦê"},{base:"th",chars:"\xfe"},{base:"tz",chars:"ê©"},{base:"u",chars:"â¤ï½\xf9\xfa\xfbũṹūṻÅ\xfcÇÇÇÇủůűÇÈÈÆ°á»«á»©á»¯á»á»±á»¥á¹³Å³á¹·á¹µÊ"},{base:"v",chars:"â¥ï½á¹½á¹¿ÊêÊ"},{base:"vy",chars:"ê¡"},{base:"w",chars:"â¦ï½áºáºÅµáºáº
áºáºâ±³"},{base:"x",chars:"â§ï½áºáº"},{base:"y",chars:"â¨ï½á»³\xfdŷỹȳáº\xffá»·áºá»µÆ´Éỿ"},{base:"z",chars:"â©ï½ÅºáºÅ¼Å¾áºáºÆ¶È¥Éⱬê£"}],i={},o=0;o<n.length;o+=1)for(var a=n[o].chars,s=0;s<a.length;s+=1)i[a[s]]=n[o].base;
2function u(e){return e.replace(/[^\u0000-\u007e]/g,function(e){return i[e]||e})}r=n,r=i},77785:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(var i in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||!0!==a.enumerable)return!1}return!0}},78121:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},78737:e=>{e.exports={style:{fontFamily:"'jetBrainsMono', 'jetBrainsMono Fallback', monospace"},className:"__className_dd6e2d",variable:"__variable_dd6e2d"}},80611:(e,t,r)=>{"use strict";var n=r(93023);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},80985:(e,t,r)=>{"use strict";var n=r(45525),i=r(27239),o=r(73677)(),a=r(10221),s=r(65865),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},81370:(e,t)=>{"use strict";t.byteLength=c,t.toByteArray=f,t.fromByteArray=p;for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n}function l(e,t,r){return(t+r)*3/4-r}function f(e){var t,r,o=u(e),a=o[0],s=o[1],c=new i(l(e,a,s)),f=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[f++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,r){for(var n=[],i=t;i<r;i+=3)n.push(d((e[i]<<16&0xff0000)+(e[i+1]<<8&65280)+(255&e[i+2])));return n.join("")}function p(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(h(e,s,s+a>u?u:s+a));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")}n[45]=62,n[95]=63},82909:(e,t,r)=>{"use strict";var n=r(81370),i=r(87247),o=r(92738);function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff}function u(e,t){if(s()<t)throw RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,r){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,r);if("number"==typeof e){if("string"==typeof t)throw Error("If encoding is specified then the first argument must be a string");return h(this,e)}return l(this,e,t,r)}function l(e,t,r,n){if("number"==typeof t)throw TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?b(e,t,r,n):"string"==typeof t?p(e,t,r):v(e,t)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function d(e,t,r,n){return(f(t),t<=0)?u(e,t):void 0!==r?"string"==typeof n?u(e,t).fill(r,n):u(e,t).fill(r):u(e,t)}function h(e,t){if(f(t),e=u(e,t<0?0:0|m(t)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function p(e,t,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!c.isEncoding(r))throw TypeError('"encoding" must be a valid string encoding');var n=0|_(t,r),i=(e=u(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}function g(e,t){var r=t.length<0?0:0|m(t.length);e=u(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function b(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=g(e,t),e}function v(e,t){if(c.isBuffer(t)){var r=0|m(t.length);return 0===(e=u(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||et(t.length)?u
vendor: 16,355 bytes, line 2
2(e,0):g(e,t);if("Buffer"===t.type&&o(t.data))return g(e,t.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(e){if(e>=s())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function _(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(n)return X(e).length;t=(""+t).toLowerCase(),n=!0}}function w(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return N(this,t,r);case"latin1":case"binary":return D(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function S(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function E(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),isNaN(r*=1)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:x(e,t,r,n,i);if("number"==typeof t){if(t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return x(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function x(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else -1!==l&&(o-=o-l),l=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return -1}function k(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))break;e[r+a]=s}return a}function A(e,t,r,n){return ee(X(t,e.length-r),e,r,n)}function M(e,t,r,n){return ee(J(t),e,r,n)}function R(e,t,r,n){return M(e,t,r,n)}function T(e,t,r,n){return ee(Q(t),e,r,n)}function C(e,t,r,n){return ee(Z(t,e.length-r),e,r,n)}function I(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function O(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return L(n)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return l(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return d(null,e,t,r)},c.allocUnsafe=function(e){return h(null,e)},c.allocUnsafeSlow=function(e){return h(null,e)},c.isBuffer=function(e){return!!(null!=e&&e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=c.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!c.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)S(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0==arguments.length?O(this,0,e):w.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,r,n,i){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),u=this.slice(n,i),l=e.slice(t,r),f=0;f<s;++f)if(u[f]!==l[f]){o=u[f],a=l[f];break}return o<a?-1:+(a<o)},c.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return E(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return E(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return k(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":return M(this,e,t,r);case"latin1":case"binary":return R(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function L(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=P));return r}function N(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function D(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function B(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=Y(e[o]);return i}function j(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function U(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function F(e,t,r,n,i,o){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function z(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function H(e,t,r,n){t<0&&(t=0xffffffff+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>(n?i:3-i)*8&255}function V(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function q(e,t,r,n,o){return o||V(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function $(e,t,r,n,o){return o||V(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;r=new c(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},c.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return(t||U(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},c.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},c.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},c.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;F(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;F(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e*=1,t|=0,r||F(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e*=1,t|=0,r||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e*=1,t|=0,r||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e*=1,t|=0,r||F(this,e,t,4,0xffffffff,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e*=1,t|=0,r||F(this,e,t,4,0xffffffff,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e*=1,t|=0,r||F(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e*=1,t|=0,r||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e*=1,t|=0,r||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e*=1,t|=0,r||F(this,e,t,4,0x7fffffff,-0x80000000),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e*=1,t|=0,r||F(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return q(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return q(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return $(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return $(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("sourceStart out of bounds");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i,o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=c.isBuffer(e)?e:X(new c(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function W(e){if((e=K(e).replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function K(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}
2function X(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function J(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function Z(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}function Q(e){return n.toByteArray(W(e))}function ee(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function et(e){return e!=e}},85116:(e,t,r)=>{"use strict";r.d(t,{hj:()=>i});let n={FAST_MS:100,NORMAL_MS:1e3,WARNING_MS:3e3};function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=Math.max(0,Date.now()-e);return r>=t.WARNING_MS?{performance:"critical",durationMs:r,lowerBoundMs:t.WARNING_MS,upperBoundMs:1/0,needsAttention:!0}:r>=t.NORMAL_MS?{performance:"slow",durationMs:r,lowerBoundMs:t.NORMAL_MS,upperBoundMs:t.WARNING_MS,needsAttention:!0}:r>=t.FAST_MS?{performance:"normal",durationMs:r,lowerBoundMs:t.FAST_MS,upperBoundMs:t.NORMAL_MS,needsAttention:!1}:{performance:"fast",durationMs:r,lowerBoundMs:0,upperBoundMs:t.FAST_MS,needsAttention:!1}}},85125:(e,t,r)=>{"use strict";var n,i=r(73442),o=r(48744)(),a=r(71355),s=r(10221);if(o){var u=i("RegExp.prototype.exec"),c={},l=function(){throw c},f={toString:l,valueOf:l};"symbol"==typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=l),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{u(e,f)}catch(e){return e===c}}}else{var d=i("Object.prototype.toString"),h="[object RegExp]";n=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&d(e)===h}}e.exports=n},86558:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},87247:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?i-1:0,d=r?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=5960464477539062e-23*(23===i),h=n?0:o-1,p=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?t+=d/u:t+=d*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*g}},87962:e=>{"use strict";e.exports=Math.round},89099:(e,t,r)=>{e.exports=r(6763)},89527:(e,t,r)=>{"use strict";r.d(t,{C:()=>i,f:()=>o});let n=JSON.parse('{"UU":"aircall-website","rE":"2.130.1"}'),i=n.rE,o=n.UU},90126:(e,t,r)=>{"use strict";r.d(t,{t:()=>n,y:()=>o});let n="intercom-popup-open",i="_clone_Intercom",o=()=>{try{Object.defineProperty(window,"Intercom",{set:function(e){var t,r;window[i]=e,null==(t=(r=window)[i])||t.call(r,"onShow",function(){setTimeout(()=>{var e,t;null==(e=(t=window)[i])||e.call(t,"shutdown")},0)}),setTimeout(()=>{var e,t;null==(e=(t=window)[i])||e.call(t,"shutdown")},0)},get:function(){return setTimeout(()=>{var e,t;null==(e=(t=window)[i])||e.call(t,"shutdown")},0),window[i]}})}catch(e){}}},91040:(e,t,r)=>{"use strict";let n,i;r.d(t,{A:()=>t4});var o={};function a(e,t){return function(){return e.apply(t,arguments)}}r.r(o),r.d(o,{hasBrowserEnv:()=>eF,hasStandardBrowserEnv:()=>eH,hasStandardBrowserWebWorkerEnv:()=>eV,navigator:()=>ez,origin:()=>eq});var s=r(99742);let{toString:u}=Object.prototype,{getPrototypeOf:c}=Object,{iterator:l,toStringTag:f}=Symbol,d=(e=>t=>{let r=u.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}
2)(Object.create(null)),h=e=>(e=e.toLowerCase(),t=>d(t)===e),p=e=>t=>typeof t===e,{isArray:g}=Array,b=p("undefined");function v(e){return null!==e&&!b(e)&&null!==e.constructor&&!b(e.constructor)&&w(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let m=h("ArrayBuffer");function y(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer)}let _=p("string"),w=p("function"),S=p("number"),E=e=>null!==e&&"object"==typeof e,x=e=>!0===e||!1===e,k=e=>{if("object"!==d(e))return!1;let t=c(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(f in e)&&!(l in e)},A=e=>{if(!E(e)||v(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},M=h("Date"),R=h("File"),T=e=>!!(e&&void 0!==e.uri),C=e=>e&&void 0!==e.getParts,I=h("Blob"),O=h("FileList"),P=e=>E(e)&&w(e.pipe),L=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}(),N=void 0!==L.FormData?L.FormData:void 0,D=e=>{let t;return e&&(N&&e instanceof N||w(e.append)&&("formdata"===(t=d(e))||"object"===t&&w(e.toString)&&"[object FormData]"===e.toString()))},B=h("URLSearchParams"),[j,U,F,z]=["ReadableStream","Request","Response","Headers"].map(h),H=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function V(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),g(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(v(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(n=0;n<a;n++)i=o[n],t.call(null,e[i],i,e)}}function q(e,t){let r;if(v(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let $="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,G=e=>!b(e)&&e!==$;function W(){let{caseless:e,skipUndefined:t}=G(this)&&this||{},r={},n=(n,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let o=e&&q(r,i)||i;k(r[o])&&k(n)?r[o]=W(r[o],n):k(n)?r[o]=W({},n):g(n)?r[o]=n.slice():t&&b(n)||(r[o]=n)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&V(arguments[e],n);return r}let K=(e,t,r,{allOwnKeys:n}={})=>(V(t,(t,n)=>{r&&w(t)?Object.defineProperty(e,n,{value:a(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),Y=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),X=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},J=(e,t,r,n)=>{let i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&c(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Z=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},Q=e=>{if(!e)return null;if(g(e))return e;let t=e.length;if(!S(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},ee=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&c(Uint8Array)),et=(e,t)=>{let r,n=(e&&e[l]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},er=(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},en=h("HTMLFormElement"),ei=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),eo=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ea=h("RegExp"),es=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};V(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},eu=e=>{es(e,(t,r)=>{if(w(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(w(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},ec=(e,t)=>{let r={};return(e=>
2{e.forEach(e=>{r[e]=!0})})(g(e)?e:String(e).split(t)),r},el=()=>{},ef=(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t;function ed(e){return!!(e&&w(e.append)&&"FormData"===e[f]&&e[l])}let eh=e=>{let t=Array(10),r=(e,n)=>{if(E(e)){if(t.indexOf(e)>=0)return;if(v(e))return e;if(!("toJSON"in e)){t[n]=e;let i=g(e)?[]:{};return V(e,(e,t)=>{let o=r(e,n+1);b(o)||(i[t]=o)}),t[n]=void 0,i}}return e};return r(e,0)},ep=h("AsyncFunction"),eg=e=>e&&(E(e)||w(e))&&w(e.then)&&w(e.catch),eb=(n="function"==typeof setImmediate,i=w($.postMessage),n?setImmediate:i?((e,t)=>($.addEventListener("message",({source:r,data:n})=>{r===$&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),$.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),ev="undefined"!=typeof queueMicrotask?queueMicrotask.bind($):void 0!==s&&s.nextTick||eb,em=e=>null!=e&&w(e[l]),ey={isArray:g,isArrayBuffer:m,isBuffer:v,isFormData:D,isArrayBufferView:y,isString:_,isNumber:S,isBoolean:x,isObject:E,isPlainObject:k,isEmptyObject:A,isReadableStream:j,isRequest:U,isResponse:F,isHeaders:z,isUndefined:b,isDate:M,isFile:R,isReactNativeBlob:T,isReactNative:C,isBlob:I,isRegExp:ea,isFunction:w,isStream:P,isURLSearchParams:B,isTypedArray:ee,isFileList:O,forEach:V,merge:W,extend:K,trim:H,stripBOM:Y,inherits:X,toFlatObject:J,kindOf:d,kindOfTest:h,endsWith:Z,toArray:Q,forEachEntry:et,matchAll:er,isHTMLForm:en,hasOwnProperty:eo,hasOwnProp:eo,reduceDescriptors:es,freezeMethods:eu,toObjectSet:ec,toCamelCase:ei,noop:el,toFiniteNumber:ef,findKey:q,global:$,isContextDefined:G,isSpecCompliantForm:ed,toJSONObject:eh,isAsyncFn:ep,isThenable:eg,setImmediate:eb,asap:ev,isIterable:em};class e_ extends Error{static from(e,t,r,n,i,o){let a=new e_(e.message,t||e.code,r,n,i);return a.cause=e,a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ey.toJSONObject(this.config),code:this.code,status:this.status}}}e_.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",e_.ERR_BAD_OPTION="ERR_BAD_OPTION",e_.ECONNABORTED="ECONNABORTED",e_.ETIMEDOUT="ETIMEDOUT",e_.ERR_NETWORK="ERR_NETWORK",e_.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",e_.ERR_DEPRECATED="ERR_DEPRECATED",e_.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",e_.ERR_BAD_REQUEST="ERR_BAD_REQUEST",e_.ERR_CANCELED="ERR_CANCELED",e_.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",e_.ERR_INVALID_URL="ERR_INVALID_URL";let ew=e_,eS=null;var eE=r(82909).Buffer;function ex(e){return ey.isPlainObject(e)||ey.isArray(e)}function ek(e){return ey.endsWith(e,"[]")?e.slice(0,-2):e}function eA(e,t,r){return e?e.concat(t).map(function(e,t){return e=ek(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}function eM(e){return ey.isArray(e)&&!e.some(ex)}let eR=ey.toFlatObject(ey,{},null,function(e){return/^is[A-Z]/.test(e)}),eT=function(e,t,r){if(!ey.isObject(e))throw TypeError("target must be an object");t=t||new(eS||FormData);let n=(r=ey.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ey.isUndefined(t[e])})).metaTokens,i=r.visitor||c,o=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ey.isSpecCompliantForm(t);if(!ey.isFunction(i))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(ey.isDate(e))return e.toISOString();if(ey.isBoolean(e))return e.toString();if(!s&&ey.isBlob(e))throw new ew("Blob is not supported. Use a Buffer instead.");return ey.isArrayBuffer(e)||ey.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):eE.from(e):e}function c(e,r,i){let s=e;if(ey.isReactNative(t)&&ey.isReactNativeBlob(e))return t.append(eA(i,r,o),u(e)),!1;if(e&&!i&&"object"==typeof e){if(ey.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ey.isArray(e)&&eM(e)||(ey.isFileList(e)||ey.endsWith(r,"[]"))&&(s=ey.toArray(e)))return r=ek(r),s.forEac
2h(function(e,n){ey.isUndefined(e)||null===e||t.append(!0===a?eA([r],n,o):null===a?r:r+"[]",u(e))}),!1}return!!ex(e)||(t.append(eA(i,r,o),u(e)),!1)}let l=[],f=Object.assign(eR,{defaultVisitor:c,convertValue:u,isVisitable:ex});function d(e,r){if(!ey.isUndefined(e)){if(-1!==l.indexOf(e))throw Error("Circular reference detected in "+r.join("."));l.push(e),ey.forEach(e,function(e,n){!0===(!(ey.isUndefined(e)||null===e)&&i.call(t,e,ey.isString(n)?n.trim():n,r,f))&&d(e,r?r.concat(n):[n])}),l.pop()}}if(!ey.isObject(e))throw TypeError("data must be an object");return d(e),t};function eC(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function eI(e,t){this._pairs=[],e&&eT(e,this,t)}let eO=eI.prototype;eO.append=function(e,t){this._pairs.push([e,t])},eO.toString=function(e){let t=e?function(t){return e.call(this,t,eC)}:eC;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let eP=eI;function eL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eN(e,t,r){let n;if(!t)return e;let i=r&&r.encode||eL,o=ey.isFunction(r)?{serialize:r}:r,a=o&&o.serialize;if(n=a?a(t,o):ey.isURLSearchParams(t)?t.toString():new eP(t,o).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}class eD{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ey.forEach(this.handlers,function(t){null!==t&&e(t)})}}let eB=eD,ej={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},eU={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:eP,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},eF="undefined"!=typeof window&&"undefined"!=typeof document,ez="object"==typeof navigator&&navigator||void 0,eH=eF&&(!ez||0>["ReactNative","NativeScript","NS"].indexOf(ez.product)),eV="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eq=eF&&window.location.href||"http://localhost",e$={...o,...eU};function eG(e,t){return eT(e,new e$.classes.URLSearchParams,{visitor:function(e,t,r,n){return e$.isNode&&ey.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}function eW(e){return ey.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function eK(e){let t,r,n={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)n[r=i[t]]=e[r];return n}let eY=function(e){function t(e,r,n,i){let o=e[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=e.length;return(o=!o&&ey.isArray(n)?n.length:o,s)?ey.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r:(n[o]&&ey.isObject(n[o])||(n[o]=[]),t(e,r,n[o],i)&&ey.isArray(n[o])&&(n[o]=eK(n[o]))),!a}if(ey.isFormData(e)&&ey.isFunction(e.entries)){let r={};
2return ey.forEachEntry(e,(e,n)=>{t(eW(e),n,r,0)}),r}return null};function eX(e,t,r){if(ey.isString(e))try{return(t||JSON.parse)(e),ey.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}let eJ={transitional:ej,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=ey.isObject(e);if(o&&ey.isHTMLForm(e)&&(e=new FormData(e)),ey.isFormData(e))return i?JSON.stringify(eY(e)):e;if(ey.isArrayBuffer(e)||ey.isBuffer(e)||ey.isStream(e)||ey.isFile(e)||ey.isBlob(e)||ey.isReadableStream(e))return e;if(ey.isArrayBufferView(e))return e.buffer;if(ey.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return eG(e,this.formSerializer).toString();if((r=ey.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return eT(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),eX(e)):e}],transformResponse:[function(e){let t=this.transitional||eJ.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(ey.isResponse(e)||ey.isReadableStream(e))return e;if(e&&ey.isString(e)&&(r&&!this.responseType||n)){let r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw ew.from(e,ew.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:e$.classes.FormData,Blob:e$.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ey.forEach(["delete","get","head","post","put","patch"],e=>{eJ.headers[e]={}});let eZ=eJ,eQ=ey.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),e0=e=>{let t,r,n,i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&eQ[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i},e1=Symbol("internals"),e2=e=>!/[\r\n]/.test(e);function e3(e,t){if(!1!==e&&null!=e){if(ey.isArray(e))return void e.forEach(e=>e3(e,t));if(!e2(String(e)))throw Error(`Invalid character in header content ["${t}"]`)}}function e6(e){return e&&String(e).trim().toLowerCase()}function e4(e){let t=e.length;for(;t>0;){let r=e.charCodeAt(t-1);if(10!==r&&13!==r)break;t-=1}return t===e.length?e:e.slice(0,t)}function e5(e){return!1===e||null==e?e:ey.isArray(e)?e.map(e5):e4(String(e))}function e8(e){let t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
2for(;t=n.exec(e);)r[t[1]]=t[2];return r}let e9=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function e7(e,t,r,n,i){if(ey.isFunction(n))return n.call(this,t,r);if(i&&(t=r),ey.isString(t)){if(ey.isString(n))return -1!==t.indexOf(n);if(ey.isRegExp(n))return n.test(t)}}function te(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function tt(e,t){let r=ey.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}class tr{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=e6(t);if(!i)throw Error("header name must be a non-empty string");let o=ey.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(e3(e,t),n[o||t]=e5(e))}let o=(e,t)=>ey.forEach(e,(e,r)=>i(e,r,t));if(ey.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ey.isString(e)&&(e=e.trim())&&!e9(e))o(e0(e),t);else if(ey.isObject(e)&&ey.isIterable(e)){let r={},n,i;for(let t of e){if(!ey.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?ey.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(r,t)}else null!=e&&i(t,e,r);return this}get(e,t){if(e=e6(e)){let r=ey.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return e8(e);if(ey.isFunction(t))return t.call(this,e,r);if(ey.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=e6(e)){let r=ey.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||e7(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=e6(e)){let i=ey.findKey(r,e);i&&(!t||e7(r,r[i],i,t))&&(delete r[i],n=!0)}}return ey.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||e7(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};
vendor: 1,236 bytes, line 2
2return ey.forEach(this,(n,i)=>{let o=ey.findKey(r,i);if(o){t[o]=e5(n),delete t[i];return}let a=e?te(i):String(i).trim();a!==i&&delete t[i],t[a]=e5(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ey.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ey.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[e1]=this[e1]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=e6(e);t[n]||(tt(r,e),t[n]=!0)}return ey.isArray(e)?e.forEach(n):n(e),this}}tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ey.reduceDescriptors(tr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),ey.freezeMethods(tr);let tn=tr;function ti(e,t){let r=this||eZ,n=t||r,i=tn.from(n.headers),o=n.data;
2return ey.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function to(e){return!!(e&&e.__CANCEL__)}class ta extends ew{constructor(e,t,r){super(null==e?"canceled":e,ew.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}}let ts=ta;function tu(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ew("Request failed with status code "+r.status,[ew.ERR_BAD_REQUEST,ew.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function tc(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}let tl=function(e,t){let r,n=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let u=Date.now(),c=i[a];r||(r=u),n[o]=s,i[o]=u;let l=a,f=0;for(;l!==o;)f+=n[l++],l%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),u-r<t)return;let d=c&&u-c;return d?Math.round(1e3*f/d):void 0}},tf=function(e,t){let r,n,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},o-s)))},()=>r&&a(r)]},td=(e,t,r=3)=>{let n=0,i=tl(50,250);return tf(r=>{let o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-n,u=i(s),c=o<=a;n=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&c?(a-o)/u:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},th=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},tp=e=>(...t)=>ey.asap(()=>e(...t)),tg=e$.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,e$.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(e$.origin),e$.navigator&&/(msie|trident)/i.test(e$.navigator.userAgent)):()=>!0,tb=e$.hasStandardBrowserEnv?{write(e,t,r,n,i,o,a){if("undefined"==typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];ey.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),ey.isString(n)&&s.push(`path=${n}`),ey.isString(i)&&s.push(`domain=${i}`),!0===o&&s.push("secure"),ey.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function tv(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tm(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ty(e,t,r){let n=!tv(t);return e&&(n||!1==r)?tm(e,t):t}let t_=e=>e instanceof tn?{...e}:e;function tw(e,t){t=t||{};let r={};function n(e,t,r,n){return ey.isPlainObject(e)&&ey.isPlainObject(t)?ey.merge.call({caseless:n},e,t):ey.isPlainObject(t)?ey.merge({},t):ey.isArray(t)?t.slice():t}function i(e,t,r,i){return ey.isUndefined(t)?ey.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function o(e,t){if(!ey.isUndefined(t))return n(void 0,t)}function a(e,t){return ey.isUndefined(t)?ey.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}let u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>i(t_(e),t_(t),r,!0)};
2return ey.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let o=ey.hasOwnProp(u,n)?u[n]:i,a=o(e[n],t[n],n);ey.isUndefined(a)&&o!==s||(r[n]=a)}),r}let tS=e=>{let t=tw({},e),{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;if(t.headers=a=tn.from(a),t.url=eN(ty(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ey.isFormData(r)){if(e$.hasStandardBrowserEnv||e$.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(ey.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&a.set(e,r)})}}if(e$.hasStandardBrowserEnv&&(n&&ey.isFunction(n)&&(n=n(t)),n||!1!==n&&tg(t.url))){let e=i&&o&&tb.read(o);e&&a.set(i,e)}return t},tE="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,o,a,s,u=tS(e),c=u.data,l=tn.from(u.headers).normalize(),{responseType:f,onUploadProgress:d,onDownloadProgress:h}=u;function p(){a&&a(),s&&s(),u.cancelToken&&u.cancelToken.unsubscribe(n),u.signal&&u.signal.removeEventListener("abort",n)}let g=new XMLHttpRequest;function b(){if(!g)return;let n=tn.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());tu(function(e){t(e),p()},function(e){r(e),p()},{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(u.method.toUpperCase(),u.url,!0),g.timeout=u.timeout,"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(b)},g.onabort=function(){g&&(r(new ew("Request aborted",ew.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){let n=new ew(t&&t.message?t.message:"Network Error",ew.ERR_NETWORK,e,g);n.event=t||null,r(n),g=null},g.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",n=u.transitional||ej;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),r(new ew(t,n.clarifyTimeoutError?ew.ETIMEDOUT:ew.ECONNABORTED,e,g)),g=null},void 0===c&&l.setContentType(null),"setRequestHeader"in g&&ey.forEach(l.toJSON(),function(e,t){g.setRequestHeader(t,e)}),ey.isUndefined(u.withCredentials)||(g.withCredentials=!!u.withCredentials),f&&"json"!==f&&(g.responseType=u.responseType),h&&([o,s]=td(h,!0),g.addEventListener("progress",o)),d&&g.upload&&([i,a]=td(d),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",a)),(u.cancelToken||u.signal)&&(n=t=>{g&&(r(!t||t.type?new ts(null,e,g):t),g.abort(),g=null)},u.cancelToken&&u.cancelToken.subscribe(n),u.signal&&(u.signal.aborted?n():u.signal.addEventListener("abort",n)));let v=tc(u.url);if(v&&-1===e$.protocols.indexOf(v))return void r(new ew("Unsupported protocol "+v+":",ew.ERR_BAD_REQUEST,e));g.send(c||null)})},tx=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,i=function(e){if(!r){r=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof ew?t:new ts(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new ew(`timeout of ${t}ms exceeded`,ew.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:s}=n;return s.unsubscribe=()=>ey.asap(a),s}},tk=function*(e,t){let r,n=e.byteLength;if(!t||n<t)return void(yield e);let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},tA=async function*(e,t){for await(let r of tM(e))yield*tk(r,t)},tM=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},tR=(e,t,r,n)=>{let i,o=tA(e,t),a=0,s=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await o.next();if(t){s(),e.close();return}let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},tT=65536,{isFunction:tC}=ey,tI=(({Request:e,Response:t})=>({Request:e,Response:t}))(ey.global),{ReadableStream:tO,TextEncoder:tP}=ey.global,tL=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tN=e=>{let t,{fetch:r,Request:n,Response:i}=e=ey.merge.call({skipUndefined:!0},tI,e),o=r?tC(r):"function"==typeof fetch,a=tC(n),s=tC(i);if(!o)return!1;let u=o&&tC(tO),c=o&&("function"==typeof tP?(t=new tP,e=>t.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&u&&tL(()=>{let e=!1,t=new tO,r=new n(e$.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!r}),f=s&&u&&tL(()=>ey.isReadableStream(new i("").body)),d={stream:f&&(e=>e.body)};o&&(()=>
2{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{d[e]||(d[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new ew(`Response type '${e}' is not supported`,ew.ERR_NOT_SUPPORT,r)})})})();let h=async e=>{if(null==e)return 0;if(ey.isBlob(e))return e.size;if(ey.isSpecCompliantForm(e)){let t=new n(e$.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ey.isArrayBufferView(e)||ey.isArrayBuffer(e)?e.byteLength:(ey.isURLSearchParams(e)&&(e+=""),ey.isString(e))?(await c(e)).byteLength:void 0},p=async(e,t)=>{let r=ey.toFiniteNumber(e.getContentLength());return null==r?h(t):r};return async e=>{let t,{url:o,method:s,data:u,signal:c,cancelToken:h,timeout:g,onDownloadProgress:b,onUploadProgress:v,responseType:m,headers:y,withCredentials:_="same-origin",fetchOptions:w}=tS(e),S=r||fetch;m=m?(m+"").toLowerCase():"text";let E=tx([c,h&&h.toAbortSignal()],g),x=null,k=E&&E.unsubscribe&&(()=>{E.unsubscribe()});try{if(v&&l&&"get"!==s&&"head"!==s&&0!==(t=await p(y,u))){let e,r=new n(o,{method:"POST",body:u,duplex:"half"});if(ey.isFormData(u)&&(e=r.headers.get("content-type"))&&y.setContentType(e),r.body){let[e,n]=th(t,td(tp(v)));u=tR(r.body,tT,e,n)}}ey.isString(_)||(_=_?"include":"omit");let r=a&&"credentials"in n.prototype,c={...w,signal:E,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:u,duplex:"half",credentials:r?_:void 0};x=a&&new n(o,c);let h=await (a?S(x,w):S(o,c)),g=f&&("stream"===m||"response"===m);if(f&&(b||g&&k)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});let t=ey.toFiniteNumber(h.headers.get("content-length")),[r,n]=b&&th(t,td(tp(b),!0))||[];h=new i(tR(h.body,tT,r,()=>{n&&n(),k&&k()}),e)}m=m||"text";let A=await d[ey.findKey(d,m)||"text"](h,e);return!g&&k&&k(),await new Promise((t,r)=>{tu(t,r,{data:A,headers:tn.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:x})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ew("Network Error",ew.ERR_NETWORK,e,x,t&&t.response),{cause:t.cause||t});throw ew.from(t,t&&t.code,e,x,t&&t.response)}}},tD=new Map,tB=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:i}=t,o=[n,i,r],a=o.length,s,u,c=tD;for(;a--;)s=o[a],void 0===(u=c.get(s))&&c.set(s,u=a?new Map:tN(t)),c=u;return u};tB();let tj={http:eS,xhr:tE,fetch:{get:tB}};ey.forEach(tj,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let tU=e=>`- ${e}`,tF=e=>ey.isFunction(e)||null===e||!1===e,tz={getAdapter:function(e,t){let r,n,{length:i}=e=ey.isArray(e)?e:[e],o={};for(let a=0;a<i;a++){let i;if(n=r=e[a],!tF(r)&&void 0===(n=tj[(i=String(r)).toLowerCase()]))throw new ew(`Unknown adapter '${i}'`);if(n&&(ey.isFunction(n)||(n=n.get(t))))break;o[i||"#"+a]=n}if(!n){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ew("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(tU).join("\n"):" "+tU(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n}};function tH(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ts(null,e)}function tV(e){return tH(e),e.headers=tn.from(e.headers),e.data=ti.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tz.getAdapter(e.adapter||eZ.adapter,e)(e).then(function(t){return tH(e),t.data=ti.call(e,e.transformResponse,t),t.headers=tn.from(t.headers),t},function(t){return!to(t)&&(tH(e),t&&t.response&&(t.response.data=ti.call(e,e.transformResponse,t.response),t.response.headers=tn.from(t.response.headers))),Promise.reject(t)})}let tq="1.15.0",t$={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{t$[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tG={};t$.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tq+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new ew(n(i," has been removed"+(t?" in "+t:"")),ew.ERR_DEPRECATED);return t&&!tG[i]&&(tG[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}},t$.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}
2`),!0)};let tW={assertOptions:function(e,t,r){if("object"!=typeof e)throw new ew("options must be an object",ew.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],a=t[o];if(a){let t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new ew("option "+o+" must be "+r,ew.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ew("Unknown option "+o,ew.ERR_BAD_OPTION)}},validators:t$},tK=tW.validators;class tY{constructor(e){this.defaults=e||{},this.interceptors={request:new eB,response:new eB}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){let t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=tw(this.defaults,t);void 0!==i&&tW.assertOptions(i,{silentJSONParsing:tK.transitional(tK.boolean),forcedJSONParsing:tK.transitional(tK.boolean),clarifyTimeoutError:tK.transitional(tK.boolean),legacyInterceptorReqResOrdering:tK.transitional(tK.boolean)},!1),null!=o&&(ey.isFunction(o)?t.paramsSerializer={serialize:o}:tW.assertOptions(o,{encode:tK.function,serialize:tK.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tW.assertOptions(t,{baseUrl:tK.spelling("baseURL"),withXsrfToken:tK.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&ey.merge(a.common,a[t.method]);a&&ey.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=tn.concat(s,a);let u=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let r=t.transitional||ej;r&&r.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let f=0;if(!c){let e=[tV.bind(this),void 0];for(e.unshift(...u),e.push(...l),n=e.length,r=Promise.resolve(t);f<n;)r=r.then(e[f++],e[f++]);return r}n=u.length;let d=t;for(;f<n;){let e=u[f++],t=u[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{r=tV.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,n=l.length;f<n;)r=r.then(l[f++],l[f++]);return r}getUri(e){return eN(ty((e=tw(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}ey.forEach(["delete","get","head","options"],function(e){tY.prototype[e]=function(t,r){return this.request(tw(r||{},{method:e,url:t,data:(r||{}).data}))}}),ey.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(tw(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tY.prototype[e]=t(),tY.prototype[e+"Form"]=t(!0)});let tX=tY;class tJ{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new ts(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tJ(function(t){e=t}),cancel:e}}}let tZ=tJ;function tQ(e){return function(t){return e.apply(null,t)}}function t0(e){return ey.isObject(e)&&!0===e.isAxiosError}let t1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
2setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(t1).forEach(([e,t])=>{t1[t]=e});let t2=t1;function t3(e){let t=new tX(e),r=a(tX.prototype.request,t);return ey.extend(r,tX.prototype,t,{allOwnKeys:!0}),ey.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return t3(tw(e,t))},r}let t6=t3(eZ);t6.Axios=tX,t6.CanceledError=ts,t6.CancelToken=tZ,t6.isCancel=to,t6.VERSION=tq,t6.toFormData=eT,t6.AxiosError=ew,t6.Cancel=t6.CanceledError,t6.all=function(e){return Promise.all(e)},t6.spread=tQ,t6.isAxiosError=t0,t6.mergeConfig=tw,t6.AxiosHeaders=tn,t6.formToJSON=e=>eY(ey.isHTMLForm(e)?new FormData(e):e),t6.getAdapter=tz.getAdapter,t6.HttpStatusCode=t2,t6.default=t6;let t4=t6},91137:(e,t,r)=>{"use strict";var n=r(73442),i=r(85125),o=n("RegExp.prototype.exec"),a=r(65865);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},92738:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},93023:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},93570:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},94091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return a},getRedirectStatusCodeFromError:function(){return f},getRedirectTypeFromError:function(){return l},getURLFromRedirectError:function(){return c},permanentRedirect:function(){return u},redirect:function(){return s}});let n=r(13666),i=r(86500),o=void 0;function a(e,t,r){void 0===r&&(r=n.RedirectStatusCode.TemporaryRedirect);let o=Object.defineProperty(Error(i.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return o.digest=i.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+r+";",o}function s(e,t){var r;throw null!=t||(t=(null==o||null==(r=o.getStore())?void 0:r.isAction)?i.RedirectType.push:i.RedirectType.replace),a(e,t,n.RedirectStatusCode.TemporaryRedirect)}function u(e,t){throw void 0===t&&(t=i.RedirectType.replace),a(e,t,n.RedirectStatusCode.PermanentRedirect)}function c(e){return(0,i.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function l(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function f(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
2dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return u.ReadonlyURLSearchParams},RedirectType:function(){return u.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},forbidden:function(){return u.forbidden},notFound:function(){return u.notFound},permanentRedirect:function(){return u.permanentRedirect},redirect:function(){return u.redirect},unauthorized:function(){return u.unauthorized},unstable_isUnrecognizedActionError:function(){return l.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return u.unstable_rethrow},useParams:function(){return g},usePathname:function(){return h},useRouter:function(){return p},useSearchParams:function(){return d},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return v},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let n=r(14232),i=r(3669),o=r(9440),a=r(66454),s=r(54933),u=r(37788),c=r(7430),l=r(22182),f=void 0;function d(){let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new u.ReadonlyURLSearchParams(e):null,[e])}function h(){return null==f||f("usePathname()"),(0,n.useContext)(o.PathnameContext)}function p(){let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function g(){return null==f||f("useParams()"),(0,n.useContext)(o.PathParamsContext)}function b(e,t,r,n){let i;if(void 0===r&&(r=!0),void 0===n&&(n=[]),r)i=e[1][t];else{var o;let t=e[1];i=null!=(o=t.children)?o:Object.values(t)[0]}if(!i)return n;let u=i[0],c=(0,a.getSegmentValue)(u);return!c||c.startsWith(s.PAGE_SEGMENT_KEY)?n:(n.push(c),b(i,t,!1,n))}function v(e){void 0===e&&(e="children"),null==f||f("useSelectedLayoutSegments()");let t=(0,n.useContext)(i.LayoutRouterContext);return t?b(t.parentTree,e):null}function m(e){void 0===e&&(e="children"),null==f||f("useSelectedLayoutSegment()");let t=v(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===s.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95295:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(77785);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},96081:(e,t,r)=>{var n=r(82909),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},96512:(e,t,r)=>{"use strict";var n=r(73442),i=r(91137)(/^\s*(?:function)?\*/),o=r(48744)(),a=r(34816),s=n("Object.prototype.toString"),u=n("Function.prototype.toString"),c=r(6307);e.exports=function(e){if("function"!=typeof e)return!1;if(i(u(e)))return!0;if(!o)return"[object GeneratorFunction]"===s(e);if(!a)return!1;var t=c();return t&&a(e)===t.prototype}},97264:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{if(a(e))return!1;return n.call(e),!0}catch(e){return!1}},u=Object.prototype.toString,c="[object Object]",l="[object Function]",f="[object GeneratorFunction]",d="[object HTMLAllCollection]",h="[object HTML document.all class]",p="[object HTMLCollection]",g="function"==typeof Symbol&&!!Symbol.toStringTag,b=!(0 in[,]),v=function(){return!1};if("object"==typeof document){var m=document.all;u.call(m)===u.call(document.all)&&(v=function(e){if((b||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return(t===d||t===h||t===p||t===c)&&null==e("")}catch(e){}return!1})}
2e.exports=i?function(e){if(v(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(v(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(g)return s(e);if(a(e))return!1;var t=u.call(e);return(t===l||t===f||!!/^\[object HTML/.test(t))&&s(e)}},98857:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(92),t(6763))),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.