1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9558],{34207:(t,e,r)=>{r.d(e,{ED:()=>h,FL:()=>n,R0:()=>c,Ze:()=>a,Zl:()=>s,_m:()=>u,cl:()=>f,eM:()=>o,eY:()=>l,mw:()=>i});let n="landing-copy-revenue-v1",a="ph_distinct_id",i="landing-block-order",l="nt_order",o="landing-hero-desktop-v2",s="landing-video-sequence-v1",c="hero_preview",u="hero_video_preview",f="nt_pricing",d=["nt_copy",l,"nt_hero","first_video","nt_video_sequence",c,u,f];function h(t){let e="string"==typeof t?new URLSearchParams(t.startsWith("?")?t.slice(1):t):t;return d.some(t=>e.has(t))}},70240:(t,e,r)=>{r.d(e,{BO:()=>R,Bx:()=>A,EG:()=>Z,EN:()=>U,Eu:()=>X,He:()=>K,NA:()=>k,Wb:()=>F,Xj:()=>tr,ZL:()=>Y,_k:()=>B,ei:()=>M,fc:()=>q,jy:()=>Q,l5:()=>f,mO:()=>m,nE:()=>j,nv:()=>N,pN:()=>T,pQ:()=>V,se:()=>ta,tN:()=>te,tl:()=>G,x2:()=>H,xV:()=>tn,yU:()=>$,yp:()=>h});var n,a,i,l,o=r(87358);let s=new Set(["gclid","gbraid","wbraid","fbclid","msclkid","ttclid","twclid","rdt_cid","li_fat_id"]),c=new Set(["fpr","via","fp_ref","ref","fp_tid","tid","fprom_tid"]);function u(t){return t.replace(/\/+$/,"")||"/"}let f=u((null==(n=o.env.NEXT_PUBLIC_APP_URL)?void 0:n.trim())||"https://app.noodletomato.com"),d=u((null==(a=o.env.NEXT_PUBLIC_SITE_URL)?void 0:a.trim())||"https://www.noodletomato.com"),h=(null==(i=o.env.NEXT_PUBLIC_APP_SIGN_UP_URL)?void 0:i.trim())||"".concat(f,"/sign-up"),m=(null==(l=o.env.NEXT_PUBLIC_APP_SIGN_IN_URL)?void 0:l.trim())||f,g="nt_niche_action",p="nt_niche_query",_="nt_niche_mode",w="nt_niche_page",v="nt_niche_category",y="nt_niche_sort",S=[g,p,_,w,v,y];function L(t){return t.toLowerCase().startsWith("utm_")||s.has(t)}function P(t){return c.has(t.toLowerCase())}function U(t){try{return new URL(t,f).origin===f}catch(t){return!1}}function N(t,e){let r=new URLSearchParams(e.startsWith("?")?e.slice(1):e);if(!Array.from(r.keys()).some(L))return t;try{let e=new URL(t,f),n=new Set(e.searchParams.keys());for(let[t,a]of r)L(t)&&!n.has(t)&&(e.searchParams.append(t,a),n.add(t));return e.toString()}catch(e){return t}}function R(t,e){let r=new URLSearchParams(e.startsWith("?")?e.slice(1):e);if(!Array.from(r.keys()).some(P))return t;try{let e=new URL(t,f),n=new Set(Array.from(e.searchParams.keys(),t=>t.toLowerCase()));for(let[t,a]of r){let r=t.toLowerCase(),i=a.trim().slice(0,500);P(r)&&i&&!n.has(r)&&(e.searchParams.append(r,i),n.add(r))}return e.toString()}catch(e){return t}}let b=["topic","niche","category"];function k(t,e){let r=new URLSearchParams(e.startsWith("?")?e.slice(1):e),n=b.filter(t=>r.get(t));if(0===n.length)return t;try{let e=new URL(t,f);for(let t of n)e.searchParams.has(t)||e.searchParams.set(t,r.get(t));return e.toString()}catch(e){return t}}let O="nt_marketing_params",I="nt_firstpromoter_params",W=["fpr","via","fp_ref","ref"],C=["fp_tid","tid","fprom_tid"];function E(){try{var t;let e=window.localStorage.getItem(O);if(!e)return{};let r=JSON.parse(e);if(!(null==r?void 0:r.ts)||Date.now()-r.ts>7776e6)return{};return null!=(t=r.params)?t:{}}catch(t){return{}}}function A(t){let e=new URLSearchParams(t.startsWith("?")?t.slice(1):t),r={};for(let[t,n]of e)L(t)&&n&&(r[t]=n);if(0!==Object.keys(r).length)try{let t={...E(),...r};window.localStorage.setItem(O,JSON.stringify({params:t,ts:Date.now()}))}catch(t){}}function j(t){let e=new URLSearchParams;for(let[t,r]of Object.entries(E()))e.set(t,r);for(let[r,n]of new URLSearchParams(t.startsWith("?")?t.slice(1):t))L(r)&&e.set(r,n);return e.toString()}function J(){try{var t;let e=window.localStorage.getItem(I);if(!e)return null;let r=JSON.parse(e);if(!(null==r?void 0:r.ts)||Date.now()-r.ts>2592e6)return null;return{params:null!=(t=r.params)?t:{},ts:r.ts,validated:!1!==r.validated}}catch(t){return null}}function B(){var t;return(null==(t=J())?void 0:t.validated)===!0}function D(t){let e=new URLSearchParams(t.startsWith("?")?t.slice(1):t),r=new Map;for(let[t,n]of e){let e=t.toLowerCase(),a=n.trim().slice(0,500);P(e)&&a&&!r.has(e)&&r.set(e,a)}let n={},a=W.find(t=>r.has(t));a&&(n[a]=r.get(a));let i=C.find(t=>r.has(t));return i&&(n[i]=r.get(i)),n}function T(t){var e;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=J();if(null==n?void 0:n.validated)return;let a=D(t);if(0===Object.keys(a).length)return;let i=!1!==r.validated,l=JSON.stringify(null!=(e=null==n?void 0:n.params)?e:{})===JSON.stringify(a);if(!n||l)try{window.localStorage.setItem(I,JSON.stringify({params:a,ts:l&&n?n.ts:Date.now(),validated:i}))}catch(t){}}function X(t){let e=J();if(!e||e.validated)return;let r=D(t);if(JSON.stringify(e.params)===JSON.stringify(r))try{window.localStorage.removeItem(I)}catch(t){}}function q(t){var e,r;let n=null!=(r=null==(e=J())?void 0:e.params)?r:{},a=Object.keys(n).length>0?n:D(t),i=new URLSearchParams;for(let[t,e]of Object.entries(a))P(t)&&e&&i.set(t,e);return i.toString()}function x(t,e){let r=null!=e?e:window.location.search,n=j(r),a=q(r);return R(N(k(t,r),n),a)}function G(t){return x(h,t)}function Z(t){return x("".concat(f,"/studio"),t)}let z=/^[a-z0-9][a-z0-9-]*$/;function F(){let{entry:t="agentic",offerKey:e,currentSearch:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new URL("/start",f);n.searchParams.set("entry",t);let a=function(t){let e=null==t?void 0:t.trim().toLowerCase();return e&&!(e.length>64)&&z.test(e)?e:null}(e);return a&&n.searchParams.set("offerKey",a),x(n.toString(),r)}let M="".concat(f,"/settings/developer?tab=mcp"),$="".concat(f,"/settings/developer?tab=keys"),H="".concat(f,"/api/public/openapi.json");function K(t,e,r){let n=new URL(t,d);n.searchParams.set("redirect_url",e);let a=function(t){var e;let r=null==(e=Array.isArray(t)?t[0]:t)?void 0:e.trim();return r?r.slice(0,120):null}(r);return a&&n.searchParams.set("source",a),"".concat(n.pathname).concat(n.search)}function Q(t,e){return K("/sign-up",G(e),t)}function V(t,e){return K("/sign-up",Z(e),t)}function Y(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return K("/sign-up",F(e),t)}function tt(t){let e=new URLSearchParams(t.startsWith("?")?t.slice(1):t);for(let t of S)e.delete(t);return e}function te(t){let e=tt(t).toString();return e?"?".concat(e):""}function tr(t){var e,r,n,a;let i=new URLSearchParams(t.startsWith("?")?t.slice(1):t),l=i.get(g);if("search"===l){let t=(null!=(e=i.get(p))?e:"").trim().slice(0,200);return t?{type:"search",query:t}:null}if("load_more"===l){let t=i.get(_);if("browse"!==t&&"category"!==t)return null;let e=Number.parseInt(null!=(r=i.get(w))?r:"",10);if(!Number.isFinite(e)||e<2||e>500)return null;let l=(null!=(n=i.get(v))?n:"").trim(),o=(null!=(a=i.get(y))?a:"").trim().slice(0,40);return{type:"load_more",mode:t,page:e,...l?{categorySlug:l}:{},...o?{sort:o}:{}}}return null}function tn(t,e,r){let n=function(t){let e=null==t?void 0:t.trim();return!e||!e.startsWith("/")||e.startsWith("//")?"/niches":e}(null!=e?e:window.location.pathname),a=tt(null!=r?r:window.location.search);a.set(g,t.type),"search"===t.type?a.set(p,t.query.trim().slice(0,200)):(a.set(_,t.mode),a.set(w,String(t.page)),t.categorySlug&&a.set(v,t.categorySlug),t.sort&&a.set(y,t.sort));let i=a.toString();return"".concat(n).concat(i?"?".concat(i):"")}function ta(t,e,r,n){return K("/sign-up",tn(t,r,n),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.