PageSourceSearch

https://openink.ai/_next/static/chunks/7173-673ea760e4c031eb.js

js openink.ai collected 2026-10-02 00:14:19 UTC 15,201 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7173],{192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2115),o=n(3136),a=n(7389);n(845);var i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.IntlProvider=function(e){let{children:t,defaultTranslationValues:n,formats:l,getMessageFallback:s,locale:c,messages:u,now:d,onError:f,timeZone:h}=e,m=r.useMemo(()=>o.createCache(),[c]),p=r.useMemo(()=>o.createIntlFormatters(m),[m]),g=r.useMemo(()=>({...o.initializeConfig({locale:c,defaultTranslationValues:n,formats:l,getMessageFallback:s,messages:u,now:d,onError:f,timeZone:h}),formatters:p,cache:m}),[m,n,l,p,s,c,u,d,f,h]);return i.default.createElement(a.IntlContext.Provider,{value:g},t)}},845:(e,t,n)=>{"use strict";function r(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:function(e,t){var n,r,i=1===e.length?o:a;return n=t.cache.create(),r=t.serializer,i.bind(this,e,n,r)})(e,{cache:n,serializer:r})}function o(e,t,n,r){var o=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),a=t.get(o);return void 0===a&&(a=e.call(this,r),t.set(o,a)),a}function a(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),a=t.get(o);return void 0===a&&(a=e.apply(this,r),t.set(o,a)),a}n.r(t),n.d(t,{memoize:()=>r,strategies:()=>c});var i=function(){return JSON.stringify(arguments)},l=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),s={create:function(){return new l}},c={variadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,a.bind(this,e,n,r)},monadic:function(e,t){var n,r;return n=t.cache.create(),r=t.serializer,o.bind(this,e,n,r)}}},1020:(e,t,n)=>{"use strict";var r=n(2115),o=n(7389);function a(){let e=r.useContext(o.IntlContext);if(!e)throw Error(void 0);return e}t.useIntlContext=a,t.useLocale=function(){return a().locale}},1282:(e,t,n)=>{"use strict";n.d(t,{AndroidAppStoreLink:()=>c});var r=n(5155),o=n(2115),a=n(4567),i=n(7786);let l="openink_android_app_promotion_session_id";var s=n(6549);let c=(0,o.forwardRef)(function(e,t){let{locale:n,surface:o,onClick:c,...u}=e;return(0,r.jsx)("a",{...u,ref:t,href:s.G0.googlePlayUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>{var t;null==c||c(e),e.defaultPrevented||(t={locale:n,surface:o},(0,i.y8)("/stats/events",{anonymousId:(0,a.C)(),sessionId:function(){try{let e=window.sessionStorage.getItem(l);if(e)return e;let t=window.crypto.randomUUID();return window.sessionStorage.setItem(l,t),t}catch(e){return window.crypto.randomUUID()}}(),platform:"web",locale:t.locale,userAgent:window.navigator.userAgent,events:[{name:"android_google_play_clicked",screen:window.location.pathname,properties:{surface:t.surface,destination:"google_play"},timestamp:new Date().toISOString()}]},{keepalive:!0,timeoutMs:3e3}).catch(()=>{}))}})})},2319:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(63),o=n(9639);let a="locale",i=!1;function l(){let e,t=(0,r.useParams)();try{e=(0,o.useLocale)()}catch(n){if("string"!=typeof(null==t?void 0:t[a]))throw n;i||(console.warn("Deprecation warning: `useLocale` has returned a default from `useParams().locale` since no `NextIntlClientProvider` ancestor was found for the calling component. This behavior will be removed in the next major version. Please ensure all Client Components that use `next-intl` are wrapped in a `NextIntlClientProvider`."),i=!0),e=t[a]}return e}},2449:(e,t,n)=>{"use strict";n.d(t,{IOSAppStoreLink:()=>c});var r=n(5155),o=n(2115),a=n(4567),i=n(7786);let l="openink_ios_app_promotion_session_id";var s=n(6549);let c=(0,o.forwardRef)(function(e,t){let{locale:n,surface:o,onClick:c,...u}=e;return(0,r.jsx)("a",{...u,ref:t,href:s._r.appStoreUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>{var t;null==c||c(e),e.defaultPrevented||(t={locale:n,surface:o},(0,i.y8)("/stats/events",{anonymousId:(0,a.C)(),sessionId:function(){try{let e=window.sessionStorage.getItem(l);if(e)return e;let t=window.crypto.randomUUID();return window.sessionStorage.setItem(l,t),t}catch(e){return window.crypto.randomUUID()}}(),platform:"web",locale:t.locale,userAgent:window.navigator.userAgent,events:[{name:"ios_app_store_clicked",screen:window.location.pathname,properties:{surface:t.surface,destination:"app_store"},timestamp:new Date().toISOString()}]},{keepalive:!0,timeoutMs:3e3}).catch(()=>{}))}})})},2515:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{_:()=>r})},3136:(e,t,n)=>{"use strict";var r=n(845);function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(".")}function a(e){return o(e.namespace,e.key)}function i(e){console.error(e)}function l(e,t){return r.memoize(e,{cache:{create:()=>({get:e=>t[e],set(e,n){t[e]=n}})},strategy:r.strategies.variadic})}function s(e,t){return l(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return new e(...n)},t)}t.createCache=function(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}},t.createIntlFormatters=function(e){return{getDateTimeFormat:s(Intl.DateTimeFormat,e.dateTime),getNumberFormat:s(Intl.NumberFormat,e.number),getPluralRules:s(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:s(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:s(Intl.ListFormat,e.list),getDisplayNames:s(Intl.DisplayNames,e.displayNames)}},t.defaultGetMessageFallback=a,t.defaultOnError=i,t.initializeConfig=function(e){let{getMessageFallback:t,messages:n,onError:r,...o}=e;return{...o,messages:n,onError:r||i,getMessageFallback:t||a}},t.joinPath=o,t.memoFn=l},3691:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(2515),o=n(2619),a=n.n(o),i=n(63),l=n(2115),s=n(2319),c=(0,l.forwardRef)(function(e,t){let{defaultLocale:n,href:o,locale:c,localeCookie:u,onClick:d,prefetch:f,unprefixed:h,...m}=e,p=(0,s.A)(),g=null!=c&&c!==p,v=c||p,w=function(){let[e,t]=(0,l.useState)();return(0,l.useEffect)(()=>{t(window.location.host)},[]),e}(),y=w&&h&&(h.domains[w]===v||!Object.keys(h.domains).includes(w)&&p===n&&!c)?h.pathname:o,b=(0,i.usePathname)();return g&&(f&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),f=!1),l.createElement(a(),(0,r._)({ref:t,href:y,hrefLang:g?c:void 0,onClick:function(e){(function(e,t,n,r){if(!e||r===n||null==r||!t)return;let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===e?t:t.replace(e,"")}(t),{name:a,...i}=e;i.path||(i.path=""!==o?o:"/");let l="".concat(a,"=").concat(r,";");for(let[e,t]of Object.entries(i))l+="".concat("maxAge"===e?"max-age":e),"boolean"!=typeof t&&(l+="="+t),l+=";";document.cookie=l})(u,b,p,c),d&&d(e)},prefetch:f},m))})},4269:(e,t,n)=>{"use strict";n.d(t,{cn:()=>a});var r=n(2821),o=n(5889);function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.QP)((0,r.$)(t))}},4567:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});let r="openink.anonymous-id",o=null;function a(){if(o)return o;try{let e=window.localStorage.getItem(r);if(e&&e.trim().length>0)return o=e.trim();let t=i();return window.localStorage.setItem(r,t),o=t,t}catch(e){return o||(o=i()),o}}function i(){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?"anon-".concat(crypto.randomUUID()):"anon-".concat(Date.now().toString(36),"-").concat(Math.random().toString(36).slice(2,10))}}
1,6549:(e,t,n)=>{"use strict";n.d(t,{G0:()=>a,_r:()=>o,qt:()=>r});let r={name:"OpenInk",slogan:"Dream it. Ink it.",domain:"openink.ai",email:"[email protected]"},o={appStoreId:"6792504062",appStoreUrl:"https://apps.apple.com/app/id6792504062",defaultDeepLink:"openink://discover"},a={packageName:"ai.openink.android",googlePlayUrl:"https://play.google.com/store/apps/details?id=ai.openink.android",defaultDeepLink:"openink://discover"}},7173:(e,t,n)=>{Promise.resolve().then(n.bind(n,3691)),Promise.resolve().then(n.bind(n,8558)),Promise.resolve().then(n.bind(n,8713)),Promise.resolve().then(n.t.bind(n,2619,23)),Promise.resolve().then(n.t.bind(n,1356,23)),Promise.resolve().then(n.bind(n,1282)),Promise.resolve().then(n.bind(n,2449)),Promise.resolve().then(n.bind(n,7805))},7389:(e,t,n)=>{"use strict";t.IntlContext=n(2115).createContext(void 0)},7786:(e,t,n)=>{"use strict";n.d(t,{MY:()=>c,Dw:()=>d,sv:()=>u,BB:()=>w,_8:()=>v,Ey:()=>g,KL:()=>f,kL:()=>h,dZ:()=>m,y8:()=>p,Qk:()=>y});let r="openink.freeBenefitDevice.v1",o=/^web-v1:[0-9a-f-]{36}$/;async function a(){let e,t={"x-openink-free-benefit-protocol":"1"},n=()=>{try{let e=window.localStorage.getItem(r);if(null!==e)return o.test(e)?e:null;let t="web-v1:".concat(window.crypto.randomUUID());return window.localStorage.setItem(r,t),window.localStorage.getItem(r)===t?t:null}catch(e){return null}};try{let o=window.navigator.locks,a=new AbortController;o&&(e=setTimeout(()=>a.abort(),1e3));let i=o?await o.request(r,{signal:a.signal},n):n();return i?{...t,"x-openink-device-platform":"web","x-openink-device-id":i}:t}catch(e){return t}finally{void 0!==e&&clearTimeout(e)}}let i="https://api.openink.ai",l={},s=new Set;class c extends Error{constructor(e,t,n){super(e),this.name="BackendRequestError",Object.setPrototypeOf(this,new.target.prototype),this.status=t,this.detail=n}}function u(e){void 0!==e.baseUrl&&(l.baseUrl=e.baseUrl),void 0!==e.authTokenGetter&&(l.authTokenGetter=e.authTokenGetter,_(e.authTokenGetter))}function d(){l.authTokenGetter=void 0,_(null)}async function f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return b(e,t,n)}async function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return b(e,t,{...n,withAuth:!0})}async function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k(e,t,{...n,withAuth:!0})}async function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return b(e,t,{...n,withOptionalAuth:!0})}async function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return I(e,t,{...n,withAuth:!0})}async function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return I(e,t,n)}async function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return P(e)}function y(e,t){return"".concat(S(t)).concat(A(e))}async function b(e,t,n){let r=await k(e,t,n),o=await C(r);if(!r.ok)throw new c("object"==typeof o&&o&&"message"in o?String(o.message):"Backend request failed",r.status,o);return o}async function k(e,t,n){let{signal:r,timeoutMs:o=15e3,headers:a,withAuth:i=!1,withOptionalAuth:l=!1,keepalive:s}=n,c=new AbortController,u=setTimeout(()=>c.abort(),o),d=()=>c.abort();null==r||r.addEventListener("abort",d);try{let r=i?await P({requireAuth:!0}):l?await P({requireAuth:!1}):{};return await fetch("".concat(S(n.baseUrl)).concat(A(e)),{method:"POST",headers:{"Content-Type":"application/json",...r,...a},body:JSON.stringify(t),signal:c.signal,...s?{keepalive:!0}:{}})}finally{clearTimeout(u),null==r||r.removeEventListener("abort",d)}}async function I(e,t,n){let{signal:r,timeoutMs:o=15e3,headers:a,withAuth:i=!1}=n,l=new AbortController,s=setTimeout(()=>l.abort(),o),u=()=>l.abort();null==r||r.addEventListener("abort",u);try{let r=i?await P({requireAuth:!0}):{},o=await fetch("".concat(S(n.baseUrl)).concat(A(e)),{method:"POST",headers:{...r,...a},body:t,signal:l.signal}),s=await C(o);if(!o.ok){let e="object"==typeof s&&s&&"message"in s?String(s.message):"Backend request failed";throw new c(e,o.status,s)}return s}finally{clearTimeout(s),null==r||r.removeEventListener("abort",u)}}function _(e){for(let t of s)t(e);s.clear()}async function T(e){let t=l.authTokenGetter;return t||(e<=0?null:await new Promise(t=>{let n=setTimeout(()=>{var e;s.delete(r),t(null!=(e=l.authTokenGetter)?e:null)},e),r=e=>{clearTimeout(n),s.delete(r),t(e)};s.add(r)}))}async function P(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{requireAuth:n=!1}=t,r=null!=(e=l.authTokenGetter)?e:await T(2e3*!!n);if(!r){if(n)throw new c("Authentication is still loading. Please try again.",401,{code:"AUTH_TOKEN_GETTER_MISSING"});return{}}try{let e=await Promise.race([r(),new Promise((e,t)=>
1setTimeout(()=>t(Error("Auth token getter timeout")),5e3))]);if(!e){if(n)throw new c("Please sign in to continue.",401,{code:"AUTH_TOKEN_MISSING"});return{}}return{Authorization:"Bearer ".concat(e),...await a()}}catch(e){if(console.warn("[backend] Auth token getter failed or timed out:",e),e instanceof c)throw e;if(n)throw new c("Authentication failed. Please sign in again.",401,{code:"AUTH_TOKEN_UNAVAILABLE",reason:e instanceof Error?e.message:String(e)});return{}}}function S(e){var t;return null!=(t=null!=e?e:l.baseUrl)?t:i}function A(e){return e.startsWith("/")?e:"/".concat(e)}async function C(e){try{return await e.json()}catch(e){return null}}},7805:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Reveal:()=>i});var r=n(5155),o=n(2115),a=n(4269);function i(e){let{children:t,className:n,delay:i=0}=e,l=(0,o.useRef)(null),[s,c]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=new IntersectionObserver(t=>{let[n]=t;n.isIntersecting&&(setTimeout(()=>c(!0),i),e.unobserve(n.target))},{threshold:.1});return l.current&&e.observe(l.current),()=>e.disconnect()},[i]),(0,r.jsx)("div",{ref:l,className:(0,a.cn)("reveal",s&&"active",n),children:t})}},8558:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(2515),o=n(63),a=n(2115),i=n(2319);function l(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function s(e,t){let n;return"string"==typeof e?n=c(t,e):(n={...e},e.pathname&&(n.pathname=c(t,e.pathname))),n}function c(e,t){let n=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}n(5704);var u=n(3691);let d=(0,a.forwardRef)(function(e,t){let{href:n,locale:c,localeCookie:d,localePrefixMode:f,prefix:h,...m}=e,p=(0,o.usePathname)(),g=(0,i.A)(),v=c!==g,[w,y]=(0,a.useState)(()=>l(n)&&("never"!==f||v)?s(n,h):n);return(0,a.useEffect)(()=>{p&&y(function(e,t){var n,r;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(!l(e))return e;let c=(n=i,(r=a)===n||r.startsWith("".concat(n,"/")));return(t!==o||c)&&null!=i?s(e,i):e}(n,c,g,p,h))},[g,n,c,p,h]),a.createElement(u.default,(0,r._)({ref:t,href:w,locale:c,localeCookie:d},m))});d.displayName="ClientLink"},8713:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(2515),o=n(2115),a=n(192);function i(e){let{locale:t,...n}=e;if(!t)throw Error("Failed to determine locale in `NextIntlClientProvider`, please provide the `locale` prop explicitly.\n\nSee https://next-intl.dev/docs/configuration#locale");return o.createElement(a.IntlProvider,(0,r._)({locale:t},n))}},9639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1020);n(2115),n(7389),t.useLocale=r.useLocale}}]);

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.