/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/client
NameSizeModeActions
app-dir/-0777rm
compat/-0777rm
components/-0777rm
dev/-0777rm
legacy/-0777rm
lib/-0777rm
portal/-0777rm
react-client-callbacks/-0777rm
request/-0777rm
tracing/-0777rm
add-base-path.d.ts790666editdlrm
add-base-path.js10100666editdlrm
add-base-path.js.map9730666editdlrm
add-locale.d.ts1210666editdlrm
add-locale.js10520666editdlrm
add-locale.js.map9000666editdlrm
app-bootstrap.d.ts2850666editdlrm
app-bootstrap.js27710666editdlrm
app-bootstrap.js.map39670666editdlrm
app-build-id.d.ts1110666editdlrm
app-build-id.js17670666editdlrm
app-build-id.js.map14610666editdlrm
app-call-server.d.ts910666editdlrm
app-call-server.js11640666editdlrm
app-call-server.js.map10170666editdlrm
app-find-source-map-url.d.ts900666editdlrm
app-find-source-map-url.js16620666editdlrm
app-find-source-map-url.js.map20920666editdlrm
app-globals.d.ts450666editdlrm
app-globals.js7080666editdlrm
app-globals.js.map5910666editdlrm
app-index.d.ts6250666editdlrm
app-index.js114290666editdlrm
app-index.js.map170630666editdlrm
app-link-gc.d.ts400666editdlrm
app-link-gc.js45430666editdlrm
app-link-gc.js.map51630666editdlrm
app-next-dev.d.ts240666editdlrm
app-next-dev.js12140666editdlrm
app-next-dev.js.map11980666editdlrm
app-next-turbopack.d.ts110666editdlrm
app-next-turbopack.js12910666editdlrm
app-next-turbopack.js.map16590666editdlrm
app-next.d.ts240666editdlrm
app-next.js12840666editdlrm
app-next.js.map12490666editdlrm
app-webpack.d.ts110666editdlrm
app-webpack.js31740666editdlrm
app-webpack.js.map32030666editdlrm
assign-location.d.ts3630666editdlrm
assign-location.js12590666editdlrm
assign-location.js.map15490666editdlrm
detect-domain-locale.d.ts1410666editdlrm
detect-domain-locale.js9220666editdlrm
detect-domain-locale.js.map7220666editdlrm
flight-data-helpers.d.ts14910666editdlrm
flight-data-helpers.js54390666editdlrm
flight-data-helpers.js.map86650666editdlrm
form-shared.d.ts28860666editdlrm
form-shared.js71320666editdlrm
form-shared.js.map107620666editdlrm
form.d.ts4890666editdlrm
form.js58160666editdlrm
form.js.map82650666editdlrm
get-domain-locale.d.ts2200666editdlrm
get-domain-locale.js15610666editdlrm
get-domain-locale.js.map24570666editdlrm
has-base-path.d.ts600666editdlrm
has-base-path.js8070666editdlrm
has-base-path.js.map6050666editdlrm
head-manager.d.ts10410666editdlrm
head-manager.js49810666editdlrm
head-manager.js.map83420666editdlrm
image-component.d.ts13370666editdlrm
image-component.js139610666editdlrm
image-component.js.map213850666editdlrm
index.d.ts7730666editdlrm
index.js334400666editdlrm
index.js.map525760666editdlrm
link.d.ts50620666editdlrm
link.js194570666editdlrm
link.js.map343670666editdlrm
next-dev-turbopack.d.ts110666editdlrm
next-dev-turbopack.js19400666editdlrm
next-dev-turbopack.js.map30020666editdlrm
next-dev.d.ts200666editdlrm
next-dev.js12230666editdlrm
next-dev.js.map11940666editdlrm
next-turbopack.d.ts480666editdlrm
next-turbopack.js14600666editdlrm
next-turbopack.js.map23300666editdlrm
next.d.ts1350666editdlrm
next.js7870666editdlrm
next.js.map8600666editdlrm
normalize-locale-path.d.ts1440666editdlrm
normalize-locale-path.js8830666editdlrm
normalize-locale-path.js.map8830666editdlrm
normalize-trailing-slash.d.ts1900666editdlrm
normalize-trailing-slash.js14500666editdlrm
normalize-trailing-slash.js.map17230666editdlrm
page-bootstrap.d.ts1230666editdlrm
page-bootstrap.js74270666editdlrm
page-bootstrap.js.map89990666editdlrm
page-loader.d.ts13700666editdlrm
page-loader.js75950666editdlrm
page-loader.js.map121060666editdlrm
remove-base-path.d.ts620666editdlrm
remove-base-path.js10800666editdlrm
remove-base-path.js.map11450666editdlrm
remove-locale.d.ts770666editdlrm
remove-locale.js11480666editdlrm
remove-locale.js.map13080666editdlrm
request-idle-callback.d.ts2650666editdlrm
request-idle-callback.js14490666editdlrm
request-idle-callback.js.map14320666editdlrm
resolve-href.d.ts3960666editdlrm
resolve-href.js55060666editdlrm
resolve-href.js.map78990666editdlrm
route-announcer.d.ts1150666editdlrm
route-announcer.js33120666editdlrm
route-announcer.js.map35530666editdlrm
route-loader.d.ts17360666editdlrm
route-loader.js139680666editdlrm
route-loader.js.map230120666editdlrm
route-params.d.ts11130666editdlrm
route-params.js82580666editdlrm
route-params.js.map108840666editdlrm
router.d.ts10780666editdlrm
router.js67160666editdlrm
router.js.map88230666editdlrm
script.d.ts9230666editdlrm
script.js141820666editdlrm
script.js.map189230666editdlrm
set-attributes-from-props.d.ts860666editdlrm
set-attributes-from-props.js23670666editdlrm
set-attributes-from-props.js.map31210666editdlrm
trusted-types.d.ts5440666editdlrm
trusted-types.js15280666editdlrm
trusted-types.js.map19570666editdlrm
use-client-disallowed.d.ts530666editdlrm
use-client-disallowed.js10060666editdlrm
use-client-disallowed.js.map7530666editdlrm
use-intersection.d.ts4120666editdlrm
use-intersection.js38450666editdlrm
use-intersection.js.map66460666editdlrm
use-merged-ref.d.ts1390666editdlrm
use-merged-ref.js24020666editdlrm
use-merged-ref.js.map34960666editdlrm
web-vitals.d.ts1560666editdlrm
web-vitals.js11090666editdlrm
web-vitals.js.map10080666editdlrm
webpack.d.ts110666editdlrm
webpack.js22820666editdlrm
webpack.js.map25350666editdlrm
with-router.d.ts5050666editdlrm
with-router.js14580666editdlrm
with-router.js.map19210666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/next/dist/client/router.js.map (8823B)
{"version":3,"sources":["../../src/client/router.ts"],"sourcesContent":["/* global window */\nimport React from 'react'\nimport Router from '../shared/lib/router/router'\nimport type { NextRouter } from '../shared/lib/router/router'\nimport { RouterContext } from '../shared/lib/router-context.shared-runtime'\nimport isError from '../lib/is-error'\n\ntype SingletonRouterBase = {\n router: Router | null\n readyCallbacks: Array<() => any>\n ready(cb: () => any): void\n}\n\nexport { Router }\n\nexport type { NextRouter }\n\nexport type SingletonRouter = SingletonRouterBase & NextRouter\n\nconst singletonRouter: SingletonRouterBase = {\n router: null, // holds the actual router instance\n readyCallbacks: [],\n ready(callback: () => void) {\n if (this.router) return callback()\n if (typeof window !== 'undefined') {\n this.readyCallbacks.push(callback)\n }\n },\n}\n\n// Create public properties and methods of the router in the singletonRouter\nconst urlPropertyFields = [\n 'pathname',\n 'route',\n 'query',\n 'asPath',\n 'components',\n 'isFallback',\n 'basePath',\n 'locale',\n 'locales',\n 'defaultLocale',\n 'isReady',\n 'isPreview',\n 'isLocaleDomain',\n 'domainLocales',\n] as const\nconst routerEvents = [\n 'routeChangeStart',\n 'beforeHistoryChange',\n 'routeChangeComplete',\n 'routeChangeError',\n 'hashChangeStart',\n 'hashChangeComplete',\n] as const\nexport type RouterEvent = (typeof routerEvents)[number]\n\nconst coreMethodFields = [\n 'push',\n 'replace',\n 'reload',\n 'back',\n 'prefetch',\n 'beforePopState',\n] as const\n\n// Events is a static property on the router, the router doesn't have to be initialized to use it\nObject.defineProperty(singletonRouter, 'events', {\n get() {\n return Router.events\n },\n})\n\nfunction getRouter(): Router {\n if (!singletonRouter.router) {\n const message =\n 'No router instance found.\\n' +\n 'You should only use \"next/router\" on the client side of your app.\\n'\n throw new Error(message)\n }\n return singletonRouter.router\n}\n\nurlPropertyFields.forEach((field) => {\n // Here we need to use Object.defineProperty because we need to return\n // the property assigned to the actual router\n // The value might get changed as we change routes and this is the\n // proper way to access it\n Object.defineProperty(singletonRouter, field, {\n get() {\n const router = getRouter()\n return router[field] as string\n },\n })\n})\n\ncoreMethodFields.forEach((field) => {\n // We don't really know the types here, so we add them later instead\n ;(singletonRouter as any)[field] = (...args: any[]) => {\n const router = getRouter() as any\n return router[field](...args)\n }\n})\n\nrouterEvents.forEach((event) => {\n singletonRouter.ready(() => {\n Router.events.on(event, (...args) => {\n const eventField = `on${event.charAt(0).toUpperCase()}${event.substring(\n 1\n )}`\n const _singletonRouter = singletonRouter as any\n if (_singletonRouter[eventField]) {\n try {\n _singletonRouter[eventField](...args)\n } catch (err) {\n console.error(`Error when running the Router event: ${eventField}`)\n console.error(\n isError(err) ? `${err.message}\\n${err.stack}` : err + ''\n )\n }\n }\n })\n })\n})\n\n// Export the singletonRouter and this is the public API.\nexport default singletonRouter as SingletonRouter\n\n// Reexport the withRouter HOC\nexport { default as withRouter } from './with-router'\n\n/**\n * This hook gives access the [router object](https://nextjs.org/docs/pages/api-reference/functions/use-router#router-object)\n * inside the [Pages Router](https://nextjs.org/docs/pages/building-your-application).\n *\n * Read more: [Next.js Docs: `useRouter`](https://nextjs.org/docs/pages/api-reference/functions/use-router)\n */\nexport function useRouter(): NextRouter {\n const router = React.useContext(RouterContext)\n if (!router) {\n throw new Error(\n 'NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted'\n )\n }\n\n return router\n}\n\n/**\n * Create a router and assign it as the singleton instance.\n * This is used in client side when we are initializing the app.\n * This should **not** be used inside the server.\n * @internal\n */\nexport function createRouter(\n ...args: ConstructorParameters\n): Router {\n singletonRouter.router = new Router(...args)\n singletonRouter.readyCallbacks.forEach((cb) => cb())\n singletonRouter.readyCallbacks = []\n\n return singletonRouter.router\n}\n\n/**\n * This function is used to create the `withRouter` router instance\n * @internal\n */\nexport function makePublicRouterInstance(router: Router): NextRouter {\n const scopedRouter = router as any\n const instance = {} as any\n\n for (const property of urlPropertyFields) {\n if (typeof scopedRouter[property] === 'object') {\n instance[property] = Object.assign(\n Array.isArray(scopedRouter[property]) ? [] : {},\n scopedRouter[property]\n ) // makes sure query is not stateful\n continue\n }\n\n instance[property] = scopedRouter[property]\n }\n\n // Events is a static property on the router, the router doesn't have to be initialized to use it\n instance.events = Router.events\n\n coreMethodFields.forEach((field) => {\n instance[field] = (...args: any[]) => {\n return scopedRouter[field](...args)\n }\n })\n\n return instance\n}\n"],"names":["Router","createRouter","makePublicRouterInstance","useRouter","withRouter","singletonRouter","router","readyCallbacks","ready","callback","window","push","urlPropertyFields","routerEvents","coreMethodFields","Object","defineProperty","get","events","getRouter","message","Error","forEach","field","args","event","on","eventField","charAt","toUpperCase","substring","_singletonRouter","err","console","error","isError","stack","React","useContext","RouterContext","cb","scopedRouter","instance","property","assign","Array","isArray"],"mappings":"AAAA,iBAAiB;;;;;;;;;;;;;;;;;;;IAaRA,MAAM;eAANA,eAAM;;IA6ICC,YAAY;eAAZA;;IA7BhB,yDAAyD;IACzD,OAAiD;eAAjD;;IA0CgBC,wBAAwB;eAAxBA;;IA/BAC,SAAS;eAATA;;IARIC,UAAU;eAAVA,mBAAU;;;;gEAhIZ;iEACC;4CAEW;kEACV;qEA4HkB;AA9GtC,MAAMC,kBAAuC;IAC3CC,QAAQ;IACRC,gBAAgB,EAAE;IAClBC,OAAMC,QAAoB;QACxB,IAAI,IAAI,CAACH,MAAM,EAAE,OAAOG;QACxB,IAAI,OAAOC,WAAW,aAAa;YACjC,IAAI,CAACH,cAAc,CAACI,IAAI,CAACF;QAC3B;IACF;AACF;AAEA,4EAA4E;AAC5E,MAAMG,oBAAoB;IACxB;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AACD,MAAMC,eAAe;IACnB;IACA;IACA;IACA;IACA;IACA;CACD;AAGD,MAAMC,mBAAmB;IACvB;IACA;IACA;IACA;IACA;IACA;CACD;AAED,iGAAiG;AACjGC,OAAOC,cAAc,CAACX,iBAAiB,UAAU;IAC/CY;QACE,OAAOjB,eAAM,CAACkB,MAAM;IACtB;AACF;AAEA,SAASC;IACP,IAAI,CAACd,gBAAgBC,MAAM,EAAE;QAC3B,MAAMc,UACJ,gCACA;QACF,MAAM,qBAAkB,CAAlB,IAAIC,MAAMD,UAAV,qBAAA;mBAAA;wBAAA;0BAAA;QAAiB;IACzB;IACA,OAAOf,gBAAgBC,MAAM;AAC/B;AAEAM,kBAAkBU,OAAO,CAAC,CAACC;IACzB,sEAAsE;IACtE,6CAA6C;IAC7C,kEAAkE;IAClE,0BAA0B;IAC1BR,OAAOC,cAAc,CAACX,iBAAiBkB,OAAO;QAC5CN;YACE,MAAMX,SAASa;YACf,OAAOb,MAAM,CAACiB,MAAM;QACtB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