1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,988571,t=>{t.v(JSON.parse('{"name":"@unleash/nextjs","version":"1.6.2","description":"Unleash SDK for Next.js","main":"dist/index.js","types":"dist/index.d.ts","license":"Apache-2.0","bin":{"unleash":"./dist/cli/index.js"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./client":{"types":"./client.d.ts","default":"./client.js"}},"files":["dist","client.*","src"],"scripts":{"lint":"eslint src/**/*.ts* client.ts","test":"vitest run --coverage","test:dev":"vitest","build":"tsc && tsc --p tsconfig.client.json && cp ../README.md ./README.md","dev":"tsc -w"},"devDependencies":{"@types/murmurhash3js":"3.0.7","@types/node":"22.5.5","@types/react":"18.3.8","@types/react-dom":"18.3.0","@types/semver":"7.5.8","@unleash/client-specification":"5.1.9","@vitest/coverage-v8":"^2.1.1","eslint-config-custom":"*","next":"14.2.13","react":"18.3.1","react-dom":"18.3.1","typescript":"5.6.2","vite":"5.4.6","vitest":"2.1.1"},"dependencies":{"@commander-js/extra-typings":"12.1.0","@next/env":"14.2.13","@unleash/proxy-client-react":"5.0.0","commander":"12.1.0","murmurhash3js":"3.0.1","semver":"7.6.3","unleash-client":"^6.4.4","unleash-proxy-client":"^3.7.4"},"peerDependencies":{"next":">=12","react":">=17","react-dom":">=17"},"repository":{"type":"git","url":"https://github.com/Unleash/unleash-client-nextjs"},"bugs":{"url":"https://github.com/Unleash/unleash-client-nextjs/issues"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}'))},291343,(t,e,r)=>{"use strict";var n=t.i(247167);Object.defineProperty(r,"__esModule",{value:!0}),r.removeTrailingSlash=r.getDefaultServerConfig=r.getDefaultClientConfig=r.getServerBaseUrl=r.randomSessionId=r.safeCompare=void 0,r.safeCompare=(t,e)=>{let r=String(t),n=String(e),o=r.length,i=0;o!==n.length&&(n=r,i=1);for(let t=0;t<o;t++)i|=r.charCodeAt(t)^n.charCodeAt(t);return 0===i},r.randomSessionId=()=>`${Math.floor(1e9*Math.random())}`;let o=()=>{n.default.env.NEXT_PUBLIC_UNLEASH_SERVER_API_TOKEN&&console.warn("You are trying to set `NEXT_PUBLIC_UNLEASH_SERVER_API_TOKEN`. Server keys shouldn't be public. Use frontend keys or skip `NEXT_PUBLIC_ prefix.")};r.getServerBaseUrl=()=>n.default.env.UNLEASH_SERVER_API_URL||n.default.env.NEXT_PUBLIC_UNLEASH_SERVER_API_URL,r.getDefaultClientConfig=()=>(o(),{url:n.default.env.UNLEASH_FRONTEND_API_URL||"https://us.app.unleash-hosted.com/usnn0082/api/frontend/",appName:n.default.env.UNLEASH_APP_NAME||n.default.env.NEXT_PUBLIC_UNLEASH_APP_NAME||"nextjs",clientKey:n.default.env.UNLEASH_FRONTEND_API_TOKEN||"*:production.b333a8d3153c52896cd1859fe3229657e94c406ecc595569ec8f7818"}),r.getDefaultServerConfig=()=>(o(),{url:(0,r.getServerBaseUrl)()||"http://localhost:4242/api",appName:n.default.env.UNLEASH_APP_NAME||n.default.env.NEXT_PUBLIC_UNLEASH_APP_NAME||"nextjs",clientKey:n.default.env.UNLEASH_SERVER_API_TOKEN||"default:development.unleash-insecure-server-api-token"}),r.removeTrailingSlash=t=>t?.replace(/\/$/,"")},215220,(t,e,r)=>{"use strict";let n;var o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},i=function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function s(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})}function a(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){var l=[a,u];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=e.call(t,i)}catch(t){l=[6,t],n=0}
1finally{r=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}"function"==typeof SuppressedError&&SuppressedError;var u={exports:{}};function l(){}l.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function o(){n.off(t,o),e.apply(r,arguments)}return o._=e,this.on(t,o,r)},emit:function(t){for(var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].fn.apply(r[n].ctx,e);return this},off:function(t,e){var r=this.e||(this.e={}),n=r[t],o=[];if(n&&e)for(var i=0,s=n.length;i<s;i++)n[i].fn!==e&&n[i].fn._!==e&&o.push(n[i]);return o.length?r[t]=o:delete r[t],this}},u.exports=l;var c=u.exports.TinyEmitter=l,f=function(t){return null!=t[1]},h=function(t){var e=t.properties,r=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)0>e.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["properties"]),n=function(t){return Object.entries(t).sort(function(t,e){var r=t[0],n=e[0];return r.localeCompare(n,void 0)})};return JSON.stringify([n(r),n(void 0===e?{}:e)])},p=function(t){return s(void 0,void 0,void 0,function(){var e;return a(this,function(r){var n;switch(r.label){case 0:e=h(t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(n=e,s(void 0,void 0,void 0,function(){var t,e,r,o;return a(this,function(i){switch(i.label){case 0:if(t="undefined"!=typeof globalThis&&(null==(r=globalThis.crypto)?void 0:r.subtle)?null==(o=globalThis.crypto)?void 0:o.subtle:void 0,"undefined"==typeof TextEncoder||!(null==t?void 0:t.digest)||"undefined"==typeof Uint8Array)throw Error("Hashing function not available");return e=(new TextEncoder).encode(n),[4,t.digest("SHA-256",e)];case 1:return[2,Array.from(new Uint8Array(i.sent())).map(function(t){return t.toString(16).padStart(2,"0")}).join("")]}})}))];case 2:return[2,r.sent()];case 3:return r.sent(),[2,e];case 4:return[2]}})})},d=function(t){var e,r=t.clientKey,n=t.appName,o=t.connectionId,i=t.customHeaders,s=t.headerName,a=t.etag,u=t.isPost,l=((e={accept:"application/json"})[(void 0===s?"authorization":s).toLocaleLowerCase()]=r,e["unleash-sdk"]="unleash-client-js:3.7.8",e["unleash-appname"]=n,e);return u&&(l["content-type"]="application/json"),a&&(l["if-none-match"]=a),Object.entries(i||{}).filter(f).forEach(function(t){var e=t[0],r=t[1];return l[e.toLocaleLowerCase()]=r}),l["unleash-connection-id"]=o,l},g=function(){},y=function(){function t(t){var e=t.onError,r=t.onSent,n=t.appName,o=t.metricsInterval,i=t.disableMetrics,s=t.url,a=t.clientKey,u=t.fetch,l=t.headerName,c=t.customHeaders,f=t.metricsIntervalInitial,h=t.connectionId;this.onError=e,this.onSent=r||g,this.disabled=void 0!==i&&i,this.metricsInterval=1e3*o,this.metricsIntervalInitial=1e3*f,this.appName=n,this.url=s instanceof URL?s:new URL(s),this.clientKey=a,this.bucket=this.createEmptyBucket(),this.fetch=u,this.headerName=l,this.customHeaders=void 0===c?{}:c,this.connectionId=h}return t.prototype.start=function(){var t=this;if(this.disabled)return!1;"number"==typeof this.metricsInterval&&this.metricsInterval>0&&(this.metricsIntervalInitial>0?setTimeout(function(){t.startTimer(),t.sendMetrics()},this.metricsIntervalInitial):this.startTimer())},t.prototype.stop=function(){this.timer&&(clearInterval(this.timer),delete this.timer)},t.prototype.createEmptyBucket=function(){return{start:new Date,stop:null,toggles:{}}},t.prototype.getHeaders=function(){return d({clientKey:this.clientKey,appName:this.appName,connectionId:this.connectionId,customHeaders:this.customHeaders,headerName:this.headerName,isPost:!0})},t.prototype.sendMetrics=function(){return s(this,void 0,void 0,function(){var t,e,r;return a(this,function(n){switch(n.label){case 0:if(t="".concat(this.url,"/client/metrics"),e=this.getPayload(),this.bucketIsEmpty(e))return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.fetch(t,{cache:"no-cache",method:"POST",headers:this.getHeaders(),body:JSON.stringify(e)})];case 2:return n.sent(),this.onSent(e),[3,4];case 3:return console.error("Unleash: unable to send feature metrics",r=n.sent()),this.onError(r),[3,4];case 4:return[2]}})})},t.prototype.count=function(t,e){return!(this.disabled||!this.bucket)&&(this.assertBucket(t),this.bucket.toggles[t][e?"yes":"no"]++,!0)},t.prototype.countVariant=function(t,e){return!(this.disabled||!this.bucket)&&(this.assertBucket(t),this.bucket.toggles[t].variants[e]?this.bucket.toggles[t].variants[e]+=1:this.bucket.toggles[t].variants[e]=1,!0)},t.prototype.assertBucket=function(t){if(this.disabled||!this.bucket)return!1;this.bucket.toggles[t]||(this.bucket.toggles[t]={yes:0,no:0,variants:{}})},t.prototype.startTimer=function(){var t=this;this.timer=setInterval(function(){t.sendMetrics()},this.metricsInterval)},t.prototype.bucketIsEmpty=function(t){return 0===Object.keys(t.bucket.toggles).length},t.prototype.getPayload=function(){var t=i(i({},this.bucket),{stop:new Date});return this.bucket=this.createEmptyBucket(),{bucket:t,appName:this.appName,instanceId:"browser"}},t}(),v=function(){function t(){this.store=new Map}return t.prototype.save=function(t,e){return s(this,void 0,void 0,function(){return a(this,function(r){return this.store.set(t,e),[2]})})},t.prototype.get=function(t){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,this.store.get(t)]})})},t}(),m=function(){function t(t){void 0===t&&(t="unleash:repository"),this.prefix=t}return t.prototype.save=function(t,e){return s(this,void 0,void 0,function(){var r,n;return a(this,function(o){r=JSON.stringify(e),n="".concat(this.prefix,":").concat(t);try{window.localStorage.setItem(n,r)}catch(t){console.error(t)}return[2]})})},t.prototype.get=function(t){try{var e="".concat(this.prefix,":").concat(t),r=window.localStorage.getItem(e);return r?JSON.parse(r):void 0}catch(t){console.error(t)}},t}();let b=new Uint8Array(16),w=[];for(let t=0;t<256;++t)w.push((t+256).toString(16).slice(1));var E={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},_=function(){function t(){}return t.prototype.generateEventId=function(){return function(t,e,r){if(E.randomUUID&&!t)return E.randomUUID();let o=(t=t||{}).random||(t.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(b)})();o[6]=15&o[6]|64,void(o[8]=63&o[8]|128);return function(t,e=0){return w[t[e+0]]+w[t[e+1]]+w[t[e+2]]+w[t[e+3]]+"-"+w[t[e+4]]+w[t[e+5]]+"-"+w[t[e+6]]+w[t[e+7]]+"-"+w[t[e+8]]+w[t[e+9]]+"-"+w[t[e+10]]+w[t[e+11]]+w[t[e+12]]+w[t[e+13]]+w[t[e+14]]+w[t[e+15]]}(o)}()},t.prototype.createImpressionEvent=function(t,e,r,n,o,s){var a=this.createBaseEvent(t,e,r,n,o);return s?i(i({},a),{variant:s}):a},t.prototype.createBaseEvent=function(t,e,r,n,o){return{eventType:n,eventId:this.generateEventId(),context:t,enabled:e,featureName:r,impressionData:o}},t}(),x=["userId","sessionId","remoteAddress","currentTime"],S=function(t){return x.includes(t)},T={INIT:"initialized",ERROR:"error",READY:"ready",UPDATE:"update",IMPRESSION:"impression",SENT:"sent",RECOVERED:"recovered"},A={name:"disabled",enabled:!1,feature_enabled:!1},I="repo",O="repoLastUpdateTimestamp",k=function(){try{if("undefined"!=typeof window&&"fetch"in window)return fetch.bind(window);if("fetch"in globalThis)return fetch.bind(globalThis)}catch(t){console.error('Unleash failed to resolve "fetch"',t)}},R=function(t){function e(e){var r,n=e.storageProvider,o=e.url,s=e.clientKey,a=e.disableRefresh,u=e.refreshInterval,l=e.metricsInterval,c=e.metricsIntervalInitial,f=e.disableMetrics,h=e.appName,p=e.environment,d=e.context,g=e.fetch,b=void 0===g?k():g,w=e.createAbortController,E=void 0===w?function(){try{if("undefined"!=typeof window&&"AbortController"in window)return function(){return new window.AbortController};if("fetch"in globalThis)return function(){return new globalThis.AbortController}}catch(t){console.error('Unleash failed to resolve "AbortController" factory',t)}}():w,x=e.bootstrap,S=e.bootstrapOverride,A=e.headerName,I=void 0===A?"Authorization":A,O=e.customHeaders,R=void 0===O?{}:O,U=e.impressionDataAll,C=e.usePOSTrequests,P=e.experimental,L=t.call(this)||this;if(L.toggles=[],L.etag="",L.readyEventEmitted=!1,L.fetchedFromServer=!1,L.usePOSTrequests=!1,L.started=!1,!o)throw Error("url is required");if(!s)throw Error("clientKey is required");
1if(!h)throw Error("appName is required.");L.eventsHandler=new _,L.impressionDataAll=void 0!==U&&U,L.toggles=x&&x.length>0?x:[],L.url=o instanceof URL?o:new URL(o),L.clientKey=s,L.headerName=I,L.customHeaders=R,L.storage=n||("undefined"!=typeof window?new m:new v),L.refreshInterval=void 0!==a&&a?0:1e3*(void 0===u?30:u),L.context=i({appName:h,environment:void 0===p?"default":p},d),L.usePOSTrequests=void 0!==C&&C,L.sdkState="initializing";var N=null==P?void 0:P.metricsUrl;return!N||N instanceof URL||(N=new URL(N)),L.experimental=i(i({},P),{metricsUrl:N}),(null==P?void 0:P.togglesStorageTTL)&&(null==P?void 0:P.togglesStorageTTL)>0&&(L.experimental.togglesStorageTTL=1e3*P.togglesStorageTTL),L.lastRefreshTimestamp=0,L.ready=new Promise(function(t){L.init().then(t).catch(function(e){console.error(e),L.sdkState="error",L.emit(T.ERROR,e),L.lastError=e,t()})}),b||console.error('Unleash: You must either provide your own "fetch" implementation or run in an environment where "fetch" is available.'),E||console.error('Unleash: You must either provide your own "AbortController" implementation or run in an environment where "AbortController" is available.'),L.fetch=b,L.createAbortController=E,L.bootstrap=x&&x.length>0?x:void 0,L.bootstrapOverride=void 0===S||S,L.connectionId="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}),L.metrics=new y({onError:L.emit.bind(L,T.ERROR),onSent:L.emit.bind(L,T.SENT),appName:h,metricsInterval:void 0===l?30:l,disableMetrics:void 0!==f&&f,url:(null==(r=L.experimental)?void 0:r.metricsUrl)||L.url,clientKey:s,fetch:b,headerName:I,customHeaders:R,metricsIntervalInitial:void 0===c?2:c,connectionId:L.connectionId}),L}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.getAllToggles=function(){return function(t,e,r){for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}([],this.toggles,0)},e.prototype.isEnabled=function(t){var e,r=this.toggles.find(function(e){return e.name===t}),n=!!r&&r.enabled;if(this.metrics.count(t,n),(null==r?void 0:r.impressionData)||this.impressionDataAll){var o=this.eventsHandler.createImpressionEvent(this.context,n,t,"isEnabled",null!=(e=null==r?void 0:r.impressionData)?e:void 0);this.emit(T.IMPRESSION,o)}return n},e.prototype.getVariant=function(t){var e,r=this.toggles.find(function(e){return e.name===t}),n=(null==r?void 0:r.enabled)||!1,o=r?r.variant:A;if(o.name&&this.metrics.countVariant(t,o.name),this.metrics.count(t,n),(null==r?void 0:r.impressionData)||this.impressionDataAll){var s=this.eventsHandler.createImpressionEvent(this.context,n,t,"getVariant",null!=(e=null==r?void 0:r.impressionData)?e:void 0,o.name);this.emit(T.IMPRESSION,s)}return i(i({},o),{feature_enabled:n})},e.prototype.updateToggles=function(){return s(this,void 0,void 0,function(){var t=this;return a(this,function(e){switch(e.label){case 0:return this.timerRef||this.fetchedFromServer?[4,this.fetchToggles()]:[3,2];case 1:return e.sent(),[3,4];case 2:return this.started?[4,new Promise(function(e){var r=function(){t.fetchToggles().then(function(){t.off(T.READY,r),e()})};t.once(T.READY,r)})]:[3,4];case 3:e.sent(),e.label=4;case 4:return[2]}})})},e.prototype.updateContext=function(t){return s(this,void 0,void 0,function(){var e;return a(this,function(r){switch(r.label){case 0:return(t.appName||t.environment)&&console.warn("appName and environment are static. They can't be updated with updateContext."),e={environment:this.context.environment,appName:this.context.appName,sessionId:this.context.sessionId},this.context=i(i({},e),t),[4,this.updateToggles()];case 1:return r.sent(),[2]}})})},e.prototype.getContext=function(){return i({},this.context)},e.prototype.setContextField=function(t,e){return s(this,void 0,void 0,function(){var r,n,o;return a(this,function(s){switch(s.label){case 0:return S(t)?this.context=i(i({},this.context),((n={}
1)[t]=e,n)):(r=i(i({},this.context.properties),((o={})[t]=e,o)),this.context=i(i({},this.context),{properties:r})),[4,this.updateToggles()];case 1:return s.sent(),[2]}})})},e.prototype.removeContextField=function(t){return s(this,void 0,void 0,function(){var e;return a(this,function(r){switch(r.label){case 0:return S(t)?this.context=i(i({},this.context),((e={})[t]=void 0,e)):"object"==typeof this.context.properties&&delete this.context.properties[t],[4,this.updateToggles()];case 1:return r.sent(),[2]}})})},e.prototype.setReady=function(){this.readyEventEmitted=!0,this.emit(T.READY)},e.prototype.init=function(){return s(this,void 0,void 0,function(){var t,e,r;return a(this,function(n){switch(n.label){case 0:return[4,this.resolveSessionId()];case 1:return t=n.sent(),this.context=i({sessionId:t},this.context),[4,this.storage.get(I)];case 2:return e=n.sent()||[],r=this,[4,this.getLastRefreshTimestamp()];case 3:return r.lastRefreshTimestamp=n.sent(),this.bootstrap&&(this.bootstrapOverride||0===e.length)?[4,this.storage.save(I,this.bootstrap)]:[3,6];case 4:return n.sent(),this.toggles=this.bootstrap,this.sdkState="healthy",[4,this.storeLastRefreshTimestamp()];case 5:return n.sent(),this.setReady(),[3,7];case 6:this.toggles=e,n.label=7;case 7:return this.sdkState="healthy",this.emit(T.INIT),[2]}})})},e.prototype.start=function(){return s(this,void 0,void 0,function(){var t,e=this;return a(this,function(r){switch(r.label){case 0:return this.started=!0,this.timerRef?(console.error("Unleash SDK has already started, if you want to restart the SDK you should call client.stop() before starting again."),[2]):[4,this.ready];case 1:return r.sent(),this.metrics.start(),t=this.refreshInterval,[4,this.initialFetchToggles()];case 2:return r.sent(),t>0&&(this.timerRef=setInterval(function(){return e.fetchToggles()},t)),[2]}})})},e.prototype.stop=function(){this.timerRef&&(clearInterval(this.timerRef),this.timerRef=void 0),this.metrics.stop()},e.prototype.isReady=function(){return this.readyEventEmitted},e.prototype.getError=function(){return"error"===this.sdkState?this.lastError:void 0},e.prototype.sendMetrics=function(){return this.metrics.sendMetrics()},e.prototype.resolveSessionId=function(){return s(this,void 0,void 0,function(){var t;return a(this,function(e){switch(e.label){case 0:return this.context.sessionId?[2,this.context.sessionId]:[4,this.storage.get("sessionId")];case 1:return(t=e.sent())?[3,3]:(t=Math.floor(1e9*Math.random()),[4,this.storage.save("sessionId",t.toString(10))]);case 2:e.sent(),e.label=3;case 3:return[2,t.toString(10)]}})})},e.prototype.getHeaders=function(){return d({clientKey:this.clientKey,connectionId:this.connectionId,appName:this.context.appName,customHeaders:this.customHeaders,headerName:this.headerName,etag:this.etag,isPost:this.usePOSTrequests})},e.prototype.storeToggles=function(t){return s(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return this.toggles=t,this.emit(T.UPDATE),[4,this.storage.save(I,t)];case 1:return e.sent(),[2]}})})},e.prototype.isTogglesStorageTTLEnabled=function(){var t;return!!((null==(t=this.experimental)?void 0:t.togglesStorageTTL)&&this.experimental.togglesStorageTTL>0)},e.prototype.isUpToDate=function(){if(!this.isTogglesStorageTTLEnabled())return!1;var t,e=Date.now(),r=(null==(t=this.experimental)?void 0:t.togglesStorageTTL)||0;return this.lastRefreshTimestamp>0&&this.lastRefreshTimestamp<=e&&e-this.lastRefreshTimestamp<=r},e.prototype.getLastRefreshTimestamp=function(){return s(this,void 0,void 0,function(){var t,e;return a(this,function(r){switch(r.label){case 0:return this.isTogglesStorageTTLEnabled()?[4,this.storage.get(O)]:[3,3];case 1:return t=r.sent(),[4,p(this.context)];case 2:return e=r.sent(),[2,(null==t?void 0:t.key)===e?t.timestamp:0];case 3:return[2,0]}})})},e.prototype.storeLastRefreshTimestamp=function(){return s(this,void 0,void 0,function(){var t,e;return a(this,function(r){switch(r.label){case 0:return this.isTogglesStorageTTLEnabled()?(this.lastRefreshTimestamp=Date.now(),e={},[4,p(this.context)]):[3,3];case 1:return e.key=r.sent(),e.timestamp=this.lastRefreshTimestamp,t=e,[4,this.storage.save(O,t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.initialFetchToggles=function(){if(!this.isUpToDate())return this.fetchToggles();this.fetchedFromServer||(this.fetchedFromServer=!0,this.setReady())},e.prototype.fetchToggles=function(){return s(this,void 0,void 0,function(){var t,e,r,n,o,i,s,u,l;return a(this,function(a){switch(a.label){case 0:if(!this.fetch)return[3,9];this.abortController&&!this.abortController.signal.aborted&&this.abortController.abort(),this.abortController=null==(l=this.createAbortController)?void 0:l.call(this),t=this.abortController?this.abortController.signal:void 0,a.label=1;case 1:var c,h,p;return a.trys.push([1,7,8,9]),r=(e=this.usePOSTrequests)?this.url:(c=this.url,h=this.context,p=new URL(c.toString()),Object.entries(h).filter(f).forEach(function(t){var e=t[0],r=t[1];"properties"===e&&r?Object.entries(r).filter(f).forEach(function(t){var e=t[0],r=t[1];return p.searchParams.append("properties[".concat(e,"]"),r)}):p.searchParams.append(e,r)}),p),n=e?"POST":"GET",o=e?JSON.stringify({context:this.context}):void 0,[4,this.fetch(r.toString(),{method:n,cache:"no-cache",headers:this.getHeaders(),body:o,signal:t})];case 2:return i=a.sent(),"error"===this.sdkState&&i.status<400&&(this.sdkState="healthy",this.emit
1(T.RECOVERED)),i.ok?(this.etag=i.headers.get("ETag")||"",[4,i.json()]):[3,5];case 3:return s=a.sent(),[4,this.storeToggles(s.toggles)];case 4:return a.sent(),"healthy"!==this.sdkState&&(this.sdkState="healthy"),this.fetchedFromServer||(this.fetchedFromServer=!0,this.setReady()),this.storeLastRefreshTimestamp(),[3,6];case 5:304===i.status?this.storeLastRefreshTimestamp():(console.error("Unleash: Fetching feature toggles did not have an ok response"),this.sdkState="error",this.emit(T.ERROR,{type:"HttpError",code:i.status}),this.lastError={type:"HttpError",code:i.status}),a.label=6;case 6:return[3,9];case 7:return"object"==typeof(u=a.sent())&&null!==u&&"name"in u&&"AbortError"===u.name||(console.error("Unleash: unable to fetch feature toggles",u),this.sdkState="error",this.emit(T.ERROR,u),this.lastError=u),[3,9];case 8:return this.abortController=null,[7];case 9:return[2]}})})},e}(c);r.EVENTS=T,r.InMemoryStorageProvider=v,r.LocalStorageProvider=m,r.UnleashClient=R,r.lastUpdateKey=O,r.resolveFetch=k},57383,(t,e,r)=>{t.e,function(t,e,r){"use strict";let n=r.createContext(null),o={bootstrap:[],disableRefresh:!0,disableMetrics:!0,url:"http://localhost",appName:"offline",clientKey:"not-used"},i=r.startTransition||(t=>t()),s=({config:t,children:s,unleashClient:a,startClient:u=!0,stopClient:l=!0,startTransition:c=i})=>{var f,h,p;let d=t||o,g=r.useRef(a||new e.UnleashClient(d)),[y,v]=r.useState(!!(a?null!=t&&t.bootstrap&&(null==t?void 0:t.bootstrapOverride)!==!1||null!=(f=a.isReady)&&f.call(a):d.bootstrap&&!1!==d.bootstrapOverride)),[m,b]=r.useState((null==(p=(h=g.current).getError)?void 0:p.call(h))||null);r.useEffect(()=>{d||a||console.error(`You must provide either a config or an unleash client to the flag provider. 2 If you are initializing the client in useEffect, you can avoid this warning 3 by checking if the client exists before rendering.`);let t=t=>{c(()=>{b(e=>e||t)})},e=t=>{c(()=>{b(null)})},r=null,n=()=>{r=setTimeout(()=>{c(()=>{v(!0)})},0)};return g.current.on("ready",n),g.current.on("error",t),g.current.on("recovered",e),u&&(g.current.stop(),g.current.start()),function(){g.current&&(g.current.off("error",t),g.current.off("ready",n),g.current.off("recovered",e),l&&g.current.stop()),r&&clearTimeout(r)}},[]);let w=r.useMemo(()=>({on:(t,e,r)=>g.current.on(t,e,r),off:(t,e)=>g.current.off(t,e),updateContext:async t=>await g.current.updateContext(t),isEnabled:t=>g.current.isEnabled(t),getVariant:t=>g.current.getVariant(t),client:g.current,flagsReady:y,flagsError:m,setFlagsReady:v,setFlagsError:b}),[y,m]);return r.createElement(n.Provider,{value:w},s)},a={on:(t,e,r)=>(console.error("on() must be used within a FlagProvider"),u),off:(t,e)=>(console.error("off() must be used within a FlagProvider"),u),updateContext:async()=>{console.error("updateContext() must be used within a FlagProvider")},isEnabled:()=>(console.error("isEnabled() must be used within a FlagProvider"),!1),getVariant:()=>(console.error("getVariant() must be used within a FlagProvider"),{name:"disabled",enabled:!1})},u={...a,toggles:[],impressionDataAll:{},context:{},storage:{},start:()=>{},stop:()=>{},isReady:()=>!1,getError:()=>null,getAllToggles:()=>[]},l={...a,client:u,flagsReady:!1,setFlagsReady:()=>{console.error("setFlagsReady() must be used within a FlagProvider")},flagsError:null,setFlagsError:()=>{console.error("setFlagsError() must be used within a FlagProvider")}};function c(){return r.useContext(n)||(console.error("useFlagContext() must be used within a FlagProvider"),l)}Object.defineProperty(t,"InMemoryStorageProvider",{enumerable:!0,get:()=>e.InMemoryStorageProvider}),Object.defineProperty(t,"LocalStorageProvider",{enumerable:!0,get:()=>e.LocalStorageProvider}),Object.defineProperty(t,"UnleashClient",{enumerable:!0,get:()=>e.UnleashClient}),t.FlagContext=n,t.FlagProvider=s,t.default=s,t.useFlag=t=>{let{isEnabled:e,client:n}=c(),[o,i]=r.useState(!!e(t)),s=r.useRef();return s.current=o,r.useEffect(()=>{if(!n)return;let r=()=>{let r=e(t);r!==s.current&&(s.current=r,i(!!r))},o=()=>{let r=e(t);s.current=r,i(r)};return n.on("update",r),n.on("ready",o),()=>{n.off("update",r),n.off("ready",o)}},[n]),o},t.useFlags=()=>{let{client:t}=c(),[e,n]=r.useState(t.getAllToggles());return r.useEffect(()=>{let e=()=>{n(t.getAllToggles())};return t.on("update",e),()=>{t.off("update",e)}},[]),e},t.useFlagsStatus=()=>{let{flagsReady:t,flagsError:e}=c();return{flagsReady:t,flagsError:e}},t.useUnleashClient=()=>{let{client:t}=c();return t},t.useUnleashContext=()=>{let{updateContext:t}=c();return t},t.useVariant=t=>{let{getVariant:e,client:n}=c(),[o,i]=r.useState(e(t)),s=r.useRef({name:o.name,enabled:o.enabled});return s.current=o,r.useEffect(()=>{if(!n)return;let r=()=>{var r,n,o,a,u;let l=e(t);r=s.current,(r.name!==(null==l?void 0:l.name)||r.enabled!==(null==l?void 0:l.enabled)||r.feature_enabled!==(null==l?void 0:l.feature_enabled)||(null==(n=r.payload)?void 0:n.type)!==(null==(o=null==l?void 0:l.payload)?void 0:o.type)||(null==(a=r.payload)?void 0:a.value)!==(null==(u=null==l?void 0:l.payload)?void 0:u.value))&&(i(l),s.current=l)},o=()=>{let r=e(t);s.current.name=null==r?void 0:r.name,s.current.enabled=null==r?void 0:r.enabled,i(r)};return n.on("update",r),n.on("ready",o),()=>{n.off("update",r),n.off("ready",o)}},[n]),o||{}},Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}(r,t.r(215220),t.r(271645))},169433,(t,e,r)=>{"use strict";
3Object.defineProperty(r,"__esModule",{value:!0}),r.FlagProvider=void 0;let n=t.r(843476),o=t.r(57383),i=t.r(291343);r.FlagProvider=({children:t,...e})=>(0,n.jsx)(o.FlagProvider,{...e,startClient:void 0!==e.startClient?e.startClient:"undefined"!=typeof window,config:{...(0,i.getDefaultClientConfig)(),...e.config},children:t})},238795,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useUnleashClient=r.useUnleashContext=r.useFlagsStatus=r.useFlags=r.useVariant=r.useFlag=void 0;let n=t.r(57383);r.useFlag=t=>(0,n.useFlag)(t),r.useVariant=t=>(0,n.useVariant)(t),r.useFlags=()=>(0,n.useFlags)(),r.useFlagsStatus=n.useFlagsStatus,r.useUnleashContext=n.useUnleashContext,r.useUnleashClient=n.useUnleashClient},637054,t=>{"use strict";t.s(["isCli",()=>r]);var e=t.i(206558);let r=()=>"cli"===e.NEXT_PUBLIC.ENV},346944,t=>{"use strict";t.s(["useShallow",()=>n],346944);var e=t.i(271645);let r=(t,e)=>{let r=t instanceof Map?t:new Map(t.entries()),n=e instanceof Map?e:new Map(e.entries());if(r.size!==n.size)return!1;for(let[t,e]of r)if(!Object.is(e,n.get(t)))return!1;return!0};function n(t){let n=e.default.useRef(void 0);return e=>{let o=t(e);return!function(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;if(Symbol.iterator in t&&Symbol.iterator in e){if("entries"in t&&"entries"in e)return r(t,e);let n=t[Symbol.iterator](),o=e[Symbol.iterator](),i=n.next(),s=o.next();for(;!i.done&&!s.done;){if(!Object.is(i.value,s.value))return!1;i=n.next(),s=o.next()}return!!i.done&&!!s.done}return r({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}(n.current,o)?n.current=o:n.current}}},565410,t=>{"use strict";t.s(["ANALYTICS_EVENTS",()=>r,"DEPRECATED_ANALYTICS_EVENTS",()=>o,"PAGE_VIEW_EVENT",()=>e,"analyticsEventMapping",()=>s,"isAnalyticsEvent",()=>n,"isDeprecatedAnalyticsEvent",()=>i]);let e="docs.content.view",r=[e,"docs.expandable.open","docs.expandable.close","docs.accordion.open","docs.accordion.close","docs.navitem.click","docs.navitem.cta_click","docs.version.change","docs.search.open","docs.search.query","docs.search.close","docs.api_playground.request","docs.search.result_click","docs.code_block.copy","docs.code_block.ask_ai","docs.feedback.thumbs_up","docs.feedback.thumbs_down","docs.footer.powered_by_mintlify_click","docs.assistant.enter","docs.assistant.completed","docs.assistant.shared","docs.assistant.source_click","docs.assistant.web_search_click","docs.assistant.thumbs_up","docs.assistant.thumbs_down","docs.assistant.suggestion_click","docs.assistant.question_option_click","docs.assistant.starter_question_clicked","docs.assistant.errored","docs.assistant.maximize_click","docs.assistant.minimize_click","docs.assistant.copy_response","docs.assistant.ask_ai_on_text_selection","docs.assistant.spam_detected","docs.assistant.attachment_upload","docs.assistant.attachment_rejected","docs.assistant.attachment_limit_exceeded","docs.assistant.contact_form_shown","docs.assistant.contact_support_click","docs.context_menu.copy_page","docs.context_menu.copy_mcp_link","docs.context_menu.ai_provider_click","docs.context_menu.install_mcp_server","docs.context_menu.copy_add_mcp_command","docs.context_menu.download_api_spec","docs.autopilot.suggestion.created","docs.autopilot.suggestion.no_suggestion","mcp.tool_call.search","docs.content.md.view","docs.banner.atlas_signup_click","docs.banner.atlas_claim_click","docs.banner.atlas_share_click","docs.atlas_content.view","docs.search.comparison","preview_widget.file_list.viewed","preview_widget.file.opened","preview_widget.file.editor_opened"];function n(t){return r.includes(t)}let o=["expandable_open","expandable_close","accordion_open","accordion_close","header_nav_item_click","cta_click","scroll_to_bottom","search_close","api_playground_call","search_result_click","chat_enter","chat_followup","chat_completed","code_block_copy","chat_shared","thumb_vote","powered_by_mintlify_click","ai_chat_citation_click","ai_chat_feedback_positive_click","ai_chat_feedback_negative_click","ask_ai_code_block","assistant.spam_detected"];function i(t){return o.includes(t)}let s={"docs.expandable.open":"expandable_open","docs.expandable.close"
3:"expandable_close","docs.accordion.open":"accordion_open","docs.accordion.close":"accordion_close","docs.navitem.click":"header_nav_item_click","docs.navitem.cta_click":"cta_click","docs.search.close":"search_close","docs.api_playground.request":"api_playground_call","docs.search.result_click":"search_result_click","docs.code_block.copy":"code_block_copy","docs.code_block.ask_ai":"ask_ai_code_block","docs.footer.powered_by_mintlify_click":"powered_by_mintlify_click","docs.assistant.enter":"chat_enter","docs.assistant.completed":"chat_completed","docs.assistant.shared":"chat_shared","docs.assistant.source_click":"ai_chat_citation_click","docs.assistant.thumbs_up":"ai_chat_feedback_positive_click","docs.assistant.thumbs_down":"ai_chat_feedback_negative_click","docs.assistant.spam_detected":"assistant.spam_detected"}},521518,t=>{"use strict";t.s(["getHighlightedSnippet",()=>g,"getHighlightedText",()=>f,"stripDuplicatedTitleLine",()=>d]);let e=new Set(["i","me","my","myself","we","our","ours","ourselves","you","your","yours","yourself","yourselves","he","him","his","himself","she","her","hers","herself","it","its","itself","they","them","their","theirs","themselves","what","which","who","whom","this","that","these","those","am","is","are","was","were","be","been","being","have","has","had","having","do","does","did","doing","a","an","the","and","but","if","or","because","as","until","while","of","at","by","for","with","about","against","between","into","through","during","before","after","above","below","to","from","up","down","in","out","on","off","over","under","again","further","then","once","here","there","when","where","why","how","all","any","both","each","few","more","most","other","some","such","no","nor","not","only","own","same","so","than","too","very","s","t","can","will","just","don","should","now","aren't","it's","don't","get"]);function r(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}let n=/<\/?(?:mark|b)\b[^>]*>/gi;function o(t){return t.replace(n,"")}function i(t){return e.has(t.toLowerCase())}function s(t,e){let r=t.toLowerCase(),n=e.toLowerCase(),o=[],i=0;for(;i<=r.length-n.length;){let t=r.indexOf(n,i);if(-1===t)break;o.push(t),i=t+1}return o}function a(t,e){var r;let n=[],o=/\w/;for(let i of e){let e=i.trim();if(!e)continue;let a=!/\s/.test(e);for(let i of s(t,e)){let s=i+e.length;a&&0!==i&&o.test(null!=(r=t[i-1])?r:"")||n.push({start:i,end:s})}}n.sort((t,e)=>t.start-e.start||e.end-t.end);let i=[];for(let t of n){let e=i[i.length-1];e&&t.start<=e.end?e.end=Math.max(e.end,t.end):i.push({start:t.start,end:t.end})}return i}function u(t,e){let n="",o=0;for(let i of e){n+=r(t.slice(o,i.start));let e=t.slice(i.start,i.end);e&&(n+=`<mark><b>${r(e)}</b></mark>`),o=i.end}return n+r(t.slice(o))}let l=new Map;function c(t,e){let r=Date.now()+100,n=function(t){let e=l.get(t);if(e)return e;let r=function(t){let e=t.replace(/[?,.!\n"]/g,""),r=e.split(/\s+/).filter(Boolean).slice(0,20),n=function(t){let e=[],r=[];for(let n of t)if(n){if(i(n)){r.length>0&&(e.push(r),r=[]);continue}r.push(n)}return r.length>0&&e.push(r),e}(r),o=[];for(let t of n)t.length>1&&o.push(t.join(" "));let s=n.map(t=>e.indexOf(t.join(" "))).filter(t=>t>=0).sort((t,e)=>t-e);for(let t=0;t<s.length-1;t++){let r=e.slice(s[t],s[t+1]).trim();r.split(/\s+/).filter(t=>!i(t)).length>1&&r.split(/\s+/).length>1&&o.push(r)}if(s.length>0){let t=e.slice(s[s.length-1]).trim();t&&o.push(t)}for(let t=r.length-1;t>0;t--)for(let e=0;e<=r.length-t;e++){let n=r.slice(e,e+t).map(t=>t.trim()).join(" "),s=n.split(/\s+/).filter(t=>!i(t)).length;(t>2||s>=1)&&o.push(n)}let a=[t,e,...o].filter(t=>t.trim().length>0),u=new Set,l=[];for(let t of a)u.has(t)||(u.add(t),l.push(t));let c=r.length;return l.sort((t,e)=>{if(c>=20)return e.trim().length-t.trim().length;let r=t.split(/\s+/).filter(Boolean).length,n=e.split(/\s+/).filter(Boolean).length;return n!==r?n-r:e.trim().length-t.trim().length}),l}(t);if(l.set(t,r),l.size>64){let t=l.keys().next().value;void 0!==t&&l.delete(t)}return r}(e),o=[];for(let e of n){if(Date.now()>r)return[];let n=e.trim();!o.some(t=>t.trim()===n)&&s(t,e).length>0&&o.push(e)}return o}function f(t,e){let n=o(t);if(!n||!e)return r(n);let i=c(n,e);return 0===i.length?r(n):u(n,a(n,i))}function h(t,e,r){if(e>=t.length)return t.length;let n=Math.min(t.length,e+r),o=t.indexOf(" ",e);return -1!==o&&o<n?o:e}function p(t,e){if(t.length<=e)return r(t);let n=h(t,e,12);return`${r(t.slice(0,n))} â¦`}function d(t,e){let r=t.indexOf("\n");if(r<0||!e)return t;let n=t=>o(t).replace(/\s+/g," ").trim();return n(t.slice(0,r))===n(e)?t.slice(r+1):t}function g(t,e,r){var n,i;let s=o(t),l=null!=(n=null==r?void 0:r.leadingContext)?n:24,f=null!=(i=null==r?void 0:r.maxLength)?i:240;if(!s||!e)return p(s,f);let d=c(s,e);if(0===d.length)return p(s,f);let g=a(s,d),y=g[0];if(!y)return p(s,f);let v=y.start<=l?0:y.start-l,m=Math.min(s.length,Math.max(y.end,v+f));v=function(t,e,r){if(e<=0)return 0;let n=Math.max(0,e-12),o=t.lastIndexOf(" ",e-1);return o>=n?o+1:e}(s,v,0),m=h(s,m,12);let b=s.slice(v,m),w=[];for(let t of g)t.end<=v||t.start>=m||w.push({start:Math.max(0,t.start-v),end:Math.min(b.length,t.end-v)});let E=u(b,w),_=v>0?`⦠`:"",x=m<s.length?` â¦`:"";return`${_}${E}${x}`}},361884,(t,e,r)=>{var n=t.r(377684),o=t.r(877289);e.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},832102,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},372537,(t,e,r)=>{var n=t.r(630353),o=t.r(832102),i=t.r(45350),s=t.r(361884),a=1/0,u=n?n.prototype:void 0,l=u?u.toString:void 0;e.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(s(e))return l?l.call(e):"";var r=e+"";return"0"==r&&1/e==-a?"-0":r}},702922,(t,e,r)=>{var n=t.r(372537);e.exports=function(t){return null==t?"":n(t)}},467034,(t,e,r)=>{!function(){var t={675:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,i=u(t),s=i[0],a=i[1],l=new o((s+a)*3/4-a),c=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,l[c++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],s=0,a=n-o;s<a;s+=16383)i.push(function(t,e,n){for(var o,i=[],s=e;s<n;s+=3)o=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]),i.push(r[o>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(t,s,s+16383>a?a:s+16383));return 1===o?i.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===o&&i.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
3+/",s=0,a=i.length;s<a;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(t,e,r){"use strict";var n=r(675),o=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return c(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t){var n=t,o=e;if(("string"!=typeof o||""===o)&&(o="utf8"),!a.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|p(n,o),u=s(i),l=u.write(n,o);return l!==i&&(u=u.slice(0,l)),u}if(ArrayBuffer.isView(t))return f(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(k(t,ArrayBuffer)||t&&k(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(k(t,SharedArrayBuffer)||t&&k(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),a.prototype),n}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var c=t.valueOf&&t.valueOf();if(null!=c&&c!==t)return a.from(c,e,r);var d=function(t){if(a.isBuffer(t)){var e=0|h(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?s(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(d)return d;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return l(t),s(t<0?0:0|h(t))}function f(t){for(var e=t.length<0?0:0|h(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}e.Buffer=a,e.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return(l(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},a.allocUnsafe=function(t){return c(t)},a.allocUnsafeSlow=function(t){return c(t)};function h(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||k(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(t).length;default:if(o)return n?-1:T(t).length;e=(""+e).toLowerCase(),o=!0}}function d(t,e,r){var o,i,s,a=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=R[t[i]];return o}(this,e,r);case"utf8":case"utf-8":return m(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}(this,e,r);case"base64":return o=this,i=e,s=r,0===i&&s===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(i,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,e,r);default:if(a)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,o){var i;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(o)return -1;else r=t.length-1;else if(r<0)if(!o)return -1;else r=0;if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,o);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(
vendor: 12,881 bytes, line 3
3o)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return v(t,[e],r,n,o)}throw TypeError("val must be string, number or Buffer")}function v(t,e,r,n,o){var i,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,u/=2,r/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var c=-1;for(i=r;i<a;i++)if(l(t,i)===l(e,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*s}else -1!==c&&(i-=i-c),c=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var f=!0,h=0;h<u;h++)if(l(t,i+h)!==l(e,h)){f=!1;break}if(f)return i}return -1}a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(k(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),k(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:+(n<r)},a.isEncoding=function(t){switch(String(t).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}},a.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=a.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(k(i,Uint8Array)&&(i=a.from(i)),!a.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?m(this,0,t):d.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,o){if(k(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,s=r-e,u=Math.min(i,s),l=this.slice(n,o),c=t.slice(e,r),f=0;f<u;++f)if(l[f]!==c[f]){i=l[f],s=c[f];break}return i<s?-1:+(s<i)},a.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)};function m(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,s,a,u,l=t[o],c=null,f=l>239?4:l>223?3:l>191?2:1;if(o+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:(192&(i=t[o+1]))==128&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=t[o+1],s=t[o+2],(192&i)==128&&(192&s)==128&&(u=(15&l)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],(192&i)==128&&(192&s)==128&&(192&a)==128&&(u=(15&l)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=f}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var d="",g=0;g<p;)d+=String.fromCharCode.apply(String,h.slice(g,g+=4096));return d}function b(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function w(t,e,r,n,o,i){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function E(t,e,r,n,o,i){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function _(t,e,r,n,i){return e*=1,r>>>=0,i||E(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function x(t,e,r,n,i){return e*=1,r>>>=0,i||E(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}a.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=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 o,i,s,a,u,l,c,f,h=this.length-e;if((void 0===r||r>h)&&(r=h),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a,u=parseInt(e.substr(2*s,2),16);if((a=u)!=a)break;t[r+s]=u}return s}(this,t,e,r);case"utf8":case"utf-8":return o=e,i=r,O(T(t,this.length-o),this,o,i);case"ascii":return s=e,a=r,O(A(t),this,s,a);case"latin1":case"binary":return function(t,e,r,n){return O(A(e),t,r,n)}(this,t,e,r);case"base64":return u=e,l=r,O(I(t),this,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=e,f=r,O(function(t,e){for(var r,n,o=[],i=0;i<t.length&&!((e-=2)<0);++i)n=(r=t.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(t,this.length-c),this,c,f);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},a.prototype.readUInt8=function(t,e){return t>>>=0,e||b(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},a.prototype.readInt8=function(t,e){return(t>>>=0,e||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||b(t,4,this.length),o.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||b(t,4,this.length),o.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||b(t,8,this.length),o.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||b(t,8,this.length),o.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,t,e,r,o,0)}var i=1,s=0;for(this[e]=255&t;++s<r&&(i*=256);)this[e+s]=t/i&255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,t,e,r,o,0)}var i=r-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<r&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return _(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return _(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return x(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return x(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var i=o-1;i>=0;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return o},a.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),u=s.length;
3if(0===u)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=s[o%u]}return this};var S=/[^+/0-9A-Za-z-_]/g;function T(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319||s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function A(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function I(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function O(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length)&&!(o>=t.length);++o)e[o+r]=t[o];return o}function k(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var R=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()},783:function(t,e){e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,l=u>>1,c=-7,f=r?o-1:0,h=r?-1:1,p=t[e+f];for(f+=h,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+t[e+f],f+=h,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+t[e+f],f+=h,c-=8);if(0===i)i=1-l;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=l}return(p?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,u,l=8*i-o-1,c=(1<<l)-1,f=c>>1,h=5960464477539062e-23*(23===o),p=n?0:i-1,d=n?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(a=+!!isNaN(e),s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+f>=1?e+=h/u:e+=h*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(e*u-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;t[r+p]=255&s,p+=d,s/=256,l-=8);t[r+p-d]|=128*g}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},s=!0;try{t[e](i,i.exports,n),s=!1}finally{s&&delete r[e]}return i.exports}n.ab="/ROOT/node_modules/next/dist/compiled/buffer/",e.exports=n(72)}()},412117,t=>{"use strict";t.s(["default",()=>e]);let e={}},329801,(t,e,r)=>{"use strict";r.__esModule=!0,r.OpenAPIV2=r.OpenAPIV3=void 0,function(t){var e;(e=t.HttpMethods||(t.HttpMethods={})).GET="get",e.PUT="put",e.POST="post",e.DELETE="delete",e.OPTIONS="options",e.HEAD="head",e.PATCH="patch",e.TRACE="trace"}(r.OpenAPIV3||(r.OpenAPIV3={})),function(t){var e;(e=t.HttpMethods||(t.HttpMethods={})).GET="get",e.PUT="put",e.POST="post",e.DELETE="delete",e.OPTIONS="options",e.HEAD="head",e.PATCH="patch"}(r.OpenAPIV2||(r.OpenAPIV2={}))},289264,t=>{"use strict";t.s(["parseOpenApiSchemaString",()=>o,"parseOpenApiString",()=>n,"potentiallyParseOpenApiString",()=>r]);let e=Object.values(t.i(329801).OpenAPIV3.HttpMethods).concat("webhook"),r=t=>{let r,n,o,i=t.trim().split(/\s+/);if(!(i.length>3)){if(i[0]&&i[1]&&i[2])[r,n,o]=i;else{if(!i[0]||!i[1])return;[n,o]=i}if(!n||(n=n.toLowerCase(),e.includes(n)))return{method:n,endpoint:o,filename:r}}},n=t=>{let r,n,o,i=t.trim().split(/\s+/);if(i.length>3)throw Error("improperly formatted openapi string");if(i[0]&&i[1]&&i[2])[r,n,o]=i;else if(i[0]&&i[1])[n,o]=i;else throw Error("improperly formatted openapi string");if(n=n.toLowerCase(),!e.includes(n))throw Error("invalid http method");return{method:n,endpoint:o,filename:r}},o=t=>{let e,r,n=t.trim().split(/\s+/);if(n.length>2)throw Error("improperly formatted openapi schema string");if(n[0]&&n[1])[e,r]=n;else if(n[0])[r]=n;else throw Error("improperly formatted openapi schema string");return{name:r,filename:e}}}]);
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.