PageSourceSearch

https://www.viverse.com/_next/static/chunks/2v9ma1j-7qqpm.js?dpl=cad6596

js viverse.com collected 2026-09-24 08:54:24 UTC 40,110 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="9a16a686-8394-3fb2-0e37-d3df7a548f17")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,521240,t=>{"use strict";var e,r=t.i(471138);function n(){return(n=Object.assign.bind()).apply(null,arguments)}t.s(["default",0,function(t){return r.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},t),e||(e=r.createElement("path",{fill:"#D5E2F2",d:"M18.334 3.95a1.195 1.195 0 0 1 1.692 0 1.2 1.2 0 0 1 0 1.695l-6.332 6.342 6.357 6.367a1.2 1.2 0 0 1 0 1.695 1.195 1.195 0 0 1-1.692 0l-6.357-6.367-6.358 6.367a1.195 1.195 0 0 1-1.692 0 1.2 1.2 0 0 1 0-1.695l6.358-6.367-6.333-6.342a1.2 1.2 0 0 1 0-1.694 1.195 1.195 0 0 1 1.692 0l6.333 6.341z"})))}])},203484,t=>{"use strict";var e=t.i(47125),r=t.i(703520),n=t.i(562260);let o=(0,n.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),i=(0,n.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var a=t.i(460032),a=a;let s=(0,n.default)("octagon-x",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),f=(0,n.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var u=t.i(471138),l=(t,e,r,n,o,i,a,s)=>{let f=document.documentElement,u=["light","dark"];function l(e){var r;(Array.isArray(t)?t:[t]).forEach(t=>{let r="class"===t,n=r&&i?o.map(t=>i[t]||t):o;r?(f.classList.remove(...n),f.classList.add(i&&i[e]?i[e]:e)):f.setAttribute(t,e)}),r=e,s&&u.includes(r)&&(f.style.colorScheme=r)}if(n)l(n);else try{let t=localStorage.getItem(e)||r,n=a&&"system"===t?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t;l(n)}catch(t){}},c=u.createContext(void 0),h={setTheme:t=>{},themes:[]};u.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:i,value:a,themes:s,nonce:f,scriptProps:c})=>{let h=JSON.stringify([r,e,i,t,s,a,n,o]).slice(1,-1);return u.createElement("script",{...c,suppressHydrationWarning:!0,nonce:"u"<typeof window?f:"",dangerouslySetInnerHTML:{__html:`(${l.toString()})(${h}
2)`}})});var p=t.i(746632);t.s(["Toaster",0,t=>{var n;let l,d,y,g,m=(0,r.c)(7);m[0]!==t?({...l}=t,m[0]=t,m[1]=l):l=m[1];let{theme:v}=null!=(n=u.useContext(c))?n:h,w=void 0===v?"system":v;return m[2]===Symbol.for("react.memo_cache_sentinel")?(d={success:(0,e.jsx)(o,{className:"h-4 w-4"}),info:(0,e.jsx)(i,{className:"h-4 w-4"}),warning:(0,e.jsx)(f,{className:"h-4 w-4"}),error:(0,e.jsx)(s,{className:"h-4 w-4"}),loading:(0,e.jsx)(a.default,{className:"h-4 w-4 animate-spin"})},y={classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},m[2]=d,m[3]=y):(d=m[2],y=m[3]),m[4]!==l||m[5]!==w?(g=(0,e.jsx)(p.Toaster,{theme:w,className:"toaster group",icons:d,toastOptions:y,...l}),m[4]=l,m[5]=w,m[6]=g):g=m[6],g}],203484)},676173,t=>{"use strict";let e=["localhost","localhost.viverse.com",...((0,t.i(646223).env)("NEXT_PUBLIC_LEGACY_WORLDS_DOMAINS")||"").split(",").filter(Boolean)];t.s(["DEFAULT_VIVERSE_ORIGIN",0,"https://www.viverse.com","LOCAL_ORIGIN",0,"https://localhost.viverse.com:3000","WHITE_LIST",0,e])},673090,t=>{"use strict";var e=t.i(47125),r=t.i(703520),n=t.i(471138);let o=(0,n.createContext)(null);t.s(["BlendVisionProvider",0,function(t){let i,a,s=(0,r.c)(5),{children:f,sdkLicenseKeyPromise:u}=t,l=(0,n.use)(u);return s[0]!==l?(i={sdkLicenseKey:l},s[0]=l,s[1]=i):i=s[1],s[2]!==f||s[3]!==i?(a=(0,e.jsx)(o.Provider,{value:i,children:f}),s[2]=f,s[3]=i,s[4]=a):a=s[4],a},"useBlendVisionContext",0,()=>{let t=(0,n.useContext)(o);if(null==t)throw Error("useBlendVisionContext cannot be used outside of BlendVisionProvider");return t}])},166140,t=>{"use strict";var e=t.i(47125),r=t.i(703520),n=t.i(99700),o=t.i(471138);let i=(0,o.createContext)(null);t.s(["LayoutProvider",0,function(t){let a,s,f=(0,r.c)(6),{children:u}=t,{device:l,isMobileApp:c}=(0,n.useUAContext)(),[h,p]=(0,o.useState)(c?0:"mobile_browser"===l?48:50),[d,y]=(0,o.useState)(24*!c),g=c?0:h,m=c?0:d;return f[0]!==g||f[1]!==m?(a={headerHeight:g,logoHeight:m,setHeaderHeight:p,setLogoHeight:y},f[0]=g,f[1]=m,f[2]=a):a=f[2],f[3]!==u||f[4]!==a?(s=(0,e.jsx)(i.Provider,{value:a,children:u}),f[3]=u,f[4]=a,f[5]=s):s=f[5],s},"useLayoutContext",0,()=>{let t=(0,o.useContext)(i);if(null==t)throw Error("useLayoutContext cannot be used outside of LayoutProvider");return t}])},452882,t=>{"use strict";var e=t.i(703520),r=t.i(634503),n=t.i(471138),o=t.i(32677);t.s(["default",0,()=>{let t,i,a,s=(0,e.c)(7),f=(0,o.useIsClient)();s[0]!==f?(t=f?window.location.hash:null,s[0]=f,s[1]=t):t=s[1];let[u,l]=(0,n.useState)(t),c=(0,r.useParams)();return s[2]!==f?(i=()=>{f&&l(window.location.hash)},s[2]=f,s[3]=i):i=s[3],s[4]!==f||s[5]!==c?(a=[c,f],s[4]=f,s[5]=c,s[6]=a):a=s[6],(0,n.useEffect)(i,a),f?u:null}])},24594,t=>{"use strict";var e=t.i(431953),r=t.i(676173),n=t.i(414073);t.i(160889);var o=t.i(408498),i=t.i(646223),a=t.i(647163),s=t.i(338847);let f=(0,s.createServerReference)("006f2120c704b7003c1c6beb33ee176624ddcf1eeb",s.callServer,void 0,s.findSourceMapURL,"getUserLocale");var u=t.i(555057);function l(){let t=(0,o.getCurrentDomain)();return{whiteList:[t,...r.WHITE_LIST],mainPage:`https://${t}`}}function c(t,e,r){return e.includes("/errors")||!r.includes(t)}function h(t={}){let{whiteList:e,mainPage:r}=l();if(c(window.location.hostname,window.location.pathname,e))return r;let n=new URL(window.location.href);return Object.entries(t).forEach(([t,e])=>{n.searchParams.set(t,e)}),n.href}async function p(){let t=(0,a.applyUnderline)(await f()),e=(0,o.getCreateDomain)();return`https://${e}${u.API_ENPOINT_LOGIN}?hl=${t}`}async function d(){let t=(0,a.applyUnderline)(await f()),e=(0,o.getCreateDomain)();return`https://${e}${u.API_ENPOINT_LOGOUT}?hl=${t}`}async function y({callback:t,loginParams:e,vodafoneURLPostfix:r}){let n=e?{...e}:void 0;delete n?.authorities,t=t&&"string"==typeof t?t:h(n);let o=new URL(await p());if(o.searchParams.set("callback",t),e&&Object.entries(e).forEach(([t,e])=>{o.searchParams.set(t,e)}),r){let t=r.split(","),e=window.location.pathname;t.some(t=>e.includes("/"+t))&&o.searchParams.set("relevance","vodafone")}return o.href}async function g(){let t=new URL(await d());return t.searchParams.set("callback",function(){let{whiteList:t,mainPage:e}=l();if(!document.referrer)return c(window.location.hostname,window.location.pathname,t)?e:window.location.href;let r=new URL(document.referrer);return c(r.hostname,r.pathname,t)?e:r.origin+r.pathname+r.search}()),`${t.href}#logout`}function m(t,e){if(!t||!e)return t;let r=t.indexOf("#"),n=-1===r?t:t.slice(0,r),o=-1===r?"":t.slice(r),i=n.includes("?")?/[?&]$/.test(n)?"":"&":"?";return`${n}${i}${e}${o}
2`}t.s(["appendQueryString",0,m,"buildDobOAuthUrl",0,function({locale:t}){let r=(0,i.env)("NEXT_PUBLIC_ACCOUNT_SERVER"),n=(0,i.env)("NEXT_PUBLIC_DOB_OAUTH_CLIENT_ID");if(!r||!n)throw Error("DOB OAuth configuration is missing required environment variables");let o=window.location.origin,s=`${window.location.origin}${window.location.pathname}`,f=new URL(e.DOB_OAUTH_AUTHORIZE_PATH,r),u=JSON.stringify({viewToggles:["verifyage"],state:o,scopes:[e.DOB_OAUTH_STATE_SCOPE],requireAuthCode:!0,redirectionUrl:s,initView:e.DOB_OAUTH_FORCE_VIEW,flow:"infinity",clientId:n,authorities:e.DOB_OAUTH_AUTHORITIES});return f.search=`hl=${encodeURIComponent((0,a.applyUnderline)(t))}&client_id=${encodeURIComponent(n)}&immediate=FALSE&response_type=code&scope=${encodeURIComponent(e.DOB_OAUTH_SCOPE)}&redirection_url=${s}&authorities=${e.DOB_OAUTH_AUTHORITIES}&state=${encodeURIComponent(u).replace(/%2B/g,"+")}&force_view=${encodeURIComponent(e.DOB_OAUTH_FORCE_VIEW)}`,f.toString()},"getBasePathFromPathname",0,function(t){return t.match(/^\/[^/]+/)?.[0]||"/"},"getLocationHrefUrl",0,h,"getLoginUrl",0,y,"getLogoutUrl",0,g,"getViveCreatorUrl",0,function({redirectUrl:t}={}){let e=(0,o.getViveAvatarDomain)();return`https://${e}/avatar/creator?redirect_url=${encodeURIComponent(t??h())}`},"withFull3d",0,function(t){return RegExp(`[?&]${n.IFRAME_SEARCH_PARAM_KEYS.FULL3D}(=|&|$)`).test(t.split("#")[0])?t:m(t,`${n.IFRAME_SEARCH_PARAM_KEYS.FULL3D}=`)}],24594)},959560,t=>{"use strict";var e=t.i(471138),r=t.i(464503),n=t.i(976173),o=t.i(800970),i=t.i(543836),a=t.i(47125),s=Object.defineProperty,f=(t,e)=>s(t,"name",{value:e,configurable:!0}),[u,l]=(0,r.createContextScope)("AlertDialog",[o.createDialogScope]),c=(0,o.createDialogScope)(),h=f(t=>{let{__scopeAlertDialog:e,...r}=t,n=c(e);return(0,a.jsx)(o.Root,{...n,...r,modal:!0})},"AlertDialog");e.forwardRef(f(function(t,e){let{__scopeAlertDialog:r,...n}=t,i=c(r);return(0,a.jsx)(o.Trigger,{...i,...n,ref:e})},"AlertDialogTrigger"));var p=f(t=>{let{__scopeAlertDialog:e,...r}=t,n=c(e);return(0,a.jsx)(o.Portal,{...n,...r})},"AlertDialogPortal"),d=e.forwardRef(f(function(t,e){let{__scopeAlertDialog:r,...n}=t,i=c(r);return(0,a.jsx)(o.Overlay,{...i,...n,ref:e})},"AlertDialogOverlay")),[y,g]=u("AlertDialogContent"),m=e.forwardRef(f(function(t,r){let{__scopeAlertDialog:s,children:f,...u}=t,l=c(s),h=e.useRef(null),p=(0,n.useComposedRefs)(r,h),d=e.useRef(null);return(0,a.jsx)(y,{scope:s,cancelRef:d,children:(0,a.jsx)(o.Content,{role:"alertdialog",...l,...u,ref:p,onOpenAutoFocus:(0,i.composeEventHandlers)(u.onOpenAutoFocus,t=>{t.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:t=>t.preventDefault(),onInteractOutside:t=>t.preventDefault(),children:f})})},"AlertDialogContent")),v=e.forwardRef(f(function(t,e){let{__scopeAlertDialog:r,...n}=t,i=c(r);return(0,a.jsx)(o.Title,{...i,...n,ref:e})},"AlertDialogTitle")),w=e.forwardRef(f(function(t,e){let{__scopeAlertDialog:r,...n}=t,i=c(r);return(0,a.jsx)(o.Description,{...i,...n,ref:e})},"AlertDialogDescription"));e.forwardRef(f(function(t,e){let{__scopeAlertDialog:r,...n}=t,i=c(r);return(0,a.jsx)(o.Close,{...i,...n,ref:e})},"AlertDialogAction")),e.forwardRef(f(function(t,e){let{__scopeAlertDialog:r,...i}=t,{cancelRef:s}=g("AlertDialogCancel",r),f=c(r),u=(0,n.useComposedRefs)(e,s);return(0,a.jsx)(o.Close,{...f,...i,ref:u})},"AlertDialogCancel")),t.s(["Content",0,m,"Description",0,w,"Overlay",0,d,"Portal",0,p,"Root",0,h,"Title",0,v])},460032,t=>{"use strict";let e=(0,t.i(562260).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);t.s(["default",0,e])},338847,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return i.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=t.r(896430),a=t.r(742294),s=t.r(333708)},828682,(t,e,r)=>{var n={872:function(t,e){"use strict";e.byteLength=function(t){var e=f(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,i=f(t),a=i[0],s=i[1],u=new o((a+s)*3/4-s),l=0,c=s>0?a-4:a;for(r=0;r<c;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)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>
24,u[l++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(function(t,e,n){for(var o,i=[],a=e;a<n;a+=3)o=(t[a]<<16&0xff0000)+(t[a+1]<<8&65280)+(255&t[a+2]),i.push(r[o>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(t,a,a+16383>s?s:a+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="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function f(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},230:function(t,e,r){"use strict";var n=r(872),o=r(321),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(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 l(t)}return f(t,e,r)}function f(t,e,r){if("string"==typeof t){var n=t,o=e;if(("string"!=typeof o||""===o)&&(o="utf8"),!s.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|p(n,o),f=a(i),u=f.write(n,o);return u!==i&&(f=f.slice(0,u)),f}if(ArrayBuffer.isView(t))return c(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(S(t,ArrayBuffer)||t&&S(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(S(t,SharedArrayBuffer)||t&&S(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),s.prototype),n}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var l=t.valueOf&&t.valueOf();if(null!=l&&l!==t)return s.from(l,e,r);var d=function(t){if(s.isBuffer(t)){var e=0|h(t.length),r=a(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)?a(0):c(t):"Buffer"===t.type&&Array.isArray(t.data)?c(t.data):void 0}(t);if(d)return d;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.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 u(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 l(t){return u(t),a(t<0?0:0|h(t))}function c(t){for(var e=t.length<0?0:0|h(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,s.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}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return f(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return(u(t),t<=0)?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)},s.allocUnsafe=function(t){return l(t)},s.allocUnsafeSlow=function(t){return l(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(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||S(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 C(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(t).length;default:if(o)return n?-1:C(t).length;e=(""+e).toLowerCase(),o=!0}}function d(t,e,r){var o,i,a,s=!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+=x[t[i]];return o}(this,e,r);case"utf8":case"utf-8":return v(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,a=r,0===i&&a===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(i,a));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(s)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function g(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=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(
vendor: 12,881 bytes, line 2
2o)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return m(t,[e],r,n,o)}throw TypeError("val must be string, number or Buffer")}function m(t,e,r,n,o){var i,a=1,s=t.length,f=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;a=2,s/=2,f/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;i<s;i++)if(u(t,i)===u(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===f)return l*a}else -1!==l&&(i-=i-l),l=-1}else for(r+f>s&&(r=s-f),i=r;i>=0;i--){for(var c=!0,h=0;h<f;h++)if(u(t,i+h)!==u(e,h)){c=!1;break}if(c)return i}return -1}s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(S(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),S(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.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)},s.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}},s.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=s.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(S(i,Uint8Array)&&(i=s.from(i)),!s.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.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)y(this,e,e+1);return this},s.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)y(this,e,e+3),y(this,e+1,e+2);return this},s.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)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?v(this,0,t):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.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&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,o){if(S(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.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,a=r-e,f=Math.min(i,a),u=this.slice(n,o),l=t.slice(e,r),c=0;c<f;++c)if(u[c]!==l[c]){i=u[c],a=l[c];break}return i<a?-1:+(a<i)},s.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return g(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return g(this,t,e,r,!1)};function v(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,s,f,u=t[o],l=null,c=u>239?4:u>223?3:u>191?2:1;if(o+c<=r)switch(c){case 1:u<128&&(l=u);break;case 2:(192&(i=t[o+1]))==128&&(f=(31&u)<<6|63&i)>127&&(l=f);break;case 3:i=t[o+1],a=t[o+2],(192&i)==128&&(192&a)==128&&(f=(15&u)<<12|(63&i)<<6|63&a)>2047&&(f<55296||f>57343)&&(l=f);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(f=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&f<1114112&&(l=f)}null===l?(l=65533,c=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=c}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var d="",y=0;y<p;)d+=String.fromCharCode.apply(String,h.slice(y,y+=4096));return d}function w(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 b(t,e,r,n,o,i){if(!s.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 A(t,e,r,n,o,i){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function E(t,e,r,n,i){return e*=1,r>>>=0,i||A(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function U(t,e,r,n,i){return e*=1,r>>>=0,i||A(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}s.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,a,s,f,u,l,c,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 a=0;a<n;++a){var s,f=parseInt(e.substr(2*a,2),16);if((s=f)!=s)break;t[r+a]=f}return a}(this,t,e,r);case"utf8":case"utf-8":return o=e,i=r,O(C(t,this.length-o),this,o,i);case"ascii":return a=e,s=r,O(T(t),this,a,s);case"latin1":case"binary":return function(t,e,r,n){return O(T(e),t,r,n)}(this,t,e,r);case"base64":return f=e,u=r,O(B(t),this,f,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,c=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-l),this,l,c);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.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,s.prototype),n},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||w(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||w(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||w(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},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||w(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},s.prototype.readInt8=function(t,e){return(t>>>=0,e||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||w(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||w(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||w(t,4,this.length),o.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||w(t,4,this.length),o.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||w(t,8,this.length),o.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||w(t,8,this.length),o.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;b(this,t,e,r,o,0)}var i=1,a=0;for(this[e]=255&t;++a<r&&(i*=256);)this[e+a]=t/i&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;b(this,t,e,r,o,0)}var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||b(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||b(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||b(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||b(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},s.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||b(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},s.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var o=Math.pow(2,8*r-1);b(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a|0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var o=Math.pow(2,8*r-1);b(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a|0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||b(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||b(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||b(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||b(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},s.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||b(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},s.prototype.writeFloatLE=function(t,e,r){return E(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return E(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return U(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.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},s.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&&!s.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 a=s.isBuffer(t)?t:s.from(t,n),f=a.length;
2if(0===f)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=a[o%f]}return this};var _=/[^+/0-9A-Za-z-_]/g;function C(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319||a+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 T(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function B(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(_,"")).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 S(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var x=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}()},321:function(t,e){e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,f=(1<<s)-1,u=f>>1,l=-7,c=r?o-1:0,h=r?-1:1,p=t[e+c];for(c+=h,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+t[e+c],c+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+c],c+=h,l-=8);if(0===i)i=1-u;else{if(i===f)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=u}return(p?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,f,u=8*i-o-1,l=(1<<u)-1,c=l>>1,h=5960464477539062e-23*(23===o),p=n?0:i-1,d=n?1:-1,y=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(s=+!!isNaN(e),a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+c>=1?e+=h/f:e+=h*Math.pow(2,1-c),e*f>=2&&(a++,f/=2),a+c>=l?(s=0,a=l):a+c>=1?(s=(e*f-1)*Math.pow(2,o),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&s,p+=d,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;t[r+p]=255&a,p+=d,a/=256,u-=8);t[r+p-d]|=128*y}}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}},a=!0;try{n[t](r,r.exports,i),a=!1}finally{a&&delete o[t]}return r.exports}i.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected][email protected]__@[email protected]_@types+no_ac6e9ef13640861976f053e9f9f5c52c/node_modules/next/dist/compiled/buffer/",e.exports=i(230)},856434,t=>{"use strict";var e=t.i(408498),r=t.i(555057),n=t.i(301004);let o=(t,r="GET",n,o={},i="")=>{let a={headers:{"content-type":"application/json"},method:r,...o};i&&(a.headers={...a.headers,authkey:i}),n&&(a.body=JSON.stringify(n));let s=(0,e.getCommunityServiceBaseURL)();return fetch(`${s}${t}`,a).then(async t=>{let e=await t.text();try{return{ok:t.ok,status:t.status,results:JSON.parse(e),headers:t.headers}}catch(r){return{ok:t.ok,status:t.status,results:e,headers:t.headers}}}).catch(t=>{console.error("fetchCMSApiWithStatusCode error:",t)})},i=async t=>{let e=r.API_CHECK_USER_COMMUNITY_PERMISSION;return await o(e,"Get",null,{},t)},a=t=>{let e;return!t||"object"==typeof(e=t.results)&&null!==e&&"code"in e&&"string"==typeof e.code};async function s(t,e){if(!e.length)return{data:[]};let r=Array.from({length:Math.ceil(e.length/50)},(t,r)=>e.slice(50*r,(r+1)*50)),n=await Promise.all(r.map(e=>o("/api/community-service/v2/follow/status","POST",{targetPreferredUsernameList:e},{},t)));if(n.some(a))return;let i=new Map(n.flatMap(t=>(t?.results).data.map(t=>[t.preferredUsername.toLowerCase(),t]))),s=e.map(t=>i.get(t.toLowerCase()));return s.every(t=>void 0!==t)?{data:s}:void 0}async function f(t,e,r=0,n=20){if(!t.preferredUsername)return;let i=await o(`/api/community-service/v2/users/${encodeURIComponent(t.preferredUsername)}/${e}?from=${r}&size=${n}`,"GET",null);if(!(!i||a(i)))return i.results}async function u(t,e=0,r=20){if(!t.htcToken)return;let n=await o(`/api/community-service/v2/followings?from=${e}&size=${r}`,"GET",null,{},t.htcToken);if(!(!n||a(n)))return n.results}async function l(t,e=0,r=20){if(!t.htcToken||!t.preferredUsername)return;let n=await o(`/api/community-service/v2/users/${encodeURIComponent(t.preferredUsername)}
2/followers?from=${e}&size=${r}`,"GET",null,{},t.htcToken);if(!(!n||a(n)))return n.results}async function c(t){let[e,r]=await Promise.all([u(t,0,1),l(t,0,1)]);return{followingsCount:e?.total??0,followersCount:r?.total??0}}async function h(t,e,r){if(!t.htcToken||!e)return;let n=await o(`/api/community-service/v2/${r}`,"POST",{targetPreferredUsername:e},{},t.htcToken);if(!a(n))return n}function p(t,e=0,r=20){return f(t,"followers",e,r)}function d(t,e=0,r=20){return f(t,"following",e,r)}async function y(t){return o("/api/point-service/v1/points","GET",null,{},t)}async function g(t){let[e,r]=await Promise.all([d(t,0,1),p(t,0,1)]);return{followingsCount:e?.total??0,followersCount:r?.total??0}}async function m(t,e=0,r=20){let n=await d(t,e,r);return n?v(n):{from:e,size:0,total:0,data:[]}}async function v(t){let e=t.data.map(({preferredUsername:t})=>t);if(!e.length)return t;let r=[];if(e.length<=50){let t=await (0,n.getAccountsSearchV2)({communityUserIds:e});t?.status===200&&Array.isArray(t.results?.results)&&(r=t.results.results)}else{let t=[];for(let r=0;r<e.length;r+=50)t.push(e.slice(r,r+50));for(let e of(await Promise.all(t.map(t=>(0,n.getAccountsSearchV2)({communityUserIds:t})))))e?.status===200&&Array.isArray(e.results?.results)&&r.push(...e.results.results)}let o=new Map(t.data.map(t=>[t.preferredUsername.toLowerCase(),t.domainName])),i=new Map(r.map(t=>[t.community_user_id.toLowerCase(),t]));return{from:t.from,size:t.size,total:t.total,data:t.data.flatMap(t=>{let e=i.get(t.preferredUsername.toLowerCase());return e?{domainName:o.get(t.preferredUsername.toLowerCase())||"",name:e.display_name||e.community_user_id||"",nickName:e.display_name||"",preferredUsername:t.preferredUsername,headIconUrl:e.head_icon_url||"",viverse_pro:e.viverse_pro,verified_creator:e.verified_creator}:[]})}}async function w(t,e=0,r=20){let n=await u(t,e,r);return n?v(n):{from:e,size:0,total:0,data:[]}}async function b(t,e=0,r=20){let n=await l(t,e,r);return n?v(n):{from:e,size:0,total:0,data:[]}}async function A(t,e,r=0,o=20){let i=await u(t,r,o);if(!i)return{from:r,size:0,total:0,data:[]};let a=i.data.filter(({domainName:t})=>!t.includes("mastodon.social")),s=a.map(({preferredUsername:t})=>t);if(!s.length)return{...i,data:[]};let f=await (0,n.getAccountsSearchV2)({communityUserIds:s});if(f?.status!==200||!Array.isArray(f.results?.results))return{...i,data:[]};let l=new Map(f.results.results.map(t=>[t.community_user_id.toLowerCase(),t])),c=a.flatMap(t=>{let e=l.get(t.preferredUsername.toLowerCase());return e?.id?[{following:t,account:e}]:[]}),h=await Promise.all(c.map(async({following:r,account:o})=>{let i=await (0,n.getPublicRoomsV3)({subject_id:o.id,total_vram_kb:e},t.htcToken);return{domainName:r.domainName,name:o.display_name||o.community_user_id,nickName:o.display_name||"",preferredUsername:r.preferredUsername,headIconUrl:o.head_icon_url||"",publicRooms:i?.status===200?i.results.results:[],viverse_pro:o.viverse_pro,verified_creator:o.verified_creator}}));return{...i,data:h}}async function E(t,e,r=0,n=20,o=1){let i=[],a=r,s=0;for(;a<s||0===s;){let r=await A(t,e,a,n);if(i.push(...r.data),s=r.total,!r.size||(a=r.from+r.size,i.filter(({publicRooms:t})=>t.length>0).length>=o))break}return{from:r,size:a-r,total:s,data:i}}async function U(t){let e=[],r=0;for(;;){let n=await w(t,r,50);e.push(...n.data);let o=n.from+n.size;if(!n.size||o>=n.total)return e;r=o}}t.s(["fetchCheckUserCommunityPermission",0,i,"getAuthenticatedFollowCounts",0,c,"getAuthenticatedFollowersWithIcon",0,b,"getAuthenticatedFollowingsList",0,U,"getAuthenticatedFollowingsWithIcon",0,w,"getAuthenticatedFollowingsWithRooms",0,E,"getPointBalance",0,y,"getPublicFollowCounts",0,g,"getPublicFollowers",0,p,"getPublicFollowingsWithIcon",0,m,"postAuthenticatedFollow",0,function(t,e){return h(t,e,"follow")},"postAuthenticatedUnfollow",0,function(t,e){return h(t,e,"unfollow")},"postFollowStatus",0,s],856434)}]);
3
4//# debugId=9a16a686-8394-3fb2-0e37-d3df7a548f17
5//# sourceMappingURL=2-xkohwyv_xzm.js.map

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.