├── README.md
├── client
└── build
│ ├── robots.txt
│ ├── favicon.ico
│ ├── logo192.png
│ ├── logo512.png
│ ├── asset-manifest.json
│ ├── manifest.json
│ ├── index.html
│ └── static
│ └── js
│ ├── main.e255f202.js.LICENSE.txt
│ ├── 787.c4e7f8f9.chunk.js
│ └── 787.c4e7f8f9.chunk.js.map
├── config
└── connectDb.js
├── routes
├── userRoute.js
└── transectionRoutes.js
├── models
├── userModel.js
└── transectionModel.js
├── package.json
├── controllers
├── userController.js
└── transectionCtrl.js
└── server.js
/README.md:
--------------------------------------------------------------------------------
1 | # prouction-Expense-app-mern
2 | expense mern stack app
3 |
--------------------------------------------------------------------------------
/client/build/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/client/build/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techinfo-youtube/prouction-Expense-app-mern/HEAD/client/build/favicon.ico
--------------------------------------------------------------------------------
/client/build/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techinfo-youtube/prouction-Expense-app-mern/HEAD/client/build/logo192.png
--------------------------------------------------------------------------------
/client/build/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/techinfo-youtube/prouction-Expense-app-mern/HEAD/client/build/logo512.png
--------------------------------------------------------------------------------
/config/connectDb.js:
--------------------------------------------------------------------------------
1 | const mongoose = require("mongoose");
2 | const colors = require("colors");
3 | const connectDb = async () => {
4 | try {
5 | await mongoose.connect(process.env.MONGO_URL);
6 | console.log(`Server Running On ${mongoose.connection.host}`.bgCyan.white);
7 | } catch (error) {
8 | console.log(`${error}`.bgRed);
9 | }
10 | };
11 |
12 | module.exports = connectDb;
13 |
--------------------------------------------------------------------------------
/routes/userRoute.js:
--------------------------------------------------------------------------------
1 | const express = require("express");
2 | const {
3 | loginController,
4 | registerController,
5 | } = require("../controllers/userController");
6 |
7 | //router object
8 | const router = express.Router();
9 |
10 | //routers
11 | // POST || LOGIN USER
12 | router.post("/login", loginController);
13 |
14 | //POST || REGISTER USER
15 | router.post("/register", registerController);
16 |
17 | module.exports = router;
18 |
--------------------------------------------------------------------------------
/client/build/asset-manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "files": {
3 | "main.css": "/static/css/main.71e0e6ab.css",
4 | "main.js": "/static/js/main.e255f202.js",
5 | "static/js/787.c4e7f8f9.chunk.js": "/static/js/787.c4e7f8f9.chunk.js",
6 | "index.html": "/index.html",
7 | "main.71e0e6ab.css.map": "/static/css/main.71e0e6ab.css.map",
8 | "main.e255f202.js.map": "/static/js/main.e255f202.js.map",
9 | "787.c4e7f8f9.chunk.js.map": "/static/js/787.c4e7f8f9.chunk.js.map"
10 | },
11 | "entrypoints": [
12 | "static/css/main.71e0e6ab.css",
13 | "static/js/main.e255f202.js"
14 | ]
15 | }
--------------------------------------------------------------------------------
/client/build/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/models/userModel.js:
--------------------------------------------------------------------------------
1 | const mongoose = require("mongoose");
2 |
3 | //schema design
4 | const userSchema = new mongoose.Schema(
5 | {
6 | name: {
7 | type: String,
8 | required: [true, "name is required"],
9 | },
10 | email: {
11 | type: String,
12 | required: [true, "email is required and should be unique"],
13 | unique: true,
14 | },
15 | password: {
16 | type: String,
17 | required: [true, "password is required"],
18 | },
19 | },
20 | { timestamps: true }
21 | );
22 |
23 | //export
24 | const userModel = mongoose.model("users", userSchema);
25 | module.exports = userModel;
26 |
--------------------------------------------------------------------------------
/routes/transectionRoutes.js:
--------------------------------------------------------------------------------
1 | const express = require("express");
2 | const {
3 | addTransection,
4 | getAllTransection,
5 | editTransection,
6 | deleteTransection,
7 | } = require("../controllers/transectionCtrl");
8 |
9 | //router object
10 | const router = express.Router();
11 |
12 | //routes
13 | //add transection POST MEthod
14 | router.post("/add-transection", addTransection);
15 | //Edit transection POST MEthod
16 | router.post("/edit-transection", editTransection);
17 | //Delete transection POST MEthod
18 | router.post("/delete-transection", deleteTransection);
19 |
20 | //get transections
21 | router.post("/get-transection", getAllTransection);
22 |
23 | module.exports = router;
24 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Expanse-Management-System",
3 | "version": "1.0.0",
4 | "description": "expanse tracker app",
5 | "main": "server.js",
6 | "scripts": {
7 | "start": "node server.js",
8 | "server": "nodemon server.js",
9 | "client": "npm start --prefix client",
10 | "dev": "concurrently \"npm start\" \"npm run client\" "
11 | },
12 | "keywords": [],
13 | "author": "Techinfoyt",
14 | "license": "MIT",
15 | "dependencies": {
16 | "colors": "^1.4.0",
17 | "concurrently": "^7.5.0",
18 | "cors": "^2.8.5",
19 | "dotenv": "^16.0.3",
20 | "express": "^4.18.2",
21 | "moment": "^2.29.4",
22 | "mongoose": "^6.6.5",
23 | "morgan": "^1.10.0"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/client/build/index.html:
--------------------------------------------------------------------------------
1 |
Expense Managment System
--------------------------------------------------------------------------------
/models/transectionModel.js:
--------------------------------------------------------------------------------
1 | const mongoose = require("mongoose");
2 |
3 | const transectionSchema = new mongoose.Schema(
4 | {
5 | userid: {
6 | type: String,
7 | required: true,
8 | },
9 | amount: {
10 | type: Number,
11 | required: [true, "amount is required"],
12 | },
13 | type: {
14 | type: String,
15 | required: [true, "type is required"],
16 | },
17 | category: {
18 | type: String,
19 | requires: [true, "cat is required"],
20 | },
21 | refrence: {
22 | type: String,
23 | },
24 | description: {
25 | type: String,
26 | required: [true, "desc is required"],
27 | },
28 | date: {
29 | type: Date,
30 | required: [true, "data is required"],
31 | },
32 | },
33 | { timestamps: true }
34 | );
35 |
36 | const transectionModel = mongoose.model("transections", transectionSchema);
37 | module.exports = transectionModel;
38 |
--------------------------------------------------------------------------------
/controllers/userController.js:
--------------------------------------------------------------------------------
1 | const userModel = require("../models/userModel");
2 |
3 | // login callback
4 | const loginController = async (req, res) => {
5 | try {
6 | const { email, password } = req.body;
7 | const user = await userModel.findOne({ email, password });
8 | if (!user) {
9 | return res.status(404).send("User Not Found");
10 | }
11 | res.status(200).json({
12 | success: true,
13 | user,
14 | });
15 | } catch (error) {
16 | res.status(400).json({
17 | success: false,
18 | error,
19 | });
20 | }
21 | };
22 |
23 | //Register Callback
24 | const registerController = async (req, res) => {
25 | try {
26 | const newUser = new userModel(req.body);
27 | await newUser.save();
28 | res.status(201).json({
29 | success: true,
30 | newUser,
31 | });
32 | } catch (error) {
33 | res.status(400).json({
34 | success: false,
35 | error,
36 | });
37 | }
38 | };
39 |
40 | module.exports = { loginController, registerController };
41 |
--------------------------------------------------------------------------------
/server.js:
--------------------------------------------------------------------------------
1 | const express = require("express");
2 | const cors = require("cors");
3 | const morgan = require("morgan");
4 | const dotenv = require("dotenv");
5 | const colors = require("colors");
6 | const path = require("path");
7 | const connectDb = require("./config/connectDb");
8 | // config dot env file
9 | dotenv.config();
10 |
11 | //databse call
12 | connectDb();
13 |
14 | //rest object
15 | const app = express();
16 |
17 | //middlewares
18 | app.use(morgan("dev"));
19 | app.use(express.json());
20 | app.use(cors());
21 |
22 | //routes
23 | //user routes
24 | app.use("/api/v1/users", require("./routes/userRoute"));
25 | //transections routes
26 | app.use("/api/v1/transections", require("./routes/transectionRoutes"));
27 |
28 | //static files
29 | app.use(express.static(path.join(__dirname, "./client/build")));
30 |
31 | app.get("*", function (req, res) {
32 | res.sendFile(path.join(__dirname, "./client/build/index.html"));
33 | });
34 |
35 | //port
36 | const PORT = 8080 || process.env.PORT;
37 |
38 | //listen server
39 | app.listen(PORT, () => {
40 | console.log(`Server running on port ${PORT}`);
41 | });
42 |
--------------------------------------------------------------------------------
/controllers/transectionCtrl.js:
--------------------------------------------------------------------------------
1 | const transectionModel = require("../models/transectionModel");
2 | const moment = require("moment");
3 | const getAllTransection = async (req, res) => {
4 | try {
5 | const { frequency, selectedDate, type } = req.body;
6 | const transections = await transectionModel.find({
7 | ...(frequency !== "custom"
8 | ? {
9 | date: {
10 | $gt: moment().subtract(Number(frequency), "d").toDate(),
11 | },
12 | }
13 | : {
14 | date: {
15 | $gte: selectedDate[0],
16 | $lte: selectedDate[1],
17 | },
18 | }),
19 | userid: req.body.userid,
20 | ...(type !== "all" && { type }),
21 | });
22 | res.status(200).json(transections);
23 | } catch (error) {
24 | console.log(error);
25 | res.status(500).json(erorr);
26 | }
27 | };
28 |
29 | const deleteTransection = async (req, res) => {
30 | try {
31 | await transectionModel.findOneAndDelete({ _id: req.body.transacationId });
32 | res.status(200).send("Transaction Deleted!");
33 | } catch (error) {
34 | console.log(error);
35 | res.status(500).json(error);
36 | }
37 | };
38 | const editTransection = async (req, res) => {
39 | try {
40 | await transectionModel.findOneAndUpdate(
41 | { _id: req.body.transacationId },
42 | req.body.payload
43 | );
44 | res.status(200).send("Edit SUccessfully");
45 | } catch (error) {
46 | console.log(error);
47 | res.status(500).json(error);
48 | }
49 | };
50 |
51 | const addTransection = async (req, res) => {
52 | try {
53 | // const newTransection = new transectionModel(req.body);
54 | const newTransection = new transectionModel(req.body);
55 | await newTransection.save();
56 | res.status(201).send("Transection Created");
57 | } catch (error) {
58 | console.log(error);
59 | res.status(500).json(error);
60 | }
61 | };
62 |
63 | module.exports = {
64 | getAllTransection,
65 | addTransection,
66 | editTransection,
67 | deleteTransection,
68 | };
69 |
--------------------------------------------------------------------------------
/client/build/static/js/main.e255f202.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | Copyright (c) 2018 Jed Watson.
3 | Licensed under the MIT License (MIT), see
4 | http://jedwatson.github.io/classnames
5 | */
6 |
7 | /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
8 |
9 | /**
10 | * @license React
11 | * react-dom.production.min.js
12 | *
13 | * Copyright (c) Facebook, Inc. and its affiliates.
14 | *
15 | * This source code is licensed under the MIT license found in the
16 | * LICENSE file in the root directory of this source tree.
17 | */
18 |
19 | /**
20 | * @license React
21 | * react-jsx-runtime.production.min.js
22 | *
23 | * Copyright (c) Facebook, Inc. and its affiliates.
24 | *
25 | * This source code is licensed under the MIT license found in the
26 | * LICENSE file in the root directory of this source tree.
27 | */
28 |
29 | /**
30 | * @license React
31 | * react.production.min.js
32 | *
33 | * Copyright (c) Facebook, Inc. and its affiliates.
34 | *
35 | * This source code is licensed under the MIT license found in the
36 | * LICENSE file in the root directory of this source tree.
37 | */
38 |
39 | /**
40 | * @license React
41 | * scheduler.production.min.js
42 | *
43 | * Copyright (c) Facebook, Inc. and its affiliates.
44 | *
45 | * This source code is licensed under the MIT license found in the
46 | * LICENSE file in the root directory of this source tree.
47 | */
48 |
49 | /**
50 | * @remix-run/router v1.0.2
51 | *
52 | * Copyright (c) Remix Software Inc.
53 | *
54 | * This source code is licensed under the MIT license found in the
55 | * LICENSE.md file in the root directory of this source tree.
56 | *
57 | * @license MIT
58 | */
59 |
60 | /**
61 | * React Router DOM v6.4.2
62 | *
63 | * Copyright (c) Remix Software Inc.
64 | *
65 | * This source code is licensed under the MIT license found in the
66 | * LICENSE.md file in the root directory of this source tree.
67 | *
68 | * @license MIT
69 | */
70 |
71 | /**
72 | * React Router v6.4.2
73 | *
74 | * Copyright (c) Remix Software Inc.
75 | *
76 | * This source code is licensed under the MIT license found in the
77 | * LICENSE.md file in the root directory of this source tree.
78 | *
79 | * @license MIT
80 | */
81 |
82 | /** @license React v16.13.1
83 | * react-is.production.min.js
84 | *
85 | * Copyright (c) Facebook, Inc. and its affiliates.
86 | *
87 | * This source code is licensed under the MIT license found in the
88 | * LICENSE file in the root directory of this source tree.
89 | */
90 |
91 | //! moment.js
92 |
--------------------------------------------------------------------------------
/client/build/static/js/787.c4e7f8f9.chunk.js:
--------------------------------------------------------------------------------
1 | "use strict";(self.webpackChunkclient=self.webpackChunkclient||[]).push([[787],{787:function(e,t,n){n.r(t),n.d(t,{getCLS:function(){return y},getFCP:function(){return g},getFID:function(){return C},getLCP:function(){return P},getTTFB:function(){return D}});var i,r,a,o,u=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},f=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},s=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},m=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},v=-1,p=function(){return"hidden"===document.visibilityState?0:1/0},d=function(){f((function(e){var t=e.timeStamp;v=t}),!0)},l=function(){return v<0&&(v=p(),d(),s((function(){setTimeout((function(){v=p(),d()}),0)}))),{get firstHiddenTime(){return v}}},g=function(e,t){var n,i=l(),r=u("FCP"),a=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime-1&&e(t)},r=u("CLS",0),a=0,o=[],v=function(e){if(!e.hadRecentInput){var t=o[0],i=o[o.length-1];a&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e]),a>r.value&&(r.value=a,r.entries=o,n())}},p=c("layout-shift",v);p&&(n=m(i,r,t),f((function(){p.takeRecords().map(v),n(!0)})),s((function(){a=0,T=-1,r=u("CLS",0),n=m(i,r,t)})))},E={passive:!0,capture:!0},w=new Date,L=function(e,t){i||(i=t,r=e,a=new Date,F(removeEventListener),S())},S=function(){if(r>=0&&r1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){L(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,E),removeEventListener("pointercancel",i,E)};addEventListener("pointerup",n,E),addEventListener("pointercancel",i,E)}(t,e):L(t,e)}},F=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,b,E)}))},C=function(e,t){var n,a=l(),v=u("FID"),p=function(e){e.startTimeperformance.now())return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("load",(function(){return setTimeout(t,0)}))}}}]);
2 | //# sourceMappingURL=787.c4e7f8f9.chunk.js.map
--------------------------------------------------------------------------------
/client/build/static/js/787.c4e7f8f9.chunk.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"static/js/787.c4e7f8f9.chunk.js","mappings":"iQAAA,IAAIA,EAAEC,EAAEC,EAAEC,EAAEC,EAAE,SAASJ,EAAEC,GAAG,MAAM,CAACI,KAAKL,EAAEM,WAAM,IAASL,GAAG,EAAEA,EAAEM,MAAM,EAAEC,QAAQ,GAAGC,GAAG,MAAMC,OAAOC,KAAKC,MAAM,KAAKF,OAAOG,KAAKC,MAAM,cAAcD,KAAKE,UAAU,MAAM,EAAEC,EAAE,SAAShB,EAAEC,GAAG,IAAI,GAAGgB,oBAAoBC,oBAAoBC,SAASnB,GAAG,CAAC,GAAG,gBAAgBA,KAAK,2BAA2BoB,MAAM,OAAO,IAAIlB,EAAE,IAAIe,qBAAqB,SAASjB,GAAG,OAAOA,EAAEqB,aAAaC,IAAIrB,EAAE,IAAI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EAAE9B,EAAE,OAAOF,EAAE+B,EAAEjC,EAAEkC,EAAEjC,GAAG+C,uBAAuB,WAAWA,uBAAuB,WAAWd,EAAE5B,MAAMwC,YAAYlC,MAAMT,EAAEkC,UAAUgC,EAAEnC,EAAEzB,KAAI,EAAGP,GAAE,EAAG,GAAG,GAAG,GAAG,CAAC,EAAEsE,EAAE,SAASxE,GAAG,IAAIC,EAAEC,EAAEE,EAAE,QAAQH,EAAE,WAAW,IAAI,IAAIA,EAAE6C,YAAY2B,iBAAiB,cAAc,IAAI,WAAW,IAAIzE,EAAE8C,YAAY4B,OAAOzE,EAAE,CAAC6D,UAAU,aAAanB,UAAU,GAAG,IAAI,IAAIzC,KAAKF,EAAE,oBAAoBE,GAAG,WAAWA,IAAID,EAAEC,GAAGW,KAAK8D,IAAI3E,EAAEE,GAAGF,EAAE4E,gBAAgB,IAAI,OAAO3E,CAAC,CAAjL,GAAqL,GAAGC,EAAEI,MAAMJ,EAAEK,MAAMN,EAAE4E,cAAc3E,EAAEI,MAAM,GAAGJ,EAAEI,MAAMwC,YAAYlC,MAAM,OAAOV,EAAEM,QAAQ,CAACP,GAAGD,EAAEE,EAAY,CAAT,MAAMF,GAAG,CAAC,EAAE,aAAa2B,SAASmD,WAAWvC,WAAWtC,EAAE,GAAG6B,iBAAiB,QAAQ,WAAW,OAAOS,WAAWtC,EAAE,EAAE,GAAG,C","sources":["../node_modules/web-vitals/dist/web-vitals.js"],"sourcesContent":["var e,t,n,i,r=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:\"v2-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12)}},a=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if(\"first-input\"===e&&!(\"PerformanceEventTiming\"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},o=function(e,t){var n=function n(i){\"pagehide\"!==i.type&&\"hidden\"!==document.visibilityState||(e(i),t&&(removeEventListener(\"visibilitychange\",n,!0),removeEventListener(\"pagehide\",n,!0)))};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},u=function(e){addEventListener(\"pageshow\",(function(t){t.persisted&&e(t)}),!0)},c=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},f=-1,s=function(){return\"hidden\"===document.visibilityState?0:1/0},m=function(){o((function(e){var t=e.timeStamp;f=t}),!0)},v=function(){return f<0&&(f=s(),m(),u((function(){setTimeout((function(){f=s(),m()}),0)}))),{get firstHiddenTime(){return f}}},d=function(e,t){var n,i=v(),o=r(\"FCP\"),f=function(e){\"first-contentful-paint\"===e.name&&(m&&m.disconnect(),e.startTime-1&&e(t)},f=r(\"CLS\",0),s=0,m=[],v=function(e){if(!e.hadRecentInput){var t=m[0],i=m[m.length-1];s&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(s+=e.value,m.push(e)):(s=e.value,m=[e]),s>f.value&&(f.value=s,f.entries=m,n())}},h=a(\"layout-shift\",v);h&&(n=c(i,f,t),o((function(){h.takeRecords().map(v),n(!0)})),u((function(){s=0,l=-1,f=r(\"CLS\",0),n=c(i,f,t)})))},T={passive:!0,capture:!0},y=new Date,g=function(i,r){e||(e=r,t=i,n=new Date,w(removeEventListener),E())},E=function(){if(t>=0&&t1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,t){var n=function(){g(e,t),r()},i=function(){r()},r=function(){removeEventListener(\"pointerup\",n,T),removeEventListener(\"pointercancel\",i,T)};addEventListener(\"pointerup\",n,T),addEventListener(\"pointercancel\",i,T)}(t,e):g(t,e)}},w=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(t){return e(t,S,T)}))},L=function(n,f){var s,m=v(),d=r(\"FID\"),p=function(e){e.startTimeperformance.now())return;n.entries=[t],e(n)}catch(e){}},\"complete\"===document.readyState?setTimeout(t,0):addEventListener(\"load\",(function(){return setTimeout(t,0)}))};export{h as getCLS,d as getFCP,L as getFID,F as getLCP,P as getTTFB};\n"],"names":["e","t","n","i","r","name","value","delta","entries","id","concat","Date","now","Math","floor","random","a","PerformanceObserver","supportedEntryTypes","includes","self","getEntries","map","observe","type","buffered","o","document","visibilityState","removeEventListener","addEventListener","u","persisted","c","f","s","m","timeStamp","v","setTimeout","firstHiddenTime","d","disconnect","startTime","push","window","performance","getEntriesByName","requestAnimationFrame","p","l","h","hadRecentInput","length","takeRecords","T","passive","capture","y","g","w","E","entryType","target","cancelable","processingStart","forEach","S","L","b","F","once","P","getEntriesByType","timing","max","navigationStart","responseStart","readyState"],"sourceRoot":""}
--------------------------------------------------------------------------------