PageSourceSearch

https://www.myria.pro/_next/static/chunks/77008-59b64f6f9344e655.js

js myria.pro collected 2026-09-24 15:11:16 UTC 8,719 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d383fb1e-f1c6-4435-bf1e-8f82c4c6a1b4",e._sentryDebugIdIdentifier="sentry-dbid-d383fb1e-f1c6-4435-bf1e-8f82c4c6a1b4")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[77008],{44269:(e,a,r)=>{r.d(a,{A5:()=>p,rt:()=>m,xc:()=>c});var t=r(84689),n=r(21474),i=r(70383),o=r(68680),l=r(63230),s=r(28972);async function u(e){return(0,o.apiGet)("/api/profile/".concat(e))}function c(e){return(0,t.I)({queryKey:["profile",e],queryFn:()=>u(e),enabled:!!e,staleTime:3e5,retry:2})}async function d(){return(0,o.apiGet)("/api/profile/me")}function m(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],a=(0,l.n)(e=>e.userId);return(0,t.I)({queryKey:(0,s.X)(a),queryFn:d,enabled:e&&!!a,staleTime:6e4,retry:2})}function p(){let e=(0,n.jE)(),a=(0,i.n)({mutationFn:async e=>{await (0,o.$P)("/api/profile/follow",{userId:e})},onMutate:async a=>{await e.cancelQueries({queryKey:["profile",a]}),await e.cancelQueries({queryKey:["follow-status",a]});let r=e.getQueryData(["profile",a]);return r&&e.setQueryData(["profile",a],{...r,isFollowing:!0,followers:r.followers+1}),e.setQueryData(["follow-status",a],!0),{previousProfile:r}},onError:(a,r,t)=>{(null==t?void 0:t.previousProfile)&&e.setQueryData(["profile",r],t.previousProfile),e.setQueryData(["follow-status",r],!1)},onSettled:(a,r,t)=>{e.invalidateQueries({queryKey:["profile",t]}),e.invalidateQueries({queryKey:["follow-status",t]})}}),r=(0,i.n)({mutationFn:async e=>{await (0,o.Al)("/api/profile/follow?userId=".concat(e))},onMutate:async a=>{await e.cancelQueries({queryKey:["profile",a]}),await e.cancelQueries({queryKey:["follow-status",a]});let r=e.getQueryData(["profile",a]);return r&&e.setQueryData(["profile",a],{...r,isFollowing:!1,followers:Math.max(0,r.followers-1)}),e.setQueryData(["follow-status",a],!1),{previousProfile:r}},onError:(a,r,t)=>{(null==t?void 0:t.previousProfile)&&e.setQueryData(["profile",r],t.previousProfile),e.setQueryData(["follow-status",r],!0)},onSettled:(a,r,t)=>{e.invalidateQueries({queryKey:["profile",t]}),e.invalidateQueries({queryKey:["follow-status",t]})}});return{toggleFollow:(e,t)=>{t?r.mutate(e):a.mutate(e)},isFollowing:a.isPending,isUnfollowing:r.isPending,isLoading:a.isPending||r.isPending}}},63771:(e,a,r)=>{r.d(a,{d:()=>s});var t=r(1521),n=r(68765),i=r(80298),o=r(68680);function l(e){let a=e instanceof Error?e.message:String(null!=e?e:"");return a.includes("RATE_LIMIT")?"rate_limit":a.includes("UNAUTHORIZED")?"unauthorized":a.includes("FORBIDDEN")?"forbidden":a.includes("No checkout URL")||a.includes("No portal URL")?"empty_url_response":a.includes("NotFound")||a.includes("NOT_FOUND")?"not_found":"unknown"}function s(){let e=(0,i.Y)(),[a,r]=(0,t.useState)(!1),[s,u]=(0,t.useState)(!1),[c,d]=(0,t.useState)(null),m=(0,t.useCallback)(async(a,t)=>{r(!0),d(null),n.Z({category:"billing",message:"checkout.attempt",level:"info",data:{product:a,hasVariant:!!(null==t?void 0:t.variant)}});try{let r=window.location.origin,i=(null==t?void 0:t.successUrl)||"".concat(r,"/").concat(e,"/billing/success"),l=(null==t?void 0:t.cancelUrl)||"".concat(r,"/").concat(e,"/billing"),s=await (0,o.$P)("/api/billing/checkout",{product:a,successUrl:i,cancelUrl:l,...(null==t?void 0:t.variant)?{variant:t.variant}:{},...(null==t?void 0:t.kind)?{kind:t.kind}:{},...(null==t?void 0:t.sourceLabel)?{source:t.sourceLabel}:{}});if(s.url)n.Z({category:"billing",message:"checkout.redirect",level:"info",data:{product:a}}),window.location.href=s.url;else throw Error("No checkout URL returned")}catch(r){let e=l(r);n.Z({category:"billing",message:"checkout.error",level:"warning",data:{product:a,errorCode:e}}),d(r instanceof Error?r.message:"Failed to start checkout")}finally{r(!1)}},[e]),p=(0,t.useCallback)(async function(a){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"manage";u(!0),d(null),n.Z({category:"billing",message:"portal.attempt",level:"info"});try{let t=window.location.origin,n=a||"".concat(t,"/").concat(e,"/profile"),i=await (0,o.$P)("/api/billing/portal",{returnUrl:n,flow:r});if(i.url)window.location.href=i.url;else throw Error("No portal URL returned")}catch(a){let e=l(a);n.Z({category:"billing",message:"portal.error",level:"warning",data:{errorCode:e}}),d(a instanceof Error?a.message:"Failed to open billing portal")}finally{u(!1)}},[e]);return{startCheckout:m,openBillingPortal:p,isCheckingOut:a,isOpeningPortal:s,isLoading:a||s,error:c,clearError:(0,t.useCallback)(()=>{d(null)},[])}}},69006:(e,a,r)=>{r.d(a,{AK:()=>t,AQ:()=>n,Of:()=>d,RY:()=>c,Rg:()=>s,j8:()=>i});let t={free:{genPerWeek:70,generationsPerDay:10,videoSecondsPerDay:8,videoSecondsPerWeek:24,trendManualPerDay:2,maxStyles:5,maxAutomations:0,maxCharacters:3,maxCampaigns:1,maxCampaignsMultiplayer:1,maxPartyMembership:1,maxWorlds:1,teamSeats:1,trendAutoEnabled:!1,apiAccess:!1,prioritySupport:!1,customBranding:!1,noWatermark:!1,priorityQueue:!1,
1commercialLicense:!1,dedicatedSupport:!1,qualityLevels:["standard"]},creator:{genPerWeek:150,generationsPerDay:null,videoSecondsPerDay:50,videoSecondsPerWeek:60,trendManualPerDay:10,maxStyles:50,maxAutomations:5,maxCharacters:20,maxCampaigns:3,maxCampaignsMultiplayer:1,maxPartyMembership:3,maxWorlds:1,teamSeats:1,trendAutoEnabled:!0,apiAccess:!0,prioritySupport:!1,customBranding:!1,noWatermark:!0,priorityQueue:!1,commercialLicense:!1,dedicatedSupport:!1,qualityLevels:["standard","1080p"]},pro:{genPerWeek:400,generationsPerDay:null,videoSecondsPerDay:50,videoSecondsPerWeek:250,trendManualPerDay:1/0,maxStyles:100,maxAutomations:10,maxCharacters:100,maxCampaigns:10,maxCampaignsMultiplayer:3,maxPartyMembership:10,maxWorlds:3,teamSeats:1,trendAutoEnabled:!0,apiAccess:!0,prioritySupport:!0,customBranding:!1,noWatermark:!0,priorityQueue:!0,commercialLicense:!0,dedicatedSupport:!1,qualityLevels:["standard","1080p","4k"]},enterprise:{genPerWeek:1500,generationsPerDay:null,videoSecondsPerDay:1/0,videoSecondsPerWeek:1/0,trendManualPerDay:1/0,maxStyles:1/0,maxAutomations:1/0,maxCharacters:1/0,maxCampaigns:1/0,maxCampaignsMultiplayer:1/0,maxPartyMembership:1/0,maxWorlds:1/0,teamSeats:5,trendAutoEnabled:!0,apiAccess:!0,prioritySupport:!0,customBranding:!0,noWatermark:!0,priorityQueue:!0,commercialLicense:!0,dedicatedSupport:!0,qualityLevels:["standard","1080p","4k","8k"]}};function n(e){return Number.isFinite(e)?String(e):"Unlimited"}function i(e){return({free:null,creator:{monthly:"$29/month",annual:"$249/year"},pro:{weekly:"$49.99/week",monthly:"$149.99/month",annual:"$1,499/year"},enterprise:{monthly:"$399/month",annual:"$3,999/year"}})[e]}function o(e){return Number.isFinite(e)?e:-1}function l(e){return -1===e?1/0:e}function s(e){var a;return{genPerWeek:o(e.genPerWeek),generationsPerDay:null===(a=e.generationsPerDay)?null:o(a),videoSecondsPerDay:o(e.videoSecondsPerDay),videoSecondsPerWeek:o(e.videoSecondsPerWeek),trendManualPerDay:o(e.trendManualPerDay),maxStyles:o(e.maxStyles),maxAutomations:o(e.maxAutomations),maxCharacters:o(e.maxCharacters),maxCampaigns:o(e.maxCampaigns),maxCampaignsMultiplayer:o(e.maxCampaignsMultiplayer),maxPartyMembership:o(e.maxPartyMembership),maxWorlds:o(e.maxWorlds),teamSeats:o(e.teamSeats),trendAutoEnabled:e.trendAutoEnabled,apiAccess:e.apiAccess,prioritySupport:e.prioritySupport,customBranding:e.customBranding,noWatermark:e.noWatermark,priorityQueue:e.priorityQueue,commercialLicense:e.commercialLicense,dedicatedSupport:e.dedicatedSupport,qualityLevels:[...e.qualityLevels]}}function u(e){var a,r,t,n;return{genPerWeek:l(e.genPerWeek),generationsPerDay:null===(n=e.generationsPerDay)?null:l(n),videoSecondsPerDay:l(e.videoSecondsPerDay),videoSecondsPerWeek:l(e.videoSecondsPerWeek),trendManualPerDay:l(e.trendManualPerDay),maxStyles:l(e.maxStyles),maxAutomations:l(e.maxAutomations),maxCharacters:l(e.maxCharacters),maxCampaigns:l(e.maxCampaigns),maxCampaignsMultiplayer:l(null!=(a=e.maxCampaignsMultiplayer)?a:-1),maxPartyMembership:l(null!=(r=e.maxPartyMembership)?r:-1),maxWorlds:l(null!=(t=e.maxWorlds)?t:-1),teamSeats:l(e.teamSeats),trendAutoEnabled:e.trendAutoEnabled,apiAccess:e.apiAccess,prioritySupport:e.prioritySupport,customBranding:e.customBranding,noWatermark:e.noWatermark,priorityQueue:e.priorityQueue,commercialLicense:e.commercialLicense,dedicatedSupport:e.dedicatedSupport,qualityLevels:[...e.qualityLevels]}}function c(){return{free:s(t.free),creator:s(t.creator),pro:s(t.pro),enterprise:s(t.enterprise)}}function d(e){return{free:u(e.free),creator:u(e.creator),pro:u(e.pro),enterprise:u(e.enterprise)}}}}]);

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.