PageSourceSearch

https://ktool.io/_next/static/chunks/453-b54405a014a75f59.js

js ktool.io collected 2026-09-24 10:10:39 UTC 9,615 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[453],{87648:function(n,e,t){"use strict";t.d(e,{ZP:function(){return _},u2:function(){return U},KE:function(){return j},B$:function(){return A}});var r=t(34051),u=t.n(r),o=t(42854),a=t.n(o),i=t(63522),c=t.n(i),s=t(735),l=t.n(s),f=t(63144),d=t.n(f),p=t(83977),m=t(31955),v=t(57824),y=t.n(v);function b(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function k(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})))),r.forEach((function(e){k(n,e,t[e])}))}return n}var w=function(){function n(){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n)}var e,t,r;return e=n,t=[{key:"getItem",value:function(n){return m.Z.get(n)}},{key:"setItem",value:function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=h({expires:new Date(Date.now()+y()("30 days"))},t);return m.Z.set(n,e,r)}},{key:"removeItem",value:function(n){return m.Z.remove(n)}}],t&&b(e.prototype,t),r&&b(e,r),n}(),g=w;function P(n,e,t,r,u,o,a){try{var i=n[o](a),c=i.value}catch(s){return void t(s)}i.done?e(c):Promise.resolve(c).then(r,u)}function S(n){return function(){var e=this,t=arguments;return new Promise((function(r,u){var o=n.apply(e,t);function a(n){P(o,r,u,a,i,"next",n)}function i(n){P(o,r,u,a,i,"throw",n)}a(void 0)}))}}var O=(0,t(11752).default)().publicRuntimeConfig,Z=O.KTOOL_API_URL,x="production"===O.RUNTIME_ENV?{apiKey:"AIzaSyA_fqboLz2S3OS96XdYr2hUCCi7UhSyfbI",authDomain:"project-ktool.firebaseapp.com",projectId:"project-ktool",storageBucket:"project-ktool.appspot.com",messagingSenderId:"701970744535",appId:"1:701970744535:web:109b95d3d4aaba056a9c92"}:{apiKey:"AIzaSyCZuxq2neKtNy0Yfpd43k4t3yW13oOSJCU",authDomain:"ktool-dev.firebaseapp.com",projectId:"ktool-dev",storageBucket:"ktool-dev.appspot.com",messagingSenderId:"1040367540724",appId:"1:1040367540724:web:dc63f5dab757e0a1ec81a1",measurementId:"G-Z2MLJ4Y2PK"};function U(){var n=a()(),e=l()(Z);n.configure(e.fetch(d()));var t=new g;return n.configure(c()({scheme:"",storageKey:"ktool_access_token",storage:t,jwtStrategy:"jwt"})),n}(0,p.ZF)(x);var C=U();function j(n){return I.apply(this,arguments)}function I(){return(I=S(u().mark((function n(e){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return C.authentication.setAccessToken(e),n.next=3,C.reAuthenticate();case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function A(n){return E.apply(this,arguments)}function E(){return(E=S(u().mark((function n(e){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,C.authenticate({strategy:"firebase",access_token:e});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))).apply(this,arguments)}var _=C},27713:function(n,e,t){"use strict";t.d(e,{Dp:function(){return h},oH:function(){return w},PR:function(){return g},QJ:function(){return P},$8:function(){return S},Cb:function(){return O},vs:function(){return Z},OB:function(){return x},G6:function(){return U},SJ:function(){return C},Is:function(){return j},at:function(){return I},OA:function(){return A},Gk:function(){return E},VG:function(){return _},xx:function(){return D},aU:function(){return K},Qd:function(){return T},jP:function(){return L},s0:function(){return N}});var r=t(34051),u=t.n(r),o=t(92876),a=t(14671),i=t(87648),c=t(31955),s=t(57463),l=t(313),f=t(83454);function d(n,e,t,r,u,o,a){try{var i=n[o](a),c=i.value}catch(s){return void t(s)}i.done?e(c):Promise.resolve(c).then(r,u)}function p(n){return function(){var e=this,t=arguments;return new Promise((function(r,u){var o=n.apply(e,t);function a(n){d(o,r,u,a,i,"next",n)}function i(n){d(o,r,u,a,i,"throw",n)}a(void 0)}))}}function m(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function v(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})))),r.forEach((function(e){m(n,e,t[e])}))}return n}Number("779257");function y(){var n=c.Z.get("dark-mode");return null!==n&&void 0!==n&&"true"===n}function b(){var n=c.Z.get("billed-annually");return null===n||void 0===n||"true"===n}var k=(0,a.Z)((function(n,e){return{authState:"initializing",user:null,priceCountry:"US",priceCurrency:"US$",signOut:p(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.Z.remove("authUser"),c.Z.remove("kindleUsername"),c.Z.remove("ktool_access_token"),e.next=5,i.ZP.logout();case 5:(0,s.lk)(),n({authState:"signed-out"}),window.location="/";case 8:case"end":return e.stop()}}),e)}))),init:p(u().mark((function e(){var t,r,a,s,l;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=y(),n({darkMode:t}),c.Z.set("dark-mode",t),t?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),r=Number("142387"),window.Paddle&&Number.isInteger(r)&&r>0&&(f.env.NEXT_PUBLIC_PADDLE_SANDBOX&&Paddle.Environment.set("sandbox"),Paddle.Setup({vend
1or:r,eventCallback:function(n){("Checkout.Loaded"===n.event||"Checkout.Complete"===n.event||"Checkout.Close"===n.event)&&console.log(n.eventData)}})),a=b(),n({billedAnnually:a}),c.Z.set("billed-annually",a),e.prev=10,e.next=13,i.ZP.reAuthenticate();case 13:l=e.sent,s=l.user,e.next=22;break;case 17:e.prev=17,e.t0=e.catch(10),console.log("error",e.t0),window.profitwell&&window.profitwell("start",{}),n({authState:"unauthorized"});case 22:s&&(window.profitwell&&window.profitwell("start",{user_email:s.email}),s.kindleUsername&&c.Z.set("kindleUsername",s.kindleUsername,{expires:365}),o.e((function(n){n.setUser({id:s.id,email:s.email})})),n({user:s,authState:"signed-in"}));case 23:case"end":return e.stop()}}),e,null,[[10,17]])}))),darkMode:!0,setDarkMode:function(e){n({darkMode:e}),c.Z.set("dark-mode",e),e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},billedAnnually:!1,setBilledAnnually:function(e){n({billedAnnually:e}),c.Z.set("billed-annually",e)},updateKindleUsername:function(t){var r=v({},e().user,{kindleUsername:t});n({user:r})},updateUserFullname:function(t){return p(u().mark((function r(){var o,a;return u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,i.ZP.service("users").patch("me",{name:t});case 2:o=e(),a=v({},o.user,{name:t}),n({user:a});case 5:case"end":return r.stop()}}),r)})))()}}})),h=function(){return k((function(n){return n.init}))},w=function(){return k((function(n){return n.authState}))},g=function(){return k((function(n){return n.user}))},P=function(){return k((function(n){return n.signOut}))},S=function(){return k((function(n){return"signed-in"===n.authState}))},O=function(){return k((function(n){return n.updateUserFullname}))},Z=function(){return k((function(n){return[n.darkMode,function(e){var t=e;return"function"===typeof e&&(t=e(n.darkMode)),n.setDarkMode(t)}]}))},x=function(){return k((function(n){return[n.billedAnnually,function(e){var t=e;return"function"===typeof e&&(t=e(n.billedAnnually)),n.setBilledAnnually(t)}]}))},U=function(){return k((function(n){return n.updateKindleUsername}))},C=function(){return k((function(n){var e=n.user;return!!e&&"expired"===e.accessState}))},j=function(){return k((function(n){var e=n.user;return!!e&&("active-trial"===e.accessState||"expired"===e.accessState)}))},I=function(){return k((function(n){var e=n.user;if(!e)return 30;if("active-trial"!==e.accessState)return 30;if(e.isTrialEnded)return 0;var t=e.trialEndedIn||0;return Math.round(t/864e5)}))},A=function(){return k((function(n){var e=n.user;return!!e&&(!e.plan||"free"===e.plan)}))},E=function(){return k((function(n){var e=n.user;return!!e&&!(!e.plan||"basic"!==e.plan)}))},_=function(){return k((function(n){var e=n.user;return!!e&&!(!e.plan||"starter"!==e.plan&&"mobile"!==e.plan)}))},D=function(){return k((function(n){var e=n.user;return!!e&&Boolean(e.isVerified)}))},K=function(){return k((function(n){return[n.priceCountry,n.priceCurrency]}))},T=function(){return k((function(n){var e=n.user;if(!e)return!1;var t=new Date(e.createdAt);return(0,l.Z)(t,new Date("2022-09-13T11:00:00.000Z"))}))},L=function(){return k((function(n){var e=n.user;return!!e&&Boolean(e.kindleUsername)}))},N=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return k((function(e){var t=e.user;if(!t)return"Free";switch(t.plan){case"pro":return n?"\ud83d\udc51 Pro":"\ud83d\udc51 KTool Pro";case"starter":case"mobile":return n?"\ud83c\udf1f Premium":"\ud83c\udf1f KTool Premium";case"platinum":return n?"\ud83d\udc51 Platinum":"\ud83d\udc51 KTool Platinum";case"family":return n?"\ud83c\udfe1 Family":"\ud83c\udfe1 KTool Family";case"free-trial":return n?"\ud83d\udc51 Trial":"\ud83d\udc51 Platinum Trial";default:return""}}))}},57463:function(n,e,t){"use strict";function r(){return Promise.resolve()}function u(){}function o(){}t.d(e,{L9:function(){return r},lk:function(){return u},Nq:function(){return o}})},24654:function(){}}]);

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.